/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Color Palette - Cinematic Dark Theme */
    --bg-color: #0d0d0d;
    --bg-surface: #1a1a1a;
    --bg-surface-hover: #262626;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-color: #858585; /* Cinematic Gold */
    --accent-hover: #585858;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --container-narrow: 800px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease-out;
    --transition-slow: 0.8s ease-out;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

a:hover {
    color: var(--accent-color);
}

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.container-narrow {
    width: 90%;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.container-full {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.container-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

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

.text-center {
    text-align: center;
}

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

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 20px;
    font-size: 1.1rem;
}

.link-arrow span {
    margin-left: 10px;
    transition: transform var(--transition-fast);
}

.link-arrow:hover span {
    transform: translateX(5px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../assets/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(13,13,13,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    font-size: 2rem;
    color: var(--text-secondary);
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    filter: grayscale(30%) contrast(1.1);
}

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

.about-text {
    flex: 1;
    min-width: 300px;
}

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

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio {
    background-color: var(--bg-surface);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.portfolio-item h3 {
    margin: 20px 20px 5px;
    font-size: 1.2rem;
}

.portfolio-item p {
    margin: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.audio-player {
    display: flex;
    flex-direction: column;
}

.audio-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.audio-info {
    padding: 20px;
}

.audio-info audio {
    width: 100%;
    margin-top: 15px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-fast);
}

.service-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background-color: var(--bg-surface-hover);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    transition: color var(--transition-fast);
}

.service-card:hover .service-number {
    color: rgba(212, 175, 55, 0.1);
}

.service-card h3 {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--bg-surface);
    padding: 120px 0;
}

.contact-wrap {
    text-align: center;
    margin: 40px 0;
}

.contact-direct {
    text-align: center;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-direct p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.phone, .location {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   Animations & States
   ========================================================================== */
.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-medium);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

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

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

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
