/* ===== Palette ===== */
:root {
    --charcoal-900: #1c1919;
    --charcoal-800: #2a2929;
    --blue-700: #007EB3;
    --blue-600: #009FD5;
    --blue-500: #55A0BF;
    --blue-400: #57B8DD;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: #0f172a; /* panel text */
}

/* ===== Background base + animated overlapping radial gradients ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(var(--charcoal-900),var(--charcoal-800));
}

    .bg::before {
        content: "";
        position: absolute;
        inset: -18% -18%;
        background: radial-gradient(40% 30% at 15% 15%, rgba(0,126,179,.35), transparent 70%), radial-gradient(30% 45% at 80% 10%, rgba(0,159,213,.30), transparent 72%), radial-gradient(35% 35% at 75% 70%, rgba(87,184,221,.30), transparent 74%), radial-gradient(28% 40% at 25% 80%, rgba(85,160,191,.28), transparent 70%), radial-gradient(22% 30% at 50% 45%, rgba(0,126,179,.22), transparent 65%);
        filter: blur(12px) saturate(112%);
        mix-blend-mode: screen;
        opacity: .62;
        animation: gradientsMove1 120s ease-in-out infinite alternate, gradientsPulse1 40s ease-in-out infinite;
    }

    .bg::after {
        content: "";
        position: absolute;
        inset: -22% -22%;
        background: radial-gradient(52% 58% at 22% 30%, rgba(0,159,213,.18), transparent 70%), radial-gradient(46% 50% at 68% 76%, rgba(87,184,221,.16), transparent 72%), radial-gradient(36% 42% at 86% 36%, rgba(0,126,179,.14), transparent 75%);
        filter: blur(20px);
        mix-blend-mode: lighten;
        opacity: .42;
        animation: gradientsMove2 180s ease-in-out infinite alternate, gradientsPulse2 60s ease-in-out infinite;
    }

@keyframes gradientsMove1 {
    0% {
        background-position: 12% 18%,82% 8%,78% 72%,22% 82%,50% 48%;
        background-size: 96% 96%,100% 100%,104% 104%,98% 98%,100% 100%;
        transform: translate3d(-1%,-.5%,0) rotate(0) scale(1);
    }

    50% {
        background-position: 18% 22%,76% 14%,72% 66%,28% 78%,52% 52%;
        background-size: 100% 100%,105% 105%,108% 108%,101% 101%,104% 104%;
        transform: translate3d(1%, .6%,0) rotate(2deg) scale(1.02);
    }

    100% {
        background-position: 24% 26%,70% 18%,66% 60%,34% 74%,54% 56%;
        background-size: 106% 106%,110% 110%,102% 102%,104% 104%,108% 108%;
        transform: translate3d(-.8%,0,0) rotate(-2deg) scale(1.03);
    }
}

@keyframes gradientsPulse1 {
    0%,100% {
        filter: blur(12px) saturate(112%);
        opacity: .60;
    }

    50% {
        filter: blur(14px) saturate(125%);
        opacity: .68;
    }
}

@keyframes gradientsMove2 {
    0% {
        background-position: 20% 28%,65% 74%,86% 36%;
        background-size: 95% 95%,100% 100%,104% 104%;
        transform: translate3d(-2%,-1%,0) scale(1.01);
    }

    50% {
        background-position: 24% 32%,62% 70%,82% 40%;
        background-size: 100% 100%,103% 103%,107% 107%;
        transform: translate3d(1%,1%,0) rotate(3deg) scale(1.04);
    }

    100% {
        background-position: 28% 26%,68% 78%,78% 44%;
        background-size: 106% 106%,98% 98%,102% 102%;
        transform: translate3d(2%,-1%,0) rotate(-3deg) scale(1.02);
    }
}

@keyframes gradientsPulse2 {
    0%,100% {
        filter: blur(20px);
        opacity: .40;
    }

    50% {
        filter: blur(22px);
        opacity: .46;
    }
}

/* ===== Snow layers behind the panel ===== */
.layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    will-change: transform;
    z-index: -1;
}

    .layer.far {
        filter: blur(1.2px) opacity(.6);
    }

    .layer.mid {
        filter: blur(.6px) opacity(.8);
    }

    .layer.near {
        filter: blur(0) opacity(1);
    }

.flake {
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    text-shadow: 0 0 1px rgba(255,255,255,.6), 0 0 6px rgba(255,255,255,.18);
    will-change: transform;
    user-select: none;
}

/* ===== White overlay panel (responsive) ===== */
.panel-wrap {
    position: relative;
    z-index: 10; /* above snow/background */
    padding: clamp(16px, 3vw, 28px);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.panel {
    max-width: 1400px;
    margin: clamp(12px, 2.5vh, 24px) auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.25);
    overflow: hidden;
}

.panel-header {
    padding: clamp(20px, 2.5vh, 28px) clamp(28px, 4vw, 48px) clamp(12px, 1.5vh, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .panel-header .brand-title {
        font-weight: 700;
        letter-spacing: .02em;
        color: #0b1323;
        font-size: 1.05rem;
    }

.panel-body {
    padding: 0;
}

/* Carousel Section - Full Width */
.carousel-section {
    margin: 0;
    padding: 0;
}

/* Hero Section - Centered Content */
.hero-section {
    text-align: center;
    padding: clamp(24px, 3vh, 36px) clamp(28px, 4vw, 48px) clamp(12px, 1.5vh, 18px);
    max-width: 1000px;
    margin: 0 auto;
}

    .hero-section h1 {
        margin: 0;
        font-size: clamp(1.6rem, 2.2vw + .6rem, 2.4rem);
        line-height: 1.25;
        color: #0b1323;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

.hero-description {
    margin: clamp(14px, 2vh, 20px) auto 0;
    font-size: clamp(1rem, .7vw + .9rem, 1.15rem);
    color: #64748b;
    line-height: 1.65;
    max-width: 850px;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: clamp(20px, 2.5vh, 32px) clamp(28px, 4vw, 48px) clamp(32px, 4vh, 44px);
}

    .contact-section .btn {
        font-size: clamp(1rem, .6vw + .9rem, 1.1rem);
        padding: clamp(14px, 2vh, 18px) clamp(36px, 4vw, 48px);
        border-radius: 12px;
        font-weight: 700;
        transition: all 0.3s ease;
    }

        .contact-section .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,126,179,.45);
        }

/* Features Section */
.features-section {
    padding: clamp(12px, 2vh, 20px) clamp(20px, 3vw, 36px) clamp(20px, 3vh, 32px);
}

    .features-section h2 {
        text-align: center;
        margin: 0 0 clamp(12px, 2vh, 20px) 0;
        font-size: clamp(1.2rem, 1.2vw + .9rem, 1.6rem);
        color: #0b1323;
        font-weight: 700;
    }

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.btn-primary {
    background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,126,179,.35);
}

.btn-ghost {
    background: #f1f5f9;
    color: #0b1323;
    border: 1px solid #e2e8f0;
}

.section {
    margin-top: 28px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(14px, 2vw, 20px);
    margin-top: 10px;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(16px, 2vw, 22px);
    box-shadow: 0 2px 8px rgba(2,6,23,.04);
    transition: all 0.3s ease;
    text-align: center;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(2,6,23,.12);
        border-color: var(--blue-400);
    }

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    border-radius: 12px;
    color: white;
}

.card strong {
    display: block;
    font-size: clamp(1rem, .8vw + .85rem, 1.15rem);
    color: #0b1323;
    margin-bottom: 6px;
    font-weight: 700;
}

.card p {
    margin: 0;
    font-size: clamp(0.875rem, .4vw + .8rem, 0.95rem);
    color: #64748b;
    line-height: 1.5;
}

/* Bigger, crisper logo with independent top spacing */
.logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: clamp(20px, 1vh, 32px) 0;
}

    .logo img {
        display: block;
        width: clamp(280px, 55%, 600px);
        height: auto;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: -moz-crisp-edges;
        image-rendering: crisp-edges;
        -ms-interpolation-mode: nearest-neighbor;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

/* Fixed copyright footer */
.copyright {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 50; /* above panel/snow */
    color: rgba(255,255,255,.9);
    font-size: 12px;
    letter-spacing: .02em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
    pointer-events: none; /* let clicks pass through */
}

/* ===== Image Carousel ===== */
.carousel {
    position: relative;
    width: 100%;
    height: clamp(240px, 32vh, 360px);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

    .carousel-slide.active {
        opacity: 1;
        pointer-events: auto;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: clamp(20px, 3.5vw, 40px);
    background: rgba(0,0,0,.35);
    color: #fff;
    text-align: center;
}

    .carousel-text h2 {
        margin: 0 auto 8px auto;
        font-size: clamp(1.8rem, 2.8vw + .6rem, 2.6rem);
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -0.01em;
        text-shadow: 0 2px 10px rgba(0,0,0,.5);
        max-width: 800px;
    }

    .carousel-text p {
        margin: 0 auto;
        font-size: clamp(1.1rem, .8vw + .95rem, 1.3rem);
        line-height: 1.5;
        text-shadow: 0 1px 6px rgba(0,0,0,.4);
        opacity: 0.98;
        max-width: 700px;
    }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,.5);
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

        .carousel-dots .dot:hover {
            background: rgba(255,255,255,.8);
            transform: scale(1.2);
        }

        .carousel-dots .dot.active {
            background: #fff;
            width: 28px;
            border-radius: 5px;
        }

/* ===== Contact Form Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal.visible {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }

.modal-content {
    background: #ffffff;
    border-radius: 18px;
    padding: clamp(24px, 4vw, 40px);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    opacity: 0;
    transform: scale(0.85) translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal.visible .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .modal-header h2 {
        margin: 0;
        font-size: clamp(1.4rem, 2vw, 1.8rem);
        color: #0b1323;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .close-btn:hover {
        background: #f1f5f9;
        color: #0b1323;
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #0b1323;
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-family: inherit;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--blue-600);
            box-shadow: 0 0 0 3px rgba(0, 159, 213, 0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

    .form-actions .btn {
        flex: 1;
    }

.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

    .success-message.active {
        display: block;
    }

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-message h3 {
    margin: 0 0 8px 0;
    color: #0b1323;
    font-size: 1.4rem;
}

.success-message p {
    margin: 0;
    color: #64748b;
}
