/* ===== CUSTOM PROPERTIES ===== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --accent: #f59e0b;

    /* Light Theme - Premium Refinement */
    --bg-primary: #f8fafc;
    /* Keep a cool neutral base */
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    /* Slightly more transparency for glass effect */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(14, 165, 233, 0.15);
    /* Subtle tinted border instead of grey */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    /* Slightly darker for better contrast */
    --text-muted: #64748b;

    /* Shadows - Colored/Premium Feel */
    --shadow-sm: 0 2px 4px 0 rgba(148, 163, 184, 0.15);
    --shadow-md: 0 6px 12px -2px rgba(14, 165, 233, 0.12);
    /* Subtle blue tint */
    --shadow-lg: 0 15px 25px -5px rgba(14, 165, 233, 0.15);
    /* Stronger blue glow */
    --shadow-xl: 0 25px 50px -12px rgba(14, 165, 233, 0.25);

    --spotlight-color: rgba(14, 165, 233, 0.12);
    /* Brighter spotlight */
}

/* ===== DARK THEME ===== */
body.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --spotlight-color: rgba(14, 165, 233, 0.05);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-wrap: balance;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== BACKGROUND EFFECTS ===== */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    opacity: 0.03;
    /* Reduced grain for cleaner light theme */
}

.dark-theme .grain {
    opacity: 0.03;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    /* Slightly reduced for better contrast */
    animation: blobMove 20s infinite alternate;
}

.dark-theme .blob {
    opacity: 0.1;
}

.blob1 {
    background: var(--primary);
    top: -15%;
    left: -10%;
}

.blob2 {
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

.blob3 {
    background: var(--accent);
    top: 40%;
    left: 30%;
    animation-delay: -20s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 40px) scale(1.1);
    }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: rotate(45deg);
    background: var(--bg-card-hover);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: block;
}

.dark-theme .theme-toggle .fa-sun {
    display: block;
}

.dark-theme .theme-toggle .fa-moon {
    display: none;
}

/* ===== LOADER ===== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-bars {
    display: inline-flex;
    align-items: flex-end;
    height: 50px;
    gap: 3px;
}

.loader-bars span {
    background: var(--primary);
    width: 6px;
    height: 8px;
    border-radius: 3px;
    animation: loadingBars 0ms -800ms linear infinite alternate;
}

.loader-bars span:nth-child(1) {
    animation-duration: 405ms;
}

.loader-bars span:nth-child(2) {
    animation-duration: 477ms;
}

.loader-bars span:nth-child(3) {
    animation-duration: 456ms;
}

.loader-bars span:nth-child(4) {
    animation-duration: 402ms;
}

.loader-bars span:nth-child(5) {
    animation-duration: 472ms;
}

.loader-bars span:nth-child(6) {
    animation-duration: 452ms;
}

.loader-bars span:nth-child(7) {
    animation-duration: 415ms;
}

.loader-bars span:nth-child(8) {
    animation-duration: 456ms;
}

.loader-bars span:nth-child(9) {
    animation-duration: 497ms;
}

.loader-bars span:nth-child(10) {
    animation-duration: 440ms;
}

@keyframes loadingBars {
    0% {
        opacity: 0.35;
        height: 8px;
    }

    100% {
        opacity: 1;
        height: 50px;
    }
}

/* ===== CURSOR SPOTLIGHT ===== */
.cursor-spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--spotlight-color) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: normal;
}

/* ===== LAYOUT ===== */
.main-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* ===== SIDEBAR HEADER ===== */
.sidebar-header {
    width: 380px;
    position: sticky;
    top: 0;
    max-width: 480px;
    height: 100vh;
    padding: 6rem 3rem 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow-lg);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1px;
}

#interactive-name {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    transition: background-image 0.2s;
}

.title-role {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.header-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.header-links a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.header-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.header-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.cta-button {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: #fff;
}

.cta-button.secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.cta-button.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 6rem 0 6rem 4rem;
}

.content-section {
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.content-section.appear {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-number {
    color: var(--primary);
    font-family: monospace;
    font-weight: 400;
    font-size: 1.4rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.about-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-content a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.about-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-content a:hover::after {
    transform: scaleX(1);
}

.philosophy-quote {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.philosophy-quote i {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--bg-primary);
    color: var(--primary);
    font-size: 1.2rem;
    padding: 0 5px;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.experience-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.2);
}

.experience-card:hover .card-arrow {
    transform: translateX(5px);
    color: var(--primary);
}

.card-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.experience-date {
    min-width: 140px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 0.25rem;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.experience-title .company {
    color: var(--primary);
}

.experience-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.experience-tags span {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(99, 102, 241, 0.05));
    padding: 0;
    overflow: hidden;
}

.project-card.featured .project-image {
    width: 280px;
    height: 100%;
    min-height: 220px;
    border-radius: 12px 0 0 12px;
    margin: 0;
    overflow: hidden;
}

.project-card.featured .project-image img {
    border-radius: 0;
}

.project-card.featured .project-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark-theme .project-card.featured .project-content {
    background: rgba(30, 41, 59, 0.9);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image i {
    font-size: 2rem;
    color: var(--primary);
}

.project-content {
    flex: 1;
}

.project-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-content h3 i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-card:hover h3 i {
    color: var(--primary);
}

.project-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

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

.project-tags span {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-primary);
    color: var(--text-muted);
    border-radius: 6px;
    font-weight: 500;
}

.badge {
    font-size: 0.7rem;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--primary);
}

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

.skill-tags span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.skill-tags.soft span {
    background: rgba(245, 158, 11, 0.15);
    border-color: transparent;
    color: #d97706;
    /* Darker amber for contrast */
    font-weight: 500;
}

.dark-theme .skill-tags.soft span {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

/* Skill Bars */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-percent {
    color: var(--primary);
}

.bar-bg {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-grid {
    display: grid;
    gap: 1.5rem;
}

.achievement-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.achievement-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CHART SECTION ===== */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    height: 400px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== EDUCATION SECTION ===== */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.education-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.education-content h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-institution {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.education-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== REFERENCES SECTION ===== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.reference-card {
    display: flex;
    flex-direction: column;
    /* Stack vertically for varied centering */
    align-items: center;
    /* Center align items */
    text-align: center;
    /* Center text */
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.reference-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reference-content h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.reference-role {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.reference-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== FLOATING NAV ===== */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

.floating-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.floating-nav a {
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.floating-nav a:hover,
.floating-nav a.active {
    color: var(--primary);
    transform: scale(1.2);
}

.floating-nav a.active::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* ===== FOOTER ===== */
footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    /* Centering footer text */
    padding: 2rem 1rem;
    width: 100%;
}

footer a {
    color: var(--text-primary);
    font-weight: 500;
}

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

/* ===== TOAST NOTIFICATION ===== */
.theme-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 380px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(16px);
}

.theme-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--primary);
    font-size: 1.5rem;
    background: rgba(14, 165, 233, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.toast-actions {
    display: flex;
    gap: 0.75rem;
}

.toast-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-switch {
    background: var(--primary);
    color: white;
}

.btn-switch:hover {
    background: var(--primary-dark);
}

.btn-close {
    background: transparent;
    color: var(--text-muted);
}

.btn-close:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .floating-nav {
        display: none;
    }
}

@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar-header {
        width: 100%;
        height: auto;
        position: relative;
        padding: 4rem 2rem;
        align-items: center;
        text-align: center;
    }

    .header-content {
        align-items: center;
    }

    .tagline {
        max-width: 100%;
    }

    .header-links {
        justify-content: center;
    }

    .header-cta {
        width: 100%;
        max-width: 400px;
    }

    .main-content {
        padding: 4rem 2rem;
    }

    .project-card.featured {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
    }

    .project-card.featured .project-image {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .project-card.featured .project-content {
        padding: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .dark-theme .project-card.featured .project-content {
        background: transparent;
    }

    .experience-card {
        flex-direction: column;
        gap: 1rem;
    }

    .experience-date {
        min-width: auto;
    }

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

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .theme-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1001;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid var(--bg-primary);
    animation: bounce 2s infinite;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
    z-index: 1000;
}

.chat-container.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Chat Header */
.chat-header {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-secondary);
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.chat-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.chat-header p {
    font-size: 0.75rem;
    color: var(--primary);
    margin: 0;
}

.close-chat {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-chat:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
}

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    animation: fadeIn 0.3s ease;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--glass-border);
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.user-message .message-time {
    text-align: right;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    width: fit-content;
    border-bottom-left-radius: 2px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Chat Input */
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 20px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.chat-input-area button {
    background: var(--primary);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Chat Footer */
.chat-footer {
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-muted);
}

.chat-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Chat */
@media (max-width: 480px) {
    .chat-container {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 1002;
    }

    .chat-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}