/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #0f0f0f;
    --bg-darker: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #d4af37; /* Gold */
    --accent-hover: #b5952f;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

em {
    font-style: italic;
    color: var(--accent);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LOADER --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

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

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

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}


.btn-primary:hover {
    background: var(--accent); /* Turn Gold on hover */
    transform: translateY(-2px);
}

/* 3. The "Moving Underline" Effect for Menu Links */
.nav-links a:not(.btn-primary) {
    position: relative;
    padding: 5px 0;
}

/* Create the invisible line */
.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent); /* Gold line */
    transition: width 0.3s ease-in-out;
}

/* Show the line when hovering */
.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* 4. Make the Menu Bar slightly darker/more modern */
.navbar {
    background: rgba(0, 0, 0, 0.8) !important; /* Force darker background */
    backdrop-filter: blur(15px) !important;     /* Stronger blur */
}

.nav-links a:not(.btn-primary):hover {
    color: var(--accent);
    transform: translateY(-2px);
}

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

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

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, #1a1a1a, var(--bg-dark));
}

.hero-content {
    max-width: 800px;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: white;
}

/* --- UTILS: SECTIONS --- */
.section {
    padding: 120px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: var(--accent);
}

.service-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- PORTFOLIO --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    cursor: pointer;
}

.image-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.2, 1);
    opacity: 0.9;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 1;
    border-color: accent;
    box-lines: 10px;
}

.item-info span {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.item-info h3 {
    font-size: 1.8rem;
    transition: color 0.3s;
}

.portfolio-item:hover h3 {
    color: var(--accent);
}

/* --- TESTIMONIALS --- */
.testimonial-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 40px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- CONTACT --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-list {
    list-style: none;
    margin-top: 40px;
}

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

.info-list i {
    color: var(--accent);
}

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

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

.form-group textarea {
    resize: vertical;
}

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

.form-group label {
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s ease;
}

/* Floating label effect */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent);
}

/* --- FOOTER --- */
footer {
    padding: 80px 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: 50px;
}

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

.social-links a {
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(50px);
    transition: 0.4s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    padding: 30px;
}

.modal-body img {
    margin-bottom: 20px;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

#modalCategory {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

#modalTitle {
    margin: 10px 0 20px;
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
    }

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

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

/* --- HERO VIDEO BACKGROUND UPDATE --- */

/* 1. Reset the main hero container */
.hero {
    position: relative; /* Essential for positioning video inside */
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden; /* Crops video if it spills over */
    background: #000; /* Fallback color if video loads slow */
}

/* 2. Style the Video Tag */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* KEY: Makes video cover the screen without stretching */
    z-index: 0; /* Puts it at the back */
}

/* 3. The Dark Overlay */
/* This is crucial so white text is readable against bright video parts */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 60% Black Tint */
    z-index: 1; /* Sits on top of video */
}

/* 4. Bring Content to Front */
.hero-content, 
.scroll-indicator {
    position: relative;
    z-index: 2; /* Sits on top of overlay */
}
.hidden {
    display: none;
    visibility: hidden;
    height: 0;
    width: 0;
    position: absolute;
    left: -9999px;
}