:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient-1: linear-gradient(45deg, #6366f1, #10b981);
    --gradient-2: linear-gradient(135deg, #4f46e5, #0d9488);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Add some padding on the sides */
}

/* --- Header Styles --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem; /* Reduced padding for mobile */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem; /* Slightly smaller font size for mobile */
    color: var(--primary);
    text-decoration: none;
}

.logo span,
.logo-icon {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon{
    font-size: 1.5rem;
}

/* --- Navigation --- */
nav ul {
    list-style: none;
    display: flex; /* Default to flex for larger screens */
    gap: 1rem; /* Reduced gap */
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: block; /* Important for proper spacing in mobile nav */
    padding: 0.5rem 0; /* Add padding for touch targets */
}

nav a:hover {
    color: var(--primary);
}

/* Underline effect for navigation links (desktop) */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}


.cta-button {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem; /* Slightly smaller padding */
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;  /*  Make sure it's inline-block */
    font-size: 1rem; /* Control font size */
}

.cta-button:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none; /* Hidden by default (shown in mobile media query) */
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 0.5rem; /* Add some padding */
}


/* --- Hero Section --- */
.hero {
    padding-top: 80px; /* Reduced padding */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Keeps elements spaced out */
    padding-bottom: 60px;  /*Reduced Padding*/
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.9));
    position: relative;
    overflow: hidden;
}

/* Gradient circles (hero) */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0; /* Ensure they're behind the content */
    opacity: 0.1; /* Make them subtle */
}

.hero::before {
    top: -10%;
    right: -10%;
    width: 200px;  /*Smaller width for Mobile*/
    height: 200px; /*Smaller height for Mobile*/
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
}

.hero::after {
    bottom: -15%;
    left: -5%;
    width: 150px; /*Smaller width for Mobile*/
    height: 150px;/*Smaller height for Mobile*/
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.1));
}

.hero-content {
    display: flex;
    flex-direction: column; /* Stack elements vertically on mobile */
    align-items: center; /* Center-align content */
    text-align: center; /* Center-align text */
    gap: 2rem; /* Reduced gap */
    width: 100%;
}

.hero-text {
    flex: 1; /* Take up available space */
    order: 2; /* Display text below image on mobile */
    width: 100%;
}

.hero-title {
    font-size: 2rem; /* Reduced font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem; /* Reduced font size */
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center; /* Center buttons */
    gap: 1rem;
}

.secondary-button {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.2rem; /* Reduced padding */
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.secondary-button:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.terminal-container {
    background: #1e293b;
    width: 100%; /* Full width on mobile */
    border-radius: 16px;
    padding: 1.5rem; /* Reduced padding */
    position: relative; /*  Needed for absolute positioning of before/after */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15); /*  Reduced shadow */
    z-index: 1;
}

.terminal-content {
    font-family: monospace;
    color: #10b981;
    font-size: 0.8rem; /* Smaller font size */
    line-height: 1.5;  /* Adjusted line height*/
    opacity: 0.9;
}


/* --- Features Section --- */
.features {
    padding: 60px 0; /* Reduced padding */
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2rem; /* Reduced font size */
    font-weight: 800;
    margin-bottom: 0.8rem; /* Reduced margin */
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem; /* Reduced margin */
    font-size: 1rem; /* Reduced font size */
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default (mobile-first) */
    gap: 1.5rem; /* Reduced gap */
}

.feature-card {
    background-color: var(--light);
    border-radius: 16px;
    padding: 1.5rem; /*    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack content vertically */
}

.feature-card:hover {
    transform: translateY(-5px); /* Smaller translation */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Reduced shadow */
}

.feature-icon {
    width: 50px; /* Slightly smaller icon */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    border-radius: 12px;
    font-size: 1.25rem; /* Reduced font size */
    margin-bottom: 1rem; /* Reduced margin */
    align-self: flex-start; /* Align icon to the start */
}

.feature-title {
    font-size: 1.1rem; /* Reduced font size */
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.feature-desc {
    color: var(--gray);
    line-height: 1.6;
    flex-grow: 1; /* Allow description to take up remaining space */
}


/* --- How It Works Section --- */
.how-it-works {
    padding: 60px 0; /* Reduced padding */
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Reduced gap */
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 1rem; /* Reduced gap */
    position: relative;
    z-index: 2;
}

.step-number {
    flex-shrink: 0;
    width: 40px; /* Smaller number circle */
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Reduced font size */
    font-weight: 700;
    color: white;
}

.step-content {
    background-color: white;
    padding: 1.5rem; /* Reduced padding */
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Reduced shadow */
    flex: 1; /* Take up available space */
}

.step-title {
    font-size: 1.1rem; /* Reduced font size */
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.step-desc {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-image {
  width: 100%; /* Full width */
  max-width: 800px;  /* Limit maximum width */
  height: auto;     /* Maintain aspect ratio */
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;  /*  Important for centering */
  margin-left: auto; /* Center the image */
  margin-right: auto;
}

.timeline-line {
    position: absolute;
    top: 20px; /* Adjusted position */
    left: 20px; /* Adjusted position */
    width: 2px;
    height: calc(100% - 40px); /* Adjusted height */
    background: var(--gradient-1);
    z-index: 1;
}


/* --- Pricing Section --- */
.pricing {
    padding: 60px 0;
    background-color: white;
}
/* Style for the pricing toggle (centered) */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the toggle */
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-option {
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.pricing-option.active {
    color: var(--primary);
}

.toggle-switch {
    position: relative;
    width: 40px; /* Slightly smaller */
    height: 22px; /* Slightly smaller */
    background: var(--gray); /* Use gray for the inactive state */
    border-radius: 11px; /* Half of the height */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Add transition for smooth color change */
}

.toggle-circle {
    position: absolute;
    top: 3px;  /*  Adjust position */
    left: 3px; /*  Adjust position */
    width: 16px; /* Slightly smaller */
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/*  Yearly state */
.toggle-switch.yearly {
    background-color: var(--gradient-1); /* Change background color when active */
}

.toggle-circle.yearly {
    transform: translateX(18px); /* Adjust translation */
}


.pricing-cards {
   display: flex;
   flex-direction: column;
   gap: 2rem;
   align-items: center; /* Center cards horizontally */
}


.pricing-card {
  background-color: var(--light);
  border-radius: 16px;
  padding: 1.5rem; /* Reduced padding */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Reduced shadow */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%; /* Full width */
  max-width: 100%; /* Limit max-width */
   display: flex;
   flex-direction: column;
}


.pricing-card.popular {
    background: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2); /* Reduced shadow */
    transform: translateY(-5px); /* Smaller translation */
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: 10px; /* Adjusted position */
    right: -35px; /* Adjusted position */
    background: var(--gradient-1);
    color: white;
    padding: 0.3rem 1.5rem; /* Reduced padding */
    font-size: 0.7rem; /* Smaller font size */
    font-weight: 600;
    transform: rotate(45deg);
    width: 120px; /* Reduced width */
    text-align: center;
}

/* Container for the content within the pricing card */
.pricing-card-content {
    display: flex;
    flex-direction: column;
    width: 100%;

}

.pricing-name {
    font-size: 1.1rem; /* Reduced font size */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--gray);
    margin-bottom: 1rem; /* Reduced margin */
    font-size: 0.8rem; /* Smaller font size */
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem; /* Reduced margin */
}

.price {
    font-size: 2rem; /* Reduced font size */
    font-weight: 700;
    color: var(--dark);
}

.price-period {
    color: var(--gray);
    font-size: 0.8rem; /* Smaller font size */
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem; /* Reduced margin */
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem; /* Reduced margin */
    color: var(--dark);
}

.feature-icon-check {
    color: var(--secondary);
    font-size: 1rem; /* Reduced font size */
}

.pricing-btn {
    width: 100%;
    text-align: center;
    margin-top: auto; /* Push button to the bottom */
}

.pricing-image-container {
   width: 100%; /* Full width */
   margin-top: 1rem; /* Add some space above the image */
   display: flex; /* Use flexbox to center */
   justify-content: center;
}

.pricing-image {
   width: 100%; /* Make image responsive */
   max-width: 100%; /* Limit max width */
   height: auto;  /* Maintain aspect ratio */
   border-radius: 10px;
}


/* --- Testimonials Section --- */
/* (Remove or significantly simplify the testimonials section if you're not
     actually using it.  It's much easier to style a placeholder
     than to make a complex, responsive carousel.) */

/* --- CTA Section --- */
.cta-section {
    padding: 60px 0; /* Reduced padding */
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2rem; /* Reduced font size */
    font-weight: 800;
    margin-bottom: 1rem; /* Reduced margin */
}

.cta-subtitle {
    font-size: 1rem; /* Reduced font size */
    max-width: 700px;
    margin: 0 auto 2rem; /* Reduced margin */
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Wrap buttons on small screens */
}

.cta-white-button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.6rem 1.2rem; /* Reduced padding */
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cta-white-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Reduced shadow */
}

.cta-outline-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.6rem 1.2rem; /* Reduced padding */
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
     font-size: 1rem;
}

.cta-outline-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 60px 0; /* Reduced padding */
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0; /* Reduced padding */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem; /* Reduced font size */
    color: var(--dark);
}

.faq-icon {
    font-size: 1.1rem; /* Reduced font size */
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.faq-icon.active {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 0.8rem; /* Reduced margin */
    color: var(--gray);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease; /* Add padding to transition */
    padding: 0 1rem 0 0; /* Add padding-right */
}

.faq-answer.active {
    max-height: 500px; /*  Arbitrary large value */
     padding-bottom: 1rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem; /* Reduced padding */
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
    margin-bottom: 2rem; /* Reduced margin */
}

.footer-info {
    max-width: 100%; /* Full width */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem; /* Reduced font size */
    color: white;
    margin-bottom: 0.8rem; /* Reduced margin */
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem; /* Reduced margin */
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 35px; /* Slightly smaller */
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links-title {
    font-weight: 600;
    margin-bottom: 1rem; /* Reduced margin */
    font-size: 1rem; /* Reduced font size */
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.5rem; /* Reduced margin */
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 1.5rem; /* Reduced padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center; /* Center items */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem; /* Smaller font size */
}

.footer-copyright {
    margin-bottom: 1rem; /* Add margin */
}

.footer-copyright a {
    color: white;
    text-decoration: none;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem; /* Reduced gap */
    flex-wrap: wrap; /* Wrap links on small screens */
    justify-content: center; /* Center links */
}

.footer-bottom-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-link a:hover {
    color: white;
}

/* --- Animation Classes (Keep these, but they're triggered by JS) --- */
.fade-up {
    /* opacity: 0; */
    transform: translateY(30px);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.active {
    opacity: 1;
}

/* --- Media Queries for Larger Screens --- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .header-container {
        padding: 1.5rem 2rem; /* Restore original padding */
    }
    .logo {
        font-size: 1.5rem; /* Restore original size */
    }
    .mobile-menu-btn {
        display: none; /* Hide on larger screens */
    }

    nav {
        position: static; /* Reset positioning */
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0; /* Reset padding */
    }

    nav ul {
        flex-direction: row; /* Horizontal layout */
        margin-top: 0; /* Reset margin */
    }
      nav a::after {
        display: block; /* Show underline on hover */
    }


    .hero-content {
        flex-direction: row; /* Side-by-side layout */
        align-items: center;
        text-align: left; /* Left-align text */
    }

    .hero-text{
        order: 0;
    }
    .hero-title {
        font-size: 3.5rem; /* Restore original size */
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .terminal-container{
        width: 40%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }

     .step {
        flex-direction: row; /* Horizontal layout */
    }
    .timeline-line {
        left: 30px; /* Reset to original */

    }
     .pricing-cards {
      flex-direction: row; /* Display cards in a row */
      align-items: stretch; /* Make cards the same height */
    }
   .pricing-card{
     flex-direction: row;
   }
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr; /* Restore original layout */
    }
    .footer-bottom {
        flex-direction: row; /* Horizontal layout */
        justify-content: space-between;
    }

}


/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns */
    }
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr; /* Restore four-column layout */
    }
}

/* Extra-large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /*  You can add further styles for very large screens here,
        but often it's not necessary.  The layout will usually
        scale up nicely from 992px. */
        .hero::before {
            width: 500px;  /*Original width*/
            height: 500px; /*Original height*/

        }

        .hero::after {
            width: 400px; /*Original width*/
            height: 400px;/*Original height*/
        }
}

/* Gradient Accents */
.gradient-accent {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(var(--primary) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}


/* --- Header Styles (Base - Mobile First) --- */
header {
    position: fixed; /* Keep the header fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
}

.logo span,
.logo-icon {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    font-size: 1.5rem;
}

/* --- Navigation (Mobile First) --- */
nav {
    position: fixed; /* Fixed position when active */
    top: 0;
    right: -100%; /* Initially hidden off-screen */
    width: 80%; /* Full width of the viewport */
    height: 100vh; /* Full viewport height */
    background-color: white;
    padding: 4rem 2rem; /* Add padding for better spacing */
    transition: right 0.3s ease; /* Smooth transition */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1); /* Shadow for visual separation */
    z-index: 999; /* Ensure it's above other content, but below the header*/
}

nav.active {
    right: 0; /* Slide in from the right */
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 1.5rem; /* Space out the links */
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block; /* Make the links full-width blocks */
    padding: 0.5rem 0; /* Add vertical padding */
}

nav a:hover {
    color: var(--primary);
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: block; /* Show on mobile */
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 0.5rem;
    z-index: 1001; /*Ensure its on top*/
}

.cta-button {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* --- Media Query for Larger Screens (Desktop) --- */
@media (min-width: 768px) {
    .header-container {
        padding: 1.5rem 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: none; /* Hide on larger screens */
    }

    nav {
        position: static; /* Reset to default positioning */
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        z-index: auto;  /*Remove added z-index*/
    }

    nav ul {
        flex-direction: row; /* Horizontal layout */
    }

    nav a {
        display: inline-block; /* Or inline, depending on your preference */
        padding: 0; /* Reset padding, if needed */
    }
    /* Underline effect for navigation links (desktop) */
    nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-1);
        transition: width 0.3s ease;
    }
    nav a:hover::after {
        width: 100%;
    }
}