html {
  visibility: visible;
  opacity: 1;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
  /* NO overflow-x: hidden here — it breaks sticky navbar */
}
html{
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

body {
  overflow-x: hidden;          /* overflow-x ONLY on body, not html */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;   /* make sure this is RIGHT not LEFT */
  left: unset;   /* cancel any left value */
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.40);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 9998;
}
:root {
  /* ===== LIGHT THEME ===== */

  --bg-color: #f5f7fb;
  --bg-secondary: #ffffff;

  --text-main: #111827;
  --text-muted: #6b7280;

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #e0e7ff;

  --nav-bg: rgba(255, 255, 255, 0.75);
  --nav-border: rgba(99, 102, 241, 0.08);

  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(255, 255, 255, 0.4);

  --btn-bg: linear-gradient(135deg, #6366f1, #8b5cf6);
  --btn-text: #ffffff;
  --btn-hover: linear-gradient(135deg, #4f46e5, #7c3aed);

  --btn-sec-bg: rgba(255, 255, 255, 0.7);
  --btn-sec-text: #111827;
  --btn-sec-border: rgba(99, 102, 241, 0.15);
  --btn-sec-hover: rgba(99, 102, 241, 0.08);

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
  /* ===== DARK THEME ===== */

  --bg-color: #0b1120;
  --bg-secondary: #111827;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;

  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(129, 140, 248, 0.15);

  --nav-bg: rgba(17, 24, 39, 0.75);
  --nav-border: rgba(255, 255, 255, 0.06);

  --card-bg: rgba(17, 24, 39, 0.7);
  --card-border: rgba(255, 255, 255, 0.05);

  --btn-bg: linear-gradient(135deg, #818cf8, #a855f7);
  --btn-text: #ffffff;
  --btn-hover: linear-gradient(135deg, #6366f1, #9333ea);

  --btn-sec-bg: rgba(255, 255, 255, 0.04);
  --btn-sec-text: #f9fafb;
  --btn-sec-border: rgba(255, 255, 255, 0.08);
  --btn-sec-hover: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(99,102,241,0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(168,85,247,0.08), transparent 30%),
    var(--bg-color);

  color: var(--text-main);

  line-height: 1.6;

    transition:
    background-color 0.25s ease,
    color 0.25s ease;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Navigation */
.navbar {
  position: sticky;  
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color:  #a855f7 100%;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-left: auto; /* pushes links to the far right */
  margin-right: 1rem; /* small gap before the controls */
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.15);
  color: var(--accent);
  background: var(--accent-light);
}


.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a::after {
  display: none;
}
/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--nav-border);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Main Content (Hero) */
main {
  flex: 1;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
}


.hero {
  max-width: 1200px;
  min-height: unset;        
  padding: 2rem 2rem;      
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  text-align: left;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
  padding-bottom: 4rem; 
}


.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 3rem;
 
}

/* glowing background orb */
.hero-image-wrapper::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(75, 78, 243, 0.35),
    transparent 70%
  );
  filter: blur(40px);
  border-radius: 60%;
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
  
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* glass circle frame */
.hero-image {
  width: 340px;
  height: 340px;

  border-radius: 50%;
  object-fit:cover;    /* SHOW FULL IMAGE */
 /* MOVE IMAGE POSITION */
  object-position: center 15%;
  display: block;

  background: rgba(255,255,255,0.04);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 2px solid rgba(99,102,241,0.25);

  box-shadow:
    0 25px 60px rgba(99,102,241,0.25);

  position: relative;
  z-index: 2;

  animation: floatAvatar 6s ease-in-out infinite;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

@keyframes floatAvatar {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.hero-image:hover {
  transform: scale(1.05);
  box-shadow:
    0 35px 80px rgba(99, 102, 241, 0.35),
    inset 0 0 30px rgba(255, 255, 255, 0.12);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 1.0px;
  display: block;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--text-main),
    var(--accent)
  );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}


.hero-desc {
  font-size: 1.20rem;
  color: var(--text-muted);
  max-width: 450px;
  margin-bottom: 2.0rem;
  line-height: 1.7;
  text-align: justify;
}
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-desc  { font-size: 1rem; text-align: justify; } 
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;

  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background: var(--btn-hover);

  transform: translateY(-3px);

  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.35);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

.btn-secondary {
  background-color: var(--btn-sec-bg);
  color: var(--btn-sec-text);
  border: 1px solid var(--btn-sec-border);
}

.btn-secondary:hover {
  background-color: var(--btn-sec-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}



/* Footer */
footer {
  margin-top: 60px;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--nav-border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.socials a {
  color: var(--text-muted);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: flex;
}

.socials a:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}


/* Page Shared Layout */
.page-main {
  padding: 1rem 0;
}

.page-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.page-title {
  position: relative;

  font-size: 3.0rem;
  font-weight: 800;

  margin-bottom: 3rem;

  text-align: center;
  letter-spacing: -2px;

  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #d8b4fe 20%,
    #a855f7 45%,
    #6366f1 70%,
    #22d3ee 100%
  );

  background-size: 250% 250%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
  color: transparent;

  animation: gradientFlow 8s ease infinite;

  filter:
    drop-shadow(0 0 12px rgba(168, 85, 247, 0.35))
    drop-shadow(0 0 30px rgba(99, 102, 241, 0.25));
}

/* GLASS GLOW BEHIND */
.page-title::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: 110%;
  height: 120%;

  background:
    radial-gradient(
      circle,
      rgba(168,85,247,0.22),
      rgba(99,102,241,0.12),
      transparent 70%
    );

  filter: blur(40px);

  z-index: -1;

  pointer-events: none;
}

/* ANIMATED GRADIENT */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

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

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

.page-title1 {
  position: relative;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 3px;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}


/* =========================
   SECTION HEADING 
========================= */
.section {
  padding-top: 5rem;
  margin-top: 2rem;
  scroll-margin-top: 80px;
}
.section-heading {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.82rem 1.8rem;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: fit-content;       
  white-space: nowrap;      
}

.section-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  transition: all 0.35s ease;
}

.section-heading::after {
  content: "";
  position: absolute;
  width: 155%;
  height: 180%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -2;
  filter: blur(34px);
  opacity: 1;
  pointer-events: none;
}

/* =========================
   DARK THEME
========================= */
[data-theme="dark"] .section-heading {
  /* Solid bright white text — maximum readability on dark glass */
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow:
    0 0 12px rgba(167, 139, 250, 0.80),
    0 0 24px rgba(34, 211, 238, 0.50);
  filter: none;
}

[data-theme="dark"] .section-heading::before {
  background: linear-gradient(
    145deg,
    rgba(109, 40, 217, 0.55),
    rgba(67, 56, 202, 0.45)
  );
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.15),
    0 12px 34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .section-heading::after {
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.30),
    rgba(99, 102, 241, 0.20),
    transparent 70%
  );
}

/* =========================
   LIGHT THEME
========================= */
[data-theme="light"] .section-heading {
  /* Deep indigo solid text — crisp on white glass */
  color: #3730a3;
  -webkit-text-fill-color: #3730a3;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow:
    0 1px 3px rgba(55, 48, 163, 0.18);
  filter: none;
}

[data-theme="light"] .section-heading::before {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(238, 242, 255, 0.92)
  );
  border: 1.5px solid rgba(99, 102, 241, 0.30);
  box-shadow:
    0 8px 24px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .section-heading::after {
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.18),
    rgba(59, 130, 246, 0.10),
    transparent 70%
  );
}

/* =========================
   HOVER
========================= */
.section-heading:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.20);
}
.section-text {
  font-size: 1.3rem;
  text-align: justify;
  text-align-last: left;
  color: var(--text-main);
  opacity: 0.82;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}


/* =========================
   Hero info  SECTION
========================= */
.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.text-link-card.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.text-link-card.info-item:hover .info-icon {
  background: var(--accent);
  color: #fff;
}

.info-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--btn-sec-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.info-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card {
  background: var(--card-bg);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid var(--card-border);

  border-radius: 28px;

  padding: 2.5rem;

  box-shadow: var(--shadow-lg);

  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--nav-border);
  background: var(--bg-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.w-100 {
  width: 100%;
  justify-content: center;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.success {
  color: #10b981;
}

.form-status.error {
  color: #ef4444;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
    padding-block: 4rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar .nav-container {
    padding: 1rem 5%;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(252, 252, 252, 1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: none;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 900;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(13, 13, 13, 1);
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 2rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-muted);
    transition:
      color 0.3s ease,
      transform 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text-main);
    transform: translateX(10px);
  }

  .mobile-toggle {
    display: block;
    z-index: 999;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    max-width: 250px;
    height: 250px;
  }

  footer {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
  }

  .about-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image-col {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .exp-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.typing {
  color: var(--accent);
  font-weight: 700;
}

.hero-desc {
  font-size: 1.7rem;
}

/* =========================================
   RESUME DROPDOWN CLICK
========================================= */

.resume-dropdown {
  position: relative;
  z-index: 999999;
  display: inline-block;
}

.resume-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  display: flex;
  flex-direction: column;

  min-width: 240px;
  padding: 10px;

  border-radius: 18px;
  background: #1a1a25;

  z-index: 999999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: 0.25s ease;

  pointer-events: none;
}

.resume-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.resume-menu a {
  display: block;

  width: 100%;

  padding: 14px 16px;

  color: white !important;

  text-decoration: none;

  border-radius: 12px;

  background: transparent;

  cursor: pointer;

  pointer-events: auto;

  position: relative;

  z-index: 999999;
}

.resume-menu a:hover {
  background: rgba(99,102,241,0.2);
  color: #ffffff;
}

/* =========================
   ABOUT SECTION
========================= */
.about-actions {
  text-align: center;
  margin-top: 30px;
}
.about-preview .section-heading {
  margin-top: 1.5rem;       
}
.about-preview {
  scroll-margin-top: 80px;  
  padding-top: 6rem;       
  margin-top: 2rem;   
}
.about-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* Reduced size */
  padding: 1.4rem 1.6rem;
  max-width: 720px;
  margin: 0 auto;

  border-radius: 18px;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );

  border: 1px solid rgba(255,255,255,0.10);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* =========================================
   TOP LEFT GLOW
========================================= */

.about-card::before {
  content: "";
  position: absolute;

  width: 160px;
  height: 160px;

  top: -90px;
  left: -90px;

  border-radius: 50%;

  background: rgba(139,92,246,0.14);

  filter: blur(80px);

  z-index: -1;
}

/* =========================================
   BOTTOM RIGHT GLOW
========================================= */

.about-card::after {
  content: "";
  position: absolute;

  width: 160px;
  height: 160px;

  bottom: -90px;
  right: -90px;

  border-radius: 50%;

  background: rgba(99,102,241,0.14);

  filter: blur(80px);

  z-index: -1;
}

/* =========================================
   LIGHT THEME
========================================= */

[data-theme="light"] .about-card {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.82),
    rgba(248,250,255,0.65)
  );

  border: 1px solid rgba(99,102,241,0.10);
}

/* =========================================
   DARK THEME
========================================= */

[data-theme="dark"] .about-card {
  background: linear-gradient(
    145deg,
    rgba(20,20,30,0.72),
    rgba(20,20,30,0.50)
  );

  border: 1px solid rgba(255,255,255,0.06);
}

/* =========================================
   HOVER
========================================= */

.about-card:hover {
  transform: translateY(-4px);

  border-color: rgba(99,102,241,0.25);

  box-shadow:
    0 18px 40px rgba(99,102,241,0.16),
    0 8px 20px rgba(0,0,0,0.10);
}

/* REMOVE EXTRA SPACING */
.about-card .section-text:last-child {
  margin-bottom: 0;
}

/* =========================
   SKILLS SECTION
========================= */

.skills-section {
  padding: 80px 8%;
  padding-top: 6rem;    
}

.skills-section .section-heading {
  margin-top: 1.5rem;
}

/* GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 2rem;

  margin-top: 3rem;
}

/* CARD */
.skill-card {
  position: relative;

  padding: 1.5rem;

  border-radius: 30px;

  overflow: hidden;

  isolation: isolate;

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255,255,255,0.28);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;

  text-align: center;
}

/* =========================
   LIGHT THEME
========================= */

[data-theme="light"] .skill-card {

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.88),
      rgba(243,247,255,0.72)
    );

  border: 1px solid rgba(99,102,241,0.10);

  box-shadow:
    0 14px 40px rgba(99,102,241,0.08),
    0 0 35px rgba(139,92,246,0.06),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

/* =========================
   DARK THEME
========================= */

[data-theme="dark"] .skill-card {

  background:
    linear-gradient(
      145deg,
      rgba(17,24,39,0.88),
      rgba(30,41,59,0.72)
    );

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 18px 50px rgba(0,0,0,0.42),
    0 0 40px rgba(99,102,241,0.10),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* =========================
   SOFT GRADIENT GLOW
========================= */

.skill-card::before {
  content: "";

  position: absolute;

  width: 200px;
  height: 200px;

  top: -120px;
  right: -120px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(139,92,246,0.22),
      rgba(59,130,246,0.10),
      transparent 72%
    );

  filter: blur(30px);

  opacity: 0.9;

  pointer-events: none;

  z-index: -1;
}

/* DARK MODE GLOW */

[data-theme="dark"] .skill-card::before {

  background:
    radial-gradient(
      circle,
      rgba(129,140,248,0.16),
      rgba(59,130,246,0.08),
      transparent 72%
    );

  filter: blur(38px);
}

/* =========================
   INNER SHINE
========================= */

.skill-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.18),
      transparent 42%
    );

  pointer-events: none;
}

/* DARK SHINE */

[data-theme="dark"] .skill-card::after {

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.04),
      transparent 42%
    );
}

/* =========================
   HOVER
========================= */

.skill-card:hover {

  transform: translateY(-8px);

  border-color: rgba(99,102,241,0.22);

  box-shadow:
    0 24px 60px rgba(99,102,241,0.16),
    0 0 50px rgba(139,92,246,0.10);
}
/* ICON */
.skill-icon {
  width: 62px;
  height: 62px;

  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 1.8rem auto;

  color: #fff;

  font-size: 1.3rem;

  box-shadow:
    0 12px 25px rgba(0,0,0,0.15);
}

/* ICON COLORS */
.purple {
  background: linear-gradient(135deg, #f0f00f, #a9a9b7);
}

.blue {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.green {
  background: linear-gradient(135deg, #7ccac3, #097781);
}

.orange {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.pink {
  background: linear-gradient(135deg, #ec4899, #d946ef);
}

.violet {
  background: linear-gradient(135deg, #15f35b, #61f2f7);
}

/* TITLE */
.skill-card h3 {
  font-size: 1.1rem;

  font-weight: 450;

  line-height: 1.3;

  margin-bottom: 1.8rem;

  color: var(--text-main);
}

/* TAG WRAPPER */
.skill-tags {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 0.9rem;
}

/* TAGS */
.skill-tags span {
  padding: 0.75rem 1.15rem;

  border-radius: 999px;

  font-size: 0.75rem;

  font-weight: 500;

  color: var(--accent);

  background: rgba(99,102,241,0.08);

  border: 1px solid rgba(99,102,241,0.14);

  backdrop-filter: blur(10px);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* LIGHT MODE TAGS */
[data-theme="light"] .skill-tags span {
  background: rgba(99,102,241,0.06);

  border: 1px solid rgba(99,102,241,0.12);
}

/* HOVER TAG */
.skill-tags span:hover {
  transform: translateY(-3px);

  background: rgba(99,102,241,0.16);

  border-color: rgba(99,102,241,0.3);

  box-shadow:
    0 10px 25px rgba(99,102,241,0.15);
}

/* MOBILE */
@media (max-width: 768px) {

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 1.8rem;
  }

  .skill-card h3 {
    font-size: 1.3rem;
  }

  .skill-tags span {
    font-size: 0.80rem;
  }
}


/* =========================
   EXPERIENCE SECTION
========================= */
.career-section {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  padding-left: 2.5rem;
  overflow: visible; 
  padding: 80px 8%;
  padding-top: 6rem;    
  margin-top: 2rem;
}

.career-section .section-heading {
  margin-top: 1.5rem;
}
/* WRAPPER */
.experience-section {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  z-index: 1;
}


/* TIMELINE LINE */
.timeline-line {
  position: absolute;
  left: 15px;
  top: 0pc;
  bottom: 0;
  width: 4px;

  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    rgba(168,85,247,0.9),
    rgba(99,102,241,0.9)
  );

  box-shadow: 0 0 20px rgba(139,92,246,0.35);
}

/* CARD */
.experience-card {
  position: relative;

  margin-left: 65px;

  padding: 2rem 2rem;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.10);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 8px 24px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;

  transform: translateY(30px);

  opacity: 0;

  will-change: transform, opacity;
}

/* FLOAT ANIMATION */
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* SCROLL REVEAL (ADD JS CLASS: .show) */
.experience-card.show {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.8s ease;
}

/* HOVER EFFECT */
.experience-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 70px rgba(99,102,241,0.25),
    0 0 40px rgba(139,92,246,0.15);
}

/* TIMELINE DOT */
.timeline-dot {
  position: absolute;
  left: -58px;
  top: 40px;

  width: 18px;
  height: 18px;
  border-radius: 40%;

  background: radial-gradient(circle, #a855f7, #6366f1);

  box-shadow:
    0 0 15px rgba(139,92,246,0.9),
    0 0 30px rgba(99,102,241,0.5);

  transition: transform 0.3s ease;
}

.experience-card:hover .timeline-dot {
  transform: scale(1.25);
}

/* TOP AREA */
.experience-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

/* COMPANY */
.company-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ROLE */
.job-role {
  font-size: 1.0rem;
  font-weight: 600;
  color: #a78bfa;
}

/* DATE */
.experience-date {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;

  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* DESCRIPTION */
.experience-description {
  font-size: 1.05rem;
  text-align: justify;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.experience-block h3 {
  font-size: 1.0rem;

  font-weight: 500;

  margin-bottom: 1.2rem;

  color: var(--text-main);
}
/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tag-pill {
  padding: 0.75rem 1.2rem;
  border-radius: 650px;
   margin-bottom: 2rem;

  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.15);

  color: #a78bfa;
  font-weight: 600;

  transition: all 0.3s ease;
}

.tag-pill:hover {
  margin-bottom: 1.2rem;
  transform: translateY(-4px);
  background: rgba(139,92,246,0.15);
  box-shadow: 0 10px 25px rgba(139,92,246,0.2);
}

/* =========================
   SCROLL ANIMATION BASE 
========================= */

.experience-card {
  will-change: transform, opacity;
}

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

@media (max-width: 768px) {

  .experience-card {
    margin-left: 40px;
    padding: 2rem;
  }

  .timeline-line {
    left: 15px;
  }

  .timeline-dot {
    left: -33px;
  }

  .company-name {
    font-size: 1.3rem;
  }
}

  .job-role {
    font-size: 1rem;
  }

  .experience-description {
    font-size: 1rem;

    line-height: 1.8;
  }

  .tag-pill {
    font-size: 0.85rem;

    padding: 0.65rem 1rem;
  }



/* =========================
   EDUCATION GRID
========================= */

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;           
  margin-top: 1.5rem;
  max-width: 860px;         
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   GLASS CARD BASE
========================= */

.edu-card {
  position: relative;
  padding: 1.2rem 1.4rem;   
  border-radius: 18px;      
  overflow: hidden;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease, 
  border-color 0.35s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07), 
  inset 0 1px 0 rgba(255,255,255,0.55);
  isolation: isolate;
}


/* =========================================
   LIGHT THEME — GREEN CARD
========================================= */

.edu-card.green {
  background:
    linear-gradient(
      145deg,
      rgba(236, 255, 250, 0.88),
      rgba(209, 250, 229, 0.72)
    );

  border: 1px solid rgba(16,185,129,0.18);

  box-shadow:
    0 15px 40px rgba(16,185,129,0.10),
    0 0 35px rgba(16,185,129,0.08);
}

/* =========================================
   LIGHT THEME — PINK CARD
========================================= */

.edu-card.pink {
  background:
    linear-gradient(
      145deg,
      rgba(255, 240, 246, 0.90),
      rgba(252, 231, 243, 0.72)
    );

  border: 1px solid rgba(236,72,153,0.16);

  box-shadow:
    0 15px 40px rgba(236,72,153,0.10),
    0 0 35px rgba(236,72,153,0.08);
}

/* =========================================
   SOFT LIGHT GLOW
========================================= */

.edu-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -100px;
  right: -100px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.75),
      transparent 72%
    );
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

/* =========================================
   EXTRA INNER SHINE
========================================= */

.edu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.22),
      transparent 45%
    );

  pointer-events: none;
}

/* =========================================
   HOVER
========================================= */

.edu-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 16px 35px rgba(0,0,0,0.10),
    0 0 30px rgba(99,102,241,0.08);
}

/* =========================================
   DARK MODE CARDS
========================================= */

[data-theme="dark"] .edu-card {
  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 15px 45px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* DARK GREEN */
[data-theme="dark"] .edu-card.green {
  background:
    linear-gradient(
      145deg,
      rgba(10, 35, 30, 0.88),
      rgba(15, 58, 48, 0.72)
    );

  box-shadow:
    0 15px 45px rgba(16,185,129,0.18),
    0 0 40px rgba(16,185,129,0.08);
}

/* DARK PINK */
[data-theme="dark"] .edu-card.pink {
  background:
    linear-gradient(
      145deg,
      rgba(45, 16, 32, 0.88),
      rgba(70, 20, 45, 0.72)
    );

  box-shadow:
    0 15px 45px rgba(236,72,153,0.18),
    0 0 40px rgba(236,72,153,0.08);
}

/* DARK GLOW */
[data-theme="dark"] .edu-card::before {
  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.08),
      transparent 72%
    );

  filter: blur(24px);
}

/* DARK SHINE */
[data-theme="dark"] .edu-card::after {
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.04),
      transparent 45%
    );
}

/* =================
   YEAR
====================== */

.edu-year {
  display: inline-block;
  margin-bottom: 0.6rem;    /* reduced from 1.2rem */
  font-size: 0.88rem;       /* reduced from 1rem */
  font-weight: 700;
  color: #0f766e;
}

.edu-card.pink .edu-year {
  color: #db2777;
}

[data-theme="dark"] .edu-card.green .edu-year {
  color: #6ee7b7;
}

[data-theme="dark"] .edu-card.pink .edu-year {
  color: #f9a8d4;
}

/* =========================================
   TITLE
========================================= */

.edu-content h3 {
  font-size: 1.15rem;       
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.4rem;    
  color: #111827;
}

[data-theme="dark"] .edu-content h3 {
  color: #f9fafb;
}

/* =======================
   UNIVERSITY
===================*/

.edu-content p {
  font-size: 0.9rem;        
  color: #4b5563;
  font-weight: 500;
}

[data-theme="dark"] .edu-content p {
  color: rgba(255,255,255,0.72);
}

.cert-card {

  position: relative;
  margin-top: 1.6rem;       
  padding: 1.2rem 1.4rem;   
  border-radius: 18px;      
  overflow: hidden;
  isolation: isolate;
  max-width: 870px;      
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  background:
    linear-gradient(
      145deg,
      rgba(236, 254, 255, 0.88),
      rgba(147, 234, 242, 0.674)
    );

  border: 1px solid rgba(125,211,252,0.25);

  box-shadow:
    0 15px 40px rgba(6,182,212,0.10),
    0 0 35px rgba(6,182,212,0.06);
}

/* LIGHT GLOW */

.cert-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.72),
      transparent 72%
    );

  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
}

/* =========================================
   DARK CERT CARD
========================================= */

[data-theme="dark"] .cert-card {

  background:
    linear-gradient(
      145deg,
      rgba(10, 28, 40, 0.88),
      rgba(14, 45, 60, 0.72)
    );

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 18px 50px rgba(0,0,0,0.45),
    0 0 40px rgba(34,211,238,0.10);
}

[data-theme="dark"] .cert-card::before {

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.08),
      transparent 72%
    );
}

/* =========================================
   CERT LIST
========================================= */

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cert-list li {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
  color: #1f2937;
  transition:
  transform 0.3s ease,
  color 0.3s ease;
}

/* =========================================
   CERT ICON
========================================= */

.cert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  

  /* GLASS BACKGROUND COLOR */
  background-color: rgba(16, 16, 16, 0.683);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.5);

  /* SVG ICON */
  background-image:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='m9 8 2 2 4-4'/%3E%3Cpath d='M8.5 13.5 7 22l5-3 5 3-1.5-8.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 82%;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 0 0 1px rgba(255,255,255,0.28),
    0 4px 14px rgba(99,102,241,0.10);

  filter:
    drop-shadow(0 0 2px rgba(99,102,241,0.15));
}


/* =========================================
   HOVER
========================================= */

.cert-list li:hover {
  transform: translateX(4px);
}

.cert-list li:hover::before {
  transform: translateY(-50%) scale(1.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 0 0 1px rgba(255,255,255,0.45),
    0 10px 28px rgba(99,102,241,0.18),
    0 0 40px rgba(14,165,233,0.16);
}

/* =========================================
   DARK THEME
========================================= */
[data-theme="dark"] .cert-list li {
  color: rgba(255,255,255,0.82);
}

[data-theme="dark"] .cert-list li::before {

  background-size: 92%;

  box-shadow:
    inset 0 1px 0 rgba(15, 15, 15, 0.705),
    0 0 0 1px rgba(15, 14, 14, 0.799),
    0 6px 18px rgba(0,0,0,0.35);

  filter:
    drop-shadow(0 0 3px rgba(129,140,248,0.18));
}

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

@media (max-width: 768px) {

  .education-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .edu-card,
  .cert-card {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .edu-content h3 {
    font-size: 1.15rem;
  }

  .edu-content p,
  .cert-list li {
    font-size: 0.9rem;
  }
}

.projects-section {
  position: relative;
  scroll-margin-top: 80px;
  padding: 2rem 8%;         
  max-width: 1150px;
  margin: 0 auto;           
  overflow: visible;
  z-index: 1;
}

.projects-section .section-heading {
  text-align: center;
  margin-top: 0;           
  margin-bottom: 1rem;
}

.projects-section .page-title {
  text-align: center;
  margin-bottom: 2rem;     
  margin-top: 0.5rem;
}

/* =========================================
   FILTER BUTTONS
========================================= */

.project-filters {

  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 1rem;

  margin-bottom: 3rem;

  position: relative;
  z-index: 100;
}

.project-filters button {
  padding: 0.55rem 1.2rem;    
  border-radius: 999px;
  border: 1px solid var(--btn-sec-border);
  background: var(--btn-sec-bg);
  color: var(--btn-sec-text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;         
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.08);
}

/* DARK THEME BUTTON */

[data-theme="dark"] .project-filters button {

  background:
    linear-gradient(
      135deg,
      rgba(20,24,45,0.75),
      rgba(12,16,32,0.88)
    );

  border: 1px solid rgba(255,255,255,0.08);

  color: #f3f4f6;
}

/* LIGHT THEME BUTTON */

[data-theme="light"] .project-filters button {

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.9),
      rgba(245,247,255,0.95)
    );

  color: #111827;

  border: 1px solid rgba(99,102,241,0.12);
}

.project-filters button:hover {

  transform: translateY(-3px);

  background: var(--accent-light);

  border-color: var(--accent);

  color: var(--accent);

  box-shadow:
    0 8px 25px rgba(99,102,241,0.18);
}

.project-filters button.active {

  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #6366f1
    );

  color: white;

  border: none;

  box-shadow:
    0 12px 35px rgba(99,102,241,0.35);
}

/* =========================================
   PROJECT GRID
========================================= */

.projects-container {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 2rem;

  position: relative;
  z-index: 2;
}

/* =========================================
   PROJECT CARD
========================================= */

.project-card {

  position: relative;

  border-radius: 28px;

  overflow: hidden;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  transition: all 0.45s ease;

  isolation: isolate;
}

/* DARK THEME CARD */

[data-theme="dark"] .project-card {

  background:
    linear-gradient(
      135deg,
      rgba(16,20,40,0.92),
      rgba(8,12,24,0.96)
    );

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    0 0 60px rgba(99,102,241,0.18);
}

/* LIGHT THEME CARD */

[data-theme="light"] .project-card {

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.88),
      rgba(245,247,255,0.95)
    );

  border: 1px solid rgba(99,102,241,0.12);

  box-shadow:
    0 10px 35px rgba(99,102,241,0.08),
    0 0 40px rgba(139,92,246,0.08);
}

/* HOVER */

.project-card:hover {

  transform:
    translateY(-12px)
    scale(1.01);

  border-color:
    rgba(139,92,246,0.35);

  box-shadow:
    0 20px 60px rgba(99,102,241,0.22),
    0 0 80px rgba(139,92,246,0.22);
}

/* =========================================
   GLOW EFFECT
========================================= */

.project-card::before {

  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(139,92,246,0.28),
      transparent 42%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(59,130,246,0.18),
      transparent 42%
    );

  opacity: 0;

  transition: opacity 0.45s ease;

  pointer-events: none;
}

.project-card:hover::before {

  opacity: 1;
}

/* GLASS SHINE */

.project-card::after {

  content: "";

  position: absolute;

  inset: 1px;

  border-radius: 28px;

  background:
    linear-gradient(
      to bottom right,
      rgba(255,255,255,0.12),
      transparent 35%
    );

  pointer-events: none;
}

/* =========================================
   PROJECT IMAGE
========================================= */

.project-image {

  position: relative;

  height: 250px;

  overflow: hidden;
}

.project-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.6s ease,
    filter 0.4s ease;
}

.project-card:hover img {

  transform: scale(1.08);

  filter: brightness(1.05);
}

/* =========================================
   IMAGE OVERLAY
========================================= */

.image-overlay {

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.55)
    );

  opacity: 0;

  transition: all 0.4s ease;
}

.project-card:hover .image-overlay {

  opacity: 1;
}

/* =========================================
   VIEW BUTTON
========================================= */

.view-btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.95rem 1.7rem;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 700;

  background: white;
  color: #111827;

  transform: translateY(20px);

  transition: all 0.4s ease;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.18);
}

.project-card:hover .view-btn {

  transform: translateY(0);
}

.view-btn:hover {

  transform:
    scale(1.06)
    translateY(0);

  background: #8b5cf6;

  color: white;
}

/* =========================================
   BADGE
========================================= */

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: white;
  z-index: 5;
  border: 1px solid rgba(168,85,247,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 18px rgba(139,92,246,0.40),
    0 0 30px rgba(99,102,241,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(139,92,246,0.50),
    0 0 40px rgba(99,102,241,0.30),
    inset 0 1px 0 rgba(255,255,255,0.30);
}
/* =========================================
   CONTENT
========================================= */

.project-content {

  padding: 1.6rem;
}

.project-content small {

  color: var(--text-muted);

  display: block;

  margin-bottom: 0.7rem;

  font-weight: 300;
}

/* =========================================
   TITLE ROW
========================================= */

.title-row {

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 1rem;

  margin-bottom: 1rem;
}

.title-row h3 {

  font-size: 1.25rem;
  font-weight: 500;

  color: var(--text-main);
}

/* =========================================
   GITHUB BUTTON
========================================= */

.title-row a {

  width: 44px;
  height: 44px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition: all 0.35s ease;
}

/* DARK THEME */

[data-theme="dark"] .title-row a {

  background:
    linear-gradient(
      135deg,
      rgba(28,32,58,0.82),
      rgba(14,18,36,0.92)
    );

  color: #f3f4f6;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 8px 20px rgba(99,102,241,0.15);
}

/* LIGHT THEME */

[data-theme="light"] .title-row a {

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.95),
      rgba(245,247,255,0.95)
    );

  color: #111827;

  border: 1px solid rgba(99,102,241,0.12);

  box-shadow:
    0 6px 18px rgba(99,102,241,0.08);
}

/* HOVER */

.title-row a:hover {

  transform:
    translateY(-4px)
    scale(1.08);

  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #6366f1
    );

  color: white;

  box-shadow:
    0 12px 30px rgba(99,102,241,0.35);
}
/* =========================================
   DESCRIPTION
========================================= */

.project-content p {
  color: var(--text-muted);

  line-height: 1.7;

  margin-bottom: 1rem;
}

/* =========================================
   TAGS
========================================= */

.tags {
  display: flex;
  flex-wrap: wrap;

  gap: 0.6rem;
}

.tags span {
  padding: 0.5rem 0.9rem;

  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 600;

  color: var(--accent);

  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);

  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

.tags span:hover {
  transform: translateY(-2px);

  background: rgba(99,102,241,0.15);

  border-color: var(--accent);
}

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

@media (max-width: 768px) {

  .projects-section {
    padding: 1rem;
  }

  .project-image {
    height: 220px;
  }

  .title-row h3 {
    font-size: 1.1rem;
  }

}



/* =========================================
   PROJECT DETAILS
========================================= */

.project-details {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 1.5rem;
}

/* =========================================
   BACK LINK
========================================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  margin-bottom: 2rem;

  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;

  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* =========================================
   TOP AREA
========================================= */

.top-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;

  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* =========================================
   BADGE
========================================= */

.project-badge {
  display: inline-flex;
  align-items: center;

  padding: 0.45rem 1rem;
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 600;

  color: var(--btn-text);
  background: var(--btn-bg);

  box-shadow: var(--shadow-sm);

  margin-bottom: 1rem;
}

/* =========================================
   TITLE
========================================= */

.project-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -2px;
}

/* =========================================
   GITHUB BUTTON
========================================= */

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.9rem 1.5rem;

  border-radius: 999px;

  text-decoration: none;
  font-weight: 600;

  color: var(--btn-text);
  background: var(--btn-sec-bg);

  border: 1px solid var(--btn-sec-border);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition: all 0.3s ease;
}

.github-btn:hover {
  transform: translateY(-4px);

  background: var(--btn-bg);
  color: var(--btn-text);

  box-shadow: var(--shadow-md);
}
/* LIGHT THEME */
[data-theme="light"] .github-btn {
  background: rgba(255,255,255,0.9);
  color: #111827;
  border: 1px solid rgba(0,0,0,0.08);
}

/* LIGHT THEME HOVER */
[data-theme="light"] .github-btn:hover {
  background: #6366f1;
  color: white;
}

/* =========================================
   ABOUT CARD
========================================= */

.about-card {
  position: relative;

  margin-top: 2rem;

  border-radius: 20px;

  padding: 2rem;

  overflow: hidden;

  background: var(--card-bg);
  border: 1px solid var(--card-border);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: var(--shadow-md);
}

/* GLOW EFFECT */

.about-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    rgba(99,102,241,0.15),
    transparent 60%
  );

  opacity: 0.7;

  pointer-events: none;
}

.about-card h4 {
  margin-bottom: 1rem;
  text-align: justify;
  font-size: 0.8rem;
  letter-spacing: 2px;

  color: var(--text-muted);
}

.about-card p {
  color: var(--text-muted);

  line-height: 1.9;

  position: relative;
  z-index: 2;
}

/* =========================================
   SECTION TITLE
========================================= */

.section-title {
  margin-top: 3rem;
  margin-bottom: 1rem;

  font-size: 0.8rem;
  letter-spacing: 2px;

  color: var(--text-muted);
}

/* =========================================
   TECH STACK
========================================= */

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tech-stack span {
  padding: 0.55rem 1rem;

  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 600;

  color: var(--accent);

  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);

  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

.tech-stack span:hover {
  transform: translateY(-3px);

  background: rgba(99,102,241,0.16);

  border-color: var(--accent);

  box-shadow: var(--shadow-sm);
}

/* =========================================
   SCREENSHOTS
========================================= */

.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.screenshots img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;   /* show top of image not middle */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    0 0 20px rgba(99,102,241,0.08);
  transition: all 0.4s ease;
  display: block;
}

.screenshots img:hover {
  transform: scale(1.02);
  box-shadow:
    0 12px 35px rgba(99,102,241,0.20),
    0 0 40px rgba(139,92,246,0.12);
}

/* first image full width */
.screenshots img:first-child {
  grid-column: 1 / -1;
  height: 260px;
}

/* portrait/mobile screenshots — add class="portrait" to those imgs */
.screenshots img.portrait {
  height: 320px;          /* taller to show more of portrait image */
  object-fit: contain;    /* show full image without cropping */
  object-position: center;
  background: rgba(255,255,255,0.03); /* subtle bg behind contain */
}

/* =========================================
   SCREENSHOTS 1
========================================= */

.screenshots1 {
  width: 100%;
  max-width: 900px;
  margin: 1.5rem auto;
}

.screenshots1 img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    0 0 25px rgba(99,102,241,0.08);

  transition: 0.4s ease;
}

.screenshots1 img:hover {
  transform: scale(1.01);
}
/* MOBILE */
@media (max-width: 768px) {

  .screenshots1 {
    gap: 1rem;
  }

  .screenshots1 img {
    border-radius: 14px;
  }

}
/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

  .project-title {
    font-size: 2.5rem;
  }

  .top-area {
    flex-direction: column;
    align-items: flex-start;
  }

  .github-btn {
    width: 100%;
    justify-content: center;
  }

  .about-card {
    padding: 1.5rem;
  }

}



/* ==============================
   MODERN CONTACT PAGE 
============================ */

/* CONTACT SECTION SPACING */
.contact-section {
  margin-top: 5rem;
  padding-top: 5rem;
}

.contact-section .section-heading {
  margin-top: 2rem;
}

.contact-section .page-title {
  margin-bottom: 2.0rem;
}



.contact-page {
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.contact-page .container {
  max-width: 1120px;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* =========================================
   GLOBAL AMBIENT GLOW
========================================= */

.contact-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 20% 20%, rgba(99,102,241,0.16), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(168,85,247,0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(34,211,238,0.08), transparent 35%);
}

/* =========================================
   GRID LAYOUT
========================================= */

.contact-modern-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 1.3rem;
  align-items: start;
  max-width: 1100px;
  margin: 1.8rem auto 0;
  position: relative;
  z-index: 2;
}

/* =========================================
   LEFT COLUMN
========================================= */

.contact-modern-info {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* =========================================
   GLASS INFO CARD
========================================= */

.modern-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  min-height: 92px;
  border-radius: 18px;

  

  position: relative;
  overflow: hidden;
  

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.04)
    );

  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12),
    inset 0 1px 1px rgba(255,255,255,0.08);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

/* GLOW OVERLAY */

.modern-info-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(99,102,241,0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(168,85,247,0.12),
      transparent 60%
    );

  opacity: 0;
  transition: opacity 0.35s ease;
}

.modern-info-card:hover::before {
  opacity: 1;
}

/* HOVER */

.modern-info-card:hover {
  transform: translateY(-5px);

  border-color: rgba(99,102,241,0.22);

  box-shadow:
    0 18px 40px rgba(99,102,241,0.14),
    0 8px 24px rgba(0,0,0,0.14);
}

/* CLICK */

.modern-info-card:active {
  transform: scale(0.985);
}

/* =========================================
   LEFT SIDE
========================================= */

.modern-info-left {
  display: flex;
  align-items: center;
  gap: 14px;

  flex: 1;
}

/* =========================================
   GHOST GLASS ICON
========================================= */

.modern-icon {
  width: 56px;
  height: 56px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.08),
    0 8px 20px rgba(0,0,0,0.12);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

/* REFLECTION */

.modern-icon::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.18),
      transparent 45%
    );

  opacity: 0.75;
}

/* SVG */

.modern-icon svg {
  position: relative;
  z-index: 2;

  width: 22px;
  height: 22px;

  stroke-width: 1.8;

  transition: transform 0.28s ease;
}

/* HOVER */

.modern-info-card:hover .modern-icon {
  transform: translateY(-3px) scale(1.04);

  border-color: rgba(255,255,255,0.18);

  box-shadow:
    0 12px 28px rgba(99,102,241,0.18),
    inset 0 1px 1px rgba(255,255,255,0.12);
}

.modern-info-card:hover .modern-icon svg {
  transform: scale(1.06);
}

/* =========================================
   GHOST ICON COLORS
========================================= */

.modern-icon.blue svg {
  color: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(96,165,250,0.45));
}

.modern-icon.green svg {
  color: #34d399;
  filter: drop-shadow(0 0 8px rgba(52,211,153,0.45));
}

.modern-icon.pink svg {
  color: #f472b6;
  filter: drop-shadow(0 0 8px rgba(244,114,182,0.45));
}

.modern-icon.linkedin svg {
  color: #818cf8;
  filter: drop-shadow(0 0 8px rgba(129,140,248,0.45));
}

/* =========================================
   TEXT
========================================= */

.modern-info-text span {
  font-size: 0.68rem;
  letter-spacing: 1px;
}

.modern-info-text h3 {
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}


/* =========================================
   COPY BUTTON
========================================= */

.copy-btn {
  width: 42px;
  height: 42px;

  min-width: 42px;

  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.12);

  background: rgba(255,255,255,0.06);

  color: var(--text-main);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  flex-shrink: 0;

  position: relative;
  z-index: 10;

  pointer-events: auto;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

/* SVG ICON */
.copy-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
  opacity: 1;
}

/* HOVER */
.copy-btn:hover {
  background: rgba(99,102,241,0.16);

  border-color: rgba(99,102,241,0.3);

  transform: translateY(-2px);
}

/* CLICK */
.copy-btn:active {
  transform: scale(0.95);
}

/* SUCCESS */
.copy-btn.success {
  background: rgba(34,197,94,0.14);

  border-color: rgba(34,197,94,0.4);

  color: #22c55e;
}

/* ERROR */
.copy-btn.error {
  background: rgba(239,68,68,0.14);

  border-color: rgba(239,68,68,0.4);

  color: #ef4444;
}

/* =========================================
   RIGHT SIDE CONTACT FORM
========================================= */

.modern-contact-form {

  padding: 1.3rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.04)
    );

  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.14),
    inset 0 1px 1px rgba(255,255,255,0.08);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* =========================================
   FORM HOVER
========================================= */

.modern-contact-form:hover {
  transform: translateY(-4px);

  border-color: rgba(99,102,241,0.22);

  box-shadow:
    0 25px 60px rgba(99,102,241,0.12),
    0 15px 35px rgba(0,0,0,0.16);
}

/* =========================================
   FORM GLOW OVERLAY
========================================= */

.modern-contact-form::before {
  content: "";
  position: absolute;
  inset: -30%;

  background:
    radial-gradient(
      circle at top left,
      rgba(99,102,241,0.22),
      transparent 45%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(168,85,247,0.18),
      transparent 50%
    );

  filter: blur(50px);

  opacity: 0.8;

  z-index: 0;
}

/* KEEP CONTENT ABOVE GLOW */

.modern-contact-form > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   FORM HEADER
========================================= */

.modern-form-header {
  display: flex;
  align-items: center;
  gap: 1rem;

  margin-bottom: 1.8rem;
}

.form-icon {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  /* NO solid background */
  background: transparent;

  position: relative;
}

/* glass glow behind icon */
.form-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    circle at top left,
    rgba(99,102,241,0.35),
    rgba(168,85,247,0.25),
    transparent 70%
  );

  filter: blur(18px);
  opacity: 0.9;

  z-index: 0;
}

/* optional subtle glass reflection */
.form-icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;

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

  border: 1px solid rgba(255,255,255,0.08);

  z-index: 0;
}

/* SVG stays on top */
.form-icon svg {
  position: relative;
  z-index: 2;

  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.6));
}

.form-icon::before {
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.modern-form-header h2 {
  font-size: 1.5rem;
  text-align: center;
  font-weight: 800;

  color: var(--text-main);
}

/* =========================================
   FORM GROUP
========================================= */

.modern-form-group {
  margin-bottom: 1.2rem;
}

/* =========================================
   INPUTS & TEXTAREA
========================================= */
.modern-form-group input,
.modern-form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;

  border: 1px solid rgba(255,255,255,0.08);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.03)
    );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: var(--text-main);

  transition: all 0.28s ease;
}
/* NAME + EMAIL HEIGHT */

.modern-form-group input {
  height: 54px;
}

/* MESSAGE BOX */
.modern-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =========================================
   INPUT HOVER
========================================= */

.modern-form-group input:hover,
.modern-form-group textarea:hover {
  border-color: rgba(99,102,241,0.20);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.04)
    );
}

/* =========================================
   INPUT FOCUS
========================================= */

.modern-form-group input:focus,
.modern-form-group textarea:focus {
  outline: none;

  border-color: rgba(99,102,241,0.55);

  box-shadow:
    0 0 0 4px rgba(99,102,241,0.12);

  transform: translateY(-2px);
}

/* =========================================
   PLACEHOLDER
========================================= */

.modern-form-group input::placeholder,
.modern-form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}


/* LIGHT THEME OVERRIDE */
[data-theme="light"] .modern-form-group input,
[data-theme="light"] .modern-form-group textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--text-main);
}

/* =========================================
   SUBMIT BUTTON
========================================= */

.modern-submit-btn {
  width: 100%;

  padding: 1rem 1.4rem;

  border: none;
  border-radius: 18px;

  font-size: 1rem;
  font-weight: 700;

  color: white;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background:
    linear-gradient(
      135deg,
      #6366f1,
      #8b5cf6
    );

  box-shadow:
    0 12px 25px rgba(99,102,241,0.25);

  transition: all 0.30s ease;
}

/* BUTTON HOVER */

.modern-submit-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 18px 35px rgba(99,102,241,0.30);
}

/* BUTTON ACTIVE */

.modern-submit-btn:active {
  transform: scale(0.97);
}

/* =========================================
   BUTTON ICON
========================================= */

.modern-submit-btn svg {
  transition: transform 0.3s ease;
}

.modern-submit-btn:hover svg {
  transform: translateX(4px);
}

/* =========================================
   STATUS MESSAGE
========================================= */

.modern-status {
  margin-top: 1rem;

  text-align: center;

  color: #8b5cf6;

  font-weight: 600;
}

/* =========================================
   LIGHT THEME
========================================= */

[data-theme="light"] .modern-contact-form {
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.78),
      rgba(255,255,255,0.55)
    );

  border: 1px solid rgba(255,255,255,0.65);
}

/* =========================================
   DARK THEME
========================================= */

[data-theme="dark"] .modern-contact-form {
  background:
    linear-gradient(
      145deg,
      rgba(20,20,30,0.72),
      rgba(20,20,30,0.50)
    );

  border: 1px solid rgba(255,255,255,0.06);
}

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

@media (max-width: 768px) {

  .contact-modern-grid {
    grid-template-columns: 1fr;
  }

  .modern-info-card {
    min-height: 80px;
  }

  .modern-contact-form {
    padding: 1.1rem;
  }

  .modern-form-group input {
    height: 50px;
  }

  .modern-form-group textarea {
    min-height: 100px;
  }
}

