/* 
   Rohan Patel - Professional Portfolio CSS
   Premium Glassmorphism & Sleek Dual-Theme Styling
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Theme Variables & Root Setup --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Dark Mode Defaults (Primary Theme) - Google Gemini Mobile App OLED Colors */
    --bg-primary: #000000;
    --bg-secondary: #131314;
    --bg-card: rgba(30, 31, 32, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Neon Glow Accents */
    --accent-blue: #38bdf8;
    --accent-blue-rgb: 56, 189, 248;
    --accent-purple: #a78bfa;
    --accent-purple-rgb: 167, 139, 250;
    --accent-emerald: #34d399;
    --accent-emerald-rgb: 52, 211, 153;
    
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-blue: #0284c7;
    --accent-blue-rgb: 2, 132, 199;
    --accent-purple: #7c3aed;
    --accent-purple-rgb: 124, 58, 237;
    --accent-emerald: #059669;
    --accent-emerald-rgb: 5, 150, 105;
    
    --shadow-glow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.3s ease;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* --- Typography & Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Utility Layout Systems --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* --- Glassmorphic Background Blur Circles - Northern Lights Aurora Effect --- */
.bg-decor {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition);
}

.bg-decor-blue {
    background-color: var(--accent-blue);
    top: -10%;
    left: -10%;
    opacity: 0.15;
    animation: aurora-blue 25s ease-in-out infinite;
}

.bg-decor-purple {
    background-color: var(--accent-purple);
    bottom: -10%;
    right: -10%;
    opacity: 0.12;
    animation: aurora-purple 30s ease-in-out infinite;
}

.bg-decor-green {
    background-color: var(--accent-emerald);
    top: 30%;
    left: 30%;
    opacity: 0.10;
    animation: aurora-green 35s ease-in-out infinite;
}

/* Light theme overrides for Northern Lights to remain extremely subtle and elegant */
[data-theme="light"] .bg-decor-blue { opacity: 0.05; }
[data-theme="light"] .bg-decor-purple { opacity: 0.04; }
[data-theme="light"] .bg-decor-green { opacity: 0.04; }

/* Aurora fluid motion keyframes */
@keyframes aurora-blue {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15%, 10%) scale(1.2); }
    66% { transform: translate(-10%, 20%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes aurora-purple {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-15%, -15%) scale(0.85); }
    66% { transform: translate(10%, -25%) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes aurora-green {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20%, -10%) scale(1.1); }
    66% { transform: translate(-20%, 15%) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- Header & Navigation Bar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(var(--bg-primary), 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-weight: 400;
    color: var(--text-secondary);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

/* Mobile Menu Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
}
.burger-menu span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h4 {
    font-size: 1.25rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-container {
    height: 40px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-right: 3px solid var(--accent-blue);
    white-space: nowrap;
    overflow: hidden;
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: rgba(var(--accent-blue-rgb), 0.05);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-socials span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* Avatar Frame */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 15px 35px rgba(var(--accent-blue-rgb), 0.2);
    animation: morphing-avatar 12s ease-in-out infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    background-color: var(--bg-primary);
    border-radius: inherit;
    z-index: 1;
}

/* Custom visual avatar grid vector representation or placeholder image */
.avatar-visual {
    position: relative;
    z-index: 2;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: inherit;
    object-fit: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(185deg, var(--bg-secondary), var(--bg-primary));
}

.avatar-visual svg {
    width: 140px;
    height: 140px;
    fill: var(--accent-blue);
    filter: drop-shadow(0 0 10px rgba(var(--accent-blue-rgb), 0.5));
}

.avatar-tag {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: rgba(var(--bg-secondary), 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 3;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulsing-dot 1.5s infinite;
}

/* --- About & Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-details {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.personal-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 2.5rem;
}

.personal-info-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: right;
}

/* --- Interactive Skill Hub --- */
.skills-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.tab-btn.active {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.skills-content-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 3rem;
    min-height: 380px;
}

.skills-panel {
    display: none;
}

.skills-panel.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 4rem;
    animation: fade-in 0.5s ease-in-out;
}

.skill-item h4 {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.skill-item h4 span {
    color: var(--accent-blue);
}

.progress-bar-bg {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

[data-theme="light"] .progress-bar-bg {
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    height: 100%;
    width: 0; /* Dynamic loading in script */
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.skills-badge-list {
    grid-column: span 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.skill-badge {
    background: rgba(var(--accent-blue-rgb), 0.08);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.2);
    color: var(--accent-blue);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-badge:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --- Timeline Section --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Central glowing track */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-emerald) 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(var(--accent-blue-rgb), 0.3);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alternate alignment using flex utilities */
.timeline-item.left-item {
    justify-content: flex-start;
}

.timeline-item.right-item {
    justify-content: flex-end;
}

/* Central glowing icon nodes */
.timeline-icon {
    position: absolute;
    left: 50%;
    top: 15px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 3px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform: translateX(-50%);
    box-shadow: var(--shadow-glow);
    color: var(--accent-blue);
    transition: var(--transition);
}

.timeline-item.left-item .timeline-icon {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.timeline-item.right-item .timeline-icon {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.timeline-item:hover .timeline-icon {
    transform: translateX(-50%) scale(1.15);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 0 20px rgba(var(--accent-blue-rgb), 0.6);
}

/* Cards branch left and right */
.timeline-card {
    width: calc(50% - 40px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
}

/* Micro connector triangles */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 0;
    height: 0;
    border-style: solid;
    transition: var(--transition);
}

.timeline-item.left-item .timeline-card::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--border-color);
}

.timeline-item.right-item .timeline-card::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--border-color) transparent transparent;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

.timeline-item.left-item .timeline-card:hover {
    border-color: rgba(var(--accent-blue-rgb), 0.4);
}

.timeline-item.right-item .timeline-card:hover {
    border-color: rgba(var(--accent-purple-rgb), 0.4);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-role {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.timeline-company {
    font-size: 1.05rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-top: 0.25rem;
}

.timeline-date {
    background: rgba(var(--accent-blue-rgb), 0.1);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.2);
    color: var(--accent-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
}

.timeline-bullets.expanded {
    opacity: 1;
    margin-top: 1rem;
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

.timeline-bullets li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

.timeline-expander {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.btn-link {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.btn-link svg {
    transition: var(--transition);
}

.btn-link:hover svg {
    transform: translateX(3px);
}

/* --- Project Showcase Section --- */
.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-blue-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

.project-preview {
    height: 180px;
    background: linear-gradient(135deg, rgba(var(--accent-blue-rgb), 0.1) 0%, rgba(var(--accent-purple-rgb), 0.1) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.project-preview svg {
    width: 60px;
    height: 60px;
    color: var(--accent-blue);
    opacity: 0.7;
    transition: var(--transition);
}

.project-card:hover .project-preview svg {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(var(--bg-primary), 0.8);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

[data-theme="light"] .tech-tag {
    background-color: rgba(0,0,0,0.05);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.project-link-btn:hover {
    color: var(--accent-purple);
}

/* --- Education & Training Section --- */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-column h3, .cert-column h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-blue-rgb), 0.2);
    box-shadow: var(--shadow-glow);
}

.edu-card:last-child {
    margin-bottom: 0;
}

.edu-degree {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.edu-school {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.edu-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 1rem;
}

.edu-grade {
    color: var(--accent-emerald);
    font-weight: 700;
}

/* Certifications Panel & Search */
.cert-search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.cert-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.cert-search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.cert-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: rgba(var(--accent-blue-rgb), 0.2);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.cert-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cert-provider {
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-top: 0.2rem;
}

.cert-year {
    background: rgba(var(--accent-purple-rgb), 0.1);
    color: var(--accent-purple);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
    display: none;
}

/* --- Contact & Endorsements Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--accent-blue-rgb), 0.1);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.contact-method-details h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-method-details p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-method-details p a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.contact-method-details p a:hover {
    color: var(--accent-blue);
}

/* Endorsement reference cards inside contact card */
.reference-card-container {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.reference-card-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.reference-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

[data-theme="light"] .reference-card {
    background: rgba(0,0,0,0.02);
}

.reference-card:last-child {
    margin-bottom: 0;
}

.ref-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.ref-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ref-contact {
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-top: 0.25rem;
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input, .form-textarea {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

[data-theme="light"] .form-input, [data-theme="light"] .form-textarea {
    background: rgba(0,0,0,0.01);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
    background: rgba(255,255,255,0.04);
}

.form-textarea {
    height: 150px;
    resize: none;
}

.form-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}
.form-feedback.success {
    background-color: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--accent-emerald);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-nav-link:hover {
    color: var(--accent-blue);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Keyframes & Animations --- */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-blue); }
}

@keyframes morphing-avatar {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes pulsing-dot {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-subtitle-container {
        justify-content: center;
        display: flex;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-socials {
        justify-content: center;
    }
    .hero-image-container {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-details {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-panel.active {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .skills-badge-list {
        grid-column: span 1;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .edu-cert-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(var(--bg-primary), 0.95);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .burger-menu {
        display: flex;
    }
    
    /* Toggle active burger spans */
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .timeline-container::before {
        left: 20px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
        margin-bottom: 3rem;
    }
    
    .timeline-item.left-item,
    .timeline-item.right-item {
        justify-content: flex-start;
    }
    
    .timeline-icon {
        left: 0;
        transform: none;
    }
    
    .timeline-card {
        width: 100% !important;
    }
    
    .timeline-card::before {
        display: none !important;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    
    .skills-content-container {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-date {
        margin-top: 0.5rem;
    }
}

/* --- The Nordic Flywheel Effect Background --- */
.nordic-flywheel-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vw;
    max-width: 1200px;
    max-height: 1200px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.04;
    transition: var(--transition);
}

[data-theme="light"] .nordic-flywheel-container {
    opacity: 0.025;
}

.flywheel-spinning {
    width: 100%;
    height: 100%;
    animation: flywheel-rotate 180s linear infinite;
    transform-origin: center;
}

@keyframes flywheel-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
