/* @import url('https://fonts.googleapis.com/css2?family=Coming+Soon&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Kalam&display=swap');



:root {
    --bg: #fefefe;
    --accent: #A9B98A;
    --accent-hover: #94a875;
    --text-main: #3f3f3f;
    --nav-bg: #ffffff;
    --link: #4b4b4b;
    --btn-text: #ffffff;
    --section-bg: #ffffff;
    --icon-color: #666666;
    
}

/* Global Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    
}

/* Header (Navbar) Styling */
header.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease, opacity 0.4s ease;
    will-change: transform;
}

header.navbar.nav-hidden {
    transform: translateY(-100%) scaleY(0.98);
    opacity: 0;
    pointer-events: none;
  }
  
.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}


.logo h1 {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Animated hamburger/close button */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--icon-color);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    position: absolute;
    left: 0;
}

.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.bar:nth-child(3) { bottom: 0; }

.nav-toggle.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Navigation Links (Mobile & Desktop) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--nav-bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 4rem;
    list-style: none;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: -5px 0px 30px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #f0f0f0;
}

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

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links a {
    text-decoration: none;
    color: var(--link);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero Section Styling */
.hero {
    padding: 6rem 1rem 3rem;
    text-align: center;
    background-color: var(--bg);
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 5rem auto 0;
    justify-content: center;
    padding: 0 1rem;
}


.hero-text {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: inline-block;
    white-space: nowrap;
}

.hero-text h1 span {
    display: inline-block;
    transition: transform 0.2s ease-out;
    transform-origin: bottom;
    position: relative;
}

.hero-text h1 .highlight { color: var(--accent); }

@keyframes waveBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-text h1:hover span {
    animation: waveBounce 0.6s forwards;
}

.hero-text h1:hover span:nth-child(1) { animation-delay: 0s; }
.hero-text h1:hover span:nth-child(2) { animation-delay: 0.05s; }
.hero-text h1:hover span:nth-child(3) { animation-delay: 0.1s; }
.hero-text h1:hover span:nth-child(4) { animation-delay: 0.15s; }
.hero-text h1:hover span:nth-child(5) { animation-delay: 0.2s; }
.hero-text h1:hover span:nth-child(6) { animation-delay: 0.25s; }
.hero-text h1:hover span:nth-child(7) { animation-delay: 0.3s; }
.hero-text h1:hover span:nth-child(8) { animation-delay: 0.35s; }
.hero-text h1:hover span:nth-child(9) { animation-delay: 0.4s; }
.hero-text h1:hover span:nth-child(10) { animation-delay: 0.45s; }
.hero-text h1:hover span:nth-child(11) { animation-delay: 0.5s; }
.hero-text h1:hover span:nth-child(12) { animation-delay: 0.55s; }
.hero-text h1:hover span:nth-child(13) { animation-delay: 0.6s; }
.hero-text h1:hover span:nth-child(14) { animation-delay: 0.65s; }
.hero-text h1:hover span:nth-child(15) { animation-delay: 0.7s; }
.hero-text h1:hover span:nth-child(16) { animation-delay: 0.75s; }
.hero-text h1:hover span:nth-child(17) { animation-delay: 0.8s; }
.hero-text h1:hover span:nth-child(18) { animation-delay: 0.85s; }
.hero-text h1:hover span:nth-child(19) { animation-delay: 0.9s; }
.hero-text h1:hover span:nth-child(20) { animation-delay: 0.95s; }
.hero-text h1:hover span:nth-child(21) { animation-delay: 1s; }
.hero-text h1:hover span:nth-child(22) { animation-delay: 1.05s; }
.hero-text h1:hover span:nth-child(23) { animation-delay: 1.1s; }

.hero-text h1:not(:hover) span {
    animation: none;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background-color: var(--bg); 
    color: var(--accent);      
    text-decoration: none;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    border: 2px solid var(--accent); 
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    display: inline-block;
  }
  
  .cta-btn:hover {
    background-color: var(--accent);
    color: var(--btn-text);
    box-shadow: 0 0 0 5px rgba(165, 200, 130, 0.3);
  }

.hero-image {
    width: 100%;
    max-width: 280px;
    height: 280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e7ecde;
    border-radius: 50%;       
    overflow: hidden;       
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Optional soft shadow */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.section {
    padding: 3rem 1rem;
    background: var(--section-bg);
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
}

/* ========== ABOUT SECTION ========== */

.about-section {
    width: 100%;
    background-color: var(--section-bg);
  }

  .about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: 1;
  }

  .small-gap {
    display: block;
    height: 0.5em; /* adjust as needed for less or more space */
  }
  
  .photo-with-clip {
    position: relative;
    width: fit-content;
    margin: 0 auto;
  }
  
  .photo-clip {
    position: absolute;
    top: 1.5rem;
    left: 13%;
    transform: rotate(-8deg);
    width: 70px  !important; 
    height: auto !important;
    z-index: 5;
    opacity: 0.95;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }
  
  /* Mobile screens */
  @media (max-width: 768px) {
    .photo-clip {
      top: 1.5rem;
      left: 45%;
      width: 40px;
    }
  }
  
  /* Extra small screens */
  @media (max-width: 480px) {
    .photo-clip {
      top: 1.1rem;
      left: 25%;
      width: 35px;
    }
  }
  




  .about-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  /* Polaroid-style Image Card */
  .polaroid {
    width: 220px;
    padding: 10px 10px 20px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow:
      0 1px 1px rgba(0, 0, 0, 0.12),
      0 2px 2px rgba(0, 0, 0, 0.12),
      0 4px 4px rgba(0, 0, 0, 0.12),
      0 8px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
  }

  .polaroid:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow:
      0 2px 2px rgba(0, 0, 0, 0.15),
      0 4px 4px rgba(0, 0, 0, 0.15),
      0 8px 8px rgba(0, 0, 0, 0.15),
      0 16px 16px rgba(0, 0, 0, 0.15);
  }

.photo {
  width: 100%;
  height: 200px;
  background: #f0f3ec;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo img {
  max-width: 100%;
  max-height: 100%;
  border: 2px solid #c1d1ad;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Main image is always visible */
.photo .open-eyes {
  z-index: 1;
}

/* Blink image will appear briefly over it */
.photo .blink-eyes {
  z-index: 2;
  animation: blink 6s infinite;
  opacity: 0;
}

/* Keyframes for blinking */
@keyframes blink {
  0%, 97%, 100% {
    opacity: 0;
  }
  98%, 99% {
    opacity: 1;
  }
}


  .caption {
    font-family: 'Kalam', cursive;
    text-align: center;
    margin-top: 12px;
    color: #333;
    font-size: 16px;
    opacity: 0.8;
  }

  /* Paper Style Background */
  .papper.fun-facts-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
    padding: 3rem 2.5rem;
    font-family: 'Kalam', cursive;
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-main);
    background-image: linear-gradient(#ffffff 1.6rem, #ccc 1.7rem);
    background-size: 100% 1.7rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
  }

  .text-content {
    max-width: 600px;
    width: 100%;
    font-size: 1.3rem;
  }

  .text-content p {
    color: var(--text-main);
    margin-bottom: 1.2rem;
  }

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

  .fun-facts-list li {
    margin: 0.5rem 0;
  }

  @media (min-width: 768px) {
    .about-content-wrapper {
      flex-direction: row;
      justify-content: center;
      align-items: flex-start;
      gap: 3rem;
    }

    .papper.fun-facts-note {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
    }

    .text-content {
        max-width: 700px;
        text-align: left;
    }
  }

  
  

  .timeline {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
  }
  .step {
    text-align: center;
    max-width: 200px;
  }
  .step h4 {
    color: var(--accent);
    font-size: 1.2rem;
  }
  .step p {
    font-size: 0.95rem;
    color: var(--text-soft);
  }

  .skills-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .skills-card {
    background-color: var(--card-bg);
    border: 2px dashed var(--accent);
    padding: 2rem;
    border-radius: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .skills-card:hover {
    transform: scale(1.01);
  }
  
  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .badge {
    background: var(--section-bg);
    border: 2px dashed var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    color: var(--text-soft);
    transition: transform 0.2s ease;
  }
  
  .badge:hover {
    transform: scale(1.05);
    background-color: var(--accent);
    color: #fff;
  }
  
  .section-subtitle {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
  }

  
  

/* project section */

.projects-wrapper {
    position: relative;
    background-color: #cce0c1;; 
    overflow: hidden;
  }
  
  .wave {
    width: 100%;
    line-height: 0;
  }
  
  .wave svg {
    display: block;
    width: 100%;
    height: 100px;
  }
  
  .projects-section {
    background-color: transparent;
    padding: 4rem 1rem;
    color: var(--btn-text);
  }
  
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* project card */

.project-card {
    --font-color: var(--text-main);
    --font-color-sub: var(--icon-color);
    --bg-color: var(--bg);
    --main-color: var(--accent);
    --main-focus: var(--accent-hover);
  
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 6px 6px var(--main-focus);
  }
  
  .project-card hr {
    border: none;
    border-top: 1px solid var(--main-color);
    margin: 12px 0;
  }
  
  .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* Content */
  .project-card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Title */
  .project-card .content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--font-color);
  }
  
  /* Description */
  .project-card .content p {
    font-size: 0.95rem;
    color: var(--font-color-sub);
    line-height: 1.5;
  }
  
  /* Tech badges still follow your previous styles, no need to change unless you want more rounded shadows or different glow */
  

/* tools and technologies used */

.tech-used {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tech-used li {
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: 600;
  }
/* tech used badges */

.tech-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.85rem; /* Slightly larger */
    font-weight: 700; /* More bold for better legibility */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main); /* Changed from --accent for better contrast */
    background-color: #f4f7f0; /* Softer contrast against text */
    border: 2px solid rgba(169, 185, 138, 0.3);
    border-radius: 40px;
    padding: 10px 18px;
    margin: 6px;
    transition: all 0.3s ease;
    box-shadow: 
      -2px -2px 6px #fff, 
      2px 2px 8px rgba(169, 185, 138, 0.3);
    cursor: default;
  }
  
  .tech-badge:hover {
    background-color: #eaf1e0;
    color: var(--accent-hover);
    box-shadow: 
      -1px -1px 4px #ffffff, 
      1px 1px 6px rgba(148, 168, 117, 0.4);
  }
  
  
  .tech-badge:active {
    box-shadow: none;
  }
  

/* live site button */

.animated-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 28px;
  border: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
  border-radius: 50px;
  color: var(--accent);
  background-color: transparent;
  box-shadow: 0 0 0 2px var(--accent);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
}

.animated-button svg {
  position: absolute;
  width: 18px;
  fill: var(--accent);
  transition: all 0.4s ease;
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  background-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.animated-button:hover {
  box-shadow: 0 0 0 10px transparent;
  border-radius: 14px;
  background-color: var(--btn-text);
  color: var(--accent);
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover .circle {
  width: 200px;
  height: 200px;
  opacity: 0.1;
}

.animated-button:active {
  scale: 0.96;
  box-shadow: 0 0 0 3px var(--accent-hover);
}


/* project preview slideshow */

.noteApp-slideshow {
    width: 100%;
    height: 220px; /* Adjust this height based on your images */
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8; /* Optional: fallback color */
  }
  
  .noteApp-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
  }

  @media (max-width: 768px) {
    .noteApp-slideshow {
      height: 180px;
    }
  }
  
/* Connect With Me Section */
.contact {
    text-align: center;
    padding-bottom: 4rem;
    max-width: 800px;
    margin: 0 auto;
}
.contact p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.contact a {
    margin: 0 .75rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: color .3s ease, transform 0.2s ease;
    display: inline-block;
}
.contact a:hover {
    color: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- Back to Top Button --- */
#backToTopBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent); 
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px rgba(169, 185, 138, 0.3); 
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    position: fixed; 
    bottom: 30px;
    right: 30px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.5s ease;
}

#backToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn .svgIcon {
    width: 12px;
    transition-duration: 0.3s;
}

#backToTopBtn .svgIcon path {
    fill: var(--btn-text); 
}

#backToTopBtn:hover {
    width: 140px;
    border-radius: 50px;
    transition-duration: 0.3s;
    background-color: var(--accent-hover); 
    align-items: center;
}

#backToTopBtn:hover .svgIcon {
    transition-duration: 0.3s;
    transform: translateY(-200%); 
}

#backToTopBtn::before {
    position: absolute;
    bottom: -20px; 
    content: "Back to Top";
    color: var(--btn-text); 
    font-size: 0px;
}

#backToTopBtn:hover::before {
    font-size: 13px;
    opacity: 1;
    bottom: unset;
    transition-duration: 0.3s;
}
/* --- End of Back to Top Button Styles --- */

footer {
    background-color: var(--nav-bg);
    color: var(--text-main);
    text-align: center;
    padding: 1.5rem 1rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 100px; 
}
footer p { margin-bottom: 0 }

.footer-cat {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 70px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    z-index: 20;
    display: block;
}
.footer-cat:hover { transform: scale(1.05) rotate(-3deg); }

#canFood {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(180%);
  width: 60px; 
  cursor: grab;
  z-index: 50;
  user-select: none;
  transition: opacity 0.3s, left 0.3s, top 0.3s;
}

@media (min-width: 768px) {
  #canFood {
    position: absolute;
    bottom: 0;
    right: 20px;
    left: auto;
    transform: none;
    width: 72px; 
  }
}

.heart-pop {
    position: absolute;
    bottom: 60px;
    left: 50px;
    width: 25px;
    height: 25px;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    z-index: 25;
}
@keyframes popOutHeart {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0); }
    20% { opacity: 1; transform: translate(-50%, -15px) scale(1.2); }
    80% { opacity: 1; transform: translate(-50%, -30px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -45px) scale(0.5); }
}
.heart-pop.animate { animation: popOutHeart 0.8s ease-out forwards; }

@media (min-width: 769px) {
    .nav-toggle { display: none; }
    .nav-links {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-left: none;
        gap: 2rem;
        align-items: center;
    }
    .hero { padding: 5rem 2rem; }
    .hero-container { flex-direction: row; gap: 4rem; align-items: center; }
    .hero-text { flex: 2; max-width: 600px; text-align: left; margin: 0; }
    .hero-text h1 { font-size: 3rem; }
    .subtitle { font-size: 1.1rem; margin: 0 0 2rem 0; }
    .hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
    .hero-image img { width: 100%; max-width: 400px; }
    .about { padding: 5rem 2rem; text-align: left; }
    .about-content-wrapper { flex-direction: row; justify-content: center; align-items: center; gap: 4rem; }
    .about img { flex-shrink: 0; width: auto; max-width: 300px; height: auto; margin: 0; display: block; }
    .about .text-content { flex: 1; text-align: left; max-width: 600px; }
    .about .text-content p { margin: 0; text-align: left; }
    .footer-cat { width: 90px; left: 20px; }
    .heart-pop { bottom: 80px; left: 70px; width: 30px; height: 30px; }
}

#flower-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* behind the image */
  }
  
  .flower {
    position: absolute;
    opacity: 0.9;
    animation: confettiBurst 5.5s ease-out forwards;
    pointer-events: none;
    z-index: 0;
    border-radius: 0; 
  }  
  
  @keyframes confettiBurst {
    0% {
      transform: translate(0, 0) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translate(var(--x), var(--y)) rotate(var(--r));
      opacity: 0;
    }
  }
  

/* Dark theme  */
html[data-theme="dark"] {
    --bg: #1e1e1e;
    --section-bg: #2a2a2a;
    --text-main: #f2f2f2; 
    --accent: #a5c882;
    --accent-hover: #8cab6d;
    --nav-bg: #292929;
    --link: #f0f0f0;
    --btn-text: #ffffff;
    --icon-color: #ffffff;
    --about-me: #444;
}

html[data-theme="dark"] header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--nav-bg); /* or any visible dark bg */
    backdrop-filter: blur(10px); /* optional for transparency effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* subtle shadow */
  }
  
html[data-theme="dark"] header.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
      to right,
      var(--accent) 0%,
      var(--accent-hover) 50%,
      var(--accent) 100%
    );
    box-shadow:
      0 0 3px var(--accent),
      0 0 6px var(--accent-hover),
      0 0 8px var(--accent);
}

html[data-theme="dark"] .about {
    background-color: var(--section-bg);
    padding-top: 4rem; 
}

/* html[data-theme="dark"] .papper.fun-facts-note {
  background-image: linear-gradient(#2a2a2a 1.6rem, #444 1.7rem);
  background-size: 100% 1.7rem;
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
} */

/* html[data-theme="dark"] .papper.fun-facts-note .text-content p,
html[data-theme="dark"] .papper.fun-facts-note .fun-facts-list li {
  color: var(--text-main);
} */

html[data-theme="dark"] .papper.fun-facts-note,
html[data-theme="dark"] .papper.fun-facts-note .text-content,
html[data-theme="dark"] .papper.fun-facts-note .text-content p,
html[data-theme="dark"] .papper.fun-facts-note .fun-facts-list li {
  color: #3f3f3f !important; 
}


html[data-theme="dark"] .tech-badge {
    color: var(--text-main);
    background-color: #333c2e;
    border: 2px solid rgba(165, 200, 130, 0.2);
    box-shadow:
      -2px -2px 6px rgba(255, 255, 255, 0.05),
      2px 2px 8px rgba(165, 200, 130, 0.2);
  }
  
html[data-theme="dark"] .tech-badge:hover {
    background-color: #3b4533;
    color: var(--accent-hover);
    box-shadow:
      -1px -1px 4px rgba(255, 255, 255, 0.05),
      1px 1px 6px rgba(140, 171, 109, 0.3);
}

/* In dark mode, override background if needed */
html[data-theme="dark"] .contact-section-bg {
    background-color: var(--section-bg); 
}
  
html[data-theme="dark"] footer {
    background-color: var(--bg);
}
  

#themeToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #themeToggle img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
  }
  
  #themeToggle:hover img {
    transform: scale(1.1) rotate(20deg);
  }
  

/* Section Scroll Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Custom Cursor Base */
/* Interactive Cursor */
#custom-cursor {
    position: fixed;
    width: 60px;
    height: 60px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Red_Star.svg/768px-Red_Star.svg.png');

    /* background-image: url('assets/images/cuteMouseFollower.svg');  */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
  }
  