  /**
  * Template Name: eStartup
  * Template URL: https://bootstrapmade.com/estartup-bootstrap-landing-page-template/
  * Updated: Aug 07 2024 with Bootstrap v5.3.3
  * Author: BootstrapMade.com
  * License: https://bootstrapmade.com/license/
  */

  /*--------------------------------------------------------------
  # Font & Color Variables
  --------------------------------------------------------------*/
  :root {
    --default-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font: "Playfair Display", "Montserrat", Georgia, serif;
    --nav-font: "Poppins", -apple-system, system-ui, sans-serif;
    --accent-font: "Montserrat", sans-serif;
  }

  /* Global Colors */
  :root { 
    --background-color: #ffffff;
    --default-color: #1a202c;
    --heading-color: #0f172a;
    --accent-color: #71c55d;
    --accent-hover: #5da94b;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  /* Dark Mode Colors */
  body.dark-mode {
    --background-color: #0f172a;
    --default-color: #cbd5e1;
    --heading-color: #f1f5f9;
    --accent-color: #71c55d;
    --accent-hover: #5da94b;
    --surface-color: #1e293b;
    --contrast-color: #ffffff;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  }

  /* Nav Menu Colors */
  :root {
    --nav-color: #212529;
    --nav-hover-color: #71c55d;
    --nav-mobile-background-color: #1e1e1e; /* Fixed for consistency */
    --nav-dropdown-background-color: #ffffff;
    --nav-dropdown-color: #212529;
    --nav-dropdown-hover-color: #71c55d;
  }

  body.dark-mode {
    --nav-color: #b0e0e6;
    --nav-dropdown-background-color: #1e1e1e;
    --nav-dropdown-color: #b0e0e6;
  }

  /* Smooth scroll */
  :root {
    scroll-behavior: smooth;
  }

  /* Selection Colors */
  ::selection {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  ::-moz-selection {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  /*--------------------------------------------------------------
  # General Styling & Shared Classes
  --------------------------------------------------------------*/
  body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    transition: background-color 0.4s ease, color 0.4s ease;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body:not(.dark-mode) {
    background-color: #ffffff !important;
  }

  a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  a:hover {
    color: var(--accent-hover);
    text-decoration: none;
  }

  h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }
  h2 { 
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
  }
  h3 { 
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
  }
  h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
  }
  h5 { 
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
  }
  h6 { 
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
  }

  p {
    margin-bottom: 1em;
    line-height: 1.8;
  }

  /* Ensure text visibility in dark mode */
  body.dark-mode,
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode h3,
  body.dark-mode h4,
  body.dark-mode p,
  body.dark-mode a,
  body.dark-mode span,
  body.dark-mode li {
    color: var(--default-color) !important;
  }

  /* Box text color in dark mode */
  body.dark-mode .icon-box,
  body.dark-mode .service-item,
  body.dark-mode .feature-box,
  body.dark-mode .about .content,
  body.dark-mode .certificate-item,
  body.dark-mode .social-card,
  body.dark-mode .about-content,
  body.dark-mode .about-header,
  body.dark-mode .about-text,
  body.dark-mode .about-skills,
  body.dark-mode .about-cta {
    color: #e0ffff !important;
  }

  body.dark-mode .icon-box h4,
  body.dark-mode .service-item h3,
  body.dark-mode .feature-box h3,
  body.dark-mode .about .content h3,
  body.dark-mode .certificate-item h3,
  body.dark-mode .social-card span,
  body.dark-mode .icon-box p,
  body.dark-mode .service-item p,
  body.dark-mode .feature-box p,
  body.dark-mode .about .content p,
  body.dark-mode .certificate-item p,
  body.dark-mode .social-card p,
  body.dark-mode .about .content li,
  body.dark-mode .about-title,
  body.dark-mode .about-subtitle,
  body.dark-mode .about-description,
  body.dark-mode .skill-box h4,
  body.dark-mode .skill-box p {
    color: #e0ffff !important;
  }

  /* Keyframe Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
  }

  @keyframes popup {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1.1); opacity: 1; }
  }

  @keyframes scaleFadeIn {
    0% { opacity: 0; transform: scale(0.9) translateY(-20px); }
    80% { opacity: 1; transform: scale(1.05) translateY(5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
  }

  @keyframes scaleFadeOut {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.9) translateY(-20px); }
  }

  @keyframes slideInFromLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  @keyframes slideInFromRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
  }

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

  @keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color); }
    50% { box-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color); }
  }

  @keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  @keyframes waveIn {
    0% { opacity: 0; transform: translateY(-20px) rotate(-5deg); }
    60% { opacity: 1; transform: translateY(5px) rotate(5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0deg); }
  }

  @keyframes pulseSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
  }

  @keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(113, 197, 93, 0.3); }
    50% { box-shadow: 0 0 15px rgba(113, 197, 93, 0.7); }
    100% { box-shadow: 0 0 5px rgba(113, 197, 93, 0.3); }
  }

  @keyframes circlePulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.2; }
  }

  @keyframes slideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }

  @keyframes slideInFromTop {
    0% { 
      opacity: 0; 
      transform: translateY(-100%);
    }
    100% { 
      opacity: 1; 
      transform: translateY(0);
    }
  }

  @keyframes slideOutToTop {
    0% { 
      opacity: 1; 
      transform: translateY(0);
    }
    100% { 
      opacity: 0; 
      transform: translateY(-100%);
    }
  }

  /* PHP Email Form Messages */
  .php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
  }

  .php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
  }

  .php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
  }

  .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--accent-color);
    border-top-color: var(--surface-color);
    animation: php-email-form-loading 1s linear infinite;
  }

  @keyframes php-email-form-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /*--------------------------------------------------------------
  # Global Header
  --------------------------------------------------------------*/
  .header {
    color: var(--default-color);
    background-color: var(--surface-color);
    padding: 20px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Ensure header visibility in mobile */
  @media (max-width: 1199px) {
    .header {
      background-color: var(--surface-color);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .header {
      background-color: #1e293b;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
      border-bottom: 1px solid rgba(113, 197, 93, 0.2);
    }

    body:not(.dark-mode) .header {
      background-color: #ffffff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Ensure logo is visible */
    .header .logo h1 {
      color: var(--heading-color);
    }

    body.dark-mode .header .logo h1 #normal-name {
      color: #e2e8f0;
    }

    body.dark-mode .header .logo h1 #highlight-name {
      color: #71c55d;
    }

    body:not(.dark-mode) .header .logo h1 #normal-name {
      color: #1e293b;
    }

    body:not(.dark-mode) .header .logo h1 #highlight-name {
      color: #71c55d;
    }
  }

  .header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
  }

  body.dark-mode .header.scrolled {
    background-color: rgba(30, 41, 59, 0.95);
  }

  .header .logo {
    line-height: 1;
  }

  .header .logo img {
    max-height: 32px;
    margin-right: 8px;
  }

  .header .logo h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
  }

  .header .logo h1:hover {
    transform: scale(1.02);
  }

  .header .logo h1 #highlight-name {
    color: var(--accent-color);
  }

  body.dark-mode .header .logo h1 #highlight-name {
    color: #00ffff;
  }

  .header .logo h1 #normal-name {
    color: var(--default-color);
  }

  .scrolled .header {
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.98);
  }

  body.dark-mode .scrolled .header {
    background-color: rgba(30, 41, 59, 0.98);
  }

  /*--------------------------------------------------------------
  # Navigation Menu
  --------------------------------------------------------------*/
  @media (min-width: 1200px) {
    .navmenu {
      padding: 0;
    }

    .navmenu ul {
      margin: 0;
      padding: 0;
      display: flex;
      list-style: none;
      align-items: center;
    }

    .navmenu li {
      position: relative;
    }

    .navmenu a,
    .navmenu a:focus {
      color: var(--nav-color);
      padding: 18px 15px;
      font-size: 15px;
      font-family: var(--nav-font);
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: space-between;
      white-space: nowrap;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .navmenu a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 3px;
      bottom: 10px;
      left: 15px;
      background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
      transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 2px;
    }

    .navmenu a:hover::after,
    .navmenu .active::after {
      width: calc(100% - 30px);
    }

    .navmenu a i,
    .navmenu a:focus i {
      font-size: 12px;
      line-height: 0;
      margin-left: 5px;
      transition: 0.3s;
    }

    .navmenu li:last-child a {
      padding-right: 0;
    }

    .navmenu li:hover>a,
    .navmenu .active,
    .navmenu .active:focus {
      color: var(--nav-hover-color);
      transform: scale(1.05);
    }

    .navmenu .dropdown ul {
      margin: 0;
      padding: 10px 0;
      background: var(--nav-dropdown-background-color);
      display: block;
      position: absolute;
      visibility: hidden;
      left: 14px;
      top: 130%;
      opacity: 0;
      transition: 0.3s;
      border-radius: 4px;
      z-index: 99;
      box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .navmenu .dropdown ul li {
      min-width: 200px;
    }

    .navmenu .dropdown ul a {
      padding: 10px 20px;
      font-size: 15px;
      text-transform: none;
      color: var(--nav-dropdown-color);
    }

    .navmenu .dropdown ul a i {
      font-size: 12px;
    }

    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul li:hover>a {
      color: var(--nav-dropdown-hover-color);
    }

    .navmenu .dropdown:hover>ul {
      opacity: 1;
      top: 100%;
      visibility: visible;
    }

    .navmenu .dropdown .dropdown ul {
      top: 0;
      left: -90%;
      visibility: hidden;
    }

    .navmenu .dropdown .dropdown:hover>ul {
      opacity: 1;
      top: 0;
      left: -100%;
      visibility: visible;
    }
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE NAVIGATION - PROFESSIONAL MODERN DESIGN
     Complete redesign with card-based layout and premium effects
     ═══════════════════════════════════════════════════════════ */
  @media (max-width: 1199px) {
    
    /* ─────────────────────────────────────────────────────────
       MOBILE TOGGLE BUTTON - Redesigned with modern styling
       ───────────────────────────────────────────────────────── */
    .mobile-nav-toggle {
      color: var(--heading-color);
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
      z-index: 10001;
      position: fixed;
      top: 22px;
      right: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      background: var(--surface-color);
      border-radius: 12px;
      border: 2px solid transparent;
      transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-toggle:hover {
      transform: scale(1.08) rotate(5deg);
      background: var(--accent-color);
      color: white;
      border-color: var(--accent-color);
      box-shadow: 0 8px 24px rgba(113, 197, 93, 0.4);
    }

    .mobile-nav-toggle.active {
      background: var(--accent-color);
      color: white;
      border-color: var(--accent-color);
      transform: rotate(90deg) scale(1.05);
      box-shadow: 0 8px 28px rgba(113, 197, 93, 0.5);
    }

    /* Dark mode toggle button */
    body.dark-mode .mobile-nav-toggle {
      background: #1e293b;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    body.dark-mode .mobile-nav-toggle:hover,
    body.dark-mode .mobile-nav-toggle.active {
      background: var(--accent-color);
      box-shadow: 0 8px 28px rgba(113, 197, 93, 0.6);
    }

    /* ─────────────────────────────────────────────────────────
       MENU CONTAINER - Modern glassmorphism panel
       ───────────────────────────────────────────────────────── */
    .navmenu {
      padding: 0;
      z-index: 9998;
    }

    .navmenu ul {
      display: none;
      list-style: none;
      position: fixed;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 480px;
      height: auto;
      max-height: 90vh;
      margin: 80px 0;
      padding: 40px 25px;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 24px;
      overflow-y: auto;
      z-index: 9999;
      box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(113, 197, 93, 0.2);
    }

    /* Dark mode menu panel */
    body.dark-mode .navmenu ul {
      background: rgba(30, 41, 59, 0.95);
      box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(113, 197, 93, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(113, 197, 93, 0.3);
    }

    /* ─────────────────────────────────────────────────────────
       MENU ACTIVATION - Modern slide animation
       ───────────────────────────────────────────────────────── */
    .navmenu ul.active {
      display: flex !important;
      flex-direction: column;
      opacity: 1;
      visibility: visible;
      animation: menuSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    }

    @keyframes menuSlideIn {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
      }
    }

    .navmenu ul.closing {
      animation: menuSlideOut 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    }

    @keyframes menuSlideOut {
      from {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
      }
      to {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.95);
      }
    }

    /* ─────────────────────────────────────────────────────────
       MENU ITEMS - Modern card-based design
       ───────────────────────────────────────────────────────── */
    .navmenu li {
      opacity: 0;
      transform: translateY(15px);
      transition: all 0.3s ease;
      width: 100%;
      margin-bottom: 12px;
    }

    .navmenu ul.active li {
      opacity: 1;
      transform: translateY(0);
      animation: itemFadeInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes itemFadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .navmenu ul.active li:nth-child(1) { animation-delay: 0.1s; }
    .navmenu ul.active li:nth-child(2) { animation-delay: 0.15s; }
    .navmenu ul.active li:nth-child(3) { animation-delay: 0.2s; }
    .navmenu ul.active li:nth-child(4) { animation-delay: 0.25s; }
    .navmenu ul.active li:nth-child(5) { animation-delay: 0.3s; }
    .navmenu ul.active li:nth-child(6) { animation-delay: 0.35s; }
    .navmenu ul.active li:nth-child(7) { animation-delay: 0.4s; }

    /* Menu link styling - Modern cards */
    .navmenu a,
    .navmenu a:focus {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 20px;
      font-family: var(--nav-font);
      font-size: 16px;
      font-weight: 600;
      color: var(--default-color);
      background: rgba(113, 197, 93, 0.04);
      border-radius: 16px;
      border: 2px solid transparent;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      position: relative;
      overflow: hidden;
    }

    .navmenu a::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(113, 197, 93, 0.1), transparent);
      transition: left 0.5s ease;
    }

    .navmenu a:hover::before {
      left: 100%;
    }

    /* Dark mode links */
    body.dark-mode .navmenu a,
    body.dark-mode .navmenu a:focus {
      color: #e2e8f0;
      background: rgba(113, 197, 93, 0.08);
    }

    /* Hover effects - Modern elevation */
    .navmenu a:hover {
      background: linear-gradient(135deg, rgba(113, 197, 93, 0.15), rgba(113, 197, 93, 0.08));
      border-color: var(--accent-color);
      color: var(--accent-color);
      transform: translateY(-3px) scale(1.02);
      box-shadow: 
        0 8px 20px rgba(113, 197, 93, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    body.dark-mode .navmenu a:hover {
      background: linear-gradient(135deg, rgba(113, 197, 93, 0.2), rgba(113, 197, 93, 0.12));
      box-shadow: 
        0 8px 20px rgba(113, 197, 93, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    /* Active state - Bold highlight */
    .navmenu .active,
    .navmenu .active:focus {
      background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
      color: white !important;
      border-color: var(--accent-hover);
      font-weight: 700;
      box-shadow: 
        0 6px 18px rgba(113, 197, 93, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
      transform: scale(1.02);
    }

    body.dark-mode .navmenu .active,
    body.dark-mode .navmenu .active:focus {
      box-shadow: 
        0 6px 18px rgba(113, 197, 93, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    /* Icon indicators */
    .navmenu a::after {
      content: '➜';
      font-size: 18px;
      opacity: 0;
      transform: translateX(-15px);
      transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      color: var(--accent-color);
    }

    .navmenu a:hover::after {
      opacity: 1;
      transform: translateX(0);
    }

    .navmenu .active::after {
      content: '●';
      opacity: 1;
      transform: translateX(0);
      color: white;
      font-size: 12px;
    }

    /* Theme toggle - Modern card style */
    .navmenu .theme-toggle-btn {
      margin: 25px auto 15px;
      width: 80px;
      height: 42px;
      background: rgba(113, 197, 93, 0.08);
      border: 2px solid var(--accent-color);
      border-radius: 24px;
      transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      box-shadow: 0 4px 12px rgba(113, 197, 93, 0.2);
      cursor: pointer;
    }

    .navmenu .theme-toggle-btn:hover {
      transform: scale(1.1) rotate(5deg);
      box-shadow: 0 6px 20px rgba(113, 197, 93, 0.4);
      background: var(--accent-color);
    }

    body.dark-mode .navmenu .theme-toggle-btn {
      background: rgba(113, 197, 93, 0.12);
      box-shadow: 0 4px 12px rgba(113, 197, 93, 0.3);
    }

    body.dark-mode .navmenu .theme-toggle-btn:hover {
      box-shadow: 0 6px 20px rgba(113, 197, 93, 0.5);
    }

    /* Mobile nav active state */
    .mobile-nav-active {
      overflow: hidden;
    }

    /* Backdrop - Modern blur overlay */
    .mobile-nav-active .navmenu {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(12px) saturate(1.2);
      -webkit-backdrop-filter: blur(12px) saturate(1.2);
      z-index: 9998;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding-top: 0;
      animation: backdropFadeIn 0.4s ease-out;
    }

    @keyframes backdropFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    body.dark-mode .mobile-nav-active .navmenu {
      background: rgba(0, 0, 0, 0.85);
    }

    .mobile-nav-active .navmenu>ul {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    /* Force visibility for all items */
    .mobile-nav-active .navmenu li {
      opacity: 1 !important;
      display: block !important;
    }

    .mobile-nav-active .navmenu a {
      visibility: visible !important;
      opacity: 1 !important;
    }

    /* ─────────────────────────────────────────────────────────
       RESPONSIVE ADJUSTMENTS - Optimized for all devices
       ───────────────────────────────────────────────────────── */
    @media (max-width: 768px) {
      .navmenu ul {
        width: 92%;
        max-width: 420px;
        margin: 70px 0;
        padding: 35px 20px;
      }

      .navmenu a {
        font-size: 15px;
        padding: 16px 18px;
      }

      .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        font-size: 24px;
      }
    }

    @media (max-width: 480px) {
      .navmenu ul {
        width: 94%;
        max-width: 380px;
        margin: 60px 0;
        padding: 30px 18px;
      }

      .navmenu a {
        font-size: 14px;
        padding: 14px 16px;
      }

      .navmenu .theme-toggle-btn {
        width: 70px;
        height: 38px;
      }

      .mobile-nav-toggle {
        width: 42px;
        height: 42px;
        font-size: 22px;
      }
    }

    /* Scrollbar styling */
    .navmenu ul::-webkit-scrollbar {
      width: 6px;
    }

    .navmenu ul::-webkit-scrollbar-track {
      background: transparent;
    }

    .navmenu ul::-webkit-scrollbar-thumb {
      background: var(--accent-color);
      border-radius: 10px;
    }

    .navmenu ul::-webkit-scrollbar-thumb:hover {
      background: var(--accent-hover);
    }
  }

  /*--------------------------------------------------------------
  # Global Footer
  --------------------------------------------------------------*/
  .footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    padding: 40px 0;
    position: relative;
  }

  .footer .copyright p {
    margin-bottom: 0;
  }

  .footer .social-links {
    margin-top: 20px;
  }

  .footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    margin: 0 5px;
    transition: 0.3s;
  }

  .footer .social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
  }

  .footer .credits {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
  }

  /*--------------------------------------------------------------
  # Preloader
  --------------------------------------------------------------*/
  #preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--background-color);
    transition: all 0.6s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #preloader:before {
    content: "";
    position: absolute;
    border: 6px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
    box-shadow: 0 4px 12px rgba(113, 197, 93, 0.3);
  }

  #preloader:after {
    content: "";
    position: absolute;
    border: 6px solid color-mix(in srgb, var(--accent-color), transparent 70%);
    border-top-color: transparent;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: animate-preloader 1.5s linear infinite reverse;
  }

  @keyframes animate-preloader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /*--------------------------------------------------------------
  # Scroll Top Button
  --------------------------------------------------------------*/
  .scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 20px;
    bottom: -15px;
    z-index: 99999;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
  }

  .scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
  }

  .scroll-top:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(113, 197, 93, 0.4);
    border-color: var(--accent-color);
  }

  .scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 20px;
  }

  /*--------------------------------------------------------------
  # Disable aos animation delay on mobile devices
  --------------------------------------------------------------*/
  @media screen and (max-width: 768px) {
    [data-aos-delay] {
      transition-delay: 0 !important;
    }
  }

  /*--------------------------------------------------------------
  # Global Page Titles & Breadcrumbs
  --------------------------------------------------------------*/
  .page-title {
    color: var(--default-color);
    background-color: var(--background-color);
    position: relative;
  }

  .page-title .heading {
    padding: 80px 0;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }

  .page-title .heading h1 {
    font-size: 38px;
    font-weight: 700;
  }

  .page-title nav {
    background-color: color-mix(in srgb, var(--default-color), transparent 95%);
    padding: 20px 0;
  }

  .page-title nav ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }

  .page-title nav ol li+li {
    padding-left: 10px;
  }

  .page-title nav ol li+li::before {
    content: "/";
    display: inline-block;
    padding-right: 10px;
    color: color-mix(in srgb, var(--default-color), transparent 70%);
  }

  /*--------------------------------------------------------------
  # Global Sections
  --------------------------------------------------------------*/
  section,
  .section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 60px 0;
    scroll-margin-top: 90px;
    overflow: clip;
    position: relative;
  }

  @media (max-width: 1199px) {
    section,
    .section {
      scroll-margin-top: 66px;
    }
  }

  /* Add spacing between sections */
  section + section {
    margin-top: 40px;
  }

  @media (max-width: 768px) {
    section + section {
      margin-top: 20px;
    }
  }

  /*--------------------------------------------------------------
  # Global Section Titles
  --------------------------------------------------------------*/
  .section-title {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
  }

  .section-title h2 {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 8px 20px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--contrast-color);
    display: inline-block;
    text-transform: uppercase;
    border-radius: 50px;
    font-family: var(--default-font);
    box-shadow: 0 4px 15px rgba(113, 197, 93, 0.3);
    position: relative;
    overflow: hidden;
  }

  .section-title h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
  }

  .section-title h2:hover::before {
    left: 100%;
  }

  .section-title h2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 197, 93, 0.4);
  }

  .section-title div,
  .section-title p {
    color: var(--heading-color);
    margin: 10px 0 0 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    font-family: var(--heading-font);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .section-title div .description-title {
    background: linear-gradient(135deg, var(--accent-color), #4CAF50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    position: relative;
  }

  .section-title div .description-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
  }

  /* Animation for section titles */
  .section-title {
    animation: fadeIn 0.8s ease-out;
  }

  /*--------------------------------------------------------------
  # Hero Section
  --------------------------------------------------------------*/
  .hero {
    width: 100%;
    position: relative;
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 50%, rgba(113, 197, 93, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(113, 197, 93, 0.08) 0%, transparent 50%);
    pointer-events: none;
  }

  body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  }

  body.dark-mode .hero::before {
    background: 
      radial-gradient(circle at 20% 50%, rgba(113, 197, 93, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(113, 197, 93, 0.1) 0%, transparent 50%);
  }

  .hero .container {
    position: relative;
    z-index: 3;
  }

  .hero h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    animation: slideInFromLeft 0.8s ease-out;
  }

  .hero h2 .accent {
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
  }

  .hero h3 {
    animation: slideInFromLeft 0.8s ease-out 0.2s backwards;
  }

  .hero p {
    animation: slideInFromLeft 0.8s ease-out 0.4s backwards;
  }

  .hero .btn-get-started {
    animation: slideInFromLeft 0.8s ease-out 0.6s backwards;
  }

  .hero-image {
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
  }

  .hero-image:hover {
    transform: scale(1.05) rotate(2deg);
  }

  .accent-gradient {
    background: linear-gradient(135deg, #71c55d 0%, #4CAF50 50%, #45a049 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(113, 197, 93, 0.5);
  }

  .hero-title {
    position: relative;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-family: var(--heading-font);
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    font-weight: 600;
    line-height: 1.6;
  }

  .hero-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-family: var(--default-font);
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    line-height: 1.8;
  }

  .btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    overflow: hidden;
  }

  .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    transition: left 0.3s ease;
    z-index: -1;
  }

  .btn-outline:hover {
    color: var(--contrast-color);
    border-color: var(--accent-color);
  }

  .btn-outline:hover::before {
    left: 0;
  }

  .hero p {
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    font-weight: 400;
    margin-bottom: 30px;
  }

  .hero .btn-get-started {
    color: var(--contrast-color);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(113, 197, 93, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
  }

  .hero .btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
  }

  .hero .btn-get-started:hover::before {
    left: 100%;
  }

  .hero .btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(113, 197, 93, 0.4);
  }

  .hero .btn-watch-video {
    font-size: 16px;
    transition: 0.5s;
    margin-left: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }

  .hero .btn-watch-video i {
    color: var(--accent-color);
    font-size: 32px;
    transition: 0.3s;
    line-height: 0;
    margin-right: 8px;
  }

  .hero .btn-watch-video:hover {
    color: var(--accent-color);
  }

  .hero .btn-watch-video:hover i {
    color: color-mix(in srgb, var(--accent-color), transparent 15%);
  }

  @media (max-width: 640px) {
    .hero h2 {
      font-size: 36px;
    }

    .hero .btn-get-started,
    .hero .btn-watch-video {
      font-size: 14px;
    }
  }

  .hero .icon-boxes {
    padding-bottom: 60px;
    z-index: 4;
  }

  .hero .icon-box {
    background: var(--surface-color);
    padding: 40px 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    z-index: 1;
    height: 100%;
    width: 100%;
    text-align: center;
    opacity: 1;
    border: 1px solid var(--border-color);
  }

  .hero .icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .hero .icon-box:hover::before {
    transform: scaleX(1);
  }

  .hero .icon-box .title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
  }

  .hero .icon-box .title a {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    transition: 0.3s;
  }

  .hero .icon-box .icon {
    margin-bottom: 20px;
    padding-top: 10px;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 48px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero .icon-box:hover {
    background-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
  }

  .hero .icon-box:hover .title a,
  .hero .icon-box:hover .icon {
    color: var(--contrast-color);
    -webkit-text-fill-color: var(--contrast-color);
  }

  /* 2-Column Grid Layout for Mobile */
  @media (max-width: 768px) {
    .hero .icon-boxes .row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .hero .icon-box {
      opacity: 0;
      display: block;
    }

    .hero .icon-box.visible {
      opacity: 1;
      animation: fadeIn 0.5s ease-out forwards;
    }

    .hero .icon-box:nth-child(1) { animation-delay: 0.1s; }
    .hero .icon-box:nth-child(2) { animation-delay: 0.2s; }
    .hero .icon-box:nth-child(3) { animation-delay: 0.3s; }
    .hero .icon-box:nth-child(4) { animation-delay: 0.4s; }

    .hero .icon-box:active {
      transform: scale(0.95);
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
  }

  @media (max-width: 576px) {
    .hero .icon-box {
      padding: 30px 15px;
    }

    .hero .icon-box .title {
      font-size: 18px;
    }

    .hero .icon-box .icon {
      font-size: 36px;
    }
  }

  /*--------------------------------------------------------------
  # About Section
  --------------------------------------------------------------*/
  .about {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%) !important;
    padding: 80px 0;
  }

  body.dark-mode .about {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
  }

  body:not(.dark-mode) .about {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%) !important;
  }

  .about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(113, 197, 93, 0.05) 0%, transparent 70%);
    z-index: -1;
  }

  body.dark-mode .about-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(113, 197, 93, 0.1) 0%, transparent 70%);
  }

  .about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .about-wrapper {
    display: flex;
    justify-content: center;
  }

  .about-content {
    max-width: 800px;
    text-align: center;
  }

  .about-box {
    position: relative;
    padding: 50px;
    background: var(--surface-color);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }

  .about-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  }

  body:not(.dark-mode) .about-box {
    background: var(--surface-color) !important;
  }

  body.dark-mode .about-box {
    background: var(--surface-color) !important;
  }

  .circle-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: circlePulse 6s infinite;
    z-index: -1;
  }

  body.dark-mode .circle-bg {
    background: #00ffff;
  }

  .about-header {
    margin-bottom: 30px;
  }

  .header-line {
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 15px;
    transition: width 0.3s ease;
  }

  .about-content:hover .header-line {
    width: 100px;
  }

  .about-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .about-title .highlight-name {
    color: var(--accent-color);
  }

  body.dark-mode .about-title .highlight-name {
    color: #00ffff;
  }

  .about-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    margin-bottom: 12px;
    font-weight: 600;
  }

  .about-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 500;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
  }

  .about-text {
    margin-bottom: 30px;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
  }

  body.dark-mode .about-text p {
    color: #e0ffff;
  }

  .about-text .highlight {
    color: var(--accent-color);
    font-weight: 600;
  }

  body.dark-mode .about-text .highlight {
    color: #00ffff;
  }

  .about-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
  }

  .skill-box {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
  }

  .skill-box::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;
  }

  .skill-box:hover::before {
    left: 100%;
  }

  body.dark-mode .skill-box {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .skill-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  body.dark-mode .skill-box:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
  }

  .skill-icon {
    animation: pulse 2s ease-in-out infinite;
  }

  .skill-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }

  .skill-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 10px;
    font-size: 14px;
  }

  body.dark-mode .skill-icon {
    background: #00ffff;
  }

  .skill-box p {
    font-size: 14px;
    color: #555;
    margin: 0;
  }

  body.dark-mode .skill-box p {
    color: #e0ffff;
  }

  .about-cta {
    text-align: center;
  }

  .cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--contrast-color);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(113, 197, 93, 0.3);
    border: 2px solid transparent;
  }

  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 197, 93, 0.4);
    border-color: var(--accent-color);
  }

  .cta-button .arrow-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
  }

  @media (max-width: 768px) {
    .about-box {
      padding: 20px;
    }

    .about-title {
      font-size: 28px;
    }

    .about-subtitle {
      font-size: 16px;
    }

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

    .about .circle-bg {
      width: 150px;
      height: 150px;
      top: -30px;
      right: -30px;
    }
  }

  @media (max-width: 576px) {
    .about-title {
      font-size: 24px;
    }

    .about-text p {
      font-size: 14px;
    }

    .cta-button {
      font-size: 14px;
      padding: 10px 20px;
    }
  }

  /*--------------------------------------------------------------
  # Services Section
  --------------------------------------------------------------*/
  /* Services Section - Modern Grid Design */
  .services {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5eb 100%);
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
  }

  body.dark-mode .services {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
  }

  .services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(44,131,214,0.03)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: cover;
    z-index: 0;
  }

  .container {
    position: relative;
    z-index: 1;
  }

  .section-title {
    text-align: center;
    margin-bottom: 3rem;
  }

  .section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #71c55d 0%, #2c83d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .title-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .description-title {
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
  }

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

  .section-title:hover .description-title::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .section-subtitle {
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
  }

  /* Services Grid Layout */
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1;
  }

  body.dark-mode .service-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
  }

  .icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #2c83d6);
    border-radius: inherit;
    z-index: -1;
    opacity: 1;
    transition: all 0.3s ease;
  }

  .service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
  }

  .service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
  }

  .service-card p {
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .service-link i {
    transition: transform 0.3s ease;
  }

  .card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    transition: all 0.4s ease;
  }

  /* Hover Effects */
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  }

  .service-card:hover .icon-bg {
    opacity: 0.9;
    transform: scale(1.05);
  }

  .service-card:hover h3::after {
    width: 60px;
  }

  .service-card:hover .service-link i {
    transform: translateX(4px);
  }

  .service-card:hover .card-border {
    border-color: var(--accent-color);
    transform: scale(0.98);
  }

  /* Tablet View */
  @media (min-width: 768px) {
    .services {
      padding: 5rem 2rem;
    }
    
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
      font-size: 3rem;
    }
    
    .section-subtitle {
      font-size: 1.1rem;
    max-width: 700px;
    }
  }

  /* Desktop View */
  @media (min-width: 992px) {
    .services {
      padding: 6rem;
    }
    
    .services-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }
    
    .service-card {
      padding: 2.5rem;
    }
  }

  /* Mobile Animations */
  @media (max-width: 767px) {
    .service-card {
      opacity: 0;
      transform: translateY(30px);
      animation: cardEntrance 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    @keyframes cardEntrance {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* Staggered animation delays */
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
    .service-card:nth-child(5) { animation-delay: 0.5s; }
    .service-card:nth-child(6) { animation-delay: 0.6s; }
  }
  /*--------------------------------------------------------------
  # Features Section
  --------------------------------------------------------------*/
  .features {
    background: #f1f6f1;
  }

  body.dark-mode .features {
    background: #1c1c1c;
  }

  .features .feature-box {
    background-color: var(--surface-color);
    padding: 24px 20px;
    box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    height: 100%;
  }

  .features .feature-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }

  .features .feature-box i {
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    color: var(--accent-color);
    line-height: 0;
    padding: 4px;
    margin-right: 10px;
    font-size: 24px;
    border-radius: 3px;
    transition: 0.3s;
  }

  .features .feature-box:hover i {
    background: var(--accent-color);
    color: var(--contrast-color);
  }

  /* Features Slideshow */
  .features .features-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  body.dark-mode .features .features-slideshow {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }

  .features .slideshow-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .features .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(1.05);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
  }

  .features .slide-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
  }

  /* Slideshow Indicators */
  .features .slideshow-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
  }

  .features .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
  }

  body.dark-mode .features .indicator {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
  }

  .features .indicator.active {
    background: var(--accent-color);
    transform: scale(1.3);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(113, 197, 93, 0.6);
  }

  .features .indicator:hover {
    background: var(--accent-color);
    transform: scale(1.2);
  }

  /* Responsive adjustments for features slideshow */
  @media (max-width: 1199px) {
    .features .features-slideshow {
      margin-bottom: 30px;
    }
    
    .features .slideshow-container {
      min-height: 350px;
    }
  }

  @media (max-width: 768px) {
    .features .slideshow-container {
      min-height: 300px;
    }
    
    .features .slide-image {
      padding: 15px;
    }
    
    .features .slideshow-indicators {
      bottom: 12px;
      gap: 8px;
    }
    
    .features .indicator {
      width: 10px;
      height: 10px;
    }
  }

  /*--------------------------------------------------------------
  # Certificates Section
  --------------------------------------------------------------*/
  .certificates {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
  }

  body.dark-mode .certificates {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }

  .certificates .certificate-toggle {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--contrast-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 32px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(113, 197, 93, 0.3);
    border: 2px solid transparent;
  }

  .certificates .certificate-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 197, 93, 0.4);
    border-color: var(--accent-color);
  }

  .certificates .certificate-container {
    position: relative;
  }

  .certificates .certificate-container.hidden {
    display: none;
  }

  .certificates .scrollable-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
  }

  .certificates .certificate-item {
    flex: 0 0 320px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    scroll-snap-align: start;
    height: 420px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .certificates .certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #71c55d, #4CAF50, #45a049);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
  }

  .certificates .certificate-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(113, 197, 93, 0.2), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
  }

  .certificates .certificate-item:hover::before {
    transform: scaleX(1);
  }

  .certificates .certificate-item:hover::after {
    opacity: 1;
    animation: shimmer 2s linear infinite;
  }

  body.dark-mode .certificates .certificate-item {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .certificates .certificate-item:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(113, 197, 93, 0.3), var(--shadow-xl);
  }

  body.dark-mode .certificates .certificate-item:hover {
    box-shadow: 0 20px 40px rgba(113, 197, 93, 0.4), var(--shadow-xl);
  }

  .certificates .certificate-item:active {
    transform: scale(1.05);
  }

  .certificates .certificate-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
  }

  .certificates .certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .certificates .certificate-item:hover .certificate-image img {
    transform: scale(1.08);
  }

  .certificates .certificate-item h3 {
    color: var(--heading-color);
    font-size: 19px;
    font-weight: 700;
    margin: 16px 0 10px;
    line-height: 1.4;
  }

  .certificates .certificate-item p {
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    line-height: 1.6;
  }

  body.dark-mode .certificates .certificate-item p {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
  }

  .certificates .scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-color);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .certificates .scroll-button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
  }

  .certificates .scroll-button:hover i {
    color: var(--contrast-color);
  }

  .certificates .scroll-button.left {
    left: -30px;
  }

  .certificates .scroll-button.right {
    right: -30px;
  }

  .certificates .scroll-button i {
    font-size: 20px;
    color: #333;
  }

  body.dark-mode .certificates .scroll-button {
    background: #333;
    border-color: #555;
  }

  body.dark-mode .certificates .scroll-button i {
    color: #e0ffff;
  }

  @media (max-width: 768px) {
    .certificates .certificate-item {
      flex: 0 0 250px;
      height: 350px;
    }

    .certificates .certificate-image {
      height: 150px;
    }

    .certificates .scroll-button {
      width: 30px;
      height: 30px;
    }

    .certificates .scroll-button.left {
      left: -15px;
    }

    .certificates .scroll-button.right {
      right: -15px;
    }

    .certificates .scroll-button i {
      font-size: 16px;
    }
  }

  /*--------------------------------------------------------------
  # Contact Section
  --------------------------------------------------------------*/
  .contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
  }

  .contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 30% 50%, rgba(113, 197, 93, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 70% 80%, rgba(113, 197, 93, 0.03) 0%, transparent 50%);
    pointer-events: none;
  }

  body.dark-mode .contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  }

  body.dark-mode .contact::before {
    background: 
      radial-gradient(circle at 30% 50%, rgba(113, 197, 93, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 70% 80%, rgba(113, 197, 93, 0.05) 0%, transparent 50%);
  }

  .contact .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
  }

  .contact .section-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #71c55d 0%, #2c83d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .contact .section-title p {
    font-size: 16px;
    color: #5a6a7e;
    margin: 0;
    animation: fadeIn 1s ease-out;
  }

  body.dark-mode .contact .section-title p {
    color: #e0ffff;
  }

  .contact .social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
  }

  .contact .social-card {
    text-decoration: none;
    animation: popIn 0.5s ease-out both;
  }

  .contact .social-card.email {
    grid-column: span 2;
  }

  .contact .social-card-inner {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    transform-style: preserve-3d;
    perspective: 1000px;
  }

  .contact .social-card-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(113, 197, 93, 0.1), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
  }

  .contact .social-card:hover .social-card-inner::before {
    width: 300px;
    height: 300px;
  }

  .contact .social-card:hover .social-card-inner {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(113, 197, 93, 0.3), var(--shadow-lg);
    border-color: var(--accent-color);
  }

  .contact .social-card-inner > * {
    position: relative;
    z-index: 1;
  }

  .contact .social-card.linkedin .social-card-inner {
    border-top: 3px solid #0077b5;
  }

  .contact .social-card.github .social-card-inner {
    border-top: 3px solid #333;
  }

  .contact .social-card.instagram .social-card-inner {
    border-top: 3px solid #e1306c;
  }

  .contact .social-card.youtube .social-card-inner {
    border-top: 3px solid #ff0000;
  }

  .contact .social-card.email .social-card-inner {
    border-top: 3px solid var(--accent-color);
  }

  .contact .social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
  }

  .contact .social-card:hover .social-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-md);
  }

  .contact .social-card.linkedin .social-icon {
    background: #0077b5;
  }

  .contact .social-card.github .social-icon {
    background: #333;
  }

  .contact .social-card.instagram .social-icon {
    background: linear-gradient(45deg, #405de6, #833ab4, #e1306c);
  }

  .contact .social-card.youtube .social-icon {
    background: #ff0000;
  }

  .contact .social-card.email .social-icon {
    background: var(--accent-color);
  }

  .contact .social-icon i {
    font-size: 20px;
    color: #333;
  }

  body.dark-mode .contact .social-icon i {
    color: var(--contrast-color);
  }

  .contact .social-card span {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
  }

  body.dark-mode .contact .social-card span {
    color: var(--heading-color);
  }

  .contact .popup-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    color: var(--contrast-color);
    padding: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
  }

  .contact .social-card.linkedin .popup-info {
    background: #0077b5;
  }

  .contact .social-card.github .popup-info {
    background: #333;
  }

  .contact .social-card.instagram .popup-info {
    background: linear-gradient(45deg, #405de6, #833ab4);
  }

  .contact .social-card.youtube .popup-info {
    background: #ff0000;
  }

  .contact .social-card.email .popup-info {
    background: var(--accent-color);
  }

  .contact .social-card:active {
    transform: scale(0.98);
  }

  .contact .social-card:active .popup-info {
    bottom: 0;
  }

  .contact .location {
    background: var(--surface-color);
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 100%;
    animation: fadeIn 1.2s ease-out;
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .contact .location:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
  }

  .contact .location-icon {
    background: var(--accent-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact .location-icon i {
    font-size: 18px;
    color: #333;
  }

  body.dark-mode .contact .location-icon i {
    color: var(--contrast-color);
  }

  .contact .location span {
    color: #2d3748;
    font-weight: 600;
    font-size: 15px;
  }

  body.dark-mode .contact .location span {
    color: #e0ffff;
  }

  .contact .copyright {
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    animation: fadeIn 1.5s ease-out;
  }

  body.dark-mode .contact .copyright {
    border-top-color: #333;
  }

  .contact .copyright p {
    color: #718096;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
  }

  body.dark-mode .contact .copyright p {
    color: #e0ffff;
  }

  .contact .copyright p strong,
  .contact .copyright p span {
    color: var(--accent-color);
  }

  @media (min-width: 768px) {
    .contact {
      padding: 80px 0;
    }

    .contact .social-grid {
      grid-template-columns: repeat(5, 1fr);
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    .contact .social-card {
      grid-column: span 1 !important;
    }

    .contact .social-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .contact .social-card:hover .popup-info {
      bottom: 0;
    }

    .contact .social-card:hover .social-icon {
      transform: scale(1.1);
    }

    .contact .social-card:hover span {
      color: var(--contrast-color);
    }
  }

  @media (max-width: 576px) {
    .contact .section-title h2 {
      font-size: 24px;
    }

    .contact .section-title p {
      font-size: 14px;
    }

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

    .contact .social-card.email {
      grid-column: span 1;
    }
  }

  /* Social Card Styles */
  .social-card span,
  .social-card p {
    color: var(--default-color);
  }

  /* Toggle Button */
  .theme-toggle-btn {
    width: 64px;
    height: 32px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
    border: 2px solid transparent;
  }

  .theme-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(113, 197, 93, 0.2);
  }

  #toggle-thumb {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .theme-toggle-btn {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  body.dark-mode .theme-toggle-btn #toggle-thumb {
    left: 35px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  }

  .icon {
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1;
  }

  .sun-icon {
    opacity: 1;
  }

  .moon-icon {
    opacity: 0.5;
  }

  body.dark-mode .sun-icon {
    opacity: 0.5;
  }

  body.dark-mode .moon-icon {
    opacity: 1;
  }

  /* main.css - Styles for the button */
.d-flex {
  display: flex;
}

.gap-3 {
  gap: 1rem;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-lg-start {
  justify-content: flex-start;
}

.btn {
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--contrast-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(113, 197, 93, 0.3);
  border: 2px solid transparent;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  padding: 14px 40px;
  font-size: 16px;
}

.btn:hover,
.btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(113, 197, 93, 0.4);
  border-color: var(--accent-color);
}

.btn:active {
  transform: translateY(0);
}

@media (max-width: 991px) {
  .justify-content-lg-start {
    justify-content: center;
  }

  .btn-lg {
    padding: 0.4rem 1rem;
    font-size: 1rem;
  }
}

/* HTML snippet */

/*project session*/

.projects {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(113, 197, 93, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(113, 197, 93, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

body.dark-mode .projects {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.projects .projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.projects .section-title {
  text-align: center;
  margin-bottom: 20px;
}

.projects .section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

body.dark-mode .projects .section-title h2 {
  color: #e0ffff;
}

.projects .section-title div {
  font-size: 18px;
  color: #555;
}

body.dark-mode .projects .section-title div {
  color: #b0e0e6;
}

/* New Styles for Project Navigation */
.projects .project-nav {
  margin: 20px 0;
  text-align: center;
}

.projects .project-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.projects .project-nav li {
  display: inline-block;
}

.projects .project-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--heading-font);
  color: var(--default-color);
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body.dark-mode .projects .project-nav a {
  color: #b0e0e6;
}

.projects .project-nav a:hover,
.projects .project-nav a.active {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(113, 197, 93, 0.5);
}

body.dark-mode .projects .project-nav a:hover,
body.dark-mode .projects .project-nav a.active {
  color: #212529;
}

.projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.projects .project-item {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: projectPopIn 0.6s ease-out forwards;
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.1;
  display: flex;
  flex-direction: column;
}

.projects .project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover), #4CAF50);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.projects .project-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(113, 197, 93, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.projects .project-item:hover::after {
  width: 500px;
  height: 500px;
}

.projects .project-item:hover::before {
  transform: scaleX(1);
}

.projects .project-item > * {
  position: relative;
  z-index: 1;
}

.projects .project-item:nth-child(1) { animation-delay: 0.1s; }
.projects .project-item:nth-child(2) { animation-delay: 0.2s; }
.projects .project-item:nth-child(3) { animation-delay: 0.3s; }
.projects .project-item:nth-child(4) { animation-delay: 0.4s; }

body.dark-mode .projects .project-item {
  background: #1e1e1e;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(255, 255, 255, 0.05);
  border: 2px solid transparent; /* No border in dark mode to maintain contrast */
}

body.dark-mode .projects .project-item {
  background: var(--surface-color);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
}

.projects .project-item:hover,
.projects .project-item:active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}

body.dark-mode .projects .project-item:hover,
body.dark-mode .projects .project-item:active {
  box-shadow: var(--shadow-xl);
}

.projects .project-image {
  width: 100%;
  height: 60%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.projects .project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
  pointer-events: none;
}

.projects .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects .project-item:hover .project-image img,
.projects .project-item:active .project-image img {
  transform: scale(1.08) rotate(1deg);
}

.projects .project-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
  display: block;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

body.dark-mode .projects .project-item h3 {
  color: var(--heading-color);
}

.projects .project-item p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark-mode .projects .project-item p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.projects .show-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px auto 0;
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
}

.projects .show-more .btn {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--contrast-color);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 12px rgba(113, 197, 93, 0.3);
  border: 2px solid transparent;
}

.projects .show-more .btn:hover,
.projects .show-more .btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(113, 197, 93, 0.4);
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .projects .section-title h2 {
    font-size: 28px;
  }

  .projects .section-title div {
    font-size: 16px;
  }

  .projects .project-nav ul {
    flex-direction: column; /* Stack navigation items vertically on mobile */
    gap: 10px;
  }

  .projects .project-nav a {
    font-size: 13px;
    padding: 6px 14px;
  }

  .projects .projects-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for the first row */
    grid-template-rows: auto auto; /* Two rows: first for two boxes, second for one */
    gap: 15px;
  }

  .projects .project-item {
    padding: 15px;
    max-width: 260px;
    margin: 0 auto; /* Center each item within its grid cell */
  }

  .projects .project-item:nth-child(3) {
    grid-column: 1 / -1; /* Span the full width for the third item */
    max-width: 260px; /* Keep the same width as others for consistency */
    margin: 0 auto; /* Center the third item in the row */
  }

  .projects .project-image {
    height: 60%;
  }

  .projects .project-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .projects .project-item p {
    font-size: 12px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 6px;
  }

  .projects .show-more .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .projects .section-title h2 {
    font-size: 24px;
  }

  .projects .section-title div {
    font-size: 14px;
  }

  .projects .project-nav a {
    font-size: 12px;
    padding: 5px 12px;
  }

  .projects .project-item {
    padding: 12px;
    max-width: 200px;
  }

  .projects .project-item:nth-child(3) {
    max-width: 200px; /* Adjust width for smaller screens */
  }

  .projects .project-image {
    height: 55%;
  }

  .projects .project-item h3 {
    font-size: 14px;
  }

  .projects .project-item p {
    font-size: 11px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 5px;
  }
}

/* Animation for Description Popup */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation for Project Box on Hover/Touch */
@keyframes glowLift {
  0% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 6px 15px rgba(0, 0, 0, 0.08), 0 0 20px rgba(113, 197, 93, 0.5);
  }
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  }
}

body.dark-mode .projects .project-item:hover,
body.dark-mode .projects .project-item:active {
  animation: glowLiftDark 1.5s infinite ease-in-out;
}

@keyframes glowLiftDark {
  0% {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15), 0 6px 15px rgba(255, 255, 255, 0.08), 0 0 20px rgba(113, 197, 93, 0.5);
  }
  100% {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(255, 255, 255, 0.05);
  }
}




/* project main page sessions*/

:root {
  --accent-color: #71c55d;
  --contrast-color: #ffffff;
  --heading-font: "Raleway", sans-serif;
  --default-color: #212529;
  --heading-color: #101f0c;
  --surface-color: #ffffff;
}

body.dark-mode {
  --default-color: #b0e0e6;
  --heading-color: #e0ffff;
  --surface-color: #1e1e1e;
}

.projects {
  background: #f7f9fc;
  padding: 40px 0;
  position: relative;
}

body.dark-mode .projects {
  background: #1c1c1c;
}

.projects .projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Navigation Menu for Filtering */
.projects .project-nav {
  margin: 20px 0;
  text-align: center;
}

.projects .project-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.projects .project-nav li {
  display: inline-block;
}

.projects .project-nav a.filter-btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--heading-font);
  color: var(--default-color);
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body.dark-mode .projects .project-nav a.filter-btn {
  color: #b0e0e6;
}

.projects .project-nav a.filter-btn:hover,
.projects .project-nav a.filter-btn.active {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(113, 197, 93, 0.5);
}

body.dark-mode .projects .project-nav a.filter-btn:hover,
body.dark-mode .projects .project-nav a.filter-btn.active {
  color: #212529;
}

/* Projects Grid */
.projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
}

.projects .project-item {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: projectPopIn 0.5s ease-out forwards;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 2px solid #4b8e3d;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* Indicate clickable item */
}

.projects .project-item:nth-child(1) { animation-delay: 0.1s; }
.projects .project-item:nth-child(2) { animation-delay: 0.2s; }
.projects .project-item:nth-child(3) { animation-delay: 0.3s; }
.projects .project-item:nth-child(4) { animation-delay: 0.4s; }

body.dark-mode .projects .project-item {
  background: #1e1e1e;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
}

/* Removed Hover Effects */
.projects .project-item::before {
  display: none; /* Remove glowing border */
}

.projects .project-item:hover,
.projects .project-item:active {
  transform: none; /* Remove scaling */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05); /* Keep default shadow */
  animation: none; /* Remove glow animation */
}

body.dark-mode .projects .project-item:hover,
body.dark-mode .projects .project-item:active {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Image Carousel */
.projects .project-image-carousel {
  position: relative;
  width: 100%;
  height: 200px; /* Fixed height for images */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.projects .project-image-carousel .carousel-images {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.projects .project-image-carousel .carousel-images img {
  width: 100%;
  height: 200px; /* Fixed size for all images */
  object-fit: contain; /* Ensure full image is visible */
  flex-shrink: 0;
  background: #fff; /* White background for visibility */
}

body.dark-mode .projects .project-image-carousel .carousel-images img {
  background: #2e2e2e; /* Dark background for dark mode */
}

.projects .project-image-carousel .carousel-prev,
.projects .project-image-carousel .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.projects .project-image-carousel .carousel-prev:hover,
.projects .project-image-carousel .carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.projects .project-image-carousel .carousel-prev {
  left: 10px;
}

.projects .project-image-carousel .carousel-next {
  right: 10px;
}

.projects .project-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0;
  color: var(--heading-color);
}

body.dark-mode .projects .project-item h3 {
  color: #e0ffff;
}

/* Removed .project-details styles since it's hidden */
.projects .project-item .project-details {
  display: none; /* Already hidden in HTML */
}

/* Details Button */
.projects .project-item .details-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 13px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.projects .project-item .details-btn:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: #212529;
  transform: scale(1.05);
}

body.dark-mode .projects .project-item .details-btn {
  color: #212529;
}

body.dark-mode .projects .project-item .details-btn:hover {
  color: #212529;
}

.projects .show-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto 0;
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
}

.projects .show-more .btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
  text-align: center;
}

.projects .show-more .btn:hover,
.projects .show-more .btn:active {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: #212529;
  box-shadow: 0 0 20px rgba(113, 197, 93, 0.8), 0 0 40px rgba(113, 197, 93, 0.5);
  animation: glowLight 1.5s infinite ease-in-out;
  transform: scale(1.05);
}

/* Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  display: flex;
  opacity: 1;
  animation: modalFadeIn 0.5s ease forwards;
}

.project-modal .modal-content {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

body.dark-mode .project-modal .modal-content {
  background: #1e1e1e;
}

.project-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--default-color);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active .modal-close {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

body.dark-mode .project-modal .modal-close {
  color: #b0e0e6;
}

.project-modal .modal-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--heading-color);
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active .modal-title.animate-slide-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

body.dark-mode .project-modal .modal-title {
  color: #e0ffff;
}

.project-modal .modal-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active .modal-image-grid.animate-slide-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.project-modal .modal-image-grid img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .project-modal .modal-image-grid img {
  background: #2e2e2e;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.project-modal .modal-details {
  font-size: 14px;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body.dark-mode .project-modal .modal-details {
  color: #b0e0e6;
}

.project-modal .modal-description {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active .modal-description.animate-slide-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

body.dark-mode .project-modal .modal-description {
  border-bottom: 1px solid #444;
}

.project-modal .modal-info {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active .modal-info.animate-slide-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.project-modal .modal-info p {
  margin: 5px 0;
}

.project-modal .modal-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active .modal-links.animate-slide-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.project-modal .modal-links a {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-modal .modal-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: #212529;
  transform: scale(1.05);
}

body.dark-mode .project-modal .modal-links a {
  color: #212529;
}

body.dark-mode .project-modal .modal-links a:hover {
  color: #212529;
}

@media (max-width: 768px) {
  .projects .project-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .projects .project-nav a.filter-btn {
    font-size: 13px;
    padding: 6px 14px;
  }

  .projects .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 15px;
  }

  .projects .project-item {
    padding: 15px;
    max-width: 260px;
    margin: 0 auto;
  }

  .projects .project-item:nth-child(3),
  .projects .project-item:nth-child(4) {
    grid-column: 1 / -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .projects .project-image-carousel {
    height: 150px;
  }

  .projects .project-image-carousel .carousel-images img {
    height: 150px;
  }

  .projects .project-item h3 {
    font-size: 16px;
    margin: 6px 0;
  }

  .projects .project-item .details-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .projects .show-more .btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .project-modal .modal-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .project-modal .modal-image-grid img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .projects .project-nav a.filter-btn {
    font-size: 12px;
    padding: 5px 12px;
  }

  .projects .project-item {
    padding: 12px;
    max-width: 200px;
  }

  .projects .project-item:nth-child(3),
  .projects .project-item:nth-child(4) {
    max-width: 200px;
  }

  .projects .project-image-carousel {
    height: 120px;
  }

  .projects .project-image-carousel .carousel-images img {
    height: 120px;
  }

  .projects .project-item h3 {
    font-size: 14px;
  }

  .projects .project-item .details-btn {
    font-size: 11px;
    padding: 5px 8px;
  }

  .project-modal .modal-content {
    width: 95%;
    padding: 15px;
  }

  .project-modal .modal-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .project-modal .modal-image-grid img {
    width: 100px;
    height: 100px;
  }

  .project-modal .modal-details {
    font-size: 13px;
  }

  .project-modal .modal-links {
    flex-direction: column;
    gap: 10px;
  }

  .project-modal .modal-links a {
    padding: 6px 12px;
  }
}

/* Animations */
@keyframes projectPopIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes glowLight {
  0% {
    box-shadow: 0 0 20px rgba(113, 197, 93, 0.8), 0 0 40px rgba(113, 197, 93, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(113, 197, 93, 1), 0 0 60px rgba(113, 197, 93, 0.7);
  }
  100% {
    box-shadow: 0 0 20px rgba(113, 197, 93, 0.8), 0 0 40px rgba(113, 197, 93, 0.5);
  }
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
