/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Light theme (default) */
    /* Light theme (default) - Beige Update */
    --bg-primary: #fdfbf7;
    --bg-secondary: #f7f5f0;
    --bg-accent: #efece6;
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-tertiary: #78716c;
    
    --accent-primary: #2563eb;
    --accent-secondary: #0ea5e9;
    --accent-glow: rgba(37, 99, 235, 0.2);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    
    --terminal-bg: #1e293b;
    --terminal-header: #0f172a;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #020617;
    --bg-accent: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    --accent-primary: #3b82f6;
    --accent-secondary: #0ea5e9;
    --accent-glow: rgba(59, 130, 246, 0.2);
    
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --card-bg: #1e293b;
    --card-border: #334155;
    
    --terminal-bg: #020617;
    --terminal-header: #0f172a;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--accent-primary);
    color: white;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: var(--spacing-sm); }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--accent-secondary); }

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.small-text {
    font-size: 0.6em;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========================================
   Layout Components
   ======================================== */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-alt { background-color: var(--bg-secondary); }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-primary);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 0.5rem 0;
}

.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.logo:hover .logo-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover { background-color: var(--bg-accent); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: auto;
    width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active { 
    color: var(--text-primary);
    background-color: var(--bg-accent);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover { background-color: var(--bg-accent); }

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { max-width: 600px; }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-accent);
    color: var(--accent-primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.hero-title { margin-bottom: 1.5rem; }

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
    color: white;
}

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

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

/* Finance Card */
.finance-card {
    padding: 2rem;
    min-width: 320px;
    border-top: 4px solid var(--accent-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.metric-row {
    margin-bottom: 1.5rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.divider {
    height: 1px;
    background-color: var(--card-border);
    margin: 1.5rem 0;
}

.market-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.up-trend {
    color: #10b981; /* Finance Green */
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Strategy Card */
.strategy-card {
    padding: 2rem;
}

.strategy-header {
    margin-bottom: 2rem;
    text-align: center;
}

.strategy-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.strategy-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strategy-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-accent);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.strategy-info {
    flex: 1;
}

.strategy-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.value-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


.progress-bar {
    height: 6px;
    background-color: var(--bg-accent);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* ========================================
   About Section
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}



/* ========================================
   Skills Grid
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-icon {
    font-size: 1.75rem;
    color: var(--accent-primary);
}

.skill-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.skill-card ul {
    list-style: none;
    margin-top: auto;
}

.skill-card li {
    padding: 0.15rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   Projects/Experience Section
   ======================================== */
.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.project-icon { font-size: 1.25rem; }

.role-title {
    color: var(--accent-primary);
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    margin: auto 0 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.tag {
    background-color: var(--bg-accent);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ========================================
   Contact & Footer
   ======================================== */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.footer {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--card-border);
    text-align: center;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid { grid-template-columns: 1fr; }
    
    .skills-grid, .projects-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .skills-grid, .projects-list { grid-template-columns: 1fr; }
    
    /* .nav-links { display: none; } Removed as we now use hamburger everywhere */
}
