/* ========================================
   EAM PRODUCTIONS MIAMI - GENESIS STYLE
   Dark, editorial, cinematic aesthetic
   ======================================== */

:root {
    --bg-dark: #0a0a0a;
    --bg-dark-alt: #111111;
    --text-light: #f5f5f0;
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-faint: rgba(255, 255, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --font-heading: 'Archivo', sans-serif;
    --font-body: 'Archivo', sans-serif;

    --radius-lg: 16px;
    --radius-sm: 8px;
}

/* ========================================
   RESET & GLOBAL
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
}

.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
    transition: opacity 0.2s ease;
}

.navbar-logo:hover {
    opacity: 0.7;
}

.navbar-logo-img {
    height: 30px;
    width: auto;
    display: block;
}

@media (max-width: 640px) {
    .navbar-logo-img { height: 26px; }
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.navbar-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: var(--text-light);
}

.navbar-cta {
    color: var(--text-light) !important;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar-cta:hover {
    background-color: var(--text-light);
    color: var(--bg-dark) !important;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   HERO SECTION - Genesis Style
   ======================================== */

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 85vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.2) 0%,
        rgba(10, 10, 10, 0.4) 40%,
        rgba(10, 10, 10, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(2rem, 5vw, 4rem);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    font-style: normal;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: inline-block;
    width: fit-content;
    padding: 0.9rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

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

/* ========================================
   MARQUEE SECTION - Genesis Style
   ======================================== */

.marquee-section {
    overflow: hidden;
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    color: rgba(255, 255, 255, 0.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   SECTION LABEL (small caps label)
   ======================================== */

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

/* ========================================
   SERVICES SECTION - Genesis Display Type
   ======================================== */

.services {
    padding: clamp(4rem, 8vw, 8rem) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.services-display {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.services-row {
    display: flex;
    gap: clamp(1rem, 3vw, 3rem);
    justify-content: center;
}

.service-word {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    font-style: normal;
    line-height: 1.1;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.service-word:hover {
    color: var(--text-muted);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-subtle);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left 0.3s ease;
}

.service-item:hover {
    padding-left: 1rem;
}

.service-number {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.service-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ========================================
   PORTFOLIO SECTION - Genesis Grid
   ======================================== */

.portfolio {
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.portfolio-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.portfolio-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #111;
}

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

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.portfolio-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* ========================================
   VIDEO MODAL
   ======================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.modal-close:hover {
    opacity: 0.6;
}

.modal-video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-sm);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: clamp(5rem, 10vw, 10rem) 0;
    border-top: 1px solid var(--border-subtle);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
    margin-bottom: 2rem;
}

.contact-email:hover {
    border-color: var(--text-light);
}

.contact-social {
    display: flex;
    gap: 1.5rem;
}

.contact-social a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.contact-social a:hover {
    color: var(--text-light);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-input {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    width: 100%;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.06);
}

.form-submit {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 300px;
}

.footer-right {
    display: flex;
    gap: 4rem;
}

.footer-links,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--text-light);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        justify-content: center;
        gap: 2rem;
        transition: left 0.4s ease;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-link {
        font-size: 1.2rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-inner {
        height: 75vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        aspect-ratio: 16 / 10;
    }

    .services-row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .service-word {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .services-list {
        grid-template-columns: 1fr;
    }

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

    .portfolio-overlay {
        opacity: 1;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-right {
        gap: 2rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-close {
        top: -40px;
        font-size: 1.5rem;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        height: 70vh;
        border-radius: 12px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .marquee-item {
        font-size: 1.5rem;
    }

    .about-heading,
    .portfolio-heading,
    .contact-heading {
        font-size: 1.8rem;
    }

    .service-word {
        font-size: 2rem;
    }
}

/* ========================================
   LOGO-MATCHED DISPLAY TYPE
   Bold + slightly italic to echo the EAM mark
   ======================================== */

.loading-logo,
.hero-title,
.marquee-item,
.about-heading,
.service-word,
.portfolio-heading,
.contact-heading {
    font-style: italic;
    letter-spacing: -0.01em;
}

/* Trademark logo lockup in navbar/footer */
.navbar-logo-img { height: 46px; }
.footer-logo-img { height: 56px; }

@media (max-width: 640px) {
    .navbar-logo-img { height: 36px; }
}
