/*
    Dark Mode Premium Portfolio Styling
    Palette: Dark Slate (#121212), Secondary Dark (#1E1E1E), Warm Gold Accent (#C8A057)
    Typography: Bebas Neue (Impact Headlines), Poppins (Sans-serif Body)
*/

/* 1. Global Reset and Variables (Dark Mode) */
:root {
    --color-primary: #C8A057;        /* Warm Gold/Bronze Accent */
    --color-secondary: #E0E0E0;      /* Light text */
    --color-background: #121212;     /* Dark Slate Base */
    --color-surface: #1E1E1E;        /* Secondary Dark Surface/Card */
    --color-text-body: #B0B0B0;      /* Subtle Body Text */
    --color-text-light: #777777;     /* Muted Text */
    --font-heading: 'Bebas Neue', sans-serif; /* Impact Font for Hero Section */
    --font-body: 'Poppins', sans-serif;
    --transition-speed: 0.6s;
    --shadow-depth: 0 10px 30px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.6), 0 5px 10px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. Typography */
h1, h2, h3 {
    font-family: var(--font-body); /* Default to Poppins */
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-secondary);
}

/* Specific impact font for the main hero heading */
.impact-font {
    font-family: var(--font-heading);
    letter-spacing: 0.25rem;
    font-weight: 400; /* Bebas Neue is a display font, font-weight 400 is ideal */
}

h1 { font-size: 4rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
p { color: var(--color-text-body); margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-secondary);
}

/* 3. Layout & Structure */
.content-section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0; /* Default state for JS reveal */
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.title-text {
    display: inline-block;
    position: relative;
}

.title-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: transform 0.8s ease-out;
}

.content-section.is-visible .title-text::after {
    transform: translateX(-50%) scaleX(1);
}

.separator-div {
    height: 1px;
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(200, 160, 87, 0) 0%, rgba(200, 160, 87, 0.3) 50%, rgba(200, 160, 87, 0) 100%);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.02);
}

/* 4. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(18, 18, 18, 0); /* Dark mode transparent */
    transition: background-color 0.4s ease-in-out;
}

#main-header.scrolled {
    background-color: rgba(18, 18, 18, 0.9); /* Dark mode semi-transparent */
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-depth);
}

.logo {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-secondary);
}

nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--color-text-body);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease-out;
}

nav a:hover, nav a.active-link {
    color: var(--color-primary);
}

nav a:hover::after, nav a.active-link::after {
    width: 100%;
}

/* 5. Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center 30%;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark gradient overlay for text readability and image blending (dark mode) */
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.1) 0%, rgba(18, 18, 18, 0.7) 80%, var(--color-background) 100%);
}

.hero-content {
    z-index: 10;
    max-width: 900px;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 6.5rem); /* Increased size for impact */
    font-weight: 900;
    letter-spacing: 0.2rem;
    color: #FFF; /* Pure white on the dark backdrop */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--color-text-body);
}

.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.badge {
    background-color: var(--color-surface);
    color: var(--color-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-depth);
    border: 1px solid rgba(200, 160, 87, 0.2);
    transition: background-color 0.3s;
}

.badge:hover {
    background-color: rgba(200, 160, 87, 0.1);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* 5.1 Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.delay-2 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.8s; }
.delay-6 { animation-delay: 1.2s; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--color-secondary);
    font-size: 1.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* 6. Buttons */
.button {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.primary-button {
    background-color: var(--color-primary);
    color: #121212; /* Dark text for contrast on gold button */
    box-shadow: 0 10px 20px rgba(200, 160, 87, 0.3);
}

.primary-button:hover {
    background-color: #DDAA66; /* Slightly lighter gold */
    box-shadow: 0 15px 30px rgba(200, 160, 87, 0.5);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-text-light);
}

.secondary-button:hover {
    background-color: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}


/* 7. Portfolio / Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: minmax(200px, auto); /* Flexible row sizing */
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-depth);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Masonry adjustment for a cinematic feel on larger screens */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 350px;
    }
    .gallery-grid img:nth-child(2) {
        grid-row: span 2;
        height: 100%;
    }
    .gallery-grid img:nth-child(5) {
        grid-column: span 2;
    }
}


/* 8. Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Deeper black for lightbox */
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: #FFF;
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-top: 1rem;
    padding: 0 2rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFF;
    font-size: 3rem;
    font-weight: 100;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 2010;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #FFF;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 2005;
}

.lightbox-nav:hover {
    background-color: var(--color-primary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }


/* 9. Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stats-card {
    list-style: none;
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-depth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, background-color 0.4s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color: #252525; /* Slightly lighter surface on hover */
}

.stats-card li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.stats-card li:last-child {
    border-bottom: none;
}

.stats-card li::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-secondary);
}

.stats-card li::after {
    content: attr(data-value);
    font-family: var(--font-body);
    color: var(--color-primary);
    font-weight: 700;
}

.stats-card:hover li::before, .stats-card:hover li::after {
    text-shadow: 0 0 5px rgba(200, 160, 87, 0.3);
}


/* 10. About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text p {
    font-size: 1.1rem;
    max-width: 650px;
}

.about-text strong {
    color: var(--color-primary);
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.85); /* Slightly darker image for dark mode */
    transition: filter 0.5s;
}

.about-image:hover img {
    filter: brightness(1);
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
}


/* 11. Contact Section (Dark Mode Styling) */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.lux-form .form-group {
    margin-bottom: 20px;
}

.lux-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.lux-form input[type="text"],
.lux-form input[type="email"],
.lux-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-text-light);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-surface); /* Dark input background */
    color: var(--color-secondary); /* Light text input color */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lux-form input:focus,
.lux-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 160, 87, 0.2);
    outline: none;
    background-color: #252525;
}

.lux-form textarea {
    resize: vertical;
}

.form-intro {
    font-style: italic;
    color: var(--color-text-body);
    margin-bottom: 30px;
}

.contact-details {
    padding-top: 2rem;
}

.contact-details p {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.contact-link {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-text-body);
    transition: color 0.3s;
}

.contact-link i {
    margin-right: 10px;
    color: var(--color-primary);
}

.contact-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-details {
        padding-top: 0;
    }
}


/* 12. Floating WhatsApp Button */
#wa-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp Green */
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-out;
    /* Pulsating glow animation */
    animation: pulsate 2s infinite;
}

#wa-button:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulsate {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/* 13. Footer */
#main-footer {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.95) 100%); /* Dark gradient */
    backdrop-filter: blur(2px);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0.5rem 0;
}

.credit {
    font-style: italic;
    font-size: 0.8rem;
}

/* 14. Modals (Thank You) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal-content {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.is-open .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--color-text-body);
    font-size: 2rem;
    font-weight: 100;
    cursor: pointer;
}

.success-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-top: 1rem;
}

#thank-you-name {
    font-weight: bold;
    color: var(--color-primary);
    font-family: var(--font-body);
}


/* 15. Responsive Design */
@media (max-width: 1024px) {
    .content-section {
        padding: 6rem 5%;
    }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 1.2rem; }
    .badges { gap: 1rem; }
    .hero-actions { flex-direction: column; }
    .button { width: 100%; text-align: center; }
    
    #main-header nav {
        display: none; /* Simple mobile hide for now, could implement a hamburger menu */
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}