/* --- Global Styles & Variables --- */
:root {
    --primary-bg: #2B1E64;
    --primary-bg-light: #3a2b7a;
    --secondary-bg: #F5F6F8;
    --accent-color: #A362FF;
    --accent-light: #d8baff;
    --text-light: #FFFFFF;
    --text-dark: #1E1E1E;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --font-family: 'Manrope', sans-serif;
}

/* Add this near the top of your css/style.css file */

html {
    scroll-behavior: smooth;
}

/* This prevents the sticky header from covering section titles when you jump to them */
section[id] {
    scroll-margin-top: 100px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--text-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 800;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

section {
    padding: 6rem 0;
}

.tag {
    display: inline-block;
    background-color: #F3E8FF;
    color: var(--accent-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.icon-accent {
    color: var(--accent-color);
    font-style: normal;
    font-weight: 800;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #A362FF, #7A42D8);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 10px 20px -5px rgba(163, 98, 255, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -5px rgba(163, 98, 255, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Header --- */
header {
    background: var(--primary-bg);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo i {
    color: var(--accent-color);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--text-light);
    font-weight: 600;
}
.nav-links a:hover {
    color: var(--accent-light);
}
.nav-links i {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.hamburger {
    display: none;
    color: var(--text-light);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(135deg, var(--primary-bg) 60%, var(--primary-bg-light) 100%);
    color: var(--text-light);
    padding-top: 4rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}
#hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.hero-content {
    flex: 1;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-content p {
    color: var(--accent-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}
.hero-image-wrapper {
    flex: 1;
    background-color: var(--accent-color);
    border-radius: 2rem;
    padding: 1rem;
    transform: rotate(2deg);
}
.hero-image-wrapper img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
}
.lightning-icon, .star-icon {
    position: absolute;
    color: var(--accent-color);
    opacity: 0.3;
}
.lightning-icon {
    font-size: 4rem;
    bottom: 25%;
    right: 20%;
}
.star-icon {
    font-size: 3rem;
    top: 30%;
    left: 45%;
}

/* --- Clients Section --- */
#clients {
    background-color: var(--secondary-bg);
    padding: 3rem 0;
}
#clients .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
#clients img {
    max-height: 25px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}
#clients img:hover {
    filter: grayscale(0) opacity(1);
}

/* --- About Section --- */
#about .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-content {
    flex: 1;
}
.about-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.about-image-wrapper {
    flex: 1;
    position: relative;
}
.about-image-wrapper img {
    width: 100%;
    border-radius: 1.5rem;
}

/* --- Services Section --- */
#services {
    background-color: var(--secondary-bg);
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}
.section-header h2 {
    font-size: 2.8rem;
    line-height: 1.2;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background-color: var(--text-light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}
.service-card.active {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    border-radius: 1rem;
    background-color: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.service-card a {
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 1rem;
    display: inline-block;
}

/* --- Footer CTA --- */
.footer-cta {
    background: var(--primary-bg);
    color: var(--text-light);
    text-align: center;
    padding: 6rem 0;
}
.footer-cta h2 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

/* --- Main Footer --- */
.site-footer {
    background-color: var(--primary-bg);
    color: var(--accent-light);
}

.footer-cta {
    background-color: var(--primary-bg-light); /* Slightly different from the main footer bg */
    text-align: center;
    padding: 4rem 0;
}
.footer-cta h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.footer-main {
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a {
    color: var(--accent-light);
    font-weight: 500;
}
.footer-column ul a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}
.social-links a {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form {
    position: relative;
    max-width: 300px;
    margin-bottom: 1rem;
}
.newsletter-form input {
    width: 100%;
    padding: 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    color: var(--text-light);
    font-family: inherit;
}
.newsletter-form input::placeholder {
    color: var(--accent-light);
}
.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-form button:hover {
    background: var(--primary-bg-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    color: var(--accent-light);
    font-size: 0.9rem;
    margin: 0;
}
.legal-links a {
    color: var(--accent-light);
    font-size: 0.9rem;
    margin-left: 1.5rem;
}
.legal-links a:hover {
    color: var(--text-light);
}


/* --- Key Benefits Section --- */
#key-benefits {
    background-color: var(--secondary-bg);
    padding: 3rem 0;
}
#key-benefits .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
}
.benefit-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}


/* --- Contact Form Styles --- */
#contact {
    text-align: center;
}
.contact-subtitle {
    color: var(--accent-light);
    max-width: 500px;
    margin: -1.5rem auto 2.5rem auto;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(163, 98, 255, 0.4);
}
.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
}

/* --- Thank You Page Styles --- */
.thank-you-page {
    background: var(--primary-bg);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}
.thank-you-container {
    max-width: 500px;
    padding: 2rem;
}
.thank-you-icon {
    font-size: 5rem;
    color: #4CAF50; /* A success green */
    margin-bottom: 1rem;
}
.thank-you-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.thank-you-container p {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Pricing Section --- */
#pricing {
    background-color: var(--text-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center; /* Aligns cards vertically */
}

.pricing-card {
    background-color: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 1rem 0 0.5rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.savings-info {
    color: var(--accent-color);
    font-weight: 600;
    min-height: 40px; /* Ensures vertical alignment */
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list i {
    color: var(--accent-color);
}

.pricing-card .btn-secondary {
    background-color: #fff;
    color: var(--primary-bg);
    border-color: var(--border-color);
    width: 100%;
    justify-content: center;
}
.pricing-card .btn-secondary:hover {
    background-color: var(--accent-light);
    color: var(--primary-bg);
}
.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
}

/* Style for the popular plan */
.pricing-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
    background-color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #A362FF, #7A42D8);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- Onboarding Form Specifics --- */
.form-instructions {
    font-size: 0.9rem;
    color: var(--accent-light);
    opacity: 0.9;
    font-weight: 500;
    margin-top: -0.75rem; /* Pulls it closer to the label */
    margin-bottom: 1rem;
    line-height: 1.4;
}

.form-fieldset {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
}

.form-fieldset legend {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 0 1rem;
    margin-left: -1rem; /* Aligns with the padding */
}

.color-picker-group {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-picker-wrapper span {
    font-weight: 600;
    color: var(--text-light);
}

input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-value-display {
    font-family: monospace;
    font-size: 1rem;
    color: var(--accent-light) !important; /* Override default span color */
}

/* --- Language Toggle Switch --- */
.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 80px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.lang-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 2px;
    left: 2px;
    height: 28px;
    width: 36px; /* Slightly wider to cover text */
    background-color: var(--accent-color);
    transition: .4s;
    border-radius: 28px;
}

.lang-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
    width: 50%;
    text-align: center;
}

input:checked + .slider {
    transform: translateX(38px);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    h1.hero-title, h2 { font-size: 2.5rem !important; }

    #hero .container { flex-direction: column; text-align: center; }
    .hero-content p { margin: 1.5rem auto 2.5rem auto; }
    .hero-image-wrapper { transform: rotate(0); }
    .lightning-icon, .star-icon { display: none; }

    #about .container { flex-direction: column; }
    
    .services-grid { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: scale(1); /* Reset scaling on smaller screens to avoid layout issues */
    }
}

/* --- CONSOLIDATED MOBILE STYLES (768px and below) --- */
@media (max-width: 768px) {
    /* General Layout */
    h1.hero-title, h2 { font-size: 2rem !important; }
    section { padding: 4rem 0; }

    /* Header Layout */
    header .container {
        justify-content: flex-start; /* Align items to the left */
        gap: 1rem; /* Add space between logo and toggle */
    }
    .hamburger {
        display: block; /* Show the hamburger */
        margin-left: auto; /* Push it to the far right */
    }
    .header-controls .btn-secondary {
        display: none; /* Hide the 'Get Proposal' button */
    }

    /* Desktop Nav is hidden by hiding its links, not the whole container */
    nav#navbar {
       /* REMOVED: display: none; */ 
       /* The <nav> itself is now always present, allowing its children to be shown/hidden */
    }

    /* Mobile Nav Dropdown */
    .nav-links {
        display: none; /* Initially hidden on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-bg-light);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    .nav-links.active {
        display: flex; /* Shown when hamburger is clicked */
    }

    /* Benefits Section */
    #key-benefits .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        padding-right: 0;
    }
    .social-links, .newsletter-form {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .legal-links a {
        margin: 0 0.5rem;
    }
}