/* =========================================
   HOME PAGE SPECIFIC STYLES
   ========================================= */

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    background: radial-gradient(circle at 50% 50%, rgba(108, 59, 255, 0.05) 0%, transparent 70%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.1;
    /* Extremely subtle */
    mix-blend-mode: screen;
    animation: drift 45s infinite linear;
    will-change: transform;
}

.glow-1 {
    background: radial-gradient(circle, #6C3BFF 0%, transparent 70%);
    top: -20%;
    left: -20%;
}

.glow-2 {
    background: radial-gradient(circle, #E44BB3 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-direction: reverse;
    animation-duration: 55s;
}

.glow-3 {
    background: radial-gradient(circle, #00FFFF 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-duration: 65s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, -30px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 24px;
    transform: translateY(-5vh);
    /* Adjusted shift for smaller height */
}

.hero-headline {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    /* Clean, smooth appearance without shadows or glow */
}

.hero-subheadline {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-buttons-new {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons-new .btn {
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hero-buttons-new .btn-primary {
    background: #6C3BFF;
    color: white;
    border: none;
}

.hero-buttons-new .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons-new .btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }

    .hero-buttons-new {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons-new .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* =========================================
   PREMIUM ANIMATION SYSTEM
   ========================================= */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered text reveal for hero content specifically */
.hero-content.is-revealed .hero-headline {
    animation: slideUpFade 1.2s forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PREMIUM SECTION DIVIDER
   ========================================= */

.section-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000000;
    padding: 5px 0;
    /* Minimized padding */
}

.divider-line {
    width: 90%;
    height: 3px;
    background: #FFFFFF;
    opacity: 0.9;
}

/* =========================================
   AGENCIES SECTION (PROFESSIONAL POLISH)
   ========================================= */

.agencies-section {
    padding: 60px 0 160px;
    background: radial-gradient(circle at 0% 100%, rgba(228, 75, 179, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(108, 59, 255, 0.03) 0%, transparent 50%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title-large {
    font-size: clamp(3rem, 10vw, 7rem);
    /* Reduced from 12rem */
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 80px;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1;
}

.agencies-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.agency-card {
    flex: 1;
    min-width: 350px;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 60px 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
}

/* Premium Light Sweep Effect */
.agency-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
    pointer-events: none;
}

.agency-card:hover::after {
    left: 100%;
}

.agency-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

.agency-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--agency-accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.agency-card:hover::before {
    opacity: 0.12;
}

.agency-logo {
    width: 130px;
    height: 130px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 28px;
    padding: 25px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fallback-logo {
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.agency-card:hover .agency-logo {
    transform: scale(1.08) rotate(3deg);
}

.agency-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agency-name {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    color: #ffffff;
    transition: all 0.3s;
}

.agency-card:hover .agency-name {
    color: var(--agency-accent);
    transform: translateY(-2px);
}

.agency-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-weight: 400;
    text-align: justify;
    /* Justified text as requested */
    text-justify: inter-word;
    transition: color 0.3s;
}

.agency-card:hover .agency-desc {
    color: rgba(255, 255, 255, 0.85);
}

.star-decoration {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.1);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.15);
    }
}

@media (max-width: 1024px) {
    .agencies-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 30px;
    }

    .section-title-large {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .agencies-section {
        padding: 80px 0;
    }

    .agency-card {
        padding: 40px 30px;
    }
}

.dynamic-content-section {
    padding: 80px 0;
    color: white;
}

.rich-text-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 40px 0;
}

.rich-text-content p {
    margin-bottom: 24px;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3 {
    color: white;
    margin-top: 48px;
    margin-bottom: 24px;
}

.button-wrapper {
    margin: 60px 0;
}