/* CSS Variables & Theme Setup */
:root {
    /* Semantic Variables (Default = Dark) */
    --bg-main: #0f1115;
    --bg-card: #1e2129;
    /* Slightly lighter for better contrast against bg-main */
    --bg-glass: rgba(30, 33, 41, 0.9);

    --text-primary: #f8fafc;
    /* Brighter white */
    --text-secondary: #cbd5e1;
    /* Lighter grey for better readability */

    /* Refined Accents - Brighter for Dark Mode */
    --accent-cyan: #38bdf8;
    /* Sky Blue - much more visible than Slate */
    --accent-amber: #f1f5f9;
    /* Near white silver */
    --accent-primary: #60a5fa;
    /* Blue 400 */

    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.2s ease-out;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.8);

    --text-primary: #1a1a1a;
    --text-secondary: #52525b;

    --accent-cyan: #00707c;
    /* Darker cyan for light mode contrast */
    --accent-amber: #d97706;
    /* Darker amber */

    --border-color: rgba(0, 0, 0, 0.05);
    --border-hover: rgba(0, 0, 0, 0.1);

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Premium Styling Utils */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.gradient-text {
    color: var(--text-primary);
    /* Removed gradients for a cleaner, more professional look */
}

.accent {
    color: var(--accent-cyan);
}

.section-padding {
    padding: 6rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Background Mesh */
/* Background Mesh Removed */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.mobile-menu-btn {
    display: none;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a.active {
    color: var(--text-primary);
    position: relative;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
    border-radius: 2px;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--accent-amber);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
    color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.25);
    background: var(--accent-cyan);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-left: 1rem;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.hero-subtitle {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Hero Canvas */
/* Hero Canvas Removed */

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

.project-card {
    transition: var(--transition-smooth);
    overflow: hidden;
}

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

.project-image {
    height: 200px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Placeholders for project images using CSS patterns */
.placeholder-gradient-1 {
    background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
}

.placeholder-gradient-2 {
    background: linear-gradient(45deg, #141e30, #243b55);
}

.placeholder-gradient-3 {
    background: linear-gradient(45deg, #3a1c71, #d76d77, #ffaf7b);
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-stack span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
}

.link-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.link-arrow:hover {
    color: var(--accent-amber);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
    /* Match heights */
}

.profile-frame {
    padding: 10px;
    height: 100%;
    /* Fill column height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.about-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-text {
    flex-grow: 1;
    /* Expand to fill height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
}

/* Stats Styles Removed */

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.skill-category h3 {
    border-bottom: 1px solid var(--accent-cyan);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.skill-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.skill-list li::before {
    content: "▹";
    color: var(--accent-amber);
    margin-right: 0.75rem;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .profile-frame {
        max-width: 300px;
        margin: 0 auto;
    }



    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block !important;
        /* Force show on mobile */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px 0;
        background-color: var(--text-primary);
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

/* Tag Badges for Notes */
.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Filter Buttons */
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
    font-weight: 600;
}