:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-tertiary: #1e2440;
    --accent-primary: #00ff88;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #ff0080;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0c0;
    --text-dim: #6b6b8f;
    --glow: rgba(0, 255, 136, 0.5);
    --code-bg: rgba(30, 36, 64, 0.6);
}

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

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

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

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

    100% {
        transform: translate(50px, 50px);
    }
}

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

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float 15s infinite;
    opacity: 0.3;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

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

/* Terminal Header */
.terminal-header {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Hero Section */
.hero {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 136, 0.1), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.08), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.typing-text {
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: slideInLeft 0.8s ease-out;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    background: var(--code-bg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.stat:nth-child(1) {
    animation-delay: 0.5s;
}

.stat:nth-child(2) {
    animation-delay: 0.6s;
}

.stat:nth-child(3) {
    animation-delay: 0.7s;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

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

/* Contact Links */
.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-secondary);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-primary);
}

/* Download CV Button */
.download-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.download-cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.download-cv-btn:hover::before {
    left: 100%;
}

.download-cv-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.download-cv-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Section Headers */
.section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out backwards;
}

.section-header {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-left: 0.5rem;
}

.section-title::before {
    content: '//';
    margin-right: 0.5rem;
    color: var(--text-dim);
}

.section-content {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 2rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--code-bg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15);
}

.skill-category h3 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 10px var(--glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 10px var(--glow);
    }

    50% {
        box-shadow: 0 0 20px var(--glow);
    }
}

.timeline-item:hover::before {
    transform: scale(1.3);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-title {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.job-date {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
}

.company {
    font-size: 1rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.job-description {
    list-style: none;
    padding: 0;
}

.job-description li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    position: relative;
}

.job-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

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

.project-card {
    background: var(--code-bg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    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-primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

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

.project-title {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Education */
.education-item {
    background: var(--code-bg);
    border-left: 3px solid var(--accent-primary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
    box-shadow: -5px 0 15px rgba(0, 255, 136, 0.2);
}

.edu-title {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.edu-institute {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.edu-date {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Certificates */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.certificate-card {
    background: var(--code-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.cert-title {
    color: var(--accent-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Code Block Effect */
.code-block {
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 4rem;
}

.footer::before {
    content: '< />';
    display: block;
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

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

    .hero {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats {
        gap: 1rem;
    }

    .stat {
        flex: 1 1 45%;
    }

    .timeline {
        padding-left: 1.5rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat {
        flex: 1 1 100%;
    }

    .job-header {
        flex-direction: column;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(1) {
    animation-delay: 0.1s;
}

.section:nth-child(2) {
    animation-delay: 0.2s;
}

.section:nth-child(3) {
    animation-delay: 0.3s;
}

.section:nth-child(4) {
    animation-delay: 0.4s;
}

.section:nth-child(5) {
    animation-delay: 0.5s;
}

.section:nth-child(6) {
    animation-delay: 0.6s;
}
