/* ===========================================================
   GLOBAL RESET + BASE SETTINGS
   =========================================================== */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --accent: #00bfff;
  --glass-bg: rgba(20,20,20,0.45);
  --glow: 0 0 20px rgba(0,191,255,0.7);
}

html, body {
  width:100%;
  height:100%;
}

body {
  font-family:'Montserrat',sans-serif;
  color:#fff;
  background:#000;
  opacity:0;
  transition: opacity .7s ease-out;
}

body.loaded {
  opacity:1;
}

/* ===========================================================
   NAVBAR
   =========================================================== */
nav {
  position:fixed;
  top:0;
  width:100%;
  z-index:200;
  padding:1rem 0;
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(10px);
}

nav ul {
  list-style:none;
  display:flex;
  justify-content:center;
  gap:2.4rem;
}

nav a {
  color:#fff;
  font-weight:700;
  font-size:1.15rem;
  position:relative;
  text-decoration:none;
  transition:.25s;
}

nav a:hover,
nav a.active {
  color:var(--accent);
  text-shadow:var(--glow);
}

nav a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:width .25s;
}

nav a:hover::after,
nav a.active::after {
  width:100%;
}

nav a.electric {
  color:var(--accent) !important;
  text-shadow:0 0 15px var(--accent);
}

/* ===========================================================
   VIDEO & BACKGROUND
   =========================================================== */
#hero-video,
#bg-video {
  position:fixed;
  width:100%;
  height:100%;
  top:0;
  left:0;
  object-fit:cover;
  z-index:-20;
}

.page-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.25);
  z-index:-15;
}

/* CONTACT PAGE IMAGE BACKGROUND */
.contact-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('irongiant.jpg') center/cover no-repeat;
  z-index: -20;
  filter: brightness(0.8) contrast(1.1);
}

/* ===========================================================
   GLASS CARD
   =========================================================== */
.glass-card {
  max-width:900px;
  padding:70px 55px;
  margin:25vh auto;
  background:var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 22px;
  text-align:center;
  position:relative;
  z-index:20;
  animation:fadeUp .8s ease, breathe 7s ease-in-out infinite;
}

.home-card {
  margin-top:25vh;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

@keyframes breathe {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.018); }
  100% { transform: scale(1); }
}

.glass-card h1 {
  font-size:3.2rem;
  margin-bottom:1rem;
}

.glass-card p {
  font-size:1.45rem;
  line-height:1.7;
  color:rgba(255,255,255,0.95);
}

.highlight {
  color:var(--accent);
  text-shadow:var(--glow);
}

/* Shining heading */
.text-shine {
  background:linear-gradient(90deg,#fff,var(--accent),#fff);
  background-size:200%;
  -webkit-background-clip:text;
  color:transparent;
  animation:shineMove 3s linear infinite;
}

@keyframes shineMove {
  0% { background-position:0%; }
  100% { background-position:200%; }
}

/* ===========================================================
   WORKS GRID
   =========================================================== */
.works-container {
  max-width:1200px;
  margin:25vh auto;
  padding:20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
  gap:2.4rem;
  z-index:20;
}

.work-card {
  background:rgba(255,255,255,0.08);
  border-radius:20px;
  backdrop-filter:blur(18px);
  overflow:hidden;
  box-shadow:0 10px 35px rgba(0,191,255,0.18);
  transition:.35s ease;
  cursor:pointer;
}

.work-card:hover {
  transform:translateY(-12px) scale(1.03);
  box-shadow:0 16px 50px rgba(0,191,255,0.32);
}

.work-card img {
  width:100%;
  height:240px;
  object-fit:cover;
  transition:.45s;
}

.work-card:hover img {
  transform:scale(1.12);
}

.work-info {
  padding:22px 26px 30px;
}

.work-info h2 {
  font-size:2rem;
  text-shadow:0 0 12px rgba(0,191,255,0.7);
  margin-bottom:10px;
}

.work-info p {
  font-size:1.25rem;
  line-height:1.6;
  color:rgba(255,255,255,0.95);
}

/* ===========================================================
   SPARK EFFECT
   =========================================================== */
.spark {
  width:10px;
  height:10px;
  position:fixed;
  pointer-events:none;
  border-radius:50%;
  background:radial-gradient(circle,#fff,var(--accent));
  transform:translate(-50%, -50%);
  animation:sparkAnim .6s ease-out forwards;
  z-index:99999;
}

@keyframes sparkAnim {
  0% { opacity:1; transform:translate(-50%,-50%) scale(1); }
  100% { opacity:0; transform:translate(-50%,-120%) scale(0.3); }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media(max-width:760px) {
  nav a { font-size:1rem; }

  .glass-card {
    padding:40px 25px;
    margin:15vh 16px;
  }

  .glass-card h1 { font-size:2.3rem; }
  .glass-card p { font-size:1.1rem; }

  .works-container {
    grid-template-columns:1fr;
    margin-top:18vh;
  }

  .work-card img { height:170px; }
  .work-info h2 { font-size:1.5rem; }
  .work-info p { font-size:1.05rem; }
}

/* ===========================================================
   UNIVERSAL RESPONSIVE FIX — PC + TABLET + MOBILE
   =========================================================== */

@media (max-width: 1280px) {
  .glass-card {
    width: 70%;
  }
}

/* TABLETS (iPad, Android tablets) */
@media (max-width: 1024px) {
  nav ul {
    gap: 1.6rem;
  }

  .glass-card {
    margin: 20vh auto;
    width: 80%;
    padding: 55px 40px;
  }

  .glass-card h1 { font-size: 2.6rem; }
  .glass-card p { font-size: 1.25rem; }

  .works-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .work-card img { height: 200px; }
}

/* MOBILE FIXES (Optimized for iPhone + Android) */
@media (max-width: 820px) {

  body {
    overflow-y: auto;   /* Allow scrolling on mobile */
  }

  /* NAVBAR */
  nav {
    padding: 0.7rem 0;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  /* GLASS CARD MOBILE */
  .glass-card {
    width: 90%;
    padding: 35px 25px !important;
    margin: 16vh auto !important;
  }

  .glass-card h1 {
    font-size: 2rem !important;
    line-height: 2.4rem;
  }

  .glass-card p {
    font-size: 1.1rem !important;
  }

  /* HOME CARD SPECIAL */
  .home-card {
    margin-top: 20vh !important;
  }

  /* WORKS MOBILE */
  .works-container {
    margin-top: 14vh;
    grid-template-columns: 1fr !important;
    padding: 10px;
    gap: 1.6rem;
  }

  .work-card img {
    height: 160px !important;
  }

  .work-info h2 {
    font-size: 1.4rem !important;
  }

  .work-info p {
    font-size: 1.05rem !important;
  }

  /* CONTACT PAGE BACKGROUND */
  .contact-bg {
    background-position: center top;
    background-size: cover;
    filter: brightness(0.7);
  }

  /* VIDEO PERFORMANCE BOOST */
  #hero-video,
  #bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
  }

  /* DISABLE PARALLAX ON PHONE */
  body.mobile-off #hero-video,
  body.mobile-off #bg-video,
  body.mobile-off .glass-card {
    transform: none !important;
  }
}

/* ULTRA SMALL DEVICES (old phones) */
@media (max-width: 400px) {
  nav a { font-size: 0.8rem; }
  .glass-card h1 { font-size: 1.7rem !important; }
  .glass-card p { font-size: 0.95rem !important; }
}
.tech-stack {
  margin-top: 10px;
}

.tech-stack span {
  background: rgba(255,255,255,0.15);
  padding: 5px 10px;
  margin: 3px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
  transition: 0.3s;
}

.tech-stack span:hover {
  background: rgba(255,255,255,0.3);
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 25px;
  margin: 30px auto;
  max-width: 900px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: 0.4s ease;
}

.badge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.badge-img {
  width: 150px;
  border-radius: 15px;
}

.badge-info h2 {
  margin-bottom: 10px;
}

.cert-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  border-radius: 25px;
  background: linear-gradient(45deg, #ff9900, #ff6600);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.cert-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255,153,0,0.5);
}


