/* Cyber Theme Overrides */

/* --- 0. Toggle Button Styling (Always Visible) --- */
#theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#theme-toggle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.toggle-track {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 30px;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Active State for Toggle (When Cyber Mode is On) */
.theme-cyber #theme-toggle {
    background: rgba(0, 0, 0, 0.8);
    border-color: #0ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.theme-cyber .toggle-thumb {
    left: calc(100% - 26px);
    background: #0ff;
    box-shadow: 0 0 10px #0ff;
}


/* --- 1. Cyber Theme Variables & Base --- */
.theme-cyber {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --primary-neon: #0ff;
    --secondary-neon: #f0f;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-border: 1px solid rgba(0, 255, 255, 0.2);
    --font-mono: 'Courier New', Courier, monospace;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.theme-cyber body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
}

/* Hide original background animation */
.theme-cyber .bg-animation {
    display: none;
}

/* Add new Cyber Grid Background */
.theme-cyber::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.theme-cyber::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #050505 90%);
    z-index: -1;
    pointer-events: none;
}

/* --- 2. Typography & Globals --- */
.theme-cyber h1,
.theme-cyber h2,
.theme-cyber h3,
.theme-cyber .logo {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    color: white;
}

.theme-cyber p {
    color: #eee;
    font-weight: 400;
    text-shadow: none;
    line-height: 1.7;
}

.theme-cyber .highlight {
    background: transparent;
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 5px var(--primary-neon) inset;
    text-shadow: 0 0 5px var(--primary-neon);
}

/* --- 3. Header & Nav --- */
.theme-cyber header {
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid var(--primary-neon);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
}

.theme-cyber .logo {
    color: var(--primary-neon);
}

.theme-cyber nav a {
    color: #888;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.theme-cyber nav a:hover {
    color: var(--primary-neon);
    transform: none;
    text-shadow: 0 0 8px var(--primary-neon);
}

.theme-cyber nav a::after {
    display: none; /* Remove original underline animation */
}

/* --- 4. Hero Section --- */
.theme-cyber .hero h1 {
    position: relative;
    color: white;
    overflow: hidden; /* Ensures the pseudo-element doesn't overflow */
    white-space: nowrap; /* Keeps text on one line for the effect */
    margin: 0 auto; /* Centers the text if it's block-level width constrained */
    border-right: 2px solid var(--primary-neon); /* The cursor */
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: fit-content;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-neon); }
}

.theme-cyber .hero h1::before {
    content: '> ';
    color: var(--primary-neon);
}

.theme-cyber .btn-primary {
    background: transparent;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    border-radius: 0; /* Boxy look */
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.theme-cyber .btn-primary:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--primary-neon);
    transform: translateY(-2px);
}

/* --- 5. Sections (Dark Cards) --- */
.theme-cyber .section-dark {
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid #222;
    border-left: 2px solid var(--secondary-neon);
    border-radius: 0;
    box-shadow: none;
}

.theme-cyber .about-image {
    border-radius: 0;
    border: 1px solid var(--primary-neon);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

/* --- 6. Timeline --- */
.theme-cyber .timeline::after {
    background: #333;
    width: 1px;
}

.theme-cyber .timeline-item::after {
    border-radius: 0;
    background: #000;
    border: 1px solid var(--primary-neon);
    transform: rotate(45deg); /* Diamond shape */
    width: 14px;
    height: 14px;
}

.theme-cyber .timeline-content {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-radius: 0;
    border-top: 2px solid var(--primary-neon);
}

.theme-cyber .timeline-year {
    color: var(--primary-neon);
    font-family: var(--font-mono);
}

/* --- 7. Gallery --- */
.theme-cyber .gallery-item img {
    border-radius: 0;
    border: 1px solid #333;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.4s ease;
}

.theme-cyber .gallery-item img:hover {
    filter: grayscale(0%) contrast(1);
    border-color: var(--secondary-neon);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transform: scale(1.02);
}

/* --- 8. Contact --- */
.theme-cyber .contact-card {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.theme-cyber .contact-card:hover {
    border-color: var(--primary-neon);
    background: rgba(0, 255, 255, 0.02);
}

.theme-cyber .contact-card span {
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.theme-cyber footer {
    background: #000;
    border-top: 1px solid #222;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #555;
}
