:root {
    /* Nexlume Brand Colors */
    --color-dark: #111111;      /* logo black */
    --color-navy: #1F8FB6;      /* logo blue */
    --color-gold: #F4B400;      /* lightning gold */
    --color-light: #F5F7FA;     /* light background */
    --color-accent: #0E5F78;    /* deep blue shade */
    --color-grey: #6c757d;
    --color-black: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-light);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 95, 120, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 5%;
    border-bottom: 1px solid rgba(245, 182, 52, 0.3);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-gold);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #111111 0%, #0E5F78 50%, #1F8FB6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 182, 52, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(43, 122, 155, 0.12) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--color-gold);
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--color-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--color-light);
    font-weight: 300;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    opacity: 0.95;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: inline-flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.4s ease;
    letter-spacing: 1px;
    border: 2px solid;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #F4B400, #FFD34D);
    color: #111;
    border: none;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}

.btn-secondary:hover {
    background: var(--color-light);
    color: var(--color-dark);
    transform: translateY(-3px);
}

/* About Section */
.section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.about-card {
    padding: 2.5rem;
    background: white;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.about-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.about-card-text {
    color: var(--color-grey);
    line-height: 1.8;
}

/* Services Section */
.services {
    background: var(--color-black);
    color: var(--color-light);
}

.services .section-title {
    color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(43, 122, 155, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    padding: 2.5rem;
    border: 1px solid rgba(245, 182, 52, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 182, 52, 0.2), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: scale(1.05);
    border-color: var(--color-gold);
    box-shadow: 0 20px 50px rgba(245, 182, 52, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-light);
    line-height: 1.7;
    opacity: 0.9;
}

/* Products Section */
.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-item {
    background: white;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: var(--color-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.product-name {
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--color-grey);
}

/* Brands Section */
.brands {
    background: linear-gradient(135deg, #0E5F78 0%, #111111 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.brands::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(244,180,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.brands-inner {
    position: relative;
    z-index: 1;
}

.brands-header {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 3.5rem;
}

.brands-header .section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #F4B400;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.brands-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #F5F7FA;
    margin-bottom: 0.75rem;
}

.brands-subtitle {
    color: rgba(245,247,250,0.6);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Conveyor container — clips the scrolling track */
.brands-conveyor {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* The scrolling track — CSS animation drives it */
.brands-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: conveyor 40s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;  /* pause on hover */
}

@keyframes conveyor {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* slides back to start (duplicate set) */
}

/* Individual brand tile */
.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    width: 220px;    /* 2 tiles visible on ~480px viewport, wider on desktop */
    cursor: default;
}

/* White pill background for logos */
.brand-logo-wrap {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(244,180,0,0.2);
    width: 200px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-tile:hover .brand-logo-wrap {
    transform: translateY(-6px) scale(1.04);
    border-color: #F4B400;
    box-shadow: 0 16px 40px rgba(244,180,0,0.25);
}

.brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}

.brand-tile-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(245,247,250,0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.brand-tile:hover .brand-tile-name {
    color: #F4B400;
}

/* Soft fade edges so tiles disappear smoothly */
.conveyor-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.conveyor-fade--left {
    left: 0;
    background: linear-gradient(to right, #0E5F78, transparent);
}

.conveyor-fade--right {
    right: 0;
    background: linear-gradient(to left, #111111, transparent);
}

/* Responsive: tighter tiles on mobile */
@media (max-width: 768px) {
    .brand-tile {
        width: 160px;
    }
    .brand-logo-wrap {
        width: 140px;
        height: 80px;
        padding: 0.8rem 1rem;
    }
    .brands-title {
        font-size: 2rem;
    }
    .conveyor-fade {
        width: 60px;
    }
    /* Slightly faster on mobile so motion feels intentional */
    .brands-track {
        animation-duration: 28s;
    }
}

/* Contact Section */
.contact {
    background: var(--color-light);
    padding: 6rem 5%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-detail-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-top: 0.2rem;
}

.contact-detail-content h4 {
    color: var(--color-navy);
    margin-bottom: 0.3rem;
}

.contact-detail-content p {
    color: var(--color-grey);
}

.contact-form {
    background: white;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: var(--color-black);
    color: var(--color-light);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-text {
    color: var(--color-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--color-gold);
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 182, 52, 0.2);
    color: var(--color-grey);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .services-grid,
    .products-showcase {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}