/* 
    AL FAISAL PERFUME - DESIGN SYSTEM & STYLES
    ------------------------------------------
    Theme: Omani Luxury & Heritage
    Target: High-end interactive experience
    
    This stylesheet uses CSS Variables (Custom Properties) to make customization easy.
    Values wrapped in *** are intended for the student to modify.
*/

:root {
    /* BRAND COLORS - MODIFIABLE SECTION */
    --primary-gold: ***#D4AF37***;
    /* Royal Gold */
    --primary-blue: ***#002366***;
    /* Deep Omani Coast Blue */
    --secondary-blue: ***#003399***;
    /* Vibrant Energy Blue */
    --accent-sand: ***#F4E1D2***;
    /* Desert Sand */
    --text-light: #FFFFFF;
    --text-dark: #1A1A1A;
    --glass-bg: rgba(255, 255, 255, 0.1);

    /* TYPOGRAPHY */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* ANIMATION SPEEDS */
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents overlap from fixed nav */
}

body {
    background-color: var(--text-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

a,
button {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1.2s forwards 0.8s;
}

/* --- INTERACTIVE VIDEO SECTION --- */
.video-section {
    padding: 100px 5%;
    background-color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#brandVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.storyline-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-btn {
    background: var(--primary-gold);
    color: var(--text-dark);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.story-btn:hover {
    transform: scale(1.05);
    background: white;
}

/* --- IMAGE GALLERY --- */
.gallery {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: 10px;
}

.gallery-item img,
.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* --- FOOTER & EASTER EGG --- */
footer {
    padding: 80px 5% 40px;
    background-color: #0d0d0d;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.easter-egg {
    width: 30px;
    height: 30px;
    margin: 20px auto;
    background-color: transparent;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transform: rotate(45deg);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.easter-egg:active {
    background-color: var(--primary-gold);
    transform: rotate(225deg) scale(1.5);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for example */
}