:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #0f1419;
    --bg-tertiary: #151a21;
    --accent-green: #00ff41;
    --accent-cyan: #00d9ff;
    --accent-red: #ff3366;
    --accent-yellow: #ffcc00;
    --text-primary: #e6e6e6;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --border-color: #1a2332;
    --shadow-glow: rgba(0, 255, 65, 0.2);
}

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

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

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 65, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    animation: scanline 8s linear infinite;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    top: 0;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-image {
    height: 160px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);

}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a::before {
    content: '# ';
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover {
    color: var(--accent-green);
}

nav a:hover::before {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.terminal-button.close { background: var(--accent-red); }
.terminal-button.minimize { background: var(--accent-yellow); }
.terminal-button.maximize { background: var(--accent-green); }

.terminal-body {
    padding: 2rem;
    font-family: 'Courier Prime', monospace;
}

.terminal-line {
    margin-bottom: 1rem;
    opacity: 0;
    animation: terminalReveal 0.5s ease-out forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 0.7s; }
.terminal-line:nth-child(3) { animation-delay: 0.9s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.3s; }
.terminal-line:nth-child(6) { animation-delay: 1.5s; }
.terminal-line:nth-child(7) { animation-delay: 1.7s; }

@keyframes terminalReveal {
    to { opacity: 1; }
}

.prompt {
    color: var(--accent-cyan);
}

.command {
    color: var(--accent-green);
}

.output {
    color: var(--text-secondary);
    margin-left: 1rem;
}

.output-highlight {
    color: var(--accent-yellow);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--accent-green);
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

h1 {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--shadow-glow);
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

/* Section Headers */
.section {
    padding: 4rem 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title::before {
    content: '// ';
    color: var(--accent-cyan);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-glow);
}

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

.project-title {
    font-size: 1.3rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.project-type {
    font-size: 0.8rem;
    color: var(--accent-yellow);
    background: rgba(255, 204, 0, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.8rem;
    color: var(--accent-green);
    background: rgba(0, 255, 65, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.project-highlights {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-highlights li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.project-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.skill-category-title {
    font-size: 1.2rem;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category-title::before {
    content: '▸';
    color: var(--accent-cyan);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 10px var(--shadow-glow);
    transform: scale(1.05);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-cyan));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--shadow-glow);
}

.timeline-date {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.timeline-description ul {
    list-style: none;
    margin-top: 1rem;
}

.timeline-description li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.timeline-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-green);
    padding: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-left-color: var(--accent-cyan);
    transform: translateX(5px);
    box-shadow: -5px 0 15px var(--shadow-glow);
}

.cert-name {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cert-date {
    color: var(--accent-yellow);
    font-size: 0.85rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 5px 20px var(--shadow-glow);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-value {
    color: var(--accent-green);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-value:hover {
    color: var(--accent-yellow);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .projects-grid,
    .skills-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding-left: 1rem;
    }
}
