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

:root {
    /* Color System */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --secondary-light: #34d399;
    --accent: #f59e0b;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

    /* Spacing System (8px base) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-10: 5rem;
    --space-12: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    color: var(--neutral-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neutral-900);
    color: white;
    padding: var(--space-3);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-4);
}

.cookie-content p {
    margin: 0;
    font-size: 0.875rem;
}

.cookie-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-accept {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: var(--space-4);
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-12) var(--space-4) var(--space-8);
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    color: var(--neutral-900);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-6);
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* About Section */
.about {
    padding: var(--space-10) 0;
    background: white;
}

.about h2 {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--neutral-900);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--neutral-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.feature-card h3 {
    margin-bottom: var(--space-3);
    color: var(--neutral-900);
}

.feature-card p {
    color: var(--neutral-600);
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    padding: var(--space-10) 0;
    background: var(--neutral-100);
}

.projects h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.project-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-item h3 {
    padding: var(--space-4) var(--space-4) var(--space-2);
    color: var(--neutral-900);
}

.project-item p {
    padding: 0 var(--space-4) var(--space-4);
    color: var(--neutral-600);
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-10) 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--neutral-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--space-4);
    color: var(--neutral-700);
}

.testimonial-author strong {
    display: block;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
}

.testimonial-author span {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    padding: var(--space-10) 0;
    background: var(--neutral-100);
}

.contact h2 {
    text-align: center;
    margin-bottom: var(--space-4);
}

.contact > .container > p {
    text-align: center;
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 500;
    color: var(--neutral-700);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    background: var(--secondary);
    color: white;
    padding: var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.submit-button:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: white;
    padding: var(--space-8) 0 var(--space-4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--space-3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-1);
}

.footer-section a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: var(--space-4);
    text-align: center;
    color: var(--neutral-400);
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: var(--space-3);
    }

    .nav-links {
        gap: var(--space-3);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-8) var(--space-4) var(--space-6);
        margin-top: 120px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-image {
        order: 1;
    }

    .features,
    .project-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: var(--space-6);
    }
}