:root {
    /* Trustworthy Modern Corporate Colors */
    --c-primary: #2563eb; /* Strong Trust Blue */
    --c-primary-hover: #1d4ed8;
    --c-dark: #0f172a; /* Slate 900 for text/dark backgrounds */
    --c-text: #334155; /* Slate 700 for body text */
    --c-muted: #64748b; /* Slate 500 */
    --c-bg: #ffffff;
    --c-bg-light: #f8fafc; /* Slate 50 */
    --c-bg-grid: #f1f5f9; /* Slate 100 */
    --c-border: #e2e8f0; /* Slate 200 */

    --c-accent: #f59e0b; /* Amber 500 */
    --c-green: #10b981; /* Emerald 500 */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .tagline {
    font-family: var(--font-heading);
    color: var(--c-dark);
}

.text-blue { color: var(--c-primary); }
.text-white { color: var(--c-bg); }
.text-center { text-align: center; }
.mt-3 { margin-top: 2rem; }
.bg-light { background-color: var(--c-bg-light); }
.bg-dark { background-color: var(--c-dark); color: var(--c-bg); }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.title-md {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--c-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.subtitle-md {
    font-size: 1.125rem;
    color: var(--c-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.tagline {
    display: inline-block;
    color: var(--c-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-body);
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; padding: 1rem; }

.btn-primary {
    background-color: var(--c-primary);
    color: var(--c-bg);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-dark);
    border-color: var(--c-border);
}

.btn-outline:hover {
    background-color: var(--c-bg-light);
    border-color: var(--c-muted);
}

.btn-white {
    background-color: var(--c-bg);
    color: var(--c-dark);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--c-bg-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    border-bottom-color: var(--c-border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--c-primary), #60a5fa);
    border-radius: 6px;
}

.logo-icon.small { width: 20px; height: 20px; border-radius: 4px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    padding-top: 150px;
    position: relative;
    background-color: var(--c-bg-light);
    background-image: 
        linear-gradient(to right, var(--c-bg-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--c-bg-grid) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 8rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-indicators {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--c-muted);
    font-weight: 500;
}

/* Mockup CSS */
.mockup-window {
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    animation: hoverWindow 6s infinite ease-in-out;
}

@keyframes hoverWindow {
    0%, 100% { transform: translateY(0); box-shadow: var(--shadow-lg); }
    50% { transform: translateY(-12px); box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 15px 15px -5px rgba(0, 0, 0, 0.04); }
}

.mockup-header {
    background-color: var(--c-bg-light);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--c-border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.mockup-body {
    padding: 2rem;
    flex: 1;
}

.mockup-line { 
    height: 12px; 
    border-radius: 6px; 
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--c-border) 25%, #f8fafc 50%, var(--c-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}
.mockup-line.w-long { width: 60%; }
.mockup-line.w-short { width: 40%; margin-bottom: 2rem; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mockup-box {
    width: 100%; height: 120px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe, #eff6ff);
    background-size: 200% 200%;
    animation: gradientShimmer 4s infinite ease;
}

@keyframes gradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mockup-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.mockup-card { 
    background: linear-gradient(90deg, #f1f5f9 25%, #ffffff 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 6px; 
    height: 80px; 
    animation: floatCard 3s infinite ease-in-out, shimmer 2s infinite linear;
}

.mockup-card:nth-child(1) { animation-delay: 0s, 0s; }
.mockup-card:nth-child(2) { animation-delay: 0.2s, 0s; }
.mockup-card:nth-child(3) { animation-delay: 0.4s, 0s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.wave-bottom {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 1;
}
.wave-bottom svg { display: block; width: 100%; height: auto; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.icon-wrapper {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-blue { background-color: #eff6ff; color: var(--c-primary); }
.icon-amber { background-color: #fffbeb; color: var(--c-accent); }
.icon-green { background-color: #ecfdf5; color: var(--c-green); }

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Accessibility - WCAG 2.2 Stricter Focus States */
*:focus-visible {
    outline: 3px solid var(--c-primary);
    outline-offset: 3px;
    border-radius: 2px;
}
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid var(--c-primary);
    outline-offset: 2px;
}

/* Typography */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.portfolio-card {
    text-decoration: none;
    color: var(--c-dark);
    display: block;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.bg-warm { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.bg-cool { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius-md);
}

.portfolio-card:hover .overlay { opacity: 1; }

.portfolio-text h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.portfolio-text p { color: var(--c-muted); font-size: 0.95rem; font-weight: 500; }

/* About */
.about-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.about-text { flex: 1; }
.about-text p { color: #cbd5e1; margin-bottom: 1.5rem; font-size: 1.125rem; }

.about-stats {
    display: flex;
    gap: 3rem;
}

.stat-number { font-size: 3.5rem; font-family: var(--font-heading); font-weight: 800; color: var(--c-bg); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { color: var(--c-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.875rem; }

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-icon {
    font-size: 1.5rem;
    background: var(--c-bg-light);
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.method h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }

.contact-form-card {
    background-color: var(--c-bg);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-border);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--c-dark); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--c-bg-light);
    transition: all 0.2s ease;
}

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

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--border-radius-sm); margin-bottom: 1rem; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--c-dark); font-family: var(--font-body); cursor: pointer; text-align: left; transition: background-color 0.3s ease; }
.faq-question:hover { background-color: var(--c-bg-light); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease; background: var(--c-bg); }
.faq-answer p { margin-bottom: 1.5rem; color: var(--c-text); font-size: 1rem; line-height: 1.6; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 1.5rem 1.5rem 1.5rem; transition: max-height 0.4s ease-in-out, padding 0.4s ease; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); transition: transform 0.3s ease; }
.faq-question .icon { font-size: 1.5rem; color: var(--c-primary); transition: transform 0.3s ease; display: inline-block;}

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 2rem; left: 2rem; right: 2rem; z-index: 1000; background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow-lg); border-radius: var(--border-radius-md); padding: 1.5rem; max-width: 600px; transform: translateY(150%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-content p { font-size: 0.9rem; color: var(--c-text); margin-bottom: 1rem; }
.cookie-content a { color: var(--c-primary); text-decoration: underline; font-weight: 500; }
.cookie-buttons { display: flex; gap: 1rem; }
@media (min-width: 640px) {
    .cookie-banner { display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto; gap: 2rem; }
    .cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
    .cookie-content p { margin-bottom: 0; flex: 1; }
}
@media (max-width: 639px) {
    .cookie-banner { bottom: 1rem; left: 1rem; right: 1rem; }
    .cookie-buttons { flex-direction: column; }
    .cookie-buttons .btn { width: 100%; }
}

/* Footer */
.footer { border-top: 1px solid var(--c-border); padding: 4rem 0 2rem; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--c-muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--c-text); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--c-primary); }
.copyright { border-top: 1px solid var(--c-border); padding-top: 2rem; text-align: center; color: var(--c-muted); font-size: 0.875rem; }

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero-text { text-align: center; margin: 0 auto; }
    .subtitle { margin-left: auto; margin-right: auto; }
    .button-group, .trust-indicators { justify-content: center; flex-wrap: wrap; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .about-layout { flex-direction: column; text-align: center; }
    .about-stats { justify-content: center; }
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--c-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    
    .nav-links { 
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links a:not(.btn) { font-size: 1.5rem; }
    .nav-links .btn { font-size: 1.25rem; padding: 1rem 2rem; }
    
    .footer-content { flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
}
