/* Base Styles */
:root {
    --brand-primary: #3B82F6;
    --brand-dark: #1D4ED8;
    --brand-light: #60A5FA;
    --accent-blue: #0EA5E9;
    --background: #EFF6FF;
    --surface: #DBEAFE;
    --soft-blue: #F0F9FF;
    --muted-blue: #93C5FD;
    --secondary: #6366F1;
    --text-primary: #334155;
    --text-dark: #1E3A8A;
    --white: #FFFFFF;
    --gray-light: #F8FAFC;
    --gray-medium: #E2E8F0;
    --gray-dark: #64748B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--brand-dark);
}

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

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

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

.btn-outline:hover {
    background-color: var(--brand-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    position: relative;
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--brand-primary);
}

.main-nav i {
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

/* Mega Menu */
/* Mega Menu Fixes */
.mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 100vw;
    max-width: 1200px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 2px solid var(--brand-primary);
}

.mega-menu-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-container {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.mega-menu-column {
    flex: 1;
}

.mega-menu-column h4 {
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 0.8rem;
}

.mega-menu-column ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.mega-menu-column ul li a:hover {
    color: var(--brand-primary);
}

.mega-menu-column ul li i {
    width: 20px;
    text-align: center;
    color: var(--brand-primary);
}



/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #fff;
    z-index: 999;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
    background-color: #f9f9f9;
    color: #2563eb;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mega menu adjustments for mobile */
.mobile-menu .mega-menu {
    position: relative;
    left: 0;
    width: 100%;
    box-shadow: none;
    padding: 0;
    display: none;
    background-color: #f9f9f9;
}

.mobile-menu .mega-menu.active {
    display: block;
}

.mobile-menu .mega-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    padding: 0 15px;
    margin: 0 auto; /* Center the container itself */
    width: 100%;
    max-width: 300px; /* Optional: Set a max-width for better readability */
    box-sizing: border-box;
    text-align: right; /* Center text within items */
}

.mobile-menu .mega-menu-column {
    width: 100%;
    padding: 0;
    text-align: center;
    margin-bottom: 15px;
}

.mobile-menu .mega-menu-column h4 {
    /*margin-top: 15px;
    padding-left: 20px;*/
    padding: 10px 15px;
    margin: 0;
    font-size: 16px;
    color: #2563eb;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu .mega-menu-column ul {
    padding-left: 15px;
}

.mobile-menu .mega-menu-column ul li a {
    padding: 12px 15px;
    font-size: 14px;
}

.mobile-menu .mega-menu-column ul li a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Ensure the menu stays within viewport */
.mobile-menu {
    overflow-x: hidden;
}

/* Adjust the main menu items */
.mobile-menu > ul > li > a {
    padding-left: 20px;
}

.mobile-menu .mega-menu-trigger {
    position: relative;
}

.mobile-menu .mega-menu-link i {
    transition: transform 0.3s ease;
}

.mobile-menu .mega-menu-link.active i {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
}


/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background-color: var(--surface);
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--brand-primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--soft-blue);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-card ul {
    margin-bottom: 1.5rem;
}

.service-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--brand-primary);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--surface);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-dark);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 350px;
    background-color: var(--soft-blue);
    border-radius: 0.5rem;
    padding: 2rem;
    scroll-snap-align: start;
    border: 1px solid var(--gray-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--brand-light);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--text-primary);
}

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

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

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--brand-primary);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--muted-blue);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--surface);
}

.contact .container {
    display: flex;
    gap: 3rem;
}

.contact-content {
    flex: 1;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    margin-top: 2rem;
}

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

.contact-item i {
    font-size: 1.25rem;
    color: var(--brand-primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--brand-primary);
}

.footer-col p {
    color: var(--muted-blue);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--muted-blue);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

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

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem 0 0 0.375rem;
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0 1rem;
    background-color: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--brand-dark);
}

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

.footer-bottom p {
    color: var(--muted-blue);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted-blue);
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero .container,
    .about .container,
    .contact .container {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image,
    .about-image,
    .about-content,
    .contact-content,
    .contact-form {
        max-width: 100%;
        width: 100%;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0 0 1rem 0;
    }
    
   
    
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 1rem 0 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .mega-menu.active {
        display: block;
    }
    
    .mega-menu-container {
        flex-direction: column;
        padding: 0;
    }
    
    .mega-menu-column {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Submission Styles */

/* Form Messages */
.form-message {
    padding: 12px;
    margin-top: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #e6f7ee;
    color: #10B981;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.form-message i,
.newsletter-message i {
    margin-right: 8px;
}

.newsletter-message {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-message.success {
    background-color: #e6f7ee;
    color: #10B981;
    border: 1px solid #a7f3d0;
}

.newsletter-message.error {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.loading-spinner {
    display: none;
}