/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* Design system colors - Improved for better readability */
:root {
    --primary: #1e40af; /* Darker blue for better contrast */
    --primary-glow: #3b82f6;
    --primary-foreground: #ffffff;
    --accent: #ea580c; /* Better contrast orange */
    --accent-foreground: #ffffff;
    --secondary: #f8fafc;
    --secondary-foreground: #1e293b; /* Darker text */
    --muted: #f1f5f9;
    --muted-foreground: #475569; /* Much darker for better readability */
    --border: #e2e8f0;
    --background: #ffffff;
    --foreground: #0f172a; /* Very dark for maximum readability */
    --card: #ffffff;
    --card-foreground: #1e293b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e40af, #3b82f6);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px rgba(30, 64, 175, 0.2);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 4px 20px -4px rgba(15, 23, 42, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
    background-color: #1e3a8a;
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
    transform: translateY(-1px);
}

.btn-hero {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-foreground);
    border: 2px solid var(--primary-foreground);
}

.btn-outline:hover {
    background-color: var(--primary-foreground);
    color: var(--primary);
}

/* Fix for links inside buttons */
.btn a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.btn-hero a {
    color: var(--primary-foreground);
}

.btn-outline a {
    color: var(--primary-foreground);
}

.btn-outline:hover a {
    color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo .accent {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background-color: var(--foreground);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--primary-foreground);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('src/assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-foreground);
}

.accent-block {
    display: block;
    color: var(--accent);
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95); /* Slightly more opaque for better readability */
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 32rem;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9); /* Better readability */
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.floating-1 {
    top: 5rem;
    left: 2.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--accent);
}

.floating-2 {
    bottom: 8rem;
    right: 4rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary-glow);
    animation-delay: 1s;
}

.floating-3 {
    top: 50%;
    right: 2rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--accent);
    animation-delay: 2s;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--gradient-subtle);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elegant);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: rgba(30, 64, 175, 0.2);
}

.service-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--card-foreground); /* Ensure good contrast */
}

.service-card p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.service-features li:before {
    content: "⚡";
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

.feature span {
    color: var(--foreground); /* Ensure readable text */
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    box-shadow: var(--shadow-elegant);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.stat-card .stat-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
    background: var(--gradient-subtle);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.reason-card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elegant);
}

.reason-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.reason-card:hover .reason-icon {
    background-color: rgba(30, 64, 175, 0.2);
}

.reason-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--foreground);
}

.reason-card p {
    color: var(--muted-foreground);
}

.when-choose {
    background-color: var(--card);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.when-choose h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--foreground);
}

.when-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.when-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.when-choose-item svg {
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.when-choose-item p {
    margin: 0;
    color: var(--foreground); /* Better readability */
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.contact-details p {
    margin: 0;
    color: var(--muted-foreground);
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.business-hours {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.hours-header svg {
    color: var(--primary);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

.hours-note {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.cta-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-note {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cta-note p {
    font-size: 0.875rem;
    margin: 0;
}

.company-info {
    background-color: var(--muted);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.company-info h4 {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.company-details {
    font-size: 0.875rem;
    color: var(--foreground); /* Better contrast than muted-foreground */
}

.company-details div {
    margin-bottom: 0.25rem;
    color: var(--foreground); /* Ensure each div also has proper contrast */
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-company h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-foreground);
}

.footer-company .accent {
    color: var(--accent);
}

.footer-company p {
    color: rgba(255, 255, 255, 0.9); /* Better readability */
    margin-bottom: 1rem;
    max-width: 28rem;
}

.company-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85); /* Better contrast */
}

.company-details p {
    margin-bottom: 0.25rem;
    color: inherit;
}

.footer-links h4,
.footer-contact h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-foreground);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.9); /* Better readability */
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9); /* Better contrast */
    font-size: 0.875rem;
}

.footer-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8); /* Better readability */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Fix mobile menu positioning */
    .header {
        position: relative;
    }
    
    .nav[style*="position: absolute"] {
        z-index: 9999;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--border);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .when-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-stats {
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}