:root {
      --bg: #0b0d10;
      --panel: #12161b;
      --muted: #8b9bb1;
      --text: #e6edf6;
      --accent: #8b5cf6; /* purple */
      --accent-2: #22d3ee; /* cyan */
      --ring: rgba(139, 92, 246, 0.4);
          --letter-gap: -0.08em; /* adjust between letters; bigger = more spacing */

    }
    * { box-sizing: border-box; }

    body {
      margin: 0; 
      color: var(--text); 
      background: radial-gradient(1200px 800px at 80% -10%, rgba(34,211,238,0.08), transparent),
                radial-gradient(900px 700px at -10% 30%, rgba(139,92,246,0.10), transparent), var(--bg);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .container { width: min(1100px, 90%); margin: 0 auto; }
    header {
      position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
      background: linear-gradient(to bottom, rgba(11,13,16,0.8), rgba(11,13,16,0.55));
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    
/* Floating language button (bottom-left, sticky) */
.lang-fab {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60; /* above header (yours is 50) */

  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 8px 28px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease, border-color .25s ease;
}

.lang-fab{ 
font-family: 'Inter', sans-serif;
font-size: clamp(20px, 5vw, 20px); 
}
.lang-fab:hover,
.lang-fab:focus-visible {
  border-color: transparent;
  box-shadow:
    0 12px 36px rgba(34,211,238,0.22),
    0 8px 42px rgba(139,92,246,0.22);
  transform: translateY(-1px);
  outline: none;
}

/* Small screens: tuck in a bit */
@media (max-width: 600px) {
  .lang-fab { left: 12px; bottom: 14px; padding: 7px 12px; font-size: 12px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lang-fab { transition: none; }
}



.dot-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image:
    radial-gradient(#8b5cf6 1px, transparent 1px),
    radial-gradient(#22d3ee 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
  background-position: 0px 0px, 18px 18px;
  background-repeat: repeat;
  opacity: 0.3;

  /* prevents hairline seams on some GPUs */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, background-position;
}



/* Sparkles container sits above bg, below text if you want */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.sparkle {
  position: absolute;
  width: clamp(50px, 12vw, 120px);
  height: auto;
  fill: rgba(255,255,255,0.92);
  filter: drop-shadow(0 4px 18px rgba(255, 255, 255, 0.55));
  opacity: 0.95;
}

.sparkle.s1 { left: 15%; bottom: 15%; }
.sparkle.s2 { right: 20%; top: 22%; }

@media (max-width: 600px) {
  .sparkle {
    width: clamp(28px, 14vw, 60px); /* smaller on phone */
  }
  .sparkle.s1 { left: 8%; bottom: 20%; }
  .sparkle.s2 { right: 8%; top: 25%; }
}


.sparkle.s3 { left: 15%; bottom: 5%; }
.sparkle.s4 { right: 20%; top: 22%; }




.between-sections {
  position: relative;
  height: 0;        /* no extra gap; rely on section padding */
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}


.site-header {
  position: sticky;
  top: 1%;
  z-index: 50;
  backdrop-filter: blur(1px);
  display: flex;
  justify-content: center; /* ensures header centers its child nav */
  margin-top: 80px;
}

.site-header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
  margin: 0 auto;
  background: var(--panel);
  opacity: 0.85;
  border-radius: 20px;
  height: 50px;
}
nav a {
	line-height: 50px;
	height: 100%;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  display: inline-block;
  position: relative;
  z-index: 2; /* ensure text is above animation bar */
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  color: white;
  cursor: pointer;
  padding: 0 14px; 
  white-space: nowrap; /* keep label on one line */
  flex: 0 0 auto; 
  transition: transform 0.25s ease;
  transform-origin: center;
  }

  

  nav a.active[data-anim="about"],
  nav a.active[data-anim="projects"],
  nav a.active[data-anim="contact"] 
  {
    color: white; /* or use another accent if you want per-tab color */

}

nav .animation {
  position: absolute;
  height: 100%;
  top: 0;
  z-index: 0;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(.4,1.4,.6,1);
  left: var(--anim-left, 0px);
  width: var(--anim-width, 100px);
}

nav a[data-anim="home"].active ~ .animation {
  background: #22d3ee; /* cyan */
}

nav a[data-anim="projects"].active ~ .animation {
  background: #38bdf8; /* light blue */
}

nav a[data-anim="about"].active ~ .animation {
  background: #a78bfa; /* lavender */
}

nav a[data-anim="contact"].active ~ .animation {
  background: #8b5cf6; /* purple */
}



/* Center hero */
.hero-center {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  font-size: clamp(24px, 5vw, 36px);}

/* clip animated children to avoid any transform-driven overflow */
.hero-center {
  overflow: hidden;
  clip-path: inset(0);
}
  .hero-center .hero-text p {
    font-size: clamp(1.3rem, 2vw, 1rem);
    color: var(--muted);
    margin-top: 28px;
    font-family: 'inter', 'poppins', sans-serif;
  }

  .hero-text h1 {
    font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.7;
  letter-spacing: -0.01em;
  }


@media (max-width: 600px) {
  .hero-center {
    min-height: 65vh;   /* smaller hero height */
    padding: 40px 0;    /* add breathing space */
  }
}
@media (max-width: 600px) {
  .hero-center .hero-text p { 
  font-size: clamp(0.66rem, 1vw, 1rem);
  font-weight: 400;
  
} 
} 





/* NAV responsive tweaks */
@media (max-width: 760px) {
  .site-header {
    top: 0;
    padding: 8px 10px;
  }
  .site-header nav {
    width: clamp(275px, 77vw, 360px); 
    height: 40px;
    border-radius: 30px;
    padding: 0 px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    box-sizing: border-box;
  }
  nav {
    align-items: center;
    justify-content: center;
    display: flex;
  }
  nav a { 
    font-size: 10px; 
    padding: 0 12px;   
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 0;
    text-align: center;
  }

 nav .animation {
  height: 40px;
  top: 0;
  z-index: 0;
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
}

/* Extra small screens - below 400px */
@media (max-width: 400px) {
  .site-header {
    padding: 6px 8px;
  }
  .site-header nav {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    gap: 0;
    justify-content: space-around;
  }
  nav a {
    font-size: 8px;
    padding: 0 8px;
    flex: 1 1 0;
    min-width: 0;
  }
  nav .animation {
    height: 40px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* hide scrollbar visually while keeping scroll functionality */
nav::-webkit-scrollbar { height: 0; display: none; }


.cursor{
    position: relative;
    width: 24em;
    margin: 0 auto;
    font-size: 30px;
    text-align: center;
    white-space: normal; /* Allow natural wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    transform: translateY(-50%);    
}

@media (max-width: 800px) {
  .cursor {
    font-size: clamp(14px, 3.5vw, 18px);
    width: 90%;
    max-width: 33em;
    max-height: fit-content;
    white-space: normal; /* Allow wrapping on mobile */
  }
}

/* Cursor blinking animation - JavaScript handles the typing */
.typewriter-cursor {
  display: inline-block;
  color: rgba(255,255,255,.75);
  animation: blinkingCursor 900ms steps(50) infinite normal;
  margin-left: 1px;
  font-weight: 300;
}

@keyframes blinkingCursor{
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


    /* Section */
    section { padding: 64px 0; 
    background: transparent;      /* ensure no mismatched fills */
    position: relative;
    isolation: isolate;           /* new stacking context = no cross-bleed */}
    .section-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
    .section-header h2 { font-size: clamp(22px, 4vw, 28px); margin: 0; }
    .section-desc { color: var(--muted); font-family: 'Inter', sans-serif; }



    /* PROJECT OVERSRIFT */
  .project-text {
    --letter-gap: -0.08em; /* adjust between letters; bigger = more spacing */
    display: inline-flex;
    justify-content: center;
    gap: var(--letter-gap);
    font-family: 'LIBRARY3AMsoft';
    font-weight: 100;
    font-size: clamp(3.5rem, 12vw, 7rem); /* responsive font size */
    text-align: center;
    margin: 0 auto;
  }

.letter {
    color: #d9fdff;
    text-shadow: 0 0 1rem var(--accent-2);
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Letter animations for both sections */
.letter.letter-2 {
    transform: translate(-0.2rem, 1rem) rotate(10deg);
    animation: flicker 2s ease-in-out infinite alternate;
}

/* About section specific letter animations */
#about .letter.letter-2 { transform: translate(-0.15rem, 0.8rem) rotate(8deg); }
#about .letter.letter-3 { transform: translate(0.1rem, -0.2rem) rotate(-5deg); }
#about .letter.letter-5 { transform: translate(-0.1rem, 0.3rem) rotate(6deg); }

/* Section headers alignment */
#projects .section-header,
#about .section-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}




.letter.letter-7 {
    transform: translate(0.3rem, 0.5rem) rotate(-8deg);
}

@keyframes flicker {
    0%, 80% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
     .letter {
        font-size: clamp(5rem, 10vw, 5rem);
        /* spacing now controlled with --letter-gap on .project-text */
    }
}


@media (max-width: 768px) {
    #about .project-text.letter.letter-2 {
     transform: translate(-0.15rem, 0.8rem) rotate(3deg);   
    }
}




/* Responsive adjustments for project text */
@media (max-width: 768px) {
    .project-text {
        --letter-gap: -0.06em; /* adjust spacing on medium screens */
    }
    .letter.letter-2 {
        transform: translate(-0.15rem, 0.75rem) rotate(10deg); /* scale down the offset */
    }
}

@media (max-width: 480px) {
    .project-text {
        --letter-gap: -0.04em; /* adjust spacing on small screens */
    }
    .letter.letter-2 {
        transform: translate(-0.1rem, 0.5rem) rotate(10deg); /* further scale down */
    }
}

@keyframes flicker {
  0% {
    opacity: 1;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
  5% {
    opacity: 1;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
  5.5% {
    opacity: 0;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
  6% {
    opacity: 1;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
  6.5% {
    opacity: 1;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
  7% {
    opacity: 0;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
  8% {
    opacity: 1;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
  50% {
    opacity: 1;
    transform: translate(-0.2rem, 1rem) rotate(13deg);
  }
  100% {
    opacity: 1;
    transform: translate(-0.2rem, 1rem) rotate(10deg);
  }
}

    /* Projects */
    .grid {
       display: grid; 
       grid-template-columns: repeat(12, 1fr); 
       gap: 18px; }
    .card {
       grid-column: span 6; 
       background: var(--panel); 
       border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; 
       overflow: hidden; 
       position: relative; 
       isolation: isolate; 
       background-clip: padding-box;
       transform: translateZ(0);
       }
    .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;          /* crop overflow */
  transform: translateZ(0);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* crops, keeps all thumbs same size */
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-body { padding: 16px; }

    .card h3 { margin: 0 0 6px; font-size: 18px; }

    .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

    .tag { font-size: 12px; color: var(--muted); padding: 4px 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; }

    .card-actions { 
      display: flex; 
      gap: 10px; 
      margin-top: 12px; 
    }
    #projectsGrid .card-actions {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid rgba(255,255,255,.06);
    }
    #projectsGrid .card-actions .btn {
      flex: 1;
      padding: 10px 16px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      text-align: center;
      background: transparent;
      border: 1px solid rgba(255,255,255,.12);
      color: #fff;
      transition: all 0.2s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-family: 'Inter', sans-serif;
    }
    #projectsGrid .card-actions .btn:hover {
      background: rgba(255,255,255,.05);
      border-color: rgba(255,255,255,.2);
    }
    #projectsGrid .card-actions .btn-code {
      background: transparent;
    }
    #projectsGrid .card-actions .btn-code:hover {
      background: rgba(255,255,255,.05);
      border-color: rgba(255,255,255,.2);
    }

    /* Projects (large headline + smaller cards) */
    #projects .section-header { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 36px; }
    #projects .section-header h2 { font-size: clamp(36px, 10vw, 64px); line-height: 1; margin: 0; }
    /* Make project grid more compact while keeping current visual style */
    /* Two-up layout: two cards per row on desktop, stacks to one on small screens
       Constrain the grid with max-width so cards don't grow too large on wide screens. */
    #projectsGrid {
      display: grid;
      grid-template-columns: repeat(2, minmax(260px, 1fr)); /* each card min 260px, grow to share space */
      gap: 25px;
      align-items: stretch;
      max-width: 1000px; /* controls how much of the viewport the projects area uses */
      margin: 0 auto; /* center the grid inside the container */
      padding: 0 12px;
    }


#projectsGrid .card {
  grid-column: auto;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color 0.2s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
#projectsGrid .card:visited {
  color: inherit;
}
#projectsGrid .card:hover {
  border-color: rgba(255,255,255,.15);
}
#projectsGrid .card:hover .thumb img {
  transform: scale(1.01);
}
#projectsGrid .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
#projectsGrid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
#projectsGrid .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 12px;
}
#projectsGrid .card h3 { 
  font-size: 20px; 
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}
#projectsGrid .card .section-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
  font-family: 'Inter', sans-serif;
}
#projectsGrid .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
#projectsGrid .tag { 
  font-size: 11px; 
  padding: 4px 8px; 
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  border-radius: 4px;
  color: var(--muted);
}

    @media (max-width: 900px) {
      /* slightly reduce min width on medium screens */
      #projectsGrid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
    }

    @media (max-width: 600px) {
      /* single column on phones */
      #projects .section-header h2 { font-size: clamp(22px, 8vw, 30px); }
      #projectsGrid { grid-template-columns: 1fr; }
      #projectsGrid .card h3 { 
        font-size: 18px; 
      }
      #projectsGrid .card-body {
        padding: 16px;
      }
      #projectsGrid .card-actions .btn {
        padding: 9px 14px;
        font-size: 12px;
      }
    }


 

#projectsGrid .card:nth-child(1) .thumb img {
  object-fit: contain; /* prevents cropping */
  padding: px;       /* optional nice breathing space */
}
    /* Make Contact header match Projects/About headline styling */

/* ABOUT SECTION */
.about-wrap {
  width: min(850px, 90%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.about-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  padding: clamp(24px, 4vw, 42px);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 0 30px rgba(34,211,238,0.07), 0 0 50px rgba(139,92,246,0.05);
  animation: floatUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.project-title.about-title {
    font-size: clamp(40px, 15vw, 70px);
    letter-spacing: -0.2em;
    margin-bottom: 12px;
}

@keyframes floatUp {
  to { opacity: 1; transform: translateY(0); }
}

.about-card p {
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.7;
  margin: 0 0 1rem;
  font-family: "Inter", sans-serif;
}

.c-acc {
  color: var(--accent-2);
  font-weight: 500;
}

/* Buttons */
.about-buttons {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
}


.btn-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(139,92,246,0.5),
              0 0 24px rgba(34,211,238,0.5);
}

.btn-ghost {
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 10px;
  color: #0b0d10;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.45);
}


/* SKILLS */
/* --- chip-style skills --- */
.skills {
  margin: 26px auto 0;
  width: min(950px, 92%);
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px 12px;
}

@media (max-width: 900px) { .skills { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: repeat(2, 1fr); } }

.skill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 12px;
  border-radius: 999px;
  line-height: 1;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;

  /* chip look */
  background: transparent;
  color: rgba(230, 237, 246, 0.85);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: none;
  backdrop-filter: none;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

/* tiny gradient dot at the start */
.skill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(139,92,246,.35));
}

/* gradient stroke on hover via masked pseudo element */
.skill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px; /* stroke width */
  background: linear-gradient(90deg, var(--accent-2), var(--accent));

  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease, filter .25s ease;
}

.skill:hover,
.skill:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}
.skill:hover::after,
.skill:focus-visible::after {
  opacity: .7;
  filter: drop-shadow(0 0 10px rgba(34,211,238,.25));
}


/* Mobile tweaks */
@media (max-width: 600px) {
  .about-card { border-radius: 14px; }
  .about-buttons { flex-direction: column; }
} 


/* --- Marquee container --- */
.skills-marquee {
  width: min(1100px, 94%);
  margin: 28px auto 0;
  display: grid;
  gap: 10px;
}

/* Each lane is a hidden-overflow row with edge fade */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* The moving strip(s) */
.marquee__inner {
  display: inline-flex;
  gap: 12px;
  padding: 6px 8px;
  will-change: transform;
}

/* Tighten chips slightly for marquee */
.marquee .skill { padding: 7px 12px; }

/* Small screens: stack lanes nicely */
@media (max-width: 640px) {
  .skills-marquee { gap: 8px; }
  .marquee .skill { font-size: 13px; padding: 6px 10px; }
}

/* CONTACT FORM (site-styled) */
.contact {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  font-family: 'poppins', 'inter', sans-serif;
  text-align: center;
  box-shadow: 0 0 30px rgba(34,211,238,0.07), 0 0 50px rgba(139,92,246,0.05);
  animation: floatUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.project-text.contact-title {
  font-size: clamp(3.5rem, 12vw, 7rem); /* match .project-text */
  --letter-gap: -0.08em; /* use same gap as other headings */
  margin-bottom: 12px;
}

/* From Uiverse.io by alexmaracinaru */ 

.nature-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background-color: var(--bg);
  opacity: 0.6;
  border: 1.5px solid rgba(34,211,238,0.2);
  padding: 12px 28px 12px 24px;
  border-radius: 18px;
  color: var(--text);
  font-family: 'poppins', 'inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s, color 0.2s;
}

.nature-btn svg {
  width: 1.7em;
  height: 1.7em;
  transition: stroke 0.2s;
}

.nature-btn:hover,
.nature-btn:focus-visible {
  border-color: #22d3ee;
  color: var(--accent);
  box-shadow: 0 8px 20px 0 rgba(34,211,238,0.13);
}

.nature-btn:hover svg,
.nature-btn:focus-visible svg {
  stroke: white;
}

.nature-btn:active {
  background: linear-gradient(90deg, rgba(16,185,129,0.22), rgba(34,197,94,0.18));
  box-shadow: 0 2px 12px 0 rgba(34,197,94,0.14);
}

.nature-btn span {
  display: block;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
  transition: color 0.2s;
}

/* Subtle animated shimmer overlay for the glass effect */
.nature-btn:before {
  content: "";
  position: absolute;
  left: -60%;
  top: 0;
  width: 120%;
  height: 100%;
  background: linear-gradient(120deg,rgba(255,255,255,0),rgba(255,255,255,0.15) 60%,rgba(255,255,255,0));
  transform: skewX(-18deg);
  transition: opacity 0.2s;
  opacity: 0.4;
  pointer-events: none;
}

.nature-btn:hover:before,
.nature-btn:focus-visible:before {
  left: -10%;
  opacity: 0.90;
  transition: left 0.7s cubic-bezier(.4,0,.2,1),opacity 0.9s;
}



.contact h2 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: clamp(20px, 3.5vw, 28px);
}

.contact .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

.contact .col { width: 100%; }
.contact .col.full { grid-column: 1 / -1; }

.form-group label { display:block; font-size:14px; color:var(--muted); margin-bottom:8px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 16px;
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-actions { margin-top: 16px; display:flex; justify-content:flex-end; }
.form-actions .btn.primary { padding: 10px 18px; border-radius: 12px; }

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
  cursor: pointer;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.social-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.15);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

.linkedin-btn:hover {
  border-color: rgba(0,119,181,0.4);
  box-shadow: 0 4px 12px rgba(0,119,181,0.2);
}

.github-btn:hover {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

@media screen and (max-width: 900px) {
  .contact .row { grid-template-columns: 1fr; }
  .form-actions { justify-content: center; }
  .social-links {
    flex-direction: column;
    gap: 10px;
  }
  .social-btn {
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}


    /* Responsive */
    @media (max-width: 900px) {
      .hero { grid-template-columns: 1fr; }
      .card { grid-column: span 12; }
      .about { grid-template-columns: 1fr; }
    }

    /* Focus ring */
    :where(a, button, input, textarea):focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 10px; }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      .animated { transition: none !important; }
    }


   /* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  min-width: 220px;
  max-width: min(90vw, 380px);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 0 24px rgba(139,92,246,0.15);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease;
  font: 500 14px/1.4 "Inter", system-ui, sans-serif;
}

/* visible state */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* variants */
.toast.success {
  border-color: rgba(34,211,238,0.45);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 0 24px rgba(34,211,238,0.25);
}
.toast.error {
  border-color: rgba(255, 99, 99, 0.45);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 0 24px rgba(255, 99, 99, 0.25);
}

/* optional: mobile center */
@media (max-width: 600px) {
  .toast { left: 50%; right: auto; transform: translate(-50%, 16px); }
  .toast.show { transform: translate(-50%, 0); }
}


label.required::after {
  content: " *";
  color: #ff5a5a;
  font-weight: 600;
}
