/*
 * Zyntrov Custom Stylesheet
 * Contains Premium Design Tokens, Light/Dark Modes, and Animations
 */

:root {
    /* Theme variables - Default Dark Mode */
    --bg-primary: #0D262D;
    --bg-secondary: #132F38;
    --bg-card: rgba(19, 47, 55, 0.65);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --accent-color: #E2FA78;
    --accent-glow: rgba(226, 250, 120, 0.45);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(226, 250, 120, 0.15);
    
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(226, 250, 120, 0.15);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
body.zy-light {
    --bg-primary: #F8FAF9;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    
    --text-primary: #101010;
    --text-secondary: #5F7377;
    --text-muted: #7A8A8E;
    
    --accent-color: #0D262D;
    --accent-glow: rgba(13, 38, 45, 0.2);
    
    --border-color: rgba(13, 38, 45, 0.08);
    --border-accent: rgba(13, 38, 45, 0.12);
    
    --shadow-premium: 0 15px 40px rgba(13, 38, 45, 0.06);
    --shadow-glow: 0 0 20px rgba(13, 38, 45, 0.04);
}

/* Core transition hook */
body, body *, 
.elementor-section, .elementor-container, .e-con,
.elementor-widget, .elementor-widget-container,
.elementor-widget-heading .elementor-heading-title,
.elementor-text-editor {
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Typography Defaults */
body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Custom UI Utility Classes */
.zy-bg-primary {
    background-color: var(--bg-primary) !important;
}

.zy-bg-secondary {
    background-color: var(--bg-secondary) !important;
}

.zy-text-primary {
    color: var(--text-primary) !important;
}

.zy-text-secondary {
    color: var(--text-secondary) !important;
}

.zy-text-accent {
    color: var(--accent-color) !important;
}

.zy-border-primary {
    border: 1px solid var(--border-color) !important;
}

/* Glassmorphism Card Style */
.zy-glow-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-premium) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.zy-glow-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent) !important;
    box-shadow: var(--shadow-premium), var(--shadow-glow) !important;
}

/* Scroll Progress Bar */
.zy-scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #FFFFFF);
    z-index: 99999;
    pointer-events: none;
    transition: width 0.1s ease-out;
}

/* Interactive Cursor Follower */
.zy-cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s;
    mix-blend-mode: difference;
}

.zy-cursor-follower.hovering {
    width: 44px;
    height: 44px;
    background-color: var(--accent-color);
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .zy-cursor-follower {
        display: none !important;
    }
}

/* Infinite Marquee Animation */
.zy-marquee-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    position: relative;
    padding: 20px 0;
}

.zy-marquee-container::before,
.zy-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.zy-marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.zy-marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary) 0%, transparent 100%);
}

.zy-marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: zy-marquee-scroll 25s linear infinite;
}

.zy-marquee-track:hover {
    animation-play-state: paused;
}

.zy-marquee-item {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.zy-marquee-item:hover {
    opacity: 1;
}

@keyframes zy-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Glowing Blurred Background Shapes */
.zy-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(226, 250, 120, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Timeline Components */
.zy-timeline-container {
    position: relative;
    padding-left: 45px;
    margin-left: 20px;
}

.zy-timeline-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.zy-timeline-line-fill {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0%;
    background: var(--accent-color);
    transition: height 0.1s linear;
}

.zy-timeline-node {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.zy-timeline-node.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-color);
}

/* Magnetic Button Hover Pull (Applied via JS) */
.zy-magnetic {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dark/Light Toggle Adjustments */
body.zy-light .zy-toggle-track {
    background: rgba(13, 38, 45, 0.12);
    border-color: rgba(13, 38, 45, 0.18);
}
body.zy-light .zy-toggle-thumb {
    background: #0D262D;
    box-shadow: 0 0 8px rgba(13, 38, 45, 0.4);
}
