/* ================= GLOBAL & VARIABLES ================= */
:root {
    --primary-dark: #031424;
    --accent-gold: #cca43b;
    --light-gold: #ffd76b;
    --soft-white: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    background: var(--soft-white);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ================= PREMIUM HEADER ================= */
.header{
    position: relative;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px 20px;
    background: linear-gradient(135deg, #02111d 0%, #072338 25%, #0b3c5d 50%, #135d8b 80%, #1f75ac 100%);
}

/* PARTICLES */
.particles{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles span{
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 215, 120, 0.7);
    box-shadow: 0 0 12px rgba(255, 215, 120, 0.8), 0 0 24px rgba(255, 215, 120, 0.4);
    animation: floatParticles linear infinite;
}

.particles span:nth-child(1){ left: 12%; animation-duration: 15s; }
.particles span:nth-child(2){ left: 28%; animation-duration: 18s; animation-delay: 2s; }
.particles span:nth-child(3){ left: 45%; animation-duration: 13s; animation-delay: 1s; }
.particles span:nth-child(4){ left: 60%; animation-duration: 20s; }
.particles span:nth-child(5){ left: 75%; animation-duration: 16s; animation-delay: 3s; }
.particles span:nth-child(6){ left: 90%; animation-duration: 14s; animation-delay: 1.5s; }

.logo-box{
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo{
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255,215,120,0.25));
    animation: logoFloat 6s ease-in-out infinite;
}

.brand-name{
    position: relative;
    margin-top: 15px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff;
    padding-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.brand-name::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--light-gold), transparent);
}

.brand-tagline{
    margin-top: 20px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    font-weight: 300;
}

/* ================= MODERN STICKY NAVBAR ================= */
.navbar{
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(3, 20, 36, 0.92);
    border-bottom: 1px solid rgba(255, 215, 120, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.navbar a{
    position: relative;
    color: #f8fafc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.navbar a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: var(--light-gold);
    transition: var(--transition-smooth);
}

.navbar a:hover{
    color: var(--light-gold);
}

.navbar a:hover::after{
    width: 100%;
}

/* ================= LUXURY VIDEO CONTAINER ================= */
.video-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3,20,36,0.4), transparent 30%, rgba(3,20,36,0.4));
    pointer-events: none;
}

.mute-button {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 10;
    background: rgba(3, 20, 36, 0.75);
    color: white;
    border: 1px solid rgba(255, 215, 120, 0.4);
    padding: 12px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mute-button:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
    border-color: var(--light-gold);
    color: var(--light-gold);
}

/* ================= SECTIONS & TITLES ================= */
.section{
    padding: 100px 5%;
}

.title{
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary-dark);
    position: relative;
    letter-spacing: 1px;
}

.title::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-gold);
}

/* ================= 4-COLUMN SERVICES GRID ================= */
.grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================= PREMIUM SERVICES CARDS ================= */
.card{
    background: var(--card-bg);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0,0,0,0.03);
}

.card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-gold));
    transition: var(--transition-smooth);
}

.card:hover{
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(11, 60, 93, 0.15);
    border-color: rgba(204, 164, 59, 0.2);
}

.card:hover::before {
    height: 6px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3{
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.card p{
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.card-highlight {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin-top: 10px;
    text-transform: uppercase;
}

.card-btn{
    display: block;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    background: var(--primary-dark);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.card:hover .card-btn {
    background: linear-gradient(135deg, var(--accent-gold), #b08b2e);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(204, 164, 59, 0.3);
}

/* ================= STRICT COLLAGE / MASONRY (Images & Videos) ================= */
/* We apply the exact same logic to both .gallery and .video-grid so both become collages */
.gallery,
.video-grid {
    display: block; /* CRITICAL: Must be block for columns to work */
    column-count: 3;
    column-gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 5%;
}

.gallery img,
.gallery video,
.video-grid img,
.video-grid video {
    width: 100%;
    height: auto;
    display: block; /* CRITICAL: Prevents awkward inline spacing */
    margin-bottom: 25px; /* Must match column-gap */
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    -webkit-column-break-inside: avoid; /* CRITICAL: Prevents cutting items in half */
    page-break-inside: avoid;
    break-inside: avoid;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery img:hover,
.gallery video:hover,
.video-grid img:hover,
.video-grid video:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(11, 60, 93, 0.2); 
    z-index: 2;
    position: relative;
}

/* Hide native controls if you want a clean look */
.gallery video::-webkit-media-controls-volume-slider,
.gallery video::-webkit-media-controls-mute-button,
.video-grid video::-webkit-media-controls-volume-slider,
.video-grid video::-webkit-media-controls-mute-button {
    display: none !important;
}

/* ================= IMAGE POPUP ================= */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 20, 36, 0.95); 
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: var(--light-gold);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* ================= ELEGANT ABOUT SECTION ================= */
.about{
    padding: 100px 15%;
    background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
    text-align: center;
}

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

.about p{
    line-height: 1.9;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 300;
}

/* ================= MODERN CENTERED CONTACT SECTION ================= */
.contact-box {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    max-width: 550px;
    margin: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
}

.contact-box p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

.email-center {
    color: #135d8b;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.email-center:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* ================= PREMIUM FLOATING WHATSAPP ================= */
.whatsapp{
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp:hover{
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* ================= DEEP DARK FOOTER ================= */
footer{
    background: #020b12;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 35px 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ================= ANIMATIONS KEYFRAMES ================= */
@keyframes logoFloat{
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes floatParticles{
    0%{ transform: translateY(105vh) scale(0.5); opacity: 0; }
    10%{ opacity: 1; }
    90%{ opacity: 1; }
    100%{ transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* ================= RESPONSIVE DESIGN (MEDIA QUERIES) ================= */

/* Tablets / Medium Screens */
@media(max-width: 1024px){
    .grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .brand-name{
        font-size: 3.2rem;
    }

    .video-container {
        height: 450px;
    }

    /* Tablet Gallery/Video Layout */
    .gallery,
    .video-grid {
        column-count: 2;
        column-gap: 20px;
    }
    
    .gallery img,
    .gallery video,
    .video-grid img,
    .video-grid video {
        margin-bottom: 20px;
    }
}

/* Small Tablets / Large Mobile */
@media(max-width: 768px){
    .navbar{
        gap: 25px;
        padding: 15px;
    }

    .navbar a {
        font-size: 13px;
    }

    .brand-name{
        font-size: 2.5rem;
    }

    .brand-name::after{
        width: 140px;
    }

    .section {
        padding: 70px 6%;
    }

    .title {
        font-size: 2.2rem;
    }

    .about {
        padding: 70px 8%;
    }

    .contact-box {
        padding: 30px 20px;
    }
}

/* Mobile Phones */
@media(max-width: 540px){
    .grid{
        grid-template-columns: 1fr;
    }

    .navbar {
        gap: 15px;
    }

    .brand-name{
        font-size: 1.9rem;
    }

    .brand-tagline{
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .video-container {
        height: 320px;
    }

    .mute-button {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Mobile Gallery/Video Layout */
    .gallery,
    .video-grid {
        column-count: 1;
        column-gap: 15px;
        padding: 0;
    }
    
    .gallery img,
    .gallery video,
    .video-grid img,
    .video-grid video {
        margin-bottom: 15px;
    }
}
