:root {
    /* Colors */
    --bg-color: #0B0C15;
    --bg-secondary: #13141f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(11, 12, 21, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1100px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor takes over */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

a,
button,
.btn {
    cursor: none;
    /* Hide default cursor */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.highlight {
    background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    color: var(--accent-primary);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
}

.code-block-wrapper {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.code-block-wrapper:hover {
    transform: translateY(-5px) rotate(1deg);
}

.code-block-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}


.code-block {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #a5b3ce;
    line-height: 1.5;
}

.keyword {
    color: #c678dd;
}

.variable {
    color: #e5c07b;
}

.property {
    color: #e06c75;
}

.string {
    color: #98c379;
}

.function {
    color: #61afef;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    white-space: nowrap;
}

.section-line {
    height: 1px;
    background: var(--glass-border);
    width: 300px;
    /* limits width */
    max-width: 100%;
}

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

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover::after {
    opacity: 0;
}

.profile-img {
    width: 100%;
    border-radius: 10px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.image-wrapper:hover .profile-img {
    filter: grayscale(0%);
}

.about-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.tech-stack-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--accent-primary);
}

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

.tag {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin-left: 0;
    padding-left: 20px;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

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

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    transition: background 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
}

.timeline-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

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

.project-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

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

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

.folder-icon {
    color: var(--accent-primary);
    font-size: 2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

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

.project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    color: var(--accent-primary);
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Hobbies / Life Beyond Code */
.section-description {
    max-width: 700px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.hobby-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    /* Fixed height for uniformity */
    cursor: none;
    /* Custom cursor */
}

.hobby-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.hobby-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.hobby-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 12, 21, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hobby-item:hover .hobby-overlay {
    opacity: 1;
}

.hobby-overlay span {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.hobby-item:hover .hobby-overlay span {
    transform: translateY(0);
}


/* Contact */
.contact-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.contact-content {
    max-width: 600px;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 2rem 0;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.footer-info {
    font-size: 0.9rem;
    color: #666;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
    }

    .hero-visual {
        order: 1;
        display: flex;
        justify-content: center;
    }

    .code-block-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Navbar Mobile */
    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Above menu */
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-primary);
        transition: all 0.3s ease;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        /* full opaque bg for mobile menu */
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .contact-title {
        font-size: 2.2rem;
    }
}