:root {
    --bg: #ffffff;
    --text: #111111;
    --brand: #0ea5e9;
    --muted: #6b7280;
    --accent: #f59e0b;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

/* Dynamic Background */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(251, 191, 36, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(251, 191, 36, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 10% 60%, rgba(251, 191, 36, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 70% 10%, rgba(251, 191, 36, 0.35) 0%, transparent 55%);
    transition: all 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
}

.site-header.visible {
    transform: translateY(0);
}

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

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand);
    text-decoration: none;
}

.nav {
    display: none;
    gap: 1rem;
    align-items: center;
}

.nav[data-open="true"] {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.2s;
    position: relative;
}

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

.nav a.active {
    color: var(--brand);
    font-weight: 600;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
}

.nav a.active.btn::after {
    display: none;
}

.nav a.active.btn {
    border: 3px solid var(--brand);
    background: transparent;
    color: var(--brand);
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    font-weight: 600;
}

.nav a.active.btn::after {
    display: none !important;
}

.nav .btn {
    background: var(--brand);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
    }

    .nav-toggle {
        display: none;
    }
}

/* Sections */
section {
    padding: 4rem 0;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200&h=600&fit=crop') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.2s;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card h3 {
    color: var(--brand);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    margin-right: 3rem;
    max-width: calc(100% - 4rem);
}

.badge-empty {
    background: transparent;
    border: 2px solid var(--muted);
    color: transparent;
    min-width: 80px;
}

/* Service Card Expand/Collapse */
.service-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-card.expanded {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-expand-btn {
    position: absolute;
    right: 1rem;
    top: 3rem; /* Position between tag and title */
    background: white;
    color: var(--brand);
    border: 2px solid #d1d5db;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.service-expand-btn:hover {
    background: white;
    transform: scale(1.1);
    border-color: var(--accent);
}

.service-expand-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-expand-btn svg path {
    stroke: var(--brand);
    transition: stroke 0.3s ease;
}

.service-expand-btn:hover svg path {
    stroke: var(--accent);
}

.service-card.expanded .service-expand-btn svg {
    transform: rotate(180deg);
}

.service-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    padding-top: 0;
}

.service-card.expanded .service-card-content {
    max-height: 500px;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.service-card-spacer {
    flex-grow: 1;
    min-height: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    color: var(--brand);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.credibility {
    margin-top: 2rem;
}

.credibility li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .credibility {
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 2rem auto 0;
    }
    
    .credibility li {
        text-align: center;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Work/Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--brand);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.testimonial cite {
    color: var(--muted);
    font-weight: 600;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand);
    cursor: pointer;
}

.faq-answer {
    color: var(--muted);
    line-height: 1.7;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 0.5rem;
}

.contact-info h3 {
    color: var(--brand);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select:hover {
    border-color: var(--brand);
    background-color: #f8fafc;
}

.form-group select option {
    padding: 0.5rem;
    background-color: white;
    color: var(--text);
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.consent input {
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--brand);
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

/* Utility */
.text-center {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* Success/Error states */
.form-success {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.form-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Before/After Comparison Slider */
.comparison-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 1rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f0f0f0;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.comparison-after {
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--brand);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--brand);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.comparison-slider::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 8px;
    font-weight: bold;
    line-height: 1;
}

.comparison-label {
    position: absolute;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.comparison-label.before {
    left: 10px;
}

.comparison-label.after {
    right: 10px;
}

.comparison-container:hover .comparison-slider {
    background: var(--accent);
}

.comparison-container:hover .comparison-slider::before {
    background: var(--accent);
}

