:root {
    /* Color Palette - Premium Gray Theme */
    --bg-color: #202225;
    --surface-color: #2f3136;
    --surface-hover: #393c43;
    --text-primary: #f2f3f5;
    --text-secondary: #b9bbbe;
    
    /* Soft Blue / Purple Gradient Accent (Stands out, but not neon) */
    --accent-light: #7ea3ff;
    --accent-dark: #b592f7;
    --gradient-primary: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    --gradient-hover: linear-gradient(135deg, #9ebbf9, #ceb5ff);
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    
    /* Layout */
    --sidebar-width: 300px;
    --section-padding: 80px 40px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --surface-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    /* Keep accents the same or slightly more vibrant for light mode */
    --accent-light: #38bdf8;
    --accent-dark: #a855f7;
    --gradient-primary: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    --gradient-hover: linear-gradient(135deg, #0ea5e9, #9333ea);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Defaults */
h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Base Layout Classes */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

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

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Reusable UI Components */
.card {
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-light);
    color: var(--accent-light);
}

.btn-outline:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--accent-light);
    font-size: 0.95rem;
}

.btn-text svg {
    transition: var(--transition);
}

.btn-text:hover svg {
    transform: translateX(4px);
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: var(--surface-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--bg-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.3rem;
}

.sidebar-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: auto;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--bg-color);
    color: var(--accent-dark);
}

.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--text-secondary);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.sidebar-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-name {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-card {
    padding: 3rem;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.skills-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    transition: var(--transition);
}

.skill-item:hover .skill-icon {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-color);
    color: var(--accent-dark);
    border-radius: 20px;
    font-weight: 600;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 17px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 3px solid var(--accent-light);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
}

.timeline-content:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--accent-light);
}

.timeline-date {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 260px;
        --section-padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .content-area {
        margin-left: 0;
        padding-top: 70px;
    }

    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 150;
        width: 300px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        min-height: calc(100vh - 70px);
    }

    .hero-cta {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: 8px;
        width: 14px;
        height: 14px;
        top: 25px;
    }

    .timeline-item {
        padding-left: 45px;
    }
}
