/* ===== CSS Variables ===== */
 :root {
      /* Light Mode */
      --primary: #3a5ba0;
      --primary-dark: #2c3f66;
       --secondary: #10b981;
      --accent: #e76f51;
      --light: #f5f7fa;
      --dark: #1e293b;
      --gray: #cbd5e1;
      --white: #ffffff;
      --black: #000000;
      --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
      --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      --radius: 12px;
      --max-width: 1200px;
      --nav-height: 80px;
      --font-primary: "Inter", system-ui, sans-serif;
    }

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 1.5rem;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Apply initial hidden state only to sections and elements meant to fade in on scroll */
.section,
.section-title,
.form-card,
.footer-column,
.footer-bottom {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible,
.section-title.visible,
.form-card.visible,
.footer-column.visible,
.footer-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}


.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    /* Remove initial transform and opacity for elements inside header/navbar */
    /* transform: scale(0.95); */
    /* opacity: 0; */
    transition: transform 0.6s ease, opacity 0.6s ease; /* Keep transition for .visible state */
}


.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    transition: transform 0.6s ease 0.3s;
}

.section-title.visible::after {
    transform: translateX(-50%) scaleX(1);
}

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

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ===== Header & Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: var(--nav-height);
}

.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Remove initial transform and opacity, should be visible immediately */
    /* transform: translateY(10px); */
    /* opacity: 0; */
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

/* Remove .visible state for logo if it's always visible */
/* .logo.visible {
    transform: translateY(0);
    opacity: 1;
} */

.logo-img {
    height: 70px;
    width: auto;
    transition: transform 0.4s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--primary);
}

.logo-text span {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links > li {
    position: relative;
     /* Remove initial opacity and transform for desktop view */
    /* opacity: 0; */
    /* transform: translateY(10px); */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Remove transition delays - they are not needed if items are visible by default */
/* .nav-links > li:nth-child(1) { transition-delay: 0.1s; }
.nav-links > li:nth-child(2) { transition-delay: 0.2s; }
.nav-links > li:nth-child(3) { transition-delay: 0.3s; }
.nav-links > li:nth-child(4) { transition-delay: 0.4s; }
.nav-links > li:nth-child(5) { transition-delay: 0.5s; }
.nav-links > li:nth-child(6) { transition-delay: 0.6s; }
.nav-links > li:nth-child(7) { transition-delay: 0.7s; }
.nav-links > li:nth-child(8) { transition-delay: 0.8s; } */

/* This rule is likely for mobile menu items fading in when the menu is active */
.nav-links.active > li {
    opacity: 1;
    transform: translateY(0);
     /* Re-add transition delay for mobile menu items */
    transition-delay: var(--delay); /* Using a variable here for flexibility */
}
/* Define the delay variable for mobile menu items */
.nav-links.active > li:nth-child(1) { --delay: 0.1s; }
.nav-links.active > li:nth-child(2) { --delay: 0.2s; }
.nav-links.active > li:nth-child(3) { --delay: 0.3s; }
.nav-links.active > li:nth-child(4) { --delay: 0.4s; }
.nav-links.active > li:nth-child(5) { --delay: 0.5s; }
.nav-links.active > li:nth-child(6) { --delay: 0.6s; }
.nav-links.active > li:nth-child(7) { --delay: 0.7s; }
.nav-links.active > li:nth-child(8) { --delay: 0.8s; }


.nav-links a {
    font-weight: 600;
    color: var(--dark);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-links a i {
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
}

.nav-links a:hover i,
.nav-links .current a i {
    color: var(--secondary);
    transform: scale(1.2);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.4s ease;
}

.nav-links a:hover::after,
.nav-links .current a::after {
    width: 100%;
}

.nav-links .current a {
    color: var(--secondary);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    z-index: 100;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background: var(--light);
    color: var(--secondary);
    padding-left: 1.8rem;
    transform: translateX(5px);
}

.dropdown-content a i {
    color: var(--dark);
}

.dropdown-content a:hover i,
.dropdown-content a:focus i {
    color: var(--secondary);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.4s ease;
    z-index: 2000;
}

.hamburger:hover {
    transform: rotate(90deg);
}

/* Mobile Menu Backdrop */
.nav-backdrop {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-backdrop.active {
    display: block; /* Show when active */
    opacity: 1;
}

/* ===== Forms Hero Section ===== */
.forms-hero {
    background: var(--primary-dark);
    height: 50vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    position: relative;
    margin-top: var(--nav-height);
    z-index: 1;
}

.forms-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.forms-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    color: var(--white);
}

/* ===== Forms Container ===== */
.forms-container {
    padding: 5rem 3rem;
}

/* ===== Forms Grid ===== */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 1.5rem;
}

.form-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.form-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.form-details {
    text-align: center;
}

.form-details h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-meta {
    display: flex;
    justify-content: space-between;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    transform: scale(0.8);
  }

  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.1);
  }
/* ===== Image Modal ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    pointer-events: all;
}

.image-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-hover);
}

.image-modal-header {
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary);
}

.image-viewer-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.image-viewer {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
}

 /* ===== Footer ===== */
    footer {
      background: var(--primary);
      color: var(--white);
      padding: 4rem 0 2rem;
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .footer-column {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .footer-column:nth-child(1) {
      transition-delay: 0.1s;
    }

    .footer-column:nth-child(2) {
      transition-delay: 0.2s;
    }

    .footer-column:nth-child(3) {
      transition-delay: 0.3s;
    }

    .footer-column:nth-child(4) {
      transition-delay: 0.4s;
    }

    .footer-column.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .footer-column h3 {
      color: var(--white);
      margin-bottom: 1.5rem;
      font-size: clamp(1.2rem, 2.5vw, 1.5rem);
      position: relative;
      padding-bottom: 10px;
    }

    .footer-column h3::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 50px;
      height: 2px;
      background: var(--secondary);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s ease;
    }

    .footer-column.visible h3::after {
      transform: scaleX(1);
    }

    .footer-column p {
      color: rgba(255, 255, 255, 0.7);
      font-size: clamp(0.9rem, 2vw, 1rem);
      line-height: 1.5;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 0.8rem;
      color: #bdc3c7;
      font-size: clamp(0.9rem, 2vw, 1rem);
      transition: var(--transition);
    }



    .footer-links li:hover,
    .footer-links a:focus {
      color: var(--secondary);
      transform: translateX(10px);
      cursor: pointer;
    }

    .contact-info {
      list-style: none;
    }

    .contact-info li {
      margin-bottom: 1rem;
      display: flex;
      align-items: flex-start;
      gap: 0.8rem;
      font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .contact-info i {
      margin-top: 3px;
      color: var(--secondary);
      font-size: 1rem;
      transition: transform 0.4s ease;
    }

    .contact-info li:hover i {
      transform: scale(1.2);
    }

    .social {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }

    .social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      border-radius: 8px;
      background: var(--black);
      color: var(--dark);
      font-size: 1.1rem;
      transition: var(--transition);
      box-shadow: var(--shadow);
    }

    .social a:nth-child(1) {
      color: #3b4998;
    }

    .social a:nth-child(2) {
      color: #1da1f2;
    }

    .social a:nth-child(3) {
      color: #e1306c;
    }

    .social a:nth-child(4) {
      color: #25d366;
    }

    .social a:hover,
    .social a:focus {
      transform: translateY(-5px) scale(1.1);
      box-shadow: var(--shadow-hover);
    }

    .social a:nth-child(1):hover,
    .social a:nth-child(1):focus {
      background: #3b5998;
      color: white;
    }

    .social a:nth-child(2):hover,
    .social a:nth-child(2):focus {
      background: #1da1f2;
      color: white;
    }

    .social a:nth-child(3):hover,
    .social a:nth-child(3):focus {
      background: #e1306c;
      color: white;
    }

    .social a:nth-child(4):hover,
    .social a:nth-child(4):focus {
      background: #25d366;
      color: white;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.7);
      font-size: clamp(0.8rem, 1.8vw, 0.9rem);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
    }

    .footer-bottom.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .footer-bottom p {
      color: rgba(255, 255, 255, 0.7);
      margin: 0;
    }

    .tech-badge {
      display: inline-block;
      padding: 6px 12px;
      border: 1px solid  #03fa6e;;
      border-radius: 4px;
      background: rgba(0, 10, 20, 0.4);
      backdrop-filter: blur(4px);
      font-family: 'Inter', sans-serif;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .tech-badge span {
      font-size: 0.7em;
      color: #03fa6e;
      display: block;
    }

    .tech-badge strong {
      font-size: 0.9em;
      color: white;
      font-weight: 500;
    }

    .tech-badge:hover {
      background: rgba(0, 243, 255, 0.1);
      border-color:  #03fa6e;;
    }


/* ===== Animations ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ===== Responsive Styles ===== */
/* Styles for screens smaller than 1138px (Mobile Menu) */
 @media (max-width: 1138px) {
      .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--nav-height));
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.4s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
      }

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

      .nav-links>li {
        opacity: 1;
        transform: translateY(0);
        transition: none;
      }

      .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        display: none;
        margin-left: 1rem;
        margin-top: 0.5rem;
      }

      .dropdown.active .dropdown-content {
        display: block;
      }

      .hamburger {
        display: block;
      }

      .theme-toggle {
        margin-left: 1rem;
      }

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

      .about-image {
        order: -1;
      }

      .hero-content h1 {
        font-size: 2rem;
      }

      /* Footer Responsiveness */
      .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
      }

      .footer-column {
        text-align: left;
        padding: 0 1rem;
      }

      .contact-info li {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.8rem;
      }

      .social {
        justify-content: flex-start;
        gap: 15px;
      }
    }

 @media (max-width: 768px) {
      .section {
        padding: 3rem 0;
      }

    .forms-hero {
        height: 40vh;
        padding: 0 1.5rem;
    }

    .forms-hero h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .forms-hero p {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }

    .forms-grid {
        grid-template-columns: 1fr; /* Stack form cards */
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    /* Footer Responsiveness */
      footer {
        padding: 3rem 0 1.5rem;
      }

      .footer-content {
        gap: 1rem;
      }

      .footer-column {
        padding: 0 0.5rem;
      }

      .footer-column h3 {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        margin-bottom: 1rem;
      }

      .footer-column p,
      .footer-links a,
      .contact-info li {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
      }

      .contact-info li {
        gap: 0.5rem;
      }

      .social {
        gap: 12px;
      }

      .social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
      }

      .footer-bottom {
        padding-top: 1.5rem;
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
      }
    }



/* Styles for screens smaller than 428px */
@media (max-width: 428px) {
    .container {
        padding: 0 1rem; /* Reduce container padding on very small screens */
    }

    .forms-hero {
        padding: 0 1rem; /* Adjust hero padding */
    }

    .forms-container {
         padding: 3rem 1rem; /* Adjust main section padding */
    }

    .form-card {
         padding: 1rem; /* Reduce form card padding */
    }

     .footer-column {
        padding: 0 0.3rem;
      }

      .footer-column h3 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
      }

      .footer-column p,
      .footer-links a,
      .contact-info li {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
      }

      .social {
        gap: 10px;
      }

      .social a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
      }

      .footer-bottom {
        padding-top: 1rem;
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
      }
    }
    
   