/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional agency color palette */
    --primary-text: #1A202C;
    --background: #FFFFFF;
    --primary-accent: #2B6CB0;
    --secondary-accent: #F7FAFC;
    --accent-hover: #1A365D;
    --card-shadow: rgba(43, 108, 176, 0.15);
    --text-muted: #4A5568;
    --section-bg: #F8FAFC;
    --border-color: #E2E8F0;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    /* Spacing - more generous */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.75rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
    --spacing-2xl: 5rem;

    /* Breakpoints - matching design.md */
    --mobile: 768px;
    --tablet: 1024px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--primary-text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.025em;
    color: var(--primary-text);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
}

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

a:hover {
    color: var(--primary-accent);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-hover);
}

.logo-image {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
    color: var(--primary-accent);
    fill: var(--primary-accent);
}

.logo:hover .logo-image {
    transform: scale(1.1);
}

.logo-text {
    color: var(--primary-accent);
}

.nav {
    display: none;
}

.nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--card-shadow);
    z-index: 999;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav.mobile-open .nav-list {
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-lg) 0;
}

.nav.mobile-open .nav-link {
    display: block;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 var(--spacing-md);
    width: calc(100% - 2 * var(--spacing-md));
    text-align: center;
}

.nav.mobile-open .nav-link:last-child {
    border-bottom: none;
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--primary-text);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--primary-accent), var(--accent-hover));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero section */
.hero {
    margin-top: 80px;
    padding: var(--spacing-2xl) 0;
    text-align: center;
    background: linear-gradient(180deg, #4299E1 0%, #2B6CB0 50%, #0F4C81 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="white" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="white" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.cta-button:hover::before {
    left: 100%;
}

/* Features section */
.features {
    padding: var(--spacing-2xl) 0;
    background: var(--section-bg);
}

.features h2 {
    text-align: center;
    color: var(--primary-text);
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-2xl);
    background: white;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 16px 16px 0 0;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(43, 108, 176, 0.25);
    border-color: var(--primary-accent);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-accent), var(--accent-hover));
    border-radius: 50%;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px var(--card-shadow);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.feature-card:nth-child(1) .feature-icon::before {
    width: 20px;
    height: 16px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.feature-card:nth-child(2) .feature-icon::before {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, white 40%, transparent 41%);
}

.feature-card:nth-child(3) .feature-icon::before {
    width: 24px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(to right, white 30%, transparent 30%, transparent 70%, white 70%);
}

.feature-card h3 {
    color: var(--primary-text);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Testimonials section */
.testimonials {
    padding: var(--spacing-2xl) 0;
    background: white;
    position: relative;
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-text);
    margin-bottom: var(--spacing-xl);
}

.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: var(--spacing-2xl);
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    margin: 0 var(--spacing-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-text);
    line-height: 1.6;
    position: relative;
    font-weight: 400;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-accent);
    position: absolute;
    top: -30px;
    left: -30px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-accent);
    position: absolute;
    bottom: -50px;
    right: -30px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-text);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-accent);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-accent);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1A202C 0%, #2D3748 100%);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--accent-hover));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.contact-form {
    display: grid;
    gap: var(--spacing-sm);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    background-color: white;
    color: var(--primary-text);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.submit-button {
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: linear-gradient(135deg, var(--primary-accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--primary-accent));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(43, 108, 176, 0.4);
}

.submit-button:hover::before {
    left: 100%;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-accent);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive styles */
@media (min-width: 768px) {
    .nav {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 4rem;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-accent);
    color: var(--primary-text);
    padding: var(--spacing-md);
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 0 -2px 10px var(--card-shadow);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner button {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #0056b3;
}

/* Responsive cookie banner */
@media (min-width: 768px) {
    .cookie-banner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-md);
        text-align: left;
    }
    
    .cookie-banner p {
        margin: 0;
        flex: 1;
        max-width: 600px;
    }
    
    .cookie-banner button {
        flex-shrink: 0;
    }
}

/* Dark mode - professional agency palette */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-text: #F7FAFC;
        --background: #0F1419;
        --primary-accent: #63B3ED;
        --secondary-accent: #1A202C;
        --accent-hover: #90CDF4;
        --card-shadow: rgba(99, 179, 237, 0.25);
        --text-muted: #A0AEC0;
        --section-bg: #1A202C;
        --border-color: #2D3748;
    }

    .hero {
        background: linear-gradient(180deg, #3B82F6 0%, #1E40AF 30%, #0F1419 70%, #0A0E12 100%);
    }

    .feature-card {
        background: var(--secondary-accent);
        border-color: var(--border-color);
        box-shadow: 0 12px 40px rgba(99, 179, 237, 0.15);
    }

    .testimonial {
        background: var(--secondary-accent);
        border-color: var(--border-color);
        box-shadow: 0 12px 40px rgba(99, 179, 237, 0.1);
    }

    .footer {
        background: linear-gradient(180deg, #0F1419 0%, #1A202C 100%);
    }

    .header {
        background-color: rgba(15, 20, 25, 0.95);
        border-bottom: 1px solid var(--border-color);
    }

    .nav.mobile-open {
        background-color: rgba(15, 20, 25, 0.98);
        border-bottom: 1px solid var(--border-color);
    }

    .logo-image {
        color: var(--primary-accent);
        fill: var(--primary-accent);
    }
}
