/* CSS Variables for Geeky Theme */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --text-primary: #00ff00;
    --text-secondary: #00ffff;
    --text-accent: #ff00ff;
    --text-light: #f5f5f5;
    --border-color: #00ff00;
    --hover-bg: #00ff00;
    --hover-text: #000000;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 10px var(--text-primary);
}

/* Hero section */
#hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text fill="rgba(0,255,0,0.1)" font-size="20" y="50%">0101010101</text></svg>');
    opacity: 0.1;
    animation: matrixRain 10s linear infinite;
}

@keyframes matrixRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    border-right: 2px solid var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--text-primary); }
    51%, 100% { border-color: transparent; }
}

#hero .title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

#hero .tagline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Sections */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Summary */
#summary p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Tech stack */
#tech-stack .tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.icon {
    font-size: 2rem;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--bg-tertiary);
}

.icon:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--text-primary);
}

/* Navigation */
#main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
    box-shadow: 0 0 15px var(--text-primary);
}

/* About section */
#about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

#about h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.job {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.job h4 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Skills section */
#skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skills-category ul {
    list-style: none;
    padding-left: 0;
}

.skills-category li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skill-bar {
    width: 60%;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-left: 10px;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    border-radius: 4px;
    width: 0;
    animation: fillBar 2s ease-out forwards;
}

@keyframes fillBar {
    to { width: var(--fill-width, 80%); }
}

.skills-category li::before {
    content: '▶';
    color: var(--text-primary);
    margin-right: 10px;
}

/* Course page */
#videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.video-item {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.video-item h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
}

video {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.video-item a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.video-item a:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
    box-shadow: 0 0 10px var(--text-primary);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.back-link:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text);
    box-shadow: 0 0 10px var(--text-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

.footer-links a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--text-primary);
}

/* Responsive design */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
    #hero .title {
        font-size: 1.2rem;
    }
    #hero .tagline {
        font-size: 1rem;
    }
    section {
        padding: 40px 20px;
    }
    #main-nav {
        flex-direction: column;
        align-items: center;
    }
    #about {
        grid-template-columns: 1fr;
    }
    #skills {
        grid-template-columns: 1fr;
    }
    .video-item {
        padding: 15px;
    }
}

/* Code snippets */
.code-snippet {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    position: relative;
}

.code-snippet::before {
    content: '$ ';
    color: var(--text-primary);
    font-weight: bold;
}

.code-snippet code {
    color: var(--text-secondary);
}

/* Terminal style containers */
.terminal {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.terminal::before {
    content: 'root@mohammad:~# ';
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    position: absolute;
    top: 10px;
    left: 10px;
}

.terminal-content {
    margin-top: 30px;
    color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

section {
    animation: fadeIn 0.8s ease-out;
}

.job {
    animation: slideIn 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}