/* ========================================
   AgentiAgency - Modern Landing Page Styles
   ======================================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0e27;
    --primary-blue: #1e3a8a;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --text-white: #ffffff;
    --text-gray: #e5e7eb;
    --overlay-dark: rgba(10, 14, 39, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-white);
    background: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Hero Section with Video Background
   ======================================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Invisible spacers that create vertical spacing */
.hero-spacer-top,
.hero-spacer-bottom {
    position: relative;
    width: 100%;
    z-index: 3;
    pointer-events: none;
    /* Height set dynamically by JavaScript */
}

/* Video background fills entire hero container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fallback gradient if video doesn't load */
.video-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--accent-cyan) 100%);
}

/* Subtle overlay to ensure text readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 2;
}

/* Hero Content - visible text in the middle */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1100px;
    width: 100%;
    animation: fadeInUp 1.2s ease-out;
}

.brand-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.tagline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.mission {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   Core Values Section
   ======================================== */
.values {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.value-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.value-card p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
footer {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--primary-dark);
    border-top: 1px solid rgba(6, 182, 212, 0.2);
}

footer p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 90%;
        padding: 3rem 1.5rem;
    }

    .values {
        padding: 5rem 2rem;
    }

    .container {
        gap: 2.5rem;
    }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
    .hero-content {
        padding: 2.5rem 1rem;
        max-width: 100%;
    }

    .brand-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 0.75rem;
        text-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    }

    .tagline {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin-bottom: 1.5rem;
        letter-spacing: 0.03em;
    }

    .mission {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem);
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .values {
        padding: 3rem 1.25rem;
    }

    .container {
        gap: 1.75rem;
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 2rem 1.5rem;
    }

    .value-card h3 {
        font-size: 1.5rem;
    }

    .value-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    footer p {
        font-size: 0.875rem;
    }

    /* Keep video on mobile but ensure proper aspect ratio handling */
    .video-background video {
        object-fit: cover;
        object-position: center;
    }

    /* Disable hover effects on touch devices */
    .value-card:hover {
        transform: none;
    }

    .value-card:active {
        transform: scale(0.98);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 0.75rem;
    }

    .brand-name {
        font-size: clamp(2rem, 12vw, 3rem);
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: clamp(0.875rem, 4.5vw, 1.25rem);
        margin-bottom: 1.25rem;
    }

    .mission {
        font-size: clamp(0.875rem, 4vw, 1.1rem);
        line-height: 1.5;
    }

    .values {
        padding: 2.5rem 1rem;
    }

    .container {
        gap: 1.5rem;
    }

    .value-card {
        padding: 1.75rem 1.25rem;
        border-radius: 8px;
    }

    .value-card h3 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }

    .value-card p {
        font-size: 0.95rem;
    }

    footer {
        padding: 1.75rem 1rem;
    }
}

/* Very small devices and landscape phones */
@media (max-width: 375px) {
    .brand-name {
        font-size: clamp(1.75rem, 13vw, 2.5rem);
    }

    .tagline {
        font-size: clamp(0.8rem, 5vw, 1.1rem);
    }

    .mission {
        font-size: clamp(0.8rem, 4.5vw, 1rem);
    }
}

/* Landscape orientation optimization for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-content {
        padding: 1.5rem 1rem;
    }

    .brand-name {
        font-size: clamp(1.75rem, 8vh, 3rem);
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: clamp(0.875rem, 3vh, 1.25rem);
        margin-bottom: 0.75rem;
    }

    .mission {
        font-size: clamp(0.8rem, 2.5vh, 1rem);
        line-height: 1.4;
    }

    .values {
        padding: 2.5rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
