html {
    scroll-behavior: smooth;
}

/* Warm neutral background instead of pure white */
body {
    background-color: #FAFAF8;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #46A4D8;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 0 4px 0;
}
.skip-to-content:focus {
    top: 0;
}

/* Hero gradient — deeper and more sophisticated */
.hero-gradient {
    background: linear-gradient(135deg, #0B1120 0%, #1a2d4a 40%, #0f3a5c 100%);
}

/* Subtle texture overlay for hero */
.hero-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Nav — solid dark to match the hero tone */
.nav-v2 {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* Service cards — no borders, refined shadow */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

/* Icon wrapper — minimal line-art style */
.icon-line {
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Gallery */
.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
#lightbox-overlay {
    animation: fadeIn 0.2s ease;
}
#lightbox-overlay img {
    max-height: 75vh;
    max-width: 90vw;
    border-radius: 12px;
}

/* Scroll animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* IntersectionObserver trigger class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-group .reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-group.revealed .reveal-child:nth-child(1) { transition-delay: 0s; }
.reveal-group.revealed .reveal-child:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.revealed .reveal-child:nth-child(3) { transition-delay: 0.2s; }
.reveal-group.revealed .reveal-child:nth-child(4) { transition-delay: 0.3s; }
.reveal-group.revealed .reveal-child:nth-child(5) { transition-delay: 0.4s; }
.reveal-group.revealed .reveal-child:nth-child(6) { transition-delay: 0.5s; }

.reveal-group.revealed .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* Process timeline */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 1px;
    height: calc(100% - 2rem);
    background: linear-gradient(to bottom, #46A4D8, transparent);
}

@media (min-width: 1024px) {
    .process-step::after {
        top: 3rem;
        left: auto;
        right: -3rem;
        width: calc(100% - 6rem);
        height: 1px;
        background: linear-gradient(to right, #46A4D8, transparent);
    }
    .process-step:last-child::after {
        display: none;
    }
}

.process-step:last-child::after {
    display: none;
}

/* Trust bar */
.trust-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.trust-logo:hover {
    transform: translateY(-2px);
    opacity: 0.8 !important;
}

/* Gallery filter */
.gallery-filter-btn.active {
    background: #0B1120;
    color: white;
}

.gallery-filter-btn {
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
    background: #1a2d4a;
    color: white;
}

/* Form */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-size: 0.95rem;
    background: white;
}

.form-input:focus {
    border-color: #46A4D8;
    box-shadow: 0 0 0 3px rgba(70, 164, 216, 0.12);
}

.form-input.error {
    border-color: #ef4444;
}

/* Placeholder */
.placeholder-bg {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
    font-weight: 700;
}

/* Scroll indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* CTA button refinements */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    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;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-ghost {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #0B1120;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 40;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #46A4D8;
    transform: translateY(-2px);
}

/* Loading spinner on button */
.btn-spinner {
    display: inline-block;
}

.btn-spinner.hidden {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
