:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="futuristic"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #12121a;
    --text-primary: #e0e0ff;
    --text-secondary: #8c8cbd;
    --accent-color: #ff007f;
    --accent-glow: rgba(255, 0, 127, 0.15);
}

:root[data-theme="calm"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --accent-color: #0d9488;
    --accent-glow: rgba(13, 148, 136, 0.15);
}

:root[data-theme="bright"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
}

:root[data-theme="bw"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f0f0;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --accent-color: #000000;
    --accent-glow: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

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

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

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: #0f172a;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

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

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

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-color);
}

.nav-item.btn-primary {
    color: #0f172a;
}
.nav-item.btn-primary:hover {
    color: var(--accent-color);
}

/* Section Shared */
.section {
    padding: 6rem 0;
}
.bg-secondary {
    background-color: var(--bg-secondary);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero .greeting {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero .name {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 0.5rem;
}

.hero .highlight {
    color: var(--accent-color);
}

.hero .role {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

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

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

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

.category-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.skill-tags span {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.competency-list {
    list-style: none;
}

.competency-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.competency-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-role {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

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

.timeline-details {
    list-style: none;
    margin-top: 1rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.timeline-details.compact li {
    margin-bottom: 0.25rem;
}

/* Education & Certs */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-list .card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.card-list .card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(10px);
}

.card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.card-body h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.card-body span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact */
.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link .icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.contact-link:hover {
    border-color: var(--accent-color);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center left;
}

[data-theme="bw"] .hamburger .bar {
    background-color: var(--text-primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
        gap: 1.5rem;
    }

    .nav-links.nav-active {
        right: 0;
    }

    /* Toggle animation */
    .hamburger.toggle .bar:nth-child(1) {
        transform: rotate(45deg);
        width: 25px;
    }
    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .bar:nth-child(3) {
        transform: rotate(-45deg);
        width: 25px;
    }

    .hero-cta {
        flex-direction: column;
    }
    .dual-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        flex-direction: column;
    }
    .theme-select-wrapper {
        margin-top: 1rem;
    }
}

/* Theme Selector Styles */
.theme-selector {
    position: relative;
    display: inline-block;
}

.theme-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

[data-theme="calm"] .theme-select,
[data-theme="bright"] .theme-select,
[data-theme="bw"] .theme-select {
    background: var(--bg-card);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-select:hover {
    border-color: var(--accent-color);
}

.theme-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.theme-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--text-secondary);
    position: absolute;
    right: 0.8rem;
    pointer-events: none;
}

/* Specific theme overrides for components using fixed colors or hardcoded colors */
[data-theme="bw"] .section-title::after {
    background: #000;
}
[data-theme="bw"] .timeline-dot,
[data-theme="bw"] .timeline-details li::before {
    background: #000;
    border-color: #000;
}
[data-theme="bw"] .btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}
[data-theme="bw"] .btn-primary:hover,
[data-theme="bw"] .nav-item.btn-primary:hover {
    background: transparent;
    color: #000;
    border-color: #000;
    box-shadow: none;
}
[data-theme="bw"] .about-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="bright"] .hero-bg-glow {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

