/* ===================================
   JOB SHOWCASE PAGE STYLES
   =================================== */

/* Disable scrolling on html and body */
html:has(.job-showcase-body),
html:has(.job-showcase-body) body {
    overflow: hidden;
    height: 100vh;
}

.job-showcase-body {
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* ===================================
   PROGRESS INDICATOR
   =================================== */
.progress-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-dots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-green);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(118, 255, 159, 0.6);
}

.progress-dot.active::before {
    width: 20px;
    height: 20px;
    opacity: 0.3;
}

.progress-dot:hover {
    transform: scale(1.3);
    border-color: var(--accent-green);
}

/* ===================================
   VIDEO SECTIONS
   =================================== */
.video-sections-container {
    position: relative;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Smoother transitions */
    will-change: transform;
}

.section-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* GPU acceleration */
    will-change: opacity, transform;
}

.video-section.active .section-video {
    opacity: 1;
    transform: scale(1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.3) 0%,
        rgba(15, 15, 15, 0.7) 50%,
        rgba(15, 15, 15, 0.9) 100%
    );
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-section.active .section-content {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ===================================
   SCROLL HINT
   =================================== */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

.scroll-hint .scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent-green);
    border-bottom: 2px solid var(--accent-green);
    transform: rotate(45deg);
}

/* ===================================
   CTA BUTTON
   =================================== */
.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    margin-top: 2rem;
    background: var(--accent-green);
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: var(--accent-green-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(118, 255, 159, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===================================
   AUDIO TOGGLE
   =================================== */
.audio-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.audio-toggle:hover {
    background: var(--accent-green);
    color: var(--primary-bg);
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
    transform: scale(1.1);
}

.audio-toggle.playing {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ===================================
   FADE IN ANIMATIONS
   =================================== */
.fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   LOADING STATE
   =================================== */
.video-section.loading .section-video {
    opacity: 0;
}

.video-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(118, 255, 159, 0.2);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .progress-indicator {
        right: 1rem;
    }

    .progress-dot {
        width: 10px;
        height: 10px;
    }

    .section-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .audio-toggle {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .scroll-hint {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .progress-indicator {
        right: 0.5rem;
        transform: translateY(-50%) scale(0.8);
    }

    .section-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .section-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .job-showcase-body {
        scroll-snap-type: none;
    }

    .section-video,
    .section-content,
    .progress-dot,
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .section-title {
        -webkit-text-fill-color: var(--text-primary);
    }

    .progress-dot {
        border-width: 3px;
    }
}

/* ===================================
   EXIT BUTTON (Scroll to show)
   =================================== */
.exit-button {
    position: fixed;
    top: 6.5rem; /* Navbar altında (navbar ~5rem yükseklik + 1.5rem spacing) */
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--accent-green);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Animated underline */
.exit-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exit-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Navbar kaybolunca butonu yukarı taşı */
.exit-button.navbar-hidden {
    top: 1.5rem;
}

.exit-button:hover {
    color: #fff;
}

.exit-button:hover::after {
    width: 100%;
}

.exit-button:active {
    transform: scale(0.98);
}

.exit-button-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exit-button:hover .exit-button-icon {
    transform: translateX(4px);
}

/* Exit button SVG icon styles */
.exit-button-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
