
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Core Colors */
  --bg-dark: #050507;
  --bg-card: rgba(18, 18, 24, 0.7);
  --bg-card-hover: rgba(25, 25, 35, 0.9);

  /* Accents & Neons */
  --primary: #6668dd;
  --primary-light: #8a8cff;
  --primary-dark: #464797;
  --primary-glow: rgba(102, 104, 221, 0.6);
  --primary-glow-strong: rgba(102, 104, 221, 0.9);

  --secondary: #ff3366;
  --secondary-glow: rgba(255, 51, 102, 0.6);

  /* Typography Colors */
  --text-main: #ffffff;
  --text-muted: #a0a0b8;
  --text-dark: #808099;

  /* Borders */
  --border-glass: rgba(102, 104, 221, 0.2);
  --border-glass-light: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-main: "Montserrat", "Inter", sans-serif;
  --font-logo: "Montserrat", "Inter", sans-serif;

  /* Transitions */
  --trans-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --trans-slow: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =========================================
   LIGHT THEME OVERRIDES (via Checkbox Hack)
   ========================================= */
body:has(#theme-toggle:checked) {
  --bg-dark: #f0f2f5;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);

  --primary: #464797;
  --primary-light: #6668dd;
  --primary-dark: #2a2b5c;
  --primary-glow: rgba(70, 71, 151, 0.3);
  --primary-glow-strong: rgba(70, 71, 151, 0.6);

  --text-main: #121218;
  --text-muted: #4a4a5e;
  --text-dark: #6e6e8c;

  --border-glass: rgba(70, 71, 151, 0.2);
  --border-glass-light: rgba(0, 0, 0, 0.08);
}

body:has(#theme-toggle:checked) .heroText {
  background: linear-gradient(
    to right,
    rgba(240, 242, 245, 0.97) 0%,
    rgba(240, 242, 245, 0.88) 35%,
    rgba(240, 242, 245, 0.5) 62%,
    transparent 88%
  );
}

body:has(#theme-toggle:checked) .navbar {
  background: rgba(240, 242, 245, 0.85);
}

body:has(#theme-toggle:checked) .mobile-overlay {
  background: rgba(240, 242, 245, 0.97);
}

body:has(#theme-toggle:checked) .footer {
  background: linear-gradient(180deg, var(--bg-dark), #e1e3e8);
}

body:has(#theme-toggle:checked) .headingWho,
body:has(#theme-toggle:checked) .heading2Sect,
body:has(#theme-toggle:checked) .mega-title {
  background: linear-gradient(90deg, var(--text-main), var(--primary), var(--text-main));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body:has(#theme-toggle:checked) .about-img,
body:has(#theme-toggle:checked) .projectImg {
  filter: grayscale(20%);
}

body:has(#theme-toggle:checked) .navLogo-img,
body:has(#theme-toggle:checked) .footerLogo-img {
  filter: invert(1);
}

body:has(#theme-toggle:checked) .navLogo-link:hover .navLogo-img,
body:has(#theme-toggle:checked) .footerLogo-link:hover .footerLogo-img {
  filter: invert(1) drop-shadow(0 0 15px var(--primary-glow));
}

/* =========================================
   THEME TOGGLE STYLES
   ========================================= */
.theme-toggle-input {
  display: none;
}

.theme-toggle-label {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--trans-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.theme-toggle-label:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px var(--primary-glow);
}

.theme-toggle-label i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--trans-fast), opacity 0.4s var(--trans-fast);
}

#theme-toggle:not(:checked) ~ * .light-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

#theme-toggle:checked ~ * .dark-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0);
}

.mobile-theme-toggle {
  font-size: 2rem;
  margin-top: 40px;
  margin-right: 0;
  width: 40px;
  height: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Ambient Background Orbs — activates glassmorphism */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(102, 104, 221, 0.13) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 90px;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 9999;
  padding: 0 8%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: all 0.4s ease;
}

.navLogo-link {
  display: inline-flex;
  align-items: center;
  transition: var(--trans-fast);
}

.navLogo-img {
  height: 60px;
  width: auto;
  transition: var(--trans-smooth);
}

.navLogo-link:hover .navLogo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navLink {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  transition: var(--trans-fast);
  padding: 10px 0;
}

.navLink::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  box-shadow: 0 0 10px var(--primary-glow);
}

.navLink:hover {
  color: var(--text-main);
}

.navLink:hover::before {
  transform: scaleX(1);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: url("hero-photo.jpg") no-repeat center center/cover;
  animation: heroBgEntry 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.heroText {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5% 8%;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(5, 5, 7, 0.97) 0%,
    rgba(5, 5, 7, 0.88) 35%,
    rgba(5, 5, 7, 0.5) 62%,
    transparent 88%
  );
  opacity: 0;
  animation: heroFadeIn 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.hi {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

.spanHi {
  color: var(--primary);
  display: inline-block;
  text-shadow: 0 0 20px var(--primary-glow);
  position: relative;
}

.spanHi::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 20%;
  bottom: 5px;
  left: 0;
  background: rgba(102, 104, 221, 0.35);
  z-index: -1;
  filter: blur(20px);
}

.graphics {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.4s forwards;
}

.hero-paragraph {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 550px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.6s forwards;
}

.hero-btns-container {
  display: flex;
  gap: 25px;
  margin-top: 45px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.8s forwards;
}

.hero-button,
.hero-button2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: var(--trans-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 10px 20px var(--primary-glow);
  border: 1px solid transparent;
}

.hero-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  z-index: -1;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px var(--primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-button:hover::before {
  left: 100%;
}

.hero-button2 {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
  box-shadow: inset 0 0 0 var(--primary-glow);
}

.hero-button2:hover {
  background: transparent;
  color: var(--primary-light);
  text-shadow: 0 0 10px var(--primary-glow);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px rgba(102, 104, 221, 0.25);
}

/* =========================================
   4. ABOUT SECTION
   ========================================= */
.aboutMain {
  padding: 150px 10%;
  background: radial-gradient(
    circle at right,
    rgba(102, 104, 221, 0.05) 0%,
    var(--bg-dark) 60%
  );
  position: relative;
}

.about-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-photo {
  position: relative;
  width: 100%;
  border-radius: 30px;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--bg-dark));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    inset 0 0 20px var(--primary-glow);
  transition: var(--trans-slow);
  animation: reveal3D linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}

.about-photo::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 2px solid var(--primary);
  border-radius: 35px;
  z-index: -1;
  opacity: 0.5;
  transition: var(--trans-smooth);
}

.about-photo:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(102, 104, 221, 0.15);
}

.about-photo:hover::before {
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  opacity: 0.7;
  box-shadow: 0 0 12px var(--primary-glow);
}

.about-img {
  width: 100%;
  border-radius: 20px;
  display: block;
  filter: grayscale(40%) contrast(1.1);
  transition: var(--trans-slow);
}

.about-photo:hover .about-img {
  filter: grayscale(0%) contrast(1.1);
}

.aboutTxt {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: slideInRightScroll linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 35%;
}

.headingWho,
.heading2Sect,
.mega-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #fff, var(--primary-light), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 2s ease forwards;
  margin-bottom: 10px;
  line-height: 1.15;
}

.about-desc p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 20px;
  text-align: justify;
}

.about-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  perspective: 1000px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition: var(--trans-fast);
  cursor: default;
  transform-style: preserve-3d;
}

.tech-item i {
  font-size: 1.3rem;
  transition: var(--trans-fast);
}

.tech-item:nth-child(1) {
  animation-range: entry 5% cover 15%;
}
.tech-item:nth-child(2) {
  animation-range: entry 10% cover 20%;
}
.tech-item:nth-child(3) {
  animation-range: entry 15% cover 25%;
}
.tech-item:nth-child(4) {
  animation-range: entry 20% cover 30%;
}
.tech-item:nth-child(5) {
  animation-range: entry 25% cover 35%;
}
.tech-item:nth-child(6) {
  animation-range: entry 30% cover 40%;
}

.tech-item:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--primary);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 24px rgba(102, 104, 221, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tech-item:hover i {
  transform: scale(1.15);
  color: #fff;
}

/* =========================================
   5. EDUCATION SECTION
   ========================================= */
.eduMain,
.projectsMain {
  padding: 120px 10%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
  opacity: 0.7;
}



.neon-line {
  width: 50%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 15px;
  box-shadow:
    0 0 2px #fff,
    0 0 4px var(--primary),
    0 0 12px var(--primary);
  animation: pulseWidth 3s infinite alternate ease-in-out;
}

.eduGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.eduBox {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--trans-smooth);
  animation: floatUpScroll linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 25%;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.eduBox::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--primary-dark)
  );
  box-shadow:
    0 0 2px #fff,
    0 0 6px var(--primary);
  transition: var(--trans-smooth);
  z-index: -1;
}

.eduBox:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(102, 104, 221, 0.1);
  border-color: rgba(102, 104, 221, 0.25);
}

.eduBox:hover::before {
  width: 100%;
  opacity: 0.05;
}

.edu-icon {
  width: 70px;
  height: 70px;
  background: rgba(102, 104, 221, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 30px;
  transition: var(--trans-fast);
  box-shadow: inset 0 0 15px var(--primary-glow);
}

.eduBox:hover .edu-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 2px #fff, 0 0 6px var(--primary), 0 0 14px var(--primary);
}

.edu-date {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.edu-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 5px;
}

.edu-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.edu-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* =========================================
   6. PROJECTS SECTION
   ========================================= */
.projectsMain {
  background: radial-gradient(
    circle at left,
    rgba(102, 104, 221, 0.05) 0%,
    var(--bg-dark) 60%
  );
}

.projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.projectCard {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  overflow: hidden;
  transition: var(--trans-smooth);
  animation: popInScroll linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.projectCard:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(102, 104, 221, 0.1);
  border-color: rgba(102, 104, 221, 0.2);
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.projectImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: var(--trans-slow);
}

.projectCard:hover .projectImg {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 104, 221, 0.4);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--trans-smooth);
}

.projectCard:hover .img-overlay {
  opacity: 1;
}

.view-btn {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.5rem;
  text-decoration: none;
  transform: translateY(30px) scale(0.5);
  transition: var(--trans-fast);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.projectCard:hover .view-btn {
  transform: translateY(0) scale(1);
}

.view-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow-strong);
}

.project-info {
  padding: 35px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 15px;
  transition: var(--trans-fast);
}

.projectCard:hover .project-title {
  color: var(--primary-light);
}

.project-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-light);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: var(--trans-fast);
}

.projectCard:hover .project-tags span {
  border-color: var(--primary);
  background: rgba(102, 104, 221, 0.1);
  box-shadow: 0 0 10px rgba(102, 104, 221, 0.2);
}

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contactMain {
  padding: 150px 10%;
  position: relative;
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.contact-text {
  animation: slideInLeftScroll linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}

.contact-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 30px 0 50px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 25px;
  transition: var(--trans-fast);
}

.c-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--trans-fast);
}

.c-item:hover {
  transform: translateX(6px);
}

.c-item:hover .c-icon {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 0 2px #fff,
    0 0 8px var(--primary);
  transform: scale(1.05);
}

.c-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.c-info p {
  font-size: 1rem;
  color: var(--text-muted);
}

.formMJ {
  background: var(--bg-card);
  padding: 60px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(102, 104, 221, 0.05);
  position: relative;
  overflow: hidden;
  animation: formScaleScroll linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}

.form-glow-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(102, 104, 221, 0.1) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: var(--trans-slow);
  pointer-events: none;
  z-index: 0;
}

.formMJ:hover .form-glow-bg {
  opacity: 1;
  animation: rotateGlow 8s linear infinite;
}

#contactForm {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  text-align: center;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-glass-light);
  padding: 15px 0;
  color: var(--text-main);
  font-size: 1.1rem;
  font-family: var(--font-main);
  outline: none;
  transition: var(--trans-fast);
  resize: none;
}

.input-group label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: var(--trans-fast);
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 0 10px var(--primary-glow);
}

.input-group input:focus,
.input-group textarea:focus {
  border-bottom-color: transparent;
}

.input-group input:focus ~ .input-border,
.input-group textarea:focus ~ .input-border,
.input-group input:not(:placeholder-shown) ~ .input-border,
.input-group textarea:not(:placeholder-shown) ~ .input-border {
  width: 100%;
}

.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -25px;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 700;
  letter-spacing: 1px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 15px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  transition: var(--trans-smooth);
  box-shadow: 0 10px 25px var(--primary-glow);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.submit-btn i {
  font-size: 1.4rem;
  transition: var(--trans-fast);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow:
    0 15px 40px var(--primary-glow-strong),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
}

.submit-btn:hover i {
  transform: translate(5px, -5px);
}

.submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

/* =========================================
   8. FOOTER SECTION
   ========================================= */
.footer {
  background: linear-gradient(180deg, var(--bg-dark), #020203);
  padding: 80px 10% 30px;
  position: relative;
}

.footer-top-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: pulseWidth 4s infinite alternate ease-in-out;
  box-shadow:
    0 0 2px #fff,
    0 0 6px var(--primary),
    0 0 16px var(--primary);
}

.footerGrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footerLogo-link {
  display: inline-flex;
  align-items: center;
  transition: var(--trans-fast);
  margin-bottom: 10px;
}

.footerLogo-img {
  height: 80px;
  width: auto;
  transition: var(--trans-smooth);
}

.footerLogo-link:hover .footerLogo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.footer-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 350px;
}

.footer-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link i {
  color: var(--primary);
  font-size: 0.9rem;
  transition: var(--trans-fast);
}

.service-link:hover {
  color: var(--text-main);
  transform: translateX(10px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.mega-title .spanHi {
  -webkit-text-fill-color: var(--primary-light);
  text-shadow: none;
}
.service-link:hover i {
  transform: translateX(5px);
  color: #fff;
  text-shadow: 0 0 10px var(--primary-glow);
}

.social-wrapper {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--trans-fast);
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow:
    0 8px 20px var(--primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.rightsLang {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass-light);
  padding-top: 30px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.linkLang {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  transition: var(--trans-fast);
  padding: 0 10px;
}

.linkLang.active,
.linkLang:hover {
  color: var(--primary-light);
  text-shadow: 0 0 10px var(--primary-glow);
}

@keyframes heroBgEntry {
  0% {
    background-position: 70% center;
    opacity: 0.5;
  }
  100% {
    background-position: center center;
    opacity: 1;
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textShine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulseWidth {
  0% {
    width: 30%;
    opacity: 0.6;
  }
  100% {
    width: 50%;
    opacity: 1;
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes reveal3D {
  0% {
    opacity: 0;
    transform: translateY(100px) rotateY(-20deg) scale(0.8);
    filter: blur(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateY(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes slideInRightScroll {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeftScroll {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



@keyframes floatUpScroll {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popInScroll {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes formScaleScroll {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(80px);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
  }
}

/* =========================================
   SCROLL PROGRESS BAR
   ========================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10000;
  animation: scrollProgress linear;
  animation-timeline: scroll();
  box-shadow:
    0 0 2px #fff,
    0 0 6px var(--primary),
    0 0 12px var(--primary);
}

@keyframes scrollProgress {
  to { transform: scaleX(1); }
}

/* =========================================
   STAGGERED EDU CARD REVEALS
   ========================================= */
.eduBox:nth-child(1) { animation-range: entry 5% cover 25%; }
.eduBox:nth-child(2) { animation-range: entry 12% cover 32%; }
.eduBox:nth-child(3) { animation-range: entry 19% cover 39%; }

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonialsMain {
  padding: 120px 10%;
  position: relative;
  background: radial-gradient(
    circle at center,
    rgba(102, 104, 221, 0.04) 0%,
    var(--bg-dark) 65%
  );
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 45px 40px;
  position: relative;
  transition: var(--trans-smooth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: floatUpScroll linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}

.testimonial-card:nth-child(1) { animation-range: entry 5% cover 25%; }
.testimonial-card:nth-child(2) { animation-range: entry 10% cover 30%; }
.testimonial-card:nth-child(3) { animation-range: entry 15% cover 35%; }

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(102, 104, 221, 0.1);
  border-color: rgba(102, 104, 221, 0.2);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.4;
  margin-bottom: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 500;
}

/* =========================================
   DOWNLOAD CV BUTTON
   ========================================= */
.download-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--trans-fast);
  margin-top: 10px;
}

.download-cv-btn i {
  font-size: 1.1rem;
  transition: var(--trans-fast);
}

.download-cv-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
  box-shadow:
    0 0 2px #fff,
    0 0 8px var(--primary),
    0 0 16px var(--primary);
}

.download-cv-btn:hover i {
  transform: translateY(2px);
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 9000;
  transition: var(--trans-fast);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: showBackToTop linear;
  animation-timeline: scroll();
  animation-range: 15% 100%;
}

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow:
    0 0 2px #fff,
    0 0 8px var(--primary),
    0 0 16px var(--primary);
}

@keyframes showBackToTop {
  0% { opacity: 0; transform: translateY(10px); }
  5% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   @SUPPORTS FALLBACK (non-Chromium)
   ========================================= */
@supports not (animation-timeline: view()) {
  .eduBox,
  .projectCard,
  .about-photo,
  .aboutTxt,
  .contact-text,
  .formMJ,
  .testimonial-card,
  .back-to-top {
    opacity: 1;
    transform: none;
  }
  .scroll-progress {
    display: none;
  }
}

/* =========================================
   9. MOBILE MENU (Pure CSS Checkbox Hack)
   ========================================= */
.nav-toggle-input {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10001;
  position: relative;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

.nav-toggle-input:checked ~ .navbar .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle-input:checked ~ .navbar .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle-input:checked ~ .navbar .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 7, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-toggle-input:checked ~ .mobile-overlay {
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--trans-fast);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.mobile-close:hover {
  color: var(--text-main);
  border-color: var(--primary-glow);
  transform: rotate(90deg);
  box-shadow: 0 0 12px var(--primary-glow);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-nav-link {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 3px;
  text-align: center;
  text-indent: 3px;
  text-transform: uppercase;
  padding: 12px 40px;
  transition: var(--trans-fast);
  position: relative;
  display: block;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 40px;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 2px #fff, 0 0 6px var(--primary);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-link:hover {
  color: var(--text-main);
}

.mobile-nav-link:hover::after {
  width: calc(100% - 80px);
}

@media (max-width: 1400px) {
  .aboutMain,
  .eduMain,
  .projectsMain,
  .testimonialsMain,
  .contactMain {
    padding: 120px 5%;
  }
}

@media (max-width: 1200px) {
  .about-container {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
  .contact-text {
    text-align: center;
  }
  .contact-details {
    align-items: center;
  }
  .c-item {
    width: 100%;
    justify-content: center;
    max-width: 400px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .heroText {
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 7, 0.95) 0%,
      rgba(5, 5, 7, 0.85) 50%,
      rgba(5, 5, 7, 0.6) 100%
    );
    align-items: center;
    text-align: center;
  }
  body:has(#theme-toggle:checked) .heroText {
    background: linear-gradient(
      to bottom,
      rgba(240, 242, 245, 0.95) 0%,
      rgba(240, 242, 245, 0.85) 50%,
      rgba(240, 242, 245, 0.6) 100%
    );
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 500px;
    margin: 0 auto;
  }
  .aboutTxt {
    text-align: center;
  }
  .about-tech {
    justify-content: center;
  }
  .footerGrid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
  }
  .footer-desc {
    max-width: 100%;
  }
  .social-wrapper {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 5%;
    height: 80px;
  }
  .hamburger {
    display: flex;
  }
  .navLinks {
    display: none;
  }
  .heroText {
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 7, 0.97) 0%,
      rgba(5, 5, 7, 0.88) 60%,
      rgba(5, 5, 7, 0.6) 100%
    );
    align-items: center;
    text-align: center;
  }
  body:has(#theme-toggle:checked) .heroText {
    background: linear-gradient(
      to bottom,
      rgba(240, 242, 245, 0.97) 0%,
      rgba(240, 242, 245, 0.88) 60%,
      rgba(240, 242, 245, 0.6) 100%
    );
  }
  .hi {
    font-size: 2.5rem;
  }
  .graphics {
    font-size: 1.2rem;
  }
  .hero-btns-container {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .eduBox {
    padding: 40px 30px;
  }
  .formMJ {
    padding: 40px 30px;
  }
  .rightsLang {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .aboutMain,
  .eduMain,
  .projectsMain,
  .testimonialsMain,
  .contactMain {
    padding: 80px 5%;
  }
  .mega-title,
  .headingWho,
  .heading2Sect {
    font-size: 2rem;
  }
  .projectCard,
  .testimonial-card {
    border-radius: 15px;
  }
  .footerGrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .download-cv-btn {
    width: 100%;
    justify-content: center;
  }
}
