/* ===============================
   RESET (Browser default hatane ke liye)
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   THEME VARIABLES (Brand colors)
================================ */
:root {
  --primary-color: #0a2540;
  /* Dark premium blue */
  --secondary-color: #0077ff;
  /* Accent blue */
  --light-bg: #f9fbff;
  /* Page background */
  --dark-text: #0f172a;
  /* Main text */
  --muted-text: #64748b;
  /* Light text */
}

/* ===============================
   GLOBAL BODY STYLE
================================ */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.7;
}

/* ===============================
   COMMON SECTION STYLE
================================ */
section {
  background: #ffffff;
  padding: 60px 10%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  max-width: 1100px;
}

/* ===============================
   HEADINGS & TEXT
================================ */
h1 {
  font-size: 48px;
  margin-bottom: 26px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

p,
li {
  margin-bottom: 8px;
  color: var(--dark-text);
}

/* ===============================
   NAVBAR
================================ */
.navbar {

  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 16px 10%;
  max-width: 1100px;
  margin: auto;
}

.navbar a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: bold;
}

.navbar a:hover {
  color: var(--secondary-color);
}

/* ===== HERO UPGRADE ===== */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: white;
}

#home h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1px;
}

#home .highlight {
  color: #000000;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.subtitle {
  margin-top: 16px;
  font-size: 20px;
  color: #cbd5e1;
  min-height: 28px;
  /* 🔥 space reserve */
  display: block;
}

/* mobile me thoda zyada height */
@media (max-width: 768px) {
  .subtitle {
    min-height: 48px;
  }
}

/* ===============================
   SKILLS SECTION
================================ */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-list span {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
}

/* ===============================
   PROJECTS SECTION
================================ */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.project-label {
  margin-top: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
  font-weight: bold;
}

.project-tech {
  margin-top: 16px;
  color: var(--muted-text);
}

/* ===============================
   EDUCATION TIMELINE
================================ */
.timeline {
  position: relative;
  margin-top: 30px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--secondary-color);
}

.timeline-item {
  margin-bottom: 30px;
  padding-left: 20px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.timeline-year {
  font-size: 14px;
  color: var(--muted-text);
}

/* ===============================
   CONTACT SECTION
================================ */
.contact-text {
  max-width: 786px;
  color: var(--muted-text);
  margin-bottom: 30px;
}

/* ===============================
   FOOTER
================================ */
.footer {
  text-align: center;
  padding: 30px 10%;
  color: var(--muted-text);
  font-size: 14px;
}

/* ===============================
   RESPONSIVE (ALL DEVICES)
================================ */
@media (max-width: 768px) {

  /* Navbar mobile */
  .navbar ul {
    flex-direction: column;
    gap: 5 px;
    padding: 12px 6%;
  }

  /* Hero text */
  h1 {
    font-size: 34px;
  }


  section {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 80px 10%;
    margin: 80px auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  }



}


/* ===============================
   PHASE 1: SCROLL REVEAL ANIMATION
================================ */

/* Default hidden state */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* Jab element visible ho */
.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   PHASE 2: PROJECT HOVER EFFECT
================================ */

/* Card lift on hover */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ===============================
   PHASE 2: ACTIVE NAV LINK
================================ */

.navbar a.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* ===============================
   PHASE 3: STAGGER REVEAL
================================ */

/* cards ke liye delay-ready state */
.stagger {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* thoda sa depth feel */
.parallax {
  will-change: transform;
}


/* prefers-reduced-motion support (accessibility) */
@media (prefers-reduced-motion: reduce) {

  .hidden,
  .show,
  .stagger {
    transition: none !important;
    transform: none !important;
  }
}

/* ===============================
   PHASE 4: CURSOR GLOW EFFECT
================================ */

/* glow circle */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  /* click block na ho */
  background: radial-gradient(circle,
      rgba(0, 119, 255, 0.15) 0%,
      rgba(0, 119, 255, 0.05) 40%,
      transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
}

/* sirf desktop ke liye */
@media (max-width: 768px) {
  #cursor-glow {
    display: none;
  }
}

/* ===============================
   PHASE 5: SCROLL PROGRESS BAR
================================ */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg,
      var(--secondary-color),
      #00c6ff);
  z-index: 999;
}

/* =================================================
   PHASE 6: GLOBAL PREMIUM POLISH (NO BREAKING)
================================================= */

/* Smooth overall feel */
html {
  scroll-behavior: smooth;
}

/* Slight page depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 119, 255, 0.06), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(56, 189, 248, 0.05), transparent 40%);
  z-index: -1;
}

/* =================================================
   PHASE 7: NAVBAR — PREMIUM FLOATING LOOK
================================================= */


.navbar ul li {
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* =================================================
   PHASE 8: HERO — DEPTH + SOFT MOTION
================================================= */

#home {
  overflow: hidden;
}

#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.08), transparent 60%);
  pointer-events: none;
}

#home h1 {
  animation: heroFade 1.2s ease forwards;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================================
   PHASE 9: SECTION HEADINGS — STORY FEEL
================================================= */

section h2 {
  position: relative;
  padding-left: 14px;
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 70%;
  background: linear-gradient(to bottom,
      var(--secondary-color),
      transparent);
  border-radius: 2px;
}

/* =================================================
   PHASE 10: SKILLS — MICRO INTERACTION
================================================= */

.skills-list span {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skills-list span:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* =================================================
   PHASE 11: PROJECT CARDS — PREMIUM LAYER
================================================= */

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent,
      rgba(56, 189, 248, 0.12),
      transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
}

/* =================================================
   PHASE 13: FOOTER — CLEAN FINISH
================================================= */

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}


.page-header {
  padding: 120px 10% 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
}

.page-subtitle {
  margin-top: 10px;
  color: var(--muted-text);
  font-size: 18px;
}

/* ===============================
   MOBILE HAMBURGER NAVBAR
================================ */

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  padding: 16px 10%;
}

.nav-logo a {
  font-weight: 700;
  text-decoration: none;
  color: var(--dark-text);
  font-size: 20px;
}

/* Desktop menu */
.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  z-index: 2000;
}




/* ===============================
   PAGE TRANSITION EFFECT
================================ */

/* Page wrapper animation */
body {
  animation: pageFadeIn 0.5s ease;
}

/* Fade-in on load */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-out before navigation */
.page-exit {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}


/* ===============================
   HOME PAGE GRID (ONLY HOME)
================================ */

/* grid wrapper */
.home-grid {
  max-width: 1100px;
  margin: 120px auto;
  padding: 0 10%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

/* home grid section tweak */
.home-grid section {
  margin: 0;
  /* global margin override */
}



/* mobile: single column */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ===============================
   HOME GRID – CARD SIZE FIX
================================ */

/* home grid cards ko real card feel */
.home-grid section {
  padding: 60px 48px 50px 50px;
  /* 🔥 size increase */
  min-height: 260px;
  /* cards ko height mile */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* content balanced */
}

/* headings thode strong */
.home-grid h2 {
  font-size: 30px;
}

/* paragraph readable width */
.home-grid p {
  font-size: 16px;
  line-height: 1.7;
}

/* CTA button spacing */
.home-grid .contact-item {
  margin-top: 24px;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .home-grid section {
    padding: 40px 28px;
    min-height: auto;
  }
}


/* ===============================
   HOME PAGE LOGO (HERO)
================================ */

.home-logo {
  width: 72px;
  height: auto;
  margin-bottom: 24px;
  opacity: 0.95;
}

/* mobile adjust */
@media (max-width: 768px) {
  .home-logo {
    width: 56px;
    margin-bottom: 20px;
  }
}


#home {
  margin: auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;

  background: linear-gradient(315deg, rgba(101, 0, 94, 1) 3%, rgba(60, 132, 206, 1) 38%, rgba(48, 238, 226, 1) 68%, rgba(255, 25, 25, 1) 98%);
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
}

@keyframes gradient {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.wave {
  background: rgb(255 255 255 / 25%);
  border-radius: 1000% 1000% 0 0;
  position: fixed;
  width: 200%;
  height: 12em;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: wave 18s linear reverse infinite;
  opacity: 0.8;
}

.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: wave 20s -1s reverse infinite;
  opacity: 0.9;
}

@keyframes wave {
  2% {
    transform: translateX(1);
  }

  25% {
    transform: translateX(-25%);
  }

  50% {
    transform: translateX(-50%);
  }

  75% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(1);
  }
}


/* =========================================
   INNER PAGES – LIGHT BACKGROUND (+10%)
========================================= */

.inner-page {
  background: linear-gradient(135deg,
      #f1f5f9,
      /* light grey-blue */
      #e8f2f4,
      /* soft cyan hint */
      #dff1f2,
      /* teal tint (+10%) */
      #f1f5f9);

  background-size: 300% 300%;
  animation: lightGradient 40s ease infinite;
}


/* Subtle animation */
@keyframes innerGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.inner-page section {
  background: rgba(255, 255, 255, 0.92);
}



/* =========================================
   HERO FINAL LAYOUT (TEXT LEFT + PHOTO RIGHT)
========================================= */


/* container */
.hero-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  /* 🔥 weight balance */
  align-items: center;
  gap: 265px;
  z-index: 1;
}

/* RIGHT PHOTO */
.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 450px;
  height: auto;
  border-radius: 18px;
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 900px) {

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-photo img {
    width: 240px;
  }
}

/* LEFT TEXT */
.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
}

.hero-text .subtitle {
  font-size: 20px;
  color: #e0f2fe;
}

/* ===============================
   ACCORDION – ABOUT PAGE
================================ */

.accordion {
  max-width: 900px;
  margin: auto;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark-text);
}

.accordion-icon {
  width: 18px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
  opacity: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* ===============================
   PROJECT CASE STUDY TOGGLE
================================ */

.case-study {
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  color: var(--muted-text);
}

.project-card.active .case-study {
  display: block;
}

.wave {
  pointer-events: none;
}

#home::after {
  pointer-events: none;
}

#cursor-glow {
  pointer-events: none;
}

.toggle-case {
  position: relative;
  z-index: 10;
}

#cursor-glow,
.wave {
  pointer-events: none !important;
}

/* ===============================
   EMAIL REASON MODAL – PREMIUM
================================ */

.mail-reason-box {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.mail-reason-box.active {
  display: flex;
}

/* Modal card */
.mail-box {
  background: rgba(255, 255, 255, 0.96);
  padding: 36px 32px 30px;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  animation: mailPop 0.35s ease;
}

/* Title */
.mail-box h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

/* Subtitle */
.mail-box p {
  font-size: 15px;
  color: var(--muted-text);
  margin-bottom: 28px;
}

/* Buttons layout */
.mail-box button {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover effect */
.mail-box button:hover {
  background: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 119, 255, 0.35);
}

/* Cancel */
#mail-cancel {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

#mail-cancel:hover {
  color: #010101;
  background: #ed2424;
}

/* Animation */
@keyframes mailPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===============================
   MOBILE ICON
================================ */
.nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-mobile {
    display: block;
    z-index: 4000;
    /* 🔥 VERY IMPORTANT */
    position: relative;
  }
}

.nav-icon-img {
  width: 22px;
  height: 22px;
  cursor: pointer;
  z-index: 4001;
  position: relative;
}

/* ===============================
   MOBILE SIDE DRAWER NAVBAR
================================ */
/* stop horizontal swipe */
html,
body {
  overflow-x: hidden;
}

/* mobile side drawer */
@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* 🔥 fully hidden */
    width: 60%;
    height: 65vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;

    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);

    transition: right 0.35s ease;
    z-index: 2000;
    touch-action: none;
    /* 🔥 swipe ignore */
  }

  .nav-links.active {
    right: 0;
  }
}


/* overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
  /* nav-links se thoda niche */
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
  /* 🔥 click capture */
}


/* ===============================
   MOBILE CONTACT BUTTON FIX
================================ */

.navbar {
  z-index: 3000;
}

/* Desktop default: icon hidden */

@media (max-width: 768px) {

  .hero-text {
    width: 100%;
    max-width: 360px;

    margin: 0 auto;
    /* 🔥 real center */
    padding: 0 16px;
    /* 🔥 equal left-right */
    text-align: center;
  }

}


/* ===== CONTACT ICONS FORCE HORIZONTAL (UL + LI FIX) ===== */

.contact-links {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;

  list-style: none !important;
  /* 🔥 ul bullets remove */
  padding: 0 !important;
  margin: 0 !important;
}

.contact-links li {
  display: flex !important;
  /* 🔥 li ko row-friendly */
}



/* icons circle */
.contact-items {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  /*🔥circle*/
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #ddd;
  transition: all 0.25s ease;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
}

.contact-items img {
  width: 22px;
  height: 22px;
}

.contact-items:hover {
  background: var(--secondary-color);
}


.contact-items.whatsapp {
  border-color: #25D366;
}

.contact-items.whatsapp:hover {
  background: #25D366;
}

.contact-item {
  padding: 12px 20px;
  border: 1px solid var(--secondary-color);
  border-radius: 30px;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  
}

.contact-item:hover {
  background: var(--secondary-color);
  color: #ffffff;
}

.contact-item:active {
  transform: scale(0.96);
}

.contact-item{
  margin: 5px;
}