/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --spacing-unit: 8px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-unit);
}

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.5;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) 0;
}

.logo h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.cta-button {
    background: var(--primary-color) !important;
    color: var(--bg-white) !important;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3) !important;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.cta-button:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: calc(var(--spacing-unit) * 15) 0 calc(var(--spacing-unit) * 10) 0;
    margin-top: calc(var(--spacing-unit) * 10);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    align-items: center;
}

.hero-text {
    max-width: 100%;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: calc(var(--spacing-unit) * 4);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow-lg);
}

/* About Section */
.about {
    padding: calc(var(--spacing-unit) * 12) 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    align-items: center;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 6);
}

.stat {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.stat-label {
    color: var(--text-medium);
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow-md);
}

/* Testimonials Section */
.testimonials {
    padding: calc(var(--spacing-unit) * 12) 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.testimonial {
    background: var(--bg-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    color: var(--text-dark);
}

.author-info span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    padding: calc(var(--spacing-unit) * 12) 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    align-items: start;
}

.contact-features {
    margin-top: calc(var(--spacing-unit) * 4);
}

.feature {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-medium);
}

.feature-icon {
    font-size: 1.25rem;
}

.contact-form {
    background: var(--bg-light);
    padding: calc(var(--spacing-unit) * 6);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow-md);
}

.form h3 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-unit);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1.5);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.footer-brand h3 {
    color: var(--bg-white);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-brand p {
    color: var(--text-light);
    margin: 0;
}

.footer-links h4 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-links a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: var(--spacing-unit);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--text-light);
    padding-top: calc(var(--spacing-unit) * 3);
    text-align: center;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 10% auto;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--border-radius) * 2);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: calc(var(--spacing-unit) * 2);
    top: calc(var(--spacing-unit) * 2);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
    
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }
    
    .hero-image,
    .about-image {
        order: -1;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        padding: calc(var(--spacing-unit) * 2) 0;
    }
    
    .nav-links {
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .hero {
        padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 6) 0;
        margin-top: calc(var(--spacing-unit) * 12);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
        text-align: center;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: calc(var(--spacing-unit) * 3);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-unit);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: calc(var(--spacing-unit) * 3);
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2);
        display: block;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .modal {
        display: none !important;
    }
    
    .hero,
    .about,
    .testimonials,
    .contact {
        padding: calc(var(--spacing-unit) * 2) 0;
    }
}