:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #00ff41;
    /* Matrix Green */
    --accent-secondary: #00b8ff;
    /* Cyber Blue */
    --font-mono: 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scanline Effect */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 9999;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 255, 65, 0.04) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: fixed;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100px;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 9998;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--accent-color);
    border-right: 2px solid var(--accent-color);
    overflow: hidden;
    transition: width 0.5s ease;
    white-space: nowrap;
}

.nav-link:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.terminal-text {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-right: 2px solid var(--accent-color);
    display: inline-block;
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-color);
    }
}

.location {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-color);
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-color);
}

.primary-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.secondary-btn {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.secondary-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* Sections */
.section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--text-secondary);
    flex-grow: 1;
    opacity: 0.3;
}

.highlight {
    color: var(--accent-secondary);
}

/* About Section */
.terminal-window {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #222;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.title {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--accent-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid #333;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.1);
}

.job-details li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-details i {
    color: var(--accent-secondary);
    margin-top: 5px;
    font-size: 0.8rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.skill-category i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.skill-category h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* Education & Certifications */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.cert-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cert-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cert-year {
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

/* Contact & Footer */
.contact-content {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.contact-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        border-left: 1px solid var(--accent-color);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .edu-cert-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}