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

html {
    scroll-behavior: smooth;
    background-color: var(--background-dark);
    color: var(--text-light);
}

:root {
    /* --- Enhanced Color System --- */
    --background-dark: #0B0B0F;
    --background-medium: #141418;
    --background-light: #1A1A20;
    --background-glass: rgba(20, 20, 24, 0.7);
    --background-glass-light: rgba(26, 26, 32, 0.5);

    --text-primary: #FFFFFF;
    --text-secondary: #E1E1E6;
    --text-tertiary: #A8A8B3;
    --text-quaternary: #737380;
    --text-light: #f0f0f0;
    --text-medium: #a0a0a0;
    --text-darker: #888;

    --accent-primary: #8B5FBF;
    --accent-secondary: #4A9EFF;
    --accent-tertiary: #FF6B9D;
    --accent-success: #04D361;
    --accent-warning: #FFB900;
    --accent-error: #F75A68;

    /* RGB values for transparency */
    --accent-primary-rgb: 139, 95, 191;
    --accent-secondary-rgb: 74, 158, 255;
    --accent-tertiary-rgb: 255, 107, 157;
    --accent-success-rgb: 4, 211, 97;

    /* Enhanced gradients */
    --highlight-gradient: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    --highlight-gradient-soft: linear-gradient(135deg, rgba(var(--accent-tertiary-rgb), 0.8) 0%, rgba(var(--accent-primary-rgb), 0.8) 50%, rgba(var(--accent-secondary-rgb), 0.8) 100%);
    --background-gradient: linear-gradient(135deg, var(--background-dark) 0%, var(--background-medium) 100%);

    --highlight-gradient-vertical: linear-gradient(180deg,
            var(--accent-tertiary) 0%,
            var(--accent-primary) 50%,
            var(--accent-secondary) 100%);

    /* Glass and card effects */
    --card-background: rgba(26, 26, 32, 0.6);
    --card-background-hover: rgba(26, 26, 32, 0.8);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.16);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.24);
    --shadow-glow: 0 0 40px rgba(var(--accent-primary-rgb), 0.15);
    --shadow-glow-hover: 0 0 60px rgba(var(--accent-primary-rgb), 0.25);
}

/* --- Custom Cursor --- */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1001;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#custom-cursor.expanded {
    background-color: white;
    mix-blend-mode: difference;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--highlight-gradient);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- Global Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    background: var(--background-dark);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    cursor: none;
}

a,
button,
.project-card,
.award-card,
.skills-list li {
    cursor: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

h2:not(.experience-main-title)::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--highlight-gradient);
    margin-top: 10px;
    border-radius: 2px;
}

/* Outline Title Style */
.outline-title {
    font-size: 15rem;
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-medium);
    text-stroke: 1px var(--text-medium);
    letter-spacing: 0.03em;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .outline-title {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .outline-title {
        font-size: 7rem;
    }
}

@media (max-width: 480px) {
    .outline-title {
        font-size: 5rem;
    }
}

.outline-title::after {
    content: none !important;
}

p {
    margin-bottom: 1rem;
    color: var(--text-tertiary);
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
}

.body-wrapper {
    overflow: hidden;
}

main {
    position: relative;
    z-index: 1;
}

.content-section {
    padding: clamp(60px, 8vw, 120px) 0;
    position: relative;
}

.alt-bg {
    background: var(--background-dark);
    position: relative;
}

.alt-bg::before {
    content: none;
}

#education {
    background-color: var(--background-dark);
}

#contact {
    /* Background is handled by base.css */
    padding: 80px 0;
    position: relative;
}

#contact h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    text-align: left;
    display: block;
}

#contact h2::after {
    content: none;
}

#experience-timeline .experience-main-title::after,
.awards-text-column h2::after,
#education .education-main-title::after,
#contact h2::after,
#skills h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--highlight-gradient);
    margin-top: 10px;
    border-radius: 2px;
}

/* --- Base Responsive --- */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

    body,
    a,
    button {
        cursor: auto;
    }

    #custom-cursor {
        display: none !important;
    }

    .content-section {
        padding: 60px 0;
    }

    #about .container,
    #contact .container {
        text-align: center;
    }

    #about p,
    #contact p {
        text-align: left;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-methods {
        display: inline-block;
        text-align: left;
    }

    .content-section ul li:not(#navbar ul li):not(.skills-list li):not(.project-tech-tags li):not(.job-details li) {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }
}

/* --- Two Column Layout --- */
.two-column-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.column-left {
    flex: 0 0 25%;
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
}

.column-right {
    flex: 1;
}

@media (max-width: 992px) {
    .two-column-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .column-left {
        position: static;
        width: 100%;
    }
}