:root {
    /* Theme Colors */
    --cyber-dark: #212832;
    --cyber-teal: #00ba94;
    --cyber-blue: #0061f2;
    --cyber-gradient: linear-gradient(135deg, var(--cyber-dark) 0%, #1a1f26 100%);
    --cyber-accent-gradient: linear-gradient(135deg, var(--cyber-blue) 0%, var(--cyber-teal) 100%);
}

body {
    font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- 1. Background Particles --- */
.cyber-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 186, 148, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: -50px;
    background: radial-gradient(circle, rgba(0, 97, 242, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.particle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, rgba(0, 186, 148, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    animation-duration: 40s;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, 50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* --- 2. Navbar & Logo --- */
.navbar-cyber {
    background-color: rgba(33, 40, 50, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.cyberoak-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cyberoak-brand:hover {
    transform: scale(1.02);
}

.brand-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 0 20px rgba(0, 186, 148, 0.4);
    color: white;
    position: relative;
    overflow: hidden;
}

.brand-icon-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }

    20% {
        transform: translateX(150%) rotate(45deg);
    }

    100% {
        transform: translateX(150%) rotate(45deg);
    }
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
}

.brand-text-main {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-text-sub {
    font-size: 0.85rem;
    background: linear-gradient(to right, var(--cyber-teal), #4dd4ac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- 3. Hero Terminal Animation --- */
.page-header-cyber {
    background: var(--cyber-dark);
    position: relative;
    overflow: hidden;
}

.page-header-cyber::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 186, 148, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.cyber-terminal {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-family: 'Consolas', 'Monaco', monospace;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.cyber-terminal:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
    background: #252526;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-dots span {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.terminal-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-dots span:nth-child(3) {
    background-color: #27c93f;
}

.terminal-body {
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Syntax Highlighting */
.code-keyword {
    color: #c586c0;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

.code-class {
    color: #4ec9b0;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- 4. General UI Elements --- */
.text-gradient-cyber {
    background: var(--cyber-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-cyber {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--cyber-teal);
}

.card-cyber:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.btn-cyber-primary {
    background: var(--cyber-blue);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cyber-primary:hover {
    background: var(--cyber-teal);
    color: white;
    transform: translateY(-2px);
}

.btn-cyber-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.btn-cyber-outline:hover {
    border-color: var(--cyber-teal);
    color: var(--cyber-teal);
    background: transparent;
}

.text-decoration-none {
    text-decoration: none !important;
}