/* =========================================================
   THEME VARIABLES
========================================================= */

:root{

  /* LIGHT THEME */

  --bg-color:#f7faff;
  --text-color:#111827;
  --text-secondary:#6b7280;
  --text-muted:#4b5563;

  --navbar-bg:rgba(255,255,255,0.85);
  --navbar-border:rgba(0,0,0,0.05);

  --badge-bg:rgba(255,255,255,0.7);
  --badge-border:rgba(79,70,229,0.15);
  --badge-text:#6366f1;

  --card-bg:rgba(255,255,255,0.75);
  --card-border:rgba(0,0,0,0.05);
  --card-shadow:0 20px 50px rgba(0,0,0,0.06);

  --status-bg:#ffffff;
  --status-border:rgba(79,70,229,0.08);

  --footer-border:rgba(0,0,0,0.06);

  --grid-line:rgba(99,102,241,0.04);

  --contact-btn-bg:linear-gradient(135deg,#7c5cff,#4ea7ff);
  --contact-btn-text:#ffffff;

  --gradient:linear-gradient(135deg,#7c5cff,#2f80ff);

  --purple-glow:rgba(124,92,255,0.18);
  --blue-glow:rgba(78,167,255,0.15);

  --orbit-border:rgba(124,92,255,0.3);
  --pulse-border:rgba(124,92,255,0.35);

  --footer-link:#4f46e5;
}

/* =========================================================
   DARK THEME
========================================================= */

@media (prefers-color-scheme: dark){

  :root{

    --bg-color:#050816;
    --text-color:#f8f9ff;
    --text-secondary:#7481a8;
    --text-muted:#8e97b7;

    --navbar-bg:rgba(5,8,22,0.72);
    --navbar-border:rgba(255,255,255,0.06);

    --badge-bg:rgba(255,255,255,0.03);
    --badge-border:rgba(255,255,255,0.08);
    --badge-text:#7f89a8;

    --card-bg:rgba(8,12,28,0.72);
    --card-border:rgba(255,255,255,0.06);
    --card-shadow:0 20px 60px rgba(0,0,0,0.35);

    --status-bg:rgba(255,255,255,0.03);
    --status-border:rgba(255,255,255,0.06);

    --footer-border:rgba(255,255,255,0.05);

    --grid-line:rgba(255,255,255,0.03);

    --contact-btn-bg:rgba(255,255,255,0.04);
    --contact-btn-text:#ffffff;

    --gradient:linear-gradient(135deg,#8b5cf6,#3ea8ff);

    --purple-glow:rgba(124,92,255,0.22);
    --blue-glow:rgba(78,167,255,0.18);

    --orbit-border:rgba(124,92,255,0.3);
    --pulse-border:rgba(124,92,255,0.35);

    --footer-link:#7c8cff;
  }

}

/* =========================================================
   GLOBAL STYLES
========================================================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg-color);
  overflow-x:hidden;
  color:var(--text-color);
  position:relative;
  min-height:100vh;
  line-height:1.6;
}

a{
  text-decoration:none;
}

.logo-img{
  height:70px;
  width:auto;
  object-fit:contain;
}

/* =========================================================
   BACKGROUND EFFECT
========================================================= */

body::before{
  content:'';
  position:fixed;
  width:700px;
  height:700px;
  background:radial-gradient(circle, var(--purple-glow), transparent 70%);
  top:-200px;
  left:-150px;
  z-index:-3;
  pointer-events:none;
}

body::after{
  content:'';
  position:fixed;
  width:700px;
  height:700px;
  background:radial-gradient(circle, var(--blue-glow), transparent 70%);
  bottom:-250px;
  right:-150px;
  z-index:-3;
  pointer-events:none;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar-custom{
  padding:14px 0;
  background:var(--navbar-bg);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--navbar-border);
}

.nav-link{
  color:var(--text-muted) !important;
  margin-left:18px;
  font-weight:500;
  transition:0.3s ease;
}

.nav-link:hover{
  color:var(--text-color) !important;
}

.contact-btn{
  background:var(--contact-btn-bg);
  color:var(--contact-btn-text) !important;
  padding:10px 22px !important;
  border-radius:14px;
  font-weight:600;
  transition:0.3s ease;
  border:1px solid rgba(255,255,255,0.08);
}

.contact-btn:hover{
  background:linear-gradient(135deg,#7c5cff,#4ea7ff);
  border-color:transparent;
  box-shadow:0 10px 30px rgba(124,92,255,0.25);
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero-section{
  min-height:100vh;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
}

.hero-content{
  position:relative;
  z-index:2;
  margin-top:6rem;
}

.mini-badge{
  display:inline-block;
  padding:12px 28px;
  border-radius:999px;
  border:1px solid var(--badge-border);
  background:var(--badge-bg);
  color:var(--badge-text);
  font-size:12px;
  letter-spacing:5px;
  text-transform:uppercase;
  margin-bottom:40px;
  font-weight:600;
  backdrop-filter:blur(10px);
}

.hero-title{
  font-size:clamp(3.2rem,6vw,6rem);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-3px;
  color:var(--text-color);
}

.gradient-text{
  background:var(--gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-sub{
  margin-top:40px;
  font-size:1.35rem;
  color:var(--text-secondary);
  line-height:1.8;
  max-width:850px;
}

.hero-small{
  margin-top:30px;
  color:var(--text-color);
  font-size:1.2rem;
  font-weight:600;
}

/* =========================================================
   SECTION STYLES
========================================================= */

.section-spacing{
  padding:120px 0;
  position:relative;
}

.section-title{
  font-size:clamp(2.6rem,4vw,4.8rem);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-2px;
  margin-bottom:30px;
  color:var(--text-color);
}

.section-text{
  color:var(--text-secondary);
  font-size:1.2rem;
  line-height:1.9;
  max-width:900px;
  margin:auto;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:40px;
  padding:16px 28px;
  border-radius:999px;
  background:var(--status-bg);
  border:1px solid var(--status-border);
  box-shadow:0 10px 40px rgba(0,0,0,0.12);
  color:var(--text-color);
  font-weight:500;
  backdrop-filter:blur(10px);
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#8b5cf6;
  box-shadow:0 0 15px #8b5cf6;
}

/* =========================================================
   CTA SECTION
========================================================= */

.cta-section{
  padding:150px 0 140px;
}

.cta-btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:45px;
  background:linear-gradient(135deg,#8b5cf6,#5ea8ff);
  color:white;
  padding:18px 38px;
  border-radius:16px;
  font-weight:700;
  transition:0.35s ease;
  box-shadow:0 18px 45px rgba(91,92,255,0.25);
}

.cta-btn:hover{
  transform:translateY(-5px);
  color:white;
  box-shadow:0 25px 60px rgba(91,92,255,0.35);
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:160px 0 120px;
  text-align:center;
}

.section-subtitle{
  color:var(--text-secondary);
  font-size:1.2rem;
  margin-bottom:80px;
}

/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card{
  background:var(--card-bg);
  backdrop-filter:blur(14px);
  border:1px solid var(--card-border);
  border-radius:30px;
  padding:55px 40px;
  height:100%;
  transition:0.4s ease;
  box-shadow:var(--card-shadow);
}

.contact-card:hover{
  transform:translateY(-10px);
  border-color:rgba(124,92,255,0.25);
  box-shadow:0 30px 80px rgba(91,92,255,0.16);
}

.icon-box{
  width:80px;
  height:80px;
  border-radius:24px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  margin-bottom:30px;
  color:white;
}

.purple-bg{
  background:linear-gradient(135deg,#7c5cff,#8f67ff);
  box-shadow:0 10px 30px rgba(124,92,255,0.25);
}

.blue-bg{
  background:linear-gradient(135deg,#2f80ff,#4ea7ff);
  box-shadow:0 10px 30px rgba(47,128,255,0.25);
}

.card-title{
  font-size:2rem;
  font-weight:700;
  margin-bottom:18px;
  color:var(--text-color);
}

.card-text{
  color:var(--text-secondary);
  font-size:1.15rem;
  line-height:1.8;
  margin-bottom:28px;
}

.mail-link{
  font-size:1.2rem;
  font-weight:700;
  color:#5fb4ff;
  transition:0.3s ease;
}

.mail-link:hover{
  color:#8b5cf6;
}

/* =========================================================
   BACK BUTTON
========================================================= */

.back-home{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:70px;
  color:var(--text-secondary);
  font-size:1.1rem;
  font-weight:500;
  transition:0.3s ease;
}

.back-home:hover{
  color:var(--text-color);
  transform:translateX(-5px);
}

/* =========================================================
   FOOTER
========================================================= */

footer{
  padding:35px 0;
  border-top:1px solid var(--footer-border);
  color:var(--text-secondary);
  font-size:15px;
  background:transparent;
}

footer a{
  color:var(--footer-link);
  font-weight:600;
}

/* =========================================================
   ANIMATED BACKGROUND
========================================================= */

.animated-bg{
  position:fixed;
  inset:0;
  overflow:hidden;
  z-index:-2;
  pointer-events:none;
}

.floating-shape{
  position:absolute;
  border-radius:50%;
  filter:blur(20px);
  opacity:0.35;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
}

.shape-1{
  width:320px;
  height:320px;
  background:linear-gradient(135deg,#7c5cff,#4ea7ff);
  top:5%;
  left:-120px;
  animation:floatOne 12s infinite alternate;
}

.shape-2{
  width:280px;
  height:280px;
  background:linear-gradient(135deg,#4ea7ff,#8f67ff);
  bottom:10%;
  right:-100px;
  animation:floatTwo 15s infinite alternate;
}

.shape-3{
  width:180px;
  height:180px;
  background:rgba(124,92,255,0.35);
  top:55%;
  left:10%;
  animation:floatThree 18s infinite alternate;
}

.shape-4{
  width:160px;
  height:160px;
  background:rgba(78,167,255,0.35);
  top:18%;
  right:20%;
  animation:floatFour 20s infinite alternate;
}

/* =========================================================
   GRID OVERLAY
========================================================= */

.grid-overlay{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:80px 80px;
}

/* =========================================================
   HERO ILLUSTRATION
========================================================= */

.hero-illustration{
  position:relative;
  width:220px;
  height:220px;
  margin:0 auto 60px;
}

.core-circle{
  width:110px;
  height:110px;
  background:linear-gradient(135deg,#7c5cff,#4ea7ff);
  border-radius:50%;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:
    0 0 40px rgba(124,92,255,0.45),
    0 0 80px rgba(78,167,255,0.25);
  animation:pulseCore 4s infinite ease-in-out;
}

.pulse-ring{
  position:absolute;
  inset:-18px;
  border:2px solid var(--pulse-border);
  border-radius:50%;
  animation:pulseRing 3s infinite;
}

.orbit{
  position:absolute;
  border:1px dashed var(--orbit-border);
  border-radius:50%;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}

.orbit-1{
  width:170px;
  height:170px;
  animation:rotateOrbit 12s linear infinite;
}

.orbit-2{
  width:230px;
  height:230px;
  animation:rotateOrbitReverse 18s linear infinite;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes floatOne{
  from{
    transform:translateY(0px) translateX(0px);
  }
  to{
    transform:translateY(80px) translateX(40px);
  }
}

@keyframes floatTwo{
  from{
    transform:translateY(0px) translateX(0px);
  }
  to{
    transform:translateY(-70px) translateX(-50px);
  }
}

@keyframes floatThree{
  from{
    transform:translateY(0px);
  }
  to{
    transform:translateY(-60px);
  }
}

@keyframes floatFour{
  from{
    transform:translateX(0px);
  }
  to{
    transform:translateX(60px);
  }
}

@keyframes rotateOrbit{
  from{
    transform:translate(-50%,-50%) rotate(0deg);
  }
  to{
    transform:translate(-50%,-50%) rotate(360deg);
  }
}

@keyframes rotateOrbitReverse{
  from{
    transform:translate(-50%,-50%) rotate(360deg);
  }
  to{
    transform:translate(-50%,-50%) rotate(0deg);
  }
}

@keyframes pulseCore{
  0%,100%{
    transform:translate(-50%,-50%) scale(1);
  }
  50%{
    transform:translate(-50%,-50%) scale(1.08);
  }
}

@keyframes pulseRing{
  0%{
    transform:scale(1);
    opacity:1;
  }
  100%{
    transform:scale(1.45);
    opacity:0;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:991px){

  .contact-card{
    margin-bottom:30px;
  }

  .section-subtitle{
    margin-bottom:50px;
  }

  .contact-section{
    padding-top:140px;
  }

  .navbar-collapse{
    margin-top:20px;
    padding:20px;
    background:var(--navbar-bg);
    border-radius:20px;
    border:1px solid var(--navbar-border);
  }
}

@media(max-width:768px){

  .hero-section{
    padding-top:120px;
    text-align:center;
  }

  .hero-title{
    font-size:3.2rem;
    letter-spacing:-2px;
  }

  .hero-sub{
    font-size:1rem;
  }

  .section-spacing{
    padding:100px 0;
  }

  .section-text{
    font-size:1rem;
  }

  .section-title{
    font-size:3rem;
  }

  .section-subtitle{
    font-size:1rem;
  }

  .card-title{
    font-size:1.5rem;
  }

  .mail-link{
    font-size:1rem;
    word-break:break-word;
  }

  .contact-btn{
    display:inline-block;
    margin-top:10px;
  }

  .hero-illustration{
    width:160px;
    height:160px;
    margin-bottom:40px;
  }

  .core-circle{
    width:80px;
    height:80px;
  }

  .orbit-1{
    width:130px;
    height:130px;
  }

  .orbit-2{
    width:170px;
    height:170px;
  }

  .shape-1,
  .shape-2{
    width:180px;
    height:180px;
  }

  footer{
    text-align:center;
  }
}