:root {
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --accent-glow: rgba(88, 166, 255, 0.4);
    --border-color: #30363d;
    --mono-font: 'JetBrains Mono', monospace;
    --sans-font: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--sans-font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle Animated Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.mono-accent {
    font-family: var(--mono-font);
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.highlight {
    color: #ffffff;
    font-weight: 500;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.logo {
    font-family: var(--mono-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
}

.logo::before {
    content: '~/';
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--mono-font);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    margin-top: -50px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin: 1.5rem 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.pro-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pro-btn.primary {
    background-color: var(--accent-color);
    color: #0d1117;
    border: 1px solid var(--accent-color);
}

.pro-btn.primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.pro-btn.secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.pro-btn.secondary:hover {
    border-color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Content Sections */
.content-section {
    padding: 100px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2::after {
    content: "";
    display: block;
    height: 1px;
    width: 300px;
    background-color: var(--border-color);
    margin-left: 20px;
}

/* Timeline / Experience */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-left: 1rem;
}

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

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: none;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

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

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

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

.folder-icon {
    font-size: 2rem;
}

.project-header a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.project-header a:hover {
    color: var(--accent-color);
}

.project-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.skill-category h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.skill-tags span {
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

/* Footer */
.pro-footer {
    text-align: center;
    padding: 3rem 0;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Animations Scroll Reveal */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 768px) {
    .section-header h2::after {
        width: 100px;
    }

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

    .nav-links {
        display: none;
    }
}