/*
Theme Name: OnUs Agência
Theme URI: https://onus.agency
Author: Antigravity
Description: Custom theme for OnUs Agência, an agency for streamers.
Version: 2.1
Text Domain: on-us-theme
*/

:root {
    --color-black: #050505;
    --color-white: #ffffff;
    --color-yellow: #FFD700;
    /* Bee Yellow */
    --color-yellow-light: #FFF8CC;
    /* Very light yellow for backgrounds */
    --color-shock-pink: #FF00FF;
    /* Stronger Shock Pink */
    --color-gray-light: #F4F4F4;
    --color-gray-dark: #121212;
    --color-text-main: #1a1a1a;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utilities --- */
.text-yellow {
    color: var(--color-yellow);
}

.text-pink {
    color: var(--color-shock-pink);
}

.text-white {
    color: var(--color-white);
}

.text-black {
    color: var(--color-black);
}

/* Distinct Backgrounds for Segregation */
.bg-white {
    background-color: var(--color-white);
}

.bg-gray-light {
    background-color: var(--color-gray-light);
}

.bg-yellow {
    background-color: var(--color-yellow);
}

.bg-yellow-light {
    background-color: var(--color-yellow-light);
}

.bg-black {
    background-color: var(--color-black);
    color: var(--color-white);
}

.bg-dark-gray {
    background-color: var(--color-gray-dark);
    color: var(--color-white);
}

.section-padding {
    padding: 120px 0;
    position: relative;
    /* Separator line between sections technically handled by alternating colors, but we can add a subtle border if needed */
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-elite {
    background-color: #000;
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-right: 15px;
    /* Space between buttons */
    letter-spacing: 2px;
    font-size: 0.8rem;
    padding: 12px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-elite:hover {
    border-color: var(--color-yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    color: var(--color-yellow);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #ffe066;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-shock-pink) 100%);
    margin-bottom: 60px;
    border-radius: 3px;
}

.center-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('hero-bg-placeholder.jpg') center/cover;
    /* Prepare for image */
    background-color: #000;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    /* Dynamic shape at bottom */
    margin-bottom: -50px;
    /* Overlap with next section */
    z-index: 10;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 5.5rem;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero-title span {
    color: var(--color-yellow);
    /* Text stroke for style */
    -webkit-text-stroke: 1px var(--color-yellow);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ddd;
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- About Section (Company Info) --- */
/* Segregation: White Background */
#about {
    padding-top: 180px;
    /* Compensate for hero overlap */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-yellow);
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.3s;
}

.about-image-wrapper:hover::before {
    transform: translate(10px, -10px);
}

/* --- Streamers Section (Squad) --- */
/* Segregation: Light Gray Background */
#streamers {
    background-color: var(--color-gray-light);
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    /* Slight skew top */
    padding-top: 150px;
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.streamer-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.streamer-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.streamer-image {
    height: 350px;
    width: 100%;
    object-fit: cover;
    background-color: #ddd;
    /* Placeholder color */
}

.streamer-content {
    padding: 30px;
    position: relative;
}

.streamer-content h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.streamer-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--color-yellow-light);
    color: #b39700;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.streamer-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.streamer-link::after {
    content: '→';
    transition: transform 0.3s;
}

.streamer-card:hover .streamer-link::after {
    transform: translateX(5px);
}

/* --- Niches & Directory Section --- */
/* Segregation: White Background */
.niches-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    /* Space before grid */
}

.niche-filter-btn {
    padding: 15px 30px;
    border: 2px solid var(--color-gray-light);
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s;
    font-family: var(--font-heading);
}

.niche-filter-btn:hover,
.niche-filter-btn.active {
    border-color: var(--color-yellow);
    background-color: var(--color-yellow);
    color: var(--color-black);
    transform: scale(1.05);
}

/* Directory Grid 3x3 */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.directory-item {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.directory-item.hidden {
    display: none;
}

.directory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.directory-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    background-color: #eee;
}

.directory-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.directory-stats {
    font-size: 0.9rem;
    color: var(--color-shock-pink);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.directory-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-black);
}

.directory-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    text-decoration: underline;
    text-decoration-color: var(--color-yellow);
    text-underline-offset: 4px;
}

.directory-link:hover {
    color: var(--color-black);
    text-decoration-color: var(--color-black);
}

/* --- Testimonials Section --- */
/* Segregation: Yellow Background */
#testimonials {
    background-color: var(--color-yellow);
    color: var(--color-black);
    position: relative;
    /* Mask top for blend */
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
    padding-top: 150px;
}

.testimonials-container {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 40px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-yellow);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: scale(1.1);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ccc;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: #666;
}

/* --- Video Testimonials --- */
.video-testimonials-wrapper {
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.video-carousel {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.video-card {
    width: 250px;
    height: 445px;
    /* 9:16 Aspect Ratio approx */
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
    cursor: pointer;
    border: 3px solid var(--color-white);
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-yellow);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.4s;
}

.video-card:hover .video-thumbnail {
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-black);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--color-yellow);
}

.video-author {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--color-white);
}

.video-author h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--color-yellow);
}

.video-author span {
    font-size: 0.85rem;
    opacity: 0.8;
}


/* --- Contact Section (Premium Glass Card) --- */
#contact {
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    /* Add padding to show floating effect */
}

/* Enforce Floating Layout */
.contact-glass-card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Force 2 columns */
    gap: 60px;
    align-items: start;
    /* Align top */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    /* Limit width to card size */
    margin: 0 auto;
    /* Center card in container */
}

/* Yellow accent line on top */
.contact-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-yellow), var(--color-shock-pink));
}

.contact-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--color-black);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 18px 25px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    color: #333;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
    background: #fff;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
}

.contact-info-block p strong {
    color: var(--color-black);
    font-size: 1.1rem;
}

/* Responsive - Stack on mobile */
@media (max-width: 991px) {
    .contact-glass-card {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }

    .contact-text h2 {
        font-size: 2rem;
    }
}

/* Segregation: Dark Background for Contrast */
#achievements {
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

#achievements .section-title {
    color: var(--color-white);
    /* Ensure title is white on black bg */
}

/* Background Shine Effect */
#achievements::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.achievement-item {
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    position: relative;
}

.achievement-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.achievement-item .number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-yellow);
    display: block;
    margin-bottom: 5px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* The Gradient Line requested */
.achievement-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-shock-pink) 100%);
    margin: 15px auto;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.achievement-item:hover .achievement-line {
    width: 100px;
}

.achievement-item .label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    color: var(--color-white);
}

/* --- Partners Section --- */
#partners {
    background-color: var(--color-white);
    padding-bottom: 80px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    align-items: center;
    opacity: 0.7;
}

.partner-logo {
    max-width: 150px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Benefits Section (Flip Cards) --- */
#benefits {
    background-color: var(--color-gray-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-card {
    background-color: transparent;
    border-radius: 20px;
    height: 300px;
    /* Fixed height for flip */
    perspective: 1000px;
}

.benefit-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.benefit-card:hover .benefit-inner {
    transform: rotateY(180deg);
}

.benefit-front,
.benefit-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.benefit-front {
    background-color: var(--color-white);
    color: var(--color-black);
}

.benefit-back {
    background-color: var(--color-black);
    color: var(--color-yellow);
    transform: rotateY(180deg);
    border: 2px solid var(--color-yellow);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-yellow);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.benefit-desc {
    font-size: 1rem;
    color: var(--color-white);
}

/* --- Contact Section --- */
/* Segregation: White */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--color-white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    background: #f9f9f9;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-yellow);
    background: #fff;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .section-padding {
        padding: 90px 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .testimonial-card {
        min-width: 300px;
    }

    .streamers-grid {
        grid-template-columns: 1fr;
        /* Stack streamers on mobile */
    }

    .directory-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        font-size: 0.9rem;
        gap: 15px;
    }

    .hero-section {
        clip-path: none;
        /* Simplify on mobile */
        margin-bottom: 0;
    }

    #about {
        padding-top: 80px;
    }
}

/* --- Flying Bee Animation --- */
.bee-animation-container {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    background: var(--color-white);
    /* Blend with page or footer */
    pointer-events: none;
    margin-top: -20px;
    /* Slight overlap or adjustment */
    z-index: 5;
}

.bee-icon {
    position: absolute;
    left: -50px;
    top: 50%;
    font-size: 24px;
    animation: flyRight 20s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes flyRight {
    0% {
        left: -50px;
        transform: translateY(0) scaleX(-1) rotate(0deg);
    }

    10% {
        transform: translateY(-10px) scaleX(-1) rotate(-5deg);
    }

    20% {
        transform: translateY(0) scaleX(-1) rotate(0deg);
    }

    30% {
        transform: translateY(10px) scaleX(-1) rotate(5deg);
    }

    40% {
        transform: translateY(0) scaleX(-1) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) scaleX(-1) rotate(-5deg);
    }

    60% {
        transform: translateY(0) scaleX(-1) rotate(0deg);
    }

    70% {
        transform: translateY(15px) scaleX(-1) rotate(5deg);
    }

    80% {
        transform: translateY(0) scaleX(-1) rotate(0deg);
    }

    90% {
        transform: translateY(-10px) scaleX(-1) rotate(-5deg);
    }

    100% {
        left: 105%;
        transform: translateY(0) scaleX(-1) rotate(0deg);
    }
}

/* --- 1. GLOWING BORDER ANIMATION (Cards) --- */
.card-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: var(--color-white);
    /* Ensure bg is opaque */
}

/* The moving gradient border */
.card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            var(--color-yellow));
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s;
}

/* The inner background to cover the center of the gradient */
.card-glow::after {
    content: '';
    position: absolute;
    inset: 3px;
    /* Border thickness */
    background: var(--color-white);
    border-radius: 18px;
    /* Match card radius - 2px */
    z-index: -1;
}

.card-glow:hover::before {
    opacity: 1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* --- 2. TITANIUM PULSE BUTTON (High-Conversion) --- */
.btn-titanium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--color-yellow);
    /* Ensure solid base */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* The Shine Effect (Sheen Sweep) */
.btn-titanium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    animation: btnShine 4s infinite;
    pointer-events: none;
}

/* Hover: Magnetic Lift & Breath */
.btn-titanium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5);
    letter-spacing: 1.5px;
    /* Subtle breath */
}

@keyframes btnShine {
    0% {
        left: -100%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        left: 200%;
        opacity: 0;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}


/* --- 3. TEXT REVEAL EFFECT --- */
.reveal-text-wrapper {
    overflow: hidden;
    display: block;
    /* Ensure it takes width */
}

.reveal-text {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: textRevealUp 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Delays for multi-line support */
.reveal-text-delay-1 {
    animation-delay: 0.2s;
}

.reveal-text-delay-2 {
    animation-delay: 0.4s;
}

@keyframes textRevealUp {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- 4. HERO BACKGROUND ANIMATION (Cyber Hive) --- */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind overlay (1) and content (2) */
    overflow: hidden;
    background: #050505;
    /* Fallback */
}

.hero-bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(60deg, #1a1a1a 25%, transparent 25.5%, transparent 75%, #1a1a1a 75%, #1a1a1a),
        linear-gradient(60deg, #1a1a1a 25%, transparent 25.5%, transparent 75%, #1a1a1a 75%, #1a1a1a);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.3;
    animation: hexMove 15s linear infinite;
}

/* Glowing Pulse Orbs moving behind */
.hero-bg-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes hexMove {
    0% {
        background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    }

    100% {
        background-position: 80px 140px, 80px 140px, 120px 210px, 120px 210px, 80px 140px, 120px 210px;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* --- 5. TEXT AMBIENT GLOW (Golden Nebula) --- */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle,
            rgba(255, 215, 0, 0.25) 0%,
            rgba(255, 0, 255, 0.15) 40%,
            transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: floatGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes floatGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.1);
    }
}

/* --- 6. INTERACTIVE RIPPLE (Honey Shockwave) --- */
.honey-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--color-yellow) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 5;
    animation: rippleExpand 0.8s ease-out forwards;
    opacity: 0.8;
    box-shadow: 0 0 20px var(--color-yellow);
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* CSS Patch for Text Legibility */
.section-title {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8) !important;
}

/* --- Directory Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    height: auto;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Gold border */

    /* Initial State */
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}



/* --- ELITE PAGE STYLES (Dark Mode) --- */
body.page-elite {
    background-color: #000;
    color: #fff;
    /* Clean Hex Pattern Background */
    background-color: #000;
    background-image:
        linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(60deg, #1a1a1a 25%, transparent 25.5%, transparent 75%, #1a1a1a 75%, #1a1a1a),
        linear-gradient(60deg, #1a1a1a 25%, transparent 25.5%, transparent 75%, #1a1a1a 75%, #1a1a1a);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* Header Revert: Keep White on Elite Page */
body.page-elite .header-container,
body.page-elite .site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

body.page-elite .nav-menu li a {
    color: #000;
}

body.page-elite .nav-menu li a:hover {
    color: var(--color-yellow);
}

body.page-elite .section-padding.bg-white,
body.page-elite .section-padding.bg-gray-light {
    background-color: #050505;
    color: #fff;
}

body.page-elite .section-title,
body.page-elite .contact-text h2,
body.page-elite p strong {
    color: #fff;
}

body.page-elite p {
    color: #aaa !important;
}

body.page-elite .benefits-grid .benefit-card {
    background: #111;
    border: 1px solid #333;
}

body.page-elite .contact-glass-card {
    background: #0a0a0a;
    border: 1px solid #222;
}

body.page-elite .contact-form input,
body.page-elite .contact-form select,
body.page-elite .contact-form textarea {
    background: #151515;
    border-color: #333;
    color: #fff;
}

body.page-elite .contact-form input:focus,
body.page-elite .contact-form textarea:focus {
    border-color: var(--color-yellow);
    background: #000;
}

/* --- ELITE RANKING STYLES --- */
.ranking-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.ranking-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
}

.podium-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    width: 200px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.podium-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-yellow);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.podium-card img {
    width: 90px;
    height: 90px;
    /* Hexagon Shape */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border-radius: 0;
    margin-bottom: 15px;
    border: none;
    /* Border handled by container or pseudo if needed, but clip-path cuts border */
    background: #333;
    /* Fallback/Bg */
    object-fit: cover;
}

.podium-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.podium-card .score {
    color: var(--color-yellow);
    font-weight: 800;
}

/* 1st Place Special */
.podium-card.first {
    padding-bottom: 40px;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
    border-color: var(--color-yellow);
    transform: scale(1.1);
    z-index: 2;
}

.podium-card.first img {
    width: 110px;
    height: 110px;
    /* Hexagon Shape */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: none;
    box-shadow: none;
    /* Shadow doesn't work well on clipped elements, use filter drop-shadow if needed */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.crown,
.medal {
    font-size: 2rem;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Ranking List */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #222;
    padding: 15px 25px;
    border-radius: 10px;
    transition: transform 0.2s;
}

.ranking-item:hover {
    transform: scale(1.02);
    border-color: var(--color-yellow);
    /* Gold border on hover */
    background: #1a1a1a;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.rank-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-yellow);
    /* Gold Rank Number */
    width: 30px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.ranking-item img {
    width: 50px;
    height: 50px;
    /* Hexagon Shape */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border-radius: 0;
    margin: 0 20px;
    object-fit: cover;
}

.rank-info {
    flex-grow: 1;
}

.rank-info h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.rank-info .cat {
    font-size: 0.8rem;
    color: #bbb;
    /* Lighter gray for better readability */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-stat {
    font-weight: 700;
    color: var(--color-yellow);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    /* White Icon */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--color-yellow);
    transform: rotate(90deg);
}

.modal-left {
    background-color: #000;
    position: relative;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-right {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #111;
    /* Dark background */
    overflow-y: auto;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    /* White Text */
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: var(--color-yellow);
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.modal-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    /* Light Gray Text */
    margin-bottom: 30px;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    background: #000;
    /* Dark Stats Container */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.modal-stat-item h4 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    /* White Numbers */
    margin-bottom: 5px;
}

.modal-stat-item p {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-left {
        height: 250px;
    }

    .modal-right {
        padding: 30px;
    }
}