/* ========================================
   COMPONENTS - Cursor, Loader, Buttons, Cards
   ======================================== */

/* === CUSTOM CURSOR === */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10002;
    transition: all 0.05s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
}

body.dark-mode .cursor {
    border-color: #d4ff00;
}

body.dark-mode .cursor-follower {
    border-color: rgba(212, 255, 0, 0.3);
}

/* === PROGRESS BAR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #d4ff00, #00ff88);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #d4ff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(212, 255, 0, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 255, 0, 0.5);
}

.scroll-top::before {
    content: '↑';
    font-size: 24px;
    color: #000;
    font-weight: bold;
}

body.dark-mode .scroll-top {
    background: #d4ff00;
}

/* === PRELOADER === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.loader-logo {
    width: 256px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo svg,
.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-bar {
    width: 240px;
    height: 3.2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: #d4ff00;
    animation: loading 2s ease-in-out forwards;
}

/* === THEME TOGGLE === */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 30px;
    background: #333;
    border-radius: 15px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s;
}

.theme-toggle::before {
    content: '☀️';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 18px;
    transition: all 0.3s;
}

body.dark-mode .theme-toggle {
    background: #d4ff00;
}

body.dark-mode .theme-toggle::before {
    content: '🌙';
    left: 30px;
}

/* === PARTICLES === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #d4ff00;
    border-radius: 50%;
    animation: none;
    opacity: 0;
}

/* === SECTION DECORATION === */
.section-decoration {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4ff00);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #000;
}

body.dark-mode .section-label {
    color: #d4ff00;
}

body.dark-mode .section-line {
    background: linear-gradient(90deg, transparent, #d4ff00);
}

/* === VIDEO PLAY OVERLAY === */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 3;
    cursor: pointer;
    pointer-events: none;
}

/* Hide overlay on card hover */
.ar-case-card:hover .video-play-overlay {
    opacity: 0;
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 255, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #000;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(212, 255, 0, 1);
}
