/* 
   DYNAMIk AGENCY - Professional Security & Ushers
   Theme: Gold & Black
*/

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #C5A028;
    --dark-gold: #AA8C2C;
    --rich-black: #0a0a0a;
    --off-black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text-color: #e0e0e0;
    --heading-font: 'Cinzel', serif;
    --body-font: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--primary-gold);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gold);
    color: var(--rich-black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-gold);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn:hover {
    background: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--rich-black);
}

.section-padding {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 10px auto 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.95);
    /* Slight transparent black initially */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
}

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

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

.nav-links li a.active {
    color: var(--primary-gold);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-gold);
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    /* Use the new hero image with a strong dark overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.6)), url('images/hero-ushers-night.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    /* Animation for the whole content container */
    animation: fadeInUp 1.5s ease-out;
}

/* Keyframes for Smooth Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
    /* Ensure visibility depending on screen size, though the overlay helps */
}

.hero-content h1 span {
    color: var(--primary-gold);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
}

/* About Section */
#about {
    background-color: var(--off-black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border: 2px solid var(--primary-gold);
    padding: 10px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: #ccc;
}

/* Services Sections (Ushers & Security) */
.service-showcase {
    position: relative;
    overflow: hidden;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    position: relative;
}

.service-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-gold);
    z-index: -1;
    transition: var(--transition);
}

.service-row:hover .service-img::before {
    top: 10px;
    left: 10px;
}

.service-img img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.service-info p {
    margin-bottom: 25px;
    color: #ccc;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--primary-gold);
}

/* Services Grid Section */
#services {
    background-color: var(--off-black);
}

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

.service-card {
    background: var(--rich-black);
    padding: 30px;
    border: 1px solid #333;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    font-size: 0.95rem;
    color: #999;
}

/* Why Choose Us */
#why-choose-us {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.reason-number {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    display: block;
}

.reason-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--white);
}

/* Contact & Request Form */
#contact {
    background-color: var(--rich-black);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    padding: 30px;
    background: var(--off-black);
    border-left: 3px solid var(--primary-gold);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-top: 5px;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.contact-item p {
    color: #aaa;
    font-size: 0.95rem;
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--off-black);
    border: 1px solid #333;
    color: var(--white);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: #222;
}

/* Footer */
footer {
    background: #000;
    padding: 40px 0 20px;
    border-top: 1px solid #222;
    text-align: center;
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-gold);
    border: 1px solid transparent;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

.copyright {
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-wrapper,
    .service-row,
    .service-row.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .service-img {
        width: 100%;
    }

    .contact-wrapper {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--off-black);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        transform: translateY(-200%);
        /* Hidden by default */
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .service-row {
        gap: 30px;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--rich-black);
    padding: 40px;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-50px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    color: var(--text-color);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-gold);
    text-decoration: none;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 2rem;
}

.modal-header p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Past Events Grid */
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.event-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}

.event-photo-item:hover {
    border-color: var(--primary-gold);
}

.event-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.event-photo-item:hover .event-photo-overlay {
    opacity: 1;
}

.event-photo-overlay i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.event-photo-overlay span {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
}

.lightbox-content img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border: 2px solid var(--primary-gold);
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3010;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-gold);
    text-decoration: none;
}

.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 3010;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    color: var(--primary-gold);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Gallery Page Specific Styles */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--white);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gold);
    color: var(--rich-black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--primary-gold);
    transform: translateY(100%);
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: var(--transition);
}

.gallery-item:hover .play-icon {
    color: var(--primary-gold);
}