/* CSS Variables & Reset */
:root {
    --bg-dark: #0a0a0a;
    --bg-light: #f4f4f5;
    --text-dark: #121212;
    --text-light: #ffffff;
    --accent: #ffffff;
    --accent-hover: #dddddd;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

section {
    padding: 100px 0;
    position: relative;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 5px;
    color: var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 150px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlideshow 25s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }

@keyframes fadeSlideshow {
    0% { opacity: 0; transform: scale(1.05); }
    4% { opacity: 1; }
    20% { opacity: 1; transform: scale(1); }
    24% { opacity: 0; }
    100% { opacity: 0; transform: scale(1.05); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(10,10,10,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Hero Title */
.hero-title {
    font-size: 2.1rem;
    color: var(--text-light);
    letter-spacing: 10px;
    margin-bottom: 10px;
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Sections Global */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    margin-top: 20px;
    color: #666;
}

.center {
    text-align: center;
}

.center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    margin-top: 30px;
    border-radius: 2px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 4px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    filter: grayscale(20%);
    transition: var(--transition);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    z-index: 1;
    border-radius: 4px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

/* Portfolio Section */
.video-grid {
    grid-auto-rows: auto;
}
.video-item {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.video-item:hover {
    transform: translateY(-5px);
}
.video-item video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
    outline: none;
}
.video-title {
    padding: 15px;
    text-align: left;
}
.video-title h5 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}
.video-title p {
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.col-span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.portfolio-overlay h5 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.play-btn {
    margin-top: 20px;
    width: 50px;
    height: 50px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
}

.portfolio-item:hover .portfolio-overlay h5,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .play-btn {
    transform: translateY(0);
}

.play-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

/* Underwater Section */
.underwater {
    padding: 150px 0;
    color: var(--text-light);
}

.underwater-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 1;
}

.underwater-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 15, 30, 0.9) 0%, rgba(0, 15, 30, 0.4) 100%);
}

.underwater-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 0;
}

.light-text.section-title::after {
    background: var(--text-light);
}

.large-text {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin: 30px 0 20px;
    color: var(--accent);
}

.desc-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 50px;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--accent);
    line-height: 1;
}

.stat .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 0.7;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 30px 0;
    color: #999;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #666;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Footer */
footer {
    background: #050505;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.credit {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
    
    .row-span-2 {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 1.225rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slide {
        background-size: contain;
        background-repeat: no-repeat;
    }
}
