:root {
    /* Color Variables */
    --primary-color: #4a6cf7;
    --primary-dark: #3a56d4;
    --primary-light: #6e8df9;
    --secondary-color: #79cea7;
    --secondary-dark: #5eb28c;
    --secondary-light: #94dab9;
    --accent-color: #ff6b6b;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    
    /* Dark Mode Variables */
    --dark-bg: #1a202c;
    --dark-bg-light: #2d3748;
    --dark-text: #f7fafc;
    --dark-text-light: #a0aec0;
    --dark-border: #4a5568;
    --dark-shadow: rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-circle: 50%;
    
    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Section Padding */
    --section-padding: 6rem 0;
}

/* Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ensures scrolling targets account for fixed header */
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

ul, ol {
    list-style: none;
}

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background-color: transparent;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    transition: color var(--transition-normal);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.section-subtitle {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
}

.section-desc {
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--text-light);
}

.section-header {
    margin-bottom: 4rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-normal);
    z-index: -1;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: all var(--transition-normal);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--bg-color);
    box-shadow: 0 5px 20px var(--shadow-color);
    padding: 1.5rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.logo-text {
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 10px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.logo:hover .logo-text::after {
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 1.5rem;
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--text-color);
    font-size: 1.8rem;
    background-color: var(--bg-light);
    transition: background-color var(--transition-normal);
}

.theme-toggle:hover {
    background-color: var(--primary-light);
    color: white;
}

.theme-toggle .fa-sun {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
    padding: 18rem 0 12rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 2rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 90%;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

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

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

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.scroll-indicator:hover {
    color: var(--primary-color);
}

.scroll-indicator span {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.scroll-indicator i {
    font-size: 1.6rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-card {
    padding: 3rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-color);
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 3rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
}

.feature-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-text {
    color: var(--text-light);
    margin-bottom: 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-image img {
    transition: transform var(--transition-normal);
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.exp-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.2;
}

.about-text {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.about-list {
    margin-bottom: 3rem;
}

.about-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.about-list i {
    color: var(--primary-color);
    margin-right: 1rem;
}

/* Services Section */
.services-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-card {
    padding: 3rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-color);
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary-color);
    transition: height var(--transition-normal);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 3rem;
    transition: all var(--transition-normal);
}

.service-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform var(--transition-normal);
}

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

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    padding: 3rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-color);
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.rating {
    margin-bottom: 2rem;
    color: #ffc107;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
}

.author-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.author-position {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* Contact Form Styles */
.contact-grid {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    background-color: var(--bg-light);
    font-size: 1.6rem;
    transition: all var(--transition-normal);
}

.form-group input:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

textarea {
    width: 100%;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    font-size: 1.6rem;
    resize: vertical;
    min-height: 150px;
    transition: all var(--transition-normal);
}

textarea:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.form-consent {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-consent input {
    margin-right: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--dark-text-light);
    padding: 6rem 0 2rem;
}

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

.footer-logo {
    margin-bottom: 2rem;
    color: white;
}

.footer-desc {
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-widget-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--dark-text);
}

body.dark-mode .header.scrolled {
    background-color: var(--dark-bg);
    box-shadow: 0 5px 20px var(--dark-shadow);
}

body.dark-mode .theme-toggle {
    background-color: var(--dark-bg-light);
    color: var(--dark-text);
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .fa-sun {
    display: block;
}

body.dark-mode .menu-toggle span {
    background-color: var(--dark-text);
}

body.dark-mode .hero-subtitle,
body.dark-mode .section-desc,
body.dark-mode .feature-text,
body.dark-mode .service-text,
body.dark-mode .testimonial-text,
body.dark-mode .author-position {
    color: var(--dark-text-light);
}

body.dark-mode .bg-light {
    background-color: var(--dark-bg-light);
}

body.dark-mode .feature-card,
body.dark-mode .service-card,
body.dark-mode .testimonial-card {
    background-color: var(--dark-bg-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .form-group input,
body.dark-mode textarea {
    background-color: var(--dark-bg-light);
    color: var(--dark-text);
}

/* Custom Cursor Styles */
.cursor-dot, 
.cursor-outline {
    pointer-events: none;
    position: fixed;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 992px) {
    .hero .container,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .menu-toggle {
        display: flex;
        cursor: pointer;
        z-index: 101;
        transition: all var(--transition-normal);
    }
    
    .menu-toggle span {
        width: 24px;
        height: 2px;
        background-color: var(--text-color);
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: auto; /* Width based on content */
        min-width: 250px; /* Slightly increased minimum width */
        max-width: 80%; /* Maximum width on very small screens */
        height: 100vh;
        background-color: var(--primary-color); /* Changed background to primary color */
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
        padding: 8rem 3rem 2rem;
        z-index: 100;
        overflow-y: auto;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
        border-radius: 0 0 0 10px;
    }
    
    body.dark-mode .main-nav {
        background-color: var(--primary-dark); /* Darker background for dark mode */
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.active {
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border color */
    }
    
    body.dark-mode .nav-item {
        border-bottom-color: rgba(255, 255, 255, 0.1); /* Adjusted for dark mode */
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.6rem;
        transition: all 0.3s ease;
        color: white; /* Changed text color to white for better contrast */
        font-weight: 500; /* Slightly bolder text */
    }
    
    .nav-link:hover, .nav-link.active {
        color: white; /* Keep text white even on hover */
        background-color: rgba(255, 255, 255, 0.1); /* Add subtle background on hover */
        padding-left: 10px; /* Increase padding on hover */
        border-radius: 4px; /* Rounded corners */
    }
    
    .nav-link.active::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        background-color: white;
        border-radius: 50%;
        margin-right: 10px;
        position: relative;
        top: -2px;
    }
    
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .main-nav.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav::after {
        content: '×';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.4rem;
        color: white;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 15rem 0 10rem;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto 1.5rem;
    }
}
