:root {
    --primary-yellow: #FFD700;
    --dark-yellow: #B8860B;
    --cyber-bg: #0a0a0a;
    --cyber-dark: #111111;
    --cyber-gray: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --accent-green: #00ff00;
    --accent-red: #ff3333;
    --accent-blue: #3366ff;
    --accent-purple: #9933ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background-color: var(--cyber-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-yellow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-shadow: 0 0 10px var(--primary-yellow);
}

.nav-logo i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-yellow);
    text-shadow: 0 0 5px var(--primary-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-yellow);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.glitch-container {
    margin-bottom: 2rem;
}

.glitch {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-yellow);
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-red);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-blue);
    z-index: -2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-gray);
    font-family: 'Share Tech Mono', monospace;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-shadow: 0 0 10px var(--primary-yellow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--cyber-bg);
}

.btn-primary:hover {
    background: var(--dark-yellow);
    box-shadow: 0 0 20px var(--primary-yellow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--cyber-bg);
    box-shadow: 0 0 20px var(--primary-yellow);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--cyber-bg);
}

.btn-sparc {
    background: var(--accent-red);
    color: var(--text-light);
}

.btn-sparc:hover {
    background: #ff5555;
    box-shadow: 0 0 20px var(--accent-red);
}

/* Hero Visual - Terminal */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.terminal {
    width: 400px;
    background: var(--cyber-gray);
    border-radius: 10px;
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.terminal-header {
    background: var(--cyber-dark);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--primary-yellow);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27ca3f; }

.terminal-title {
    color: var(--primary-yellow);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    height: 250px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-green);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-yellow);
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-yellow);
    text-shadow: 0 0 10px var(--primary-yellow);
}

/* Journey Timeline */
.journey {
    background: var(--cyber-dark);
}

.journey-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-yellow);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-bg);
    font-size: 1.5rem;
    z-index: 10;
    position: relative;
}

.timeline-content {
    background: var(--cyber-gray);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-yellow);
    margin: 0 2rem;
    max-width: 300px;
}

.timeline-content h3 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

/* Domains Grid */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.domain-card {
    background: var(--cyber-gray);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--primary-yellow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.domain-card:hover::before {
    left: 100%;
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.domain-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.domain-header i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary-yellow);
}

.domain-header h3 {
    color: var(--primary-yellow);
    font-size: 1.3rem;
}

.domain-goal {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-style: italic;
}

.domain-content h4 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.domain-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.domain-content li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.domain-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
}

.progress-bar {
    background: var(--cyber-dark);
    height: 8px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
    border-radius: 4px;
    transition: width 2s ease;
    width: 0;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.8rem;
    color: var(--primary-yellow);
}

/* Projects */
.projects {
    background: var(--cyber-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--cyber-gray);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--primary-yellow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--primary-yellow);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.tag.blue-team { background: var(--accent-blue); }
.tag.red-team { background: var(--accent-red); }
.tag.intel { background: var(--accent-purple); }
.tag.engineer { background: var(--accent-green); }

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-tech span {
    background: var(--cyber-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--primary-yellow);
}

.github-link {
    text-align: center;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3,
.sparc-info h3 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-links a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--cyber-dark);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--primary-yellow);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--cyber-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .journey-timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        position: absolute;
        left: 0;
    }
    
    .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
    }
}


/* DEV SWITCH BUTTON - Add this to the END of your styles.css */

/* Override any conflicting nav-link styles specifically for dev-switch */
.nav-menu .dev-switch,
a.dev-switch,
.dev-switch.nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg,
        rgba(51, 102, 255, 0.15),
        rgba(0, 191, 255, 0.15),
        rgba(51, 102, 255, 0.15)) !important;
    border: 3px solid transparent !important;
    border-radius: 10px !important;
    color: #3366ff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: all 0.4s ease !important;
    overflow: hidden !important;
    cursor: pointer !important;
    backdrop-filter: blur(15px) !important;
    font-family: 'Orbitron', monospace !important;
    white-space: nowrap !important;
    z-index: 1001 !important;
    background-clip: padding-box !important;
    margin-left: 1rem !important;
    box-shadow: 0 0 20px rgba(51, 102, 255, 0.3) !important;
}

/* Remove nav-link after pseudo element for dev-switch */
.dev-switch::after,
.dev-switch.nav-link::after,
a.dev-switch::after {
    display: none !important;
    content: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Animated gradient border */
.dev-switch::before,
a.dev-switch::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    background: linear-gradient(45deg,
        #3366ff, #00bfff, #6699ff, #3366ff,
        #00bfff, #6699ff, #3366ff) !important;
    background-size: 400% 400% !important;
    border-radius: 10px !important;
    z-index: -1 !important;
    animation: dev-gradient-border 3s ease infinite !important;
}

/* Hover effects */
.dev-switch:hover,
a.dev-switch:hover,
.dev-switch.nav-link:hover {
    transform: translateY(-4px) scale(1.03) !important;
    color: #00bfff !important;
    text-decoration: none !important;
    text-shadow:
        0 0 15px rgba(51, 102, 255, 1),
        0 0 30px rgba(0, 191, 255, 0.8),
        0 0 45px rgba(51, 102, 255, 0.6) !important;
    box-shadow:
        0 0 40px rgba(51, 102, 255, 0.7),
        0 12px 25px rgba(51, 102, 255, 0.4),
        inset 0 0 40px rgba(51, 102, 255, 0.2) !important;
    background: linear-gradient(135deg,
        rgba(51, 102, 255, 0.25),
        rgba(0, 191, 255, 0.2),
        rgba(51, 102, 255, 0.25)) !important;
}

.dev-switch:active,
a.dev-switch:active {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow:
        0 0 35px rgba(51, 102, 255, 0.9),
        inset 0 0 35px rgba(51, 102, 255, 0.3) !important;
}

/* Dev Icon */
.dev-icon {
    width: 24px !important;
    height: 24px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
}

.dev-icon::before {
    content: '💻' !important;
    font-size: 24px !important;
    filter: brightness(1.3) contrast(1.2) hue-rotate(200deg) !important;
    animation: dev-icon-pulse 2.5s ease-in-out infinite !important;
    transition: all 0.3s ease !important;
}

.dev-switch:hover .dev-icon::before {
    animation: dev-icon-spin 1.2s ease-in-out infinite !important;
    filter: brightness(1.8) contrast(1.4) hue-rotate(240deg) !important;
}

/* Switch Text */
.dev-switch .switch-text {
    position: relative !important;
    z-index: 10 !important;
    font-weight: 700 !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

.dev-switch:hover .switch-text {
    animation: dev-text-glitch 0.5s ease-in-out !important;
}

/* Keyframe Animations */
@keyframes dev-gradient-border {
    0%, 100% {
        background-position: 0% 50% !important;
    }
    50% {
        background-position: 100% 50% !important;
    }
}

@keyframes dev-icon-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(51, 102, 255, 0.8),
            0 0 20px rgba(51, 102, 255, 0.6),
            0 0 30px rgba(51, 102, 255, 0.4) !important;
        transform: scale(1) rotate(0deg) !important;
    }
    50% {
        text-shadow:
            0 0 20px rgba(51, 102, 255, 1),
            0 0 35px rgba(0, 191, 255, 0.8),
            0 0 50px rgba(51, 102, 255, 0.6) !important;
        transform: scale(1.15) rotate(3deg) !important;
    }
}

@keyframes dev-icon-spin {
    0%, 100% {
        transform: scale(1.15) rotate(0deg) !important;
        text-shadow:
            0 0 20px rgba(0, 191, 255, 1),
            0 0 35px rgba(51, 102, 255, 0.9) !important;
    }
    25% {
        transform: scale(1.3) rotate(90deg) !important;
    }
    50% {
        transform: scale(1.15) rotate(180deg) !important;
        text-shadow:
            0 0 30px rgba(0, 191, 255, 1),
            0 0 45px rgba(51, 102, 255, 1) !important;
    }
    75% {
        transform: scale(1.3) rotate(270deg) !important;
    }
}

@keyframes dev-text-glitch {
    0%, 100% {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
    15% {
        transform: translateX(-3px) !important;
        opacity: 0.8 !important;
        text-shadow: 2px 0 #ff0040, -2px 0 #00ff80 !important;
    }
    30% {
        transform: translateX(3px) !important;
        opacity: 0.9 !important;
        text-shadow: -2px 0 #ff0040, 2px 0 #00ff80 !important;
    }
    45% {
        transform: translateX(-2px) !important;
        opacity: 0.7 !important;
        text-shadow: 1px 0 #ff0040, -1px 0 #00ff80 !important;
    }
    60% {
        transform: translateX(2px) !important;
        opacity: 0.9 !important;
    }
    75% {
        transform: translateX(-1px) !important;
        opacity: 0.8 !important;
    }
}

/* Code Rain für Dev Mode */
.code-rain {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    transition: opacity 1.5s ease !important;
}

.code-rain.active {
    opacity: 1 !important;
}

.code-column {
    position: absolute !important;
    top: -200px !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 14px !important;
    color: #3366ff !important;
    white-space: pre-line !important;
    animation: code-fall linear infinite !important;
    text-shadow:
        0 0 8px rgba(51, 102, 255, 0.9),
        0 0 15px rgba(0, 191, 255, 0.7) !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

@keyframes code-fall {
    from {
        transform: translateY(-200px) !important;
        opacity: 0 !important;
    }
    15% {
        opacity: 1 !important;
    }
    85% {
        opacity: 1 !important;
    }
    to {
        transform: translateY(calc(100vh + 200px)) !important;
        opacity: 0 !important;
    }
}

/* Mobile Responsive für Dev Switch */
@media (max-width: 768px) {
    .dev-switch,
    a.dev-switch {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.8rem !important;
        gap: 0.6rem !important;
        letter-spacing: 1px !important;
        margin-left: 0 !important;
        margin-top: 1rem !important;
    }

    .dev-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .dev-icon::before {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .dev-switch,
    a.dev-switch {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
    }

    .dev-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .dev-icon::before {
        font-size: 18px !important;
    }

    .nav-menu .dev-switch {
        margin: 1rem 0 !important;
    }
}

/* Additional specificity overrides */
.navbar .nav-menu .dev-switch,
.nav-container .nav-menu .dev-switch {
    color: #3366ff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.15), rgba(0, 191, 255, 0.15)) !important;
}

.navbar .nav-menu .dev-switch:hover,
.nav-container .nav-menu .dev-switch:hover {
    color: #00bfff !important;
    text-decoration: none !important;
}

.navbar .nav-menu .dev-switch:visited,
.nav-container .nav-menu .dev-switch:visited {
    color: #3366ff !important;
    text-decoration: none !important;
}
