:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --accent-primary: #00ff88;
    --accent-secondary: #0088ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #606060;
    --border-color: #2a2a2a;
    --code-bg: #0d1117;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
.logo {
    text-decoration: none;
    transition: 0.25s ease;
}

.logo:hover {
    opacity: 0.85;
}


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

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

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.5rem 2rem;
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

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

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

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    padding-top: 140px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-role {
    display: block;                 /* forces its own line */
    font-size: 0.65em;              /* smaller than main heading */
    font-weight: 800;
    color: var(--accent-primary);   /* brings back green */
    margin-top: 0.4rem;
    white-space: nowrap;            /* keeps it ONE LINE */
}

@media (max-width: 480px) {
    .hero-role {
        white-space: normal;
    }
}

.hero h1 .accent {
    color: var(--accent-primary);
    display: block;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}


.hero .stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
}

.btn {
    padding: 1rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: 2px solid;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.2);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-resume {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    opacity: 0.85;
}

.btn-resume:hover {
    opacity: 1;
    background: rgba(0, 255, 136, 0.08);
    transform: translateY(-2px);
}



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

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

/* Section Styles */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--text-primary);
}

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

.quick-facts h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.fact-item {
    margin-bottom: 1.5rem;
}

.fact-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.fact-value {
    color: var(--text-primary);
    font-size: 1rem;
}


/* Projects Container - Two Column Layout */
.projects-container {
    display: grid;
    grid-template-columns: 280px 1fr;   /* was 320px */
    gap: 36px;                          /* slightly tighter */
    margin-top: 48px;
    min-height: 600px;
    align-items: stretch;
}

/* Left Sidebar - Project List */
.projects-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 760px;
    overflow-y: auto;
    padding-right: 6px;
}

.projects-sidebar::-webkit-scrollbar {
    width: 6px;
}

.projects-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.projects-sidebar::-webkit-scrollbar-thumb {
    background: #00d99f;
    border-radius: 3px;
}

.projects-sidebar::-webkit-scrollbar-thumb:hover {
    background: #00f0b1;
}

.project-item {
    padding: 16px;
    border-left: 3px solid #2a2a2a;
    background: linear-gradient(145deg, #0a0a0a, #0f0f0f);
    border-radius: 10px;      /* was 6px */
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #161616;
}


.project-item:hover {
    background: linear-gradient(145deg, #101010, #151515);
    border-left-color: #00d99f;
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(0, 217, 159, 0.08);
}


.project-item.active {
    background: linear-gradient(145deg, #141414, #1b1b1b);
    border-left-color: #00d99f;
    box-shadow: 0 0 0 1px rgba(0, 217, 159, 0.35),
                0 6px 22px rgba(0, 217, 159, 0.18);
}


.project-item-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.project-item-header h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.2;
}

.project-type-badge {
    font-size: 10px;
    font-weight: 700;
    color: #00d99f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-item-subtitle {
    font-size: 11.8px;
    color: #8f8f8f;
    margin: 0;
    line-height: 1.3;
}

.project-item.active .project-item-subtitle {
    color: #aaa;
}

/* Right Panel - Project Details */
.projects-detail {
    background: linear-gradient(145deg, #0a0a0a, #0d0d0d);
    border: 1px solid #1f1f1f;
    border-radius: 16px;     /* was 12px */
    padding: 36px;           /* was 40px */
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}


.projects-detail::-webkit-scrollbar {
    width: 6px;
}

.projects-detail::-webkit-scrollbar-track {
    background: transparent;
}

.projects-detail::-webkit-scrollbar-thumb {
    background: #00d99f;
    border-radius: 3px;
}

.projects-detail::-webkit-scrollbar-thumb:hover {
    background: #00f0b1;
}

.project-detail-item {
    display: none;
}

.project-detail-item.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.project-detail-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 217, 159, 0.35);
}

.project-detail-header span {
    font-size: 11px;
    font-weight: 700;
    color: #00d99f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-detail-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 0 0;
    line-height: 1.3;
}

.project-description {
    font-size: 15px;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 28px;
}

.project-highlights {
    margin-bottom: 28px;
}

.project-highlights h4 {
    font-size: 12px;
    font-weight: 700;
    color: #00d99f;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-highlights li {
    font-size: 14px;
    color: #aaa;
    padding: 5px 0 5px 18px;
    padding-left: 16px;
    position: relative;
    line-height: 1.55;
}

.project-highlights li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00d99f;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
}

.tech-tag {
    font-size: 11.5px;
    padding: 7px 12px;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 999px;   /* pill style */
    color: #00d99f;
}


.project-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.project-link {
    font-size: 13px;
    padding: 11px 18px;
    background: #00d99f;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    border-radius: 8px;
    letter-spacing: 0.3;
}

.project-link:hover {
    background: #00f0b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 159, 0.3);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-container {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }

    .project-detail-header h3 {
        font-size: 24px;
    }

    .projects-detail {
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: 250px 1fr;
        gap: 24px;
    }

    .projects-sidebar {
        gap: 10px;
    }

    .project-item {
        padding: 14px;
    }

    .project-item-header h4 {
        font-size: 13px;
    }

    .project-detail-header h3 {
        font-size: 22px;
    }

    .project-description {
        font-size: 14px;
    }

    .projects-detail {
        max-height: 700px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .projects-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
        overflow-y: visible;
        gap: 12px;
        padding-right: 0;
    }

    .projects-detail {
        max-height: none;
        overflow-y: visible;
    }

    .project-detail-header h3 {
        font-size: 20px;
    }

    .project-highlights li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .projects-sidebar {
        grid-template-columns: 1fr;
    }

    .projects-detail {
        padding: 16px;
    }

    .project-detail-header h3 {
        font-size: 18px;
    }

    .project-description {
        font-size: 13px;
    }

    .project-links {
        flex-direction: column;
    }
}


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

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}


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

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

.skill-category h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 2px;
}

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

.skill-item {
    padding: 0.6rem 1rem;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.skill-item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

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

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

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

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

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.timeline-achievements {
    list-style: none;
}

.timeline-achievements li {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}


.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.experience-heading {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-4px);
}

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

footer p {
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-note a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

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

    .hero .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .project-metrics {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}