/* ============================================
   AGENCY PAGE – Imports shared styles + overrides
   ============================================ */
@import url('style.css');

/* ---- Hero Background Image (replaces video) ---- */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Minimal redshift overlay for the hero background */
.hero-bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-red); /* Using 'background' instead of 'background-color' to override the gradient from style.css */
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 20; /* Keep it above the glitch slices */
}

/* ---- Glitch Overlay Container ---- */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0; /* Hidden until glitch begins */
    overflow: hidden;
}

/* ---- Individual Glitch Slices ---- */
.glitch-slice {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    will-change: transform, opacity, filter;
    transform: translateZ(0); /* Force GPU layer */
}

.glitch-slice-img {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1200%; /* SLICE_COUNT * 100% */
    object-fit: cover;
    object-position: center 20%;
    pointer-events: none;
}

/* ---- Resident Content Section ---- */
.resident-section {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
    width: 100vw;
    padding: 100px 6vw 120px 6vw;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    overflow: hidden; /* For sliding elements */
}

.resident-container {
    max-width: 1400px;
    width: 100%;
}

.resident-title {
    font-size: 80px;
    font-weight: 800;
    margin-bottom: 80px;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 4px;
    text-align: center;
}

.resident-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 5px;
    background: var(--accent-red);
    margin: 20px auto 0 auto;
    box-shadow: 0 0 15px var(--accent-red);
}

.resident-rows {
    position: relative;
    width: 100%;
    min-height: 550px;
    overflow: hidden;
}

.resident-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background-color: var(--bg-color);
}

/* Stacking Order & Initial Visibility */
.resident-row {
    opacity: 0;
    z-index: 1;
}

.resident-row:nth-child(1) { z-index: 4; opacity: 1; }
.resident-row:nth-child(2) { z-index: 3; }
.resident-row:nth-child(3) { z-index: 2; }
.resident-row:nth-child(4) { z-index: 1; }

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

.resident-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.dj-name {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.highlight-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 20px;
    line-height: 1.5;
}

.resident-text p {
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.resident-row.reverse .social-icons {
    justify-content: flex-end;
}

.social-icons a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-red);
    transform: translateY(-3px);
}

.resident-image-wrapper {
    flex: 1;
    display: flex;
    position: relative;
}

.wrapper-right { justify-content: flex-end; }
.wrapper-left { justify-content: flex-start; }

.resident-image-mask {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

/* Hard, sharp tech cutouts */
.cutout-tl { clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%, 0 40px); }
.cutout-tr { clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.cutout-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px)); }
.cutout-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%); }

/* A border element inside the mask */
.resident-image-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .resident-row, .resident-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .resident-row.reverse .social-icons {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
    .resident-rows {
        min-height: 800px;
    }
    .resident-title {
        font-size: 60px;
    }
    .dj-name {
        font-size: 32px;
    }
    .highlight-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .resident-title {
        font-size: 45px;
    }
    .resident-section {
        padding: 80px 6vw;
    }
    .dj-name {
        font-size: 28px;
    }
}
