:root {
        --primary-bg: #0a0a0a;
        --secondary-bg: #ffffff;
        --primary-text: #ffffff;
        --secondary-text: #0a0a0a;
        --accent-1: #00cc77;
        --accent-2: #ff0055;
        --gradient: linear-gradient(45deg, var(--accent-1), var(--accent-2));
        --project-glow: rgba(255, 255, 255, 0.15);
        --navbar-height: 110px;
      }

      [data-theme="light"] {
        --primary-bg: #ffffff;
        --secondary-bg: #0a0a0a;
        --primary-text: #0a0a0a;
        --secondary-text: #ffffff;
        --project-glow: rgba(0, 0, 0, 0.1);
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        transition: all 0.3s ease;
      }

      body {
        background-color: var(--primary-bg);
        color: var(--primary-text);
        font-family: Montserrat, sans-serif;
        overflow-x: hidden;
      }
      
    @font-face {
    font-family: "Agustina-Signature";
    src: url('../font/Agustina-Signature.otf') format('opentype');
    font-display: swap;
}
      
      /* Loader */
      .loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary-bg);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1001;
        transition: opacity 0.5s;
      }
      
      .loader-content {
        text-align: center;
      }
      
      .loader-name {
        font-size: 3rem;
        color: var(--accent-1);
        margin-bottom: 2rem;
        opacity: 0;
        animation: nameReveal 2s forwards;
        font-family: "Agustina-Signature", cursive;
      }
      
      .loader-name::before,
      .loader-name::after {
        content: "<";
        color: var(--accent-2);
        animation: bracketBlink 1s infinite;
      }

      .loader-name::after {
        content: " />";
      }
      
      .loader-line {
        width: 200px;
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        margin: 20px auto;
        overflow: hidden;
      }
      
      .loader-progress {
        width: 0%;
        height: 100%;
        background: var(--gradient);
        animation: load 3.2s ease-in-out forwards;
      }

      @keyframes load {
        0% {
          width: 0%;
        }
        100% {
          width: 100%;
        }
      }

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

      @keyframes bracketBlink {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.3;
        }
      }
      
      /* Navbar - Liquid Glass Effect */
      .navbar {
        width: 100%;
        padding: 1rem 0;
        position: fixed;
        top: 0;
        z-index: 1000;
        height: var(--navbar-height);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        justify-content: center;
      }
      
      .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 80%;
        max-width: 1200px;
        background: rgba(42, 42, 42, 0.2);
        border-radius: 50px;
        padding: 0.5rem 1.5rem;
        /* Liquid glass effect */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        background-color: rgba(42, 42, 42, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.125);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      }
      
      [data-theme="light"] .nav-content {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      }
      
      /* Logo Styles */
      .logo-signature {
        font-family: "Agustina-Signature", cursive;
        font-size: 1.8rem;
        color: var(--accent-1);
        position: relative;
        text-decoration: none;
        transition: all 0.3s;
        padding-left: 5px;
        z-index: 1;
      }
      
      .logo-signature::before,
      .logo-signature::after {
        content: "<";
        color: var(--accent-2);
        font-family: "Poppins", sans-serif;
        position: absolute;
        animation: bracketBlink 1s infinite;
      }
      
      .logo-signature::after {
        content: "/>";
        right: -25px;
      }
      
      .logo-signature::before {
        left: -20px;
        top: -5px;
      }
      
      .nav-links {
        display: flex;
        gap: 1.5rem;
        transition: all 0.3s ease;
      }
      
      .nav-links a {
        color: var(--primary-text);
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
      }
      
      .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
      }
      
      .nav-links a:hover::before {
        left: 100%;
      }
      
      .nav-links a:hover {
        color: var(--accent-1);
        transform: translateY(-2px);
      }
      
      .navbar.hidden {
        transform: translateY(-100%);
      }
      
      .navbar.visible {
        transform: translateY(0);
      }
      
      .navbar.top {
        transform: none;
      }
      
      /* Navbar Controls */
      .navbar-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
      }
      
      /* Theme Toggle */
      .theme-toggle {
        background: transparent;
        border: 1px solid var(--accent-1);
        padding: 8px;
        border-radius: 50%;
        cursor: pointer;
        color: var(--primary-text);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        backdrop-filter: blur(10px);
      }
      
      .theme-toggle:hover {
        background: var(--accent-1);
        color: var(--secondary-text);
        transform: scale(1.1);
      }

      .hamburger {
        display: none;
        background: none;
        border: 1px solid var(--accent-1);
        color: var(--primary-text);
        font-size: 1.2rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s;
        backdrop-filter: blur(10px);
      }
      
      .hamburger:hover {
        background: var(--accent-1);
        color: var(--secondary-text);
      }
      
      @media (max-width: 768px) {
        .hamburger {
          display: flex;
        }
        
        .nav-content {
          width: 90%;
          padding: 0.5rem 1rem;
        }
        
        .logo-signature {
          font-size: 1.5rem;
        }
        
        .logo-signature::before {
          left: -15px;
        }
        
        .logo-signature::after {
          right: -20px;
        }
        
        .nav-links {
          position: absolute;
          top: 100%;
          left: 50%;
          transform: translateX(-50%);
          width: 80%;
          background: rgba(42, 42, 42, 0.95);
          backdrop-filter: blur(20px) saturate(180%);
          -webkit-backdrop-filter: blur(20px) saturate(180%);
          flex-direction: column;
          padding: 1rem;
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease-out;
          border-radius: 15px;
          margin-top: 0.5rem;
          border: 1px solid rgba(255, 255, 255, 0.125);
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
          overflow: hidden;
          border: none;
          box-shadow: none;
          background: transparent;
        }
        
        .nav-links.active {
          max-height: 500px;
            border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(42, 42, 42, 0.95);
        }
        [data-theme="light"] .nav-links.active {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}
        .nav-links a {
          padding: 1rem;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          text-align: center;
        }
        
        .nav-links a:last-child {
          border-bottom: none;
        }
      }
      
      @media (min-width: 769px) {
        .hamburger {
          display: none !important;
        }
      }
      
      @media (max-width: 480px) {
        .nav-content {
          width: 95%;
        }
        
        .logo-signature {
          font-size: 1.3rem;
        }
        
        .logo-signature::before {
          left: -12px;
        }
        
        .logo-signature::after {
          right: -15px;
        }
      }
      
      /* Sections */
      section {
        scroll-margin-top: var(--navbar-height);
        padding-top: calc(var(--navbar-height) + 2rem);
        padding-bottom: 5rem;
        padding-left: 2rem;
        padding-right: 2rem;
        min-height: 100vh;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
      }

      section.active {
        opacity: 1;
        transform: translateY(0);
      }

      @media (max-width: 768px) {
        section {
          scroll-margin-top: var(--navbar-height);
          padding-top: calc(var(--navbar-height) + 1rem);
          padding-bottom: 3rem;
          padding-left: 1rem;
          padding-right: 1rem;
          min-height: auto;
        }
        
        #home.hero {
          min-height: 100vh;
        }
      }
      
      /* Hero Section */
      .hero {
        min-height: 100vh;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 40px;
        margin-top: 0;
      }

      .hero-content {
        flex: 1;
        min-width: 300px;
        max-width: 600px;
        text-align: left;
      }

      .section-animation {
        flex: 1;
        min-width: 300px;
        max-width: 500px;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .section-animation dotlottie-player {
        width: 100%;
        height: auto;
        max-width: 100%;
      }

      .name {
        font-size: 4rem;
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        /* animation: textGlow 2s ease-in-out infinite; */
      }

      .title {
        font-size: 1.5rem;
        margin-top: 1rem;
        color: var(--accent-1);
      }

      .bio-text {
        max-width: 600px;
        margin: 2rem 0;
        font-size: 1.1rem;
        line-height: 1.8;
      }
      
      @media (max-width: 768px) {
        .hero {
          padding-top: calc(var(--navbar-height) + 1rem);
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: center;
          padding-left: 1rem;
          padding-right: 1rem;
          gap: 20px;
        }
        
        .hero-content {
          padding-top: 0;
          margin-top: 0;
        }
        
        .section-animation {
          max-width: 100%;
          margin-top: 1rem;
        }
        
        .name {
          font-size: 3rem;
        }
        
        .title {
          font-size: 1.3rem;
        }
      }
      
      @media (max-width: 480px) {
        .hero {
          padding-top: calc(var(--navbar-height) + 0.5rem);
        }
        
        .name {
          font-size: 2.5rem;
          line-height: 1.2;
        }
        
        .title {
          font-size: 1.2rem;
          margin-top: 0.5rem;
        }
        
        .bio-text {
          font-size: 1rem;
          margin-top: 1.5rem;
        }
      }
      
      /* Section Titles */
      .section-title {
        text-align: center;
        margin-bottom: 3rem;
        font-size: 2.5rem;
      }
      
      @media (max-width: 768px) {
        .section-title {
          font-size: 2rem;
          margin-bottom: 2rem;
        }
      }
      
      /* Skills */
      .skill-container {
        max-width: 800px;
        margin: 0 auto;
      }

      .skill-bar {
        height: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin: 1.5rem 0;
        overflow: hidden;
      }

      .skill-progress {
        height: 100%;
        background: var(--gradient);
        width: 0;
        transition: width 3s ease-out;
      }
      [data-theme="light"] .skill-bar {
  border: 1px solid #d1d1d1; /* subtle gray border for visibility */
  background: #ececec;        /* optional: light background for better contrast */
}
      
      /* Education */
      .timeline {
        position: relative;
        max-width: 800px;
        margin: 4rem auto;
      }

      .timeline-item {
        padding: 2rem;
        background: rgba(255, 255, 255, 0.05);
        margin: 2rem 0;
        border-radius: 15px;
        border-left: 4px solid var(--accent-1);
      }
      
      /* Services */
      .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
      }

      .service-card {
        background: rgba(255, 255, 255, 0.05);
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
        transition: transform 0.3s;
      }

      .service-card:hover {
        transform: translateY(-10px);
      }

      .service-icon {
        font-size: 2.5rem;
        color: var(--accent-1);
        margin-bottom: 1rem;
      }
      
      @media (max-width: 768px) {
        .services-grid {
          grid-template-columns: 1fr;
          padding: 0;
        }
        
        .service-card {
          padding: 1.5rem;
        }
      }
      
      /* Projects */
      .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
      }

      .project-card {
        background: rgba(255, 255, 255, 0.05);
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
        opacity: 0;
        transform: translateY(30px);
        box-shadow: 0 0 15px var(--project-glow), 0 0 30px var(--project-glow);
        animation: constant-glow 3s ease-in-out infinite;
      }
      
      .project-card.active {
        opacity: 1;
        transform: translateY(0);
      }
      
      .project-card:hover {
        transform: translateY(-10px) scale(1.02);
      }

      .project-icon {
        font-size: 2.5rem;
        color: var(--accent-1);
        margin-bottom: 1rem;
        transition: transform 0.3s;
      }

      .project-icon i {
        transition: transform 0.3s;
      }

      .project-card:hover .project-icon i {
        transform: rotate(-15deg) scale(1.2);
      }

      .project-link {
        display: inline-block;
        margin-top: 1rem;
        color: var(--accent-1);
        text-decoration: none;
        position: relative;
      }

      .project-link::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background: var(--accent-1);
        transition: width 0.3s;
      }

      .project-link:hover::after {
        width: 100%;
      }
      
      @media (max-width: 768px) {
        .projects-grid {
          grid-template-columns: 1fr;
          padding: 0;
        }
        
        .project-card {
          padding: 1.5rem;
        }
      }
      
      /* Contact */
      .contact-container {
        max-width: 800px;
        margin: 0 auto;
      }

      .contact-card {
        background: rgba(255, 255, 255, 0.05);
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
      }
      
      .contact-card a {
        text-decoration: none;
        position: relative;
        color: var(--accent-1);
        display: inline-block;
        margin: 0.5rem 0;
      }
      .contact-card a::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--accent-1);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease-in-out;
      }
      .contact-card a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
      }

      .cv-viewer {
        background: var(--gradient);
        padding: 1rem 2rem;
        border-radius: 30px;
        text-decoration: none;
        color: var(--primary-text);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        transition: transform 0.3s;
      }

      .cv-viewer:hover {
        transform: scale(1.05);
      }
      
      /* Particles */
      #particles-js {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: -1;
      }

      /* Scroll to Top Button */
      #scrollToTopBtn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 999;
        background: var(--gradient);
        color: white;
        border: none;
        outline: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: none;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: opacity 0.4s, transform 0.3s;
      }

      #scrollToTopBtn:hover {
        transform: scale(1.1);
      }
      
      /* Certificate Modal Styles */
      .certificate-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        cursor: pointer;
      }

      .certificate-modal.active {
        display: flex;
      }

      .certificate-image {
        max-width: 90%;
        max-height: 90vh;
        border-radius: 10px;
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
      }

      .close-modal {
        position: absolute;
        top: 20px;
        right: 30px;
        color: var(--accent-1);
        font-size: 3rem;
        cursor: pointer;
        transition: transform 0.3s;
      }

      .close-modal:hover {
        transform: rotate(90deg);
      }

      /* Add cursor pointer to certificate item */
      .timeline-item[data-certificate] {
        cursor: pointer;
        transition: transform 0.3s;
      }

      .timeline-item[data-certificate]:hover {
        transform: translateX(10px);
      }
      
      /* Animations */
      @keyframes constant-glow {
        0%,
        100% {
          box-shadow: 0 0 15px var(--project-glow), 0 0 30px var(--project-glow);
        }
        50% {
          box-shadow: 0 0 25px var(--project-glow), 0 0 45px var(--project-glow),
            0 0 60px var(--project-glow);
        }
      }
      
      @keyframes textGlow {
        0%, 100% {
          text-shadow: 0 0 10px var(--accent-1), 0 0 20px var(--accent-1);
        }
        50% {
          text-shadow: 0 0 20px var(--accent-1), 0 0 30px var(--accent-1), 0 0 40px var(--accent-1);
        }
      }
      
      /* Footer */
      .footer {
        background: rgba(42, 42, 42, 0.95);
        padding: 2rem;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        padding-bottom: 40px;
        overflow: visible;
      }

      .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
        display: flex;
  flex-direction: column;
  align-items: center;
      }
      
      .footer::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(
            to top,
            var(--accent-1) 10%,
            rgb(3, 242, 114) 90%
        );
        opacity: 0.50;
        filter: blur(45px);
        z-index: 0;
        pointer-events: none;
        mix-blend-mode: screen;
      }

      [data-theme="light"] .footer::after {
          background: linear-gradient(
              to top,
              rgba(3, 242, 114) 10%,
              rgba(3, 242, 114) 90%
          );
          mix-blend-mode: multiply;
      }
      .social-links {
        margin: 1.5rem ;
      }
      .social-links a {
        color: var(--primary-text);
        margin: 0 1rem;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        display: inline-block;
      }

      .social-links a:hover {
        color: var(--accent-1);
        transform: translateY(-5px) scale(1.2);
        filter: drop-shadow(0 5px 10px rgba(0, 255, 136, 0.3));
      }

      [data-theme="light"] .footer {
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
      }
      
      /* Scroll Progress */
      .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        background: var(--gradient);
        z-index: 9999;
        transition: width 0.3s ease;
      }