:root {
    --primary: #0a2463;
    --secondary: #fb3640;
    --accent: #ffca3a;
    --dark: #1e1e1e;
    --light: #f8f9fa;
    --gray: #6c757d;

    /* Glassmorphism tokens */
    --glass: rgba(255, 255, 255, 0.15);
    --glass-strong: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-blur: blur(16px);

    /* Glow tokens */
    --glow-blue: 0 0 18px rgba(10, 100, 220, 0.35), 0 0 40px rgba(10, 100, 220, 0.15);
    --glow-red: 0 0 18px rgba(251, 54, 64, 0.4), 0 0 40px rgba(251, 54, 64, 0.15);
    --glow-soft: 0 4px 24px rgba(10, 36, 99, 0.12);

    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 40%, #e0ecff 70%, #f8f9fa 100%);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sections */
section {
    padding: 100px 5%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Header & Nav ─────────────────────────────── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glow-soft);
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glow-blue);
    border-bottom: 1px solid rgba(10, 100, 220, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(10, 36, 99, 0.3));
}

.logo span {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    box-shadow: var(--glow-red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
    text-shadow: 0 0 12px rgba(251, 54, 64, 0.35);
}

nav a:hover::after {
    width: 100%;
}

nav a:active {
    transform: scale(0.85);
    filter: brightness(1.2);
}

/* ─── CTA Button ───────────────────────────────── */
.cta-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--secondary), #d42f38);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(251, 54, 64, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-red), 0 10px 30px rgba(251, 54, 64, 0.35);
}

.cta-button:hover::before {
    opacity: 1;
}

/* ─── Hero Section ─────────────────────────────── */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 36, 99, 0.72), rgba(5, 25, 55, 0.82)), url('../images/ocean_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(10, 36, 99, 0.4));
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 40px rgba(100, 160, 255, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* ─── About Section ────────────────────────────── */
.about {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(10, 36, 99, 0.1);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--gray);
}

/* ─── Partner Logos Grid ───────────────────────── */
.partner-logos-container {
    margin-top: 40px;
}

.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.partner-card {
    background: var(--glass-strong);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.partner-card img {
    max-width: 100%;
    max-height: 85px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(10, 100, 220, 0.3);
}

.partner-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ─── Gallery Section ──────────────────────────── */
.gallery {
    background: rgba(240, 244, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3/4;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--glow-blue);
    border-color: rgba(10, 100, 220, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 99, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* ─── Products Section ─────────────────────────── */
.products {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--glass-strong);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(10, 100, 220, 0.3);
}

.product-image {
    height: 250px;
    background: rgba(248, 249, 250, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-info p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--secondary);
    text-shadow: 0 0 12px rgba(251, 54, 64, 0.25);
}

/* ─── Contact Section ──────────────────────────── */
.contact {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.glass-form input,
.glass-form textarea {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    color: var(--dark);
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.glass-form input:focus,
.glass-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(10, 100, 220, 0.4);
    box-shadow: 0 0 15px rgba(10, 100, 220, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.contact-info {
    padding: 40px;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.95));
    color: white;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--glow-blue);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.glass-panel {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow), var(--glow-soft);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-panel:hover {
    box-shadow: var(--glow-blue);
    border-color: rgba(10, 100, 220, 0.3);
}

/* ─── Animations ───────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Footer ───────────────────────────────────── */
footer {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--dark), var(--primary));
    background-size: 400% 400%;
    animation: footerGradientBG 15s ease infinite;
    color: white;
    padding: 80px 5% 40px;
    /* Increased length / height */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 40px rgba(10, 36, 99, 0.25);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    /* Increased spacing inside */
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Snow Overlay ─────────────────────────────── */
.snow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10vh;
    color: rgba(10, 36, 99, 0.55);
    user-select: none;
    text-shadow: 0 0 6px rgba(10, 36, 99, 0.25);
    animation: snowFall linear infinite;
}

@keyframes snowFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(110vh) translateX(20px) rotate(360deg);
    }
}