/* ==========================================================================
   Shoeb Raju Tahsildar - Personal Portfolio Stylesheet
   Modern Glassmorphism & Electric Dark Theme Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Color Tokens & Themes
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors & Gradients */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --secondary: #06b6d4;
    --accent: #ec4899;
    --accent-purple: #8b5cf6;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.4));

    /* Dark Mode Defaults */
    --bg-body: #0b0f19;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-glass: rgba(15, 23, 42, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.3);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-light: #6b7280;

    /* Shadow Systems */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

    /* Fonts & Radii */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    /* Transition Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);
}

/* --------------------------------------------------------------------------
   2. Reset & Universal Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    position: relative;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Common */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-subtitle i {
    margin-right: 0.4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-line {
    width: 70px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

/* Background Glowing Orbs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #6366f1;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    top: 40%;
    right: -100px;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #ec4899;
    bottom: -50px;
    left: 20%;
}

/* --------------------------------------------------------------------------
   3. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: padding var(--transition-normal), background var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--secondary);
}

.logo-text {
    color: var(--text-main);
}

.logo-highlight {
    color: var(--primary);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.sun-icon { display: none; color: #f59e0b; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Mobile Hamburger */
.hamburger {
    display: none;
    background: transparent;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 9rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.typing-wrapper {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
}

.typed-text {
    color: var(--secondary);
    font-family: var(--font-heading);
}

.typing-cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    max-width: 620px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.chip {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chip i {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Quick Contact Chips */
.quick-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.quick-contact-item {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.4rem 0.3rem 0.9rem;
    font-size: 0.85rem;
    transition: border-color var(--transition-fast);
}

.quick-contact-item:hover {
    border-color: var(--primary);
}

.contact-link-pill {
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.contact-link-pill:hover {
    color: var(--primary);
}

.copy-btn {
    background: transparent;
    color: var(--text-muted);
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    margin-left: 0.3rem;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.copy-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Hero Image Container - Perfect Circular Form Factor */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    z-index: 2;
}

.glow-ring {
    position: absolute;
    inset: -8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.8;
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.6; filter: blur(12px); transform: scale(0.98); }
    100% { opacity: 0.95; filter: blur(20px); transform: scale(1.02); }
}

.profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 4px solid var(--bg-body);
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.image-frame:hover .profile-img {
    transform: scale(1.03);
}

/* Floating Tech Badges */
.float-badge {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite alternate;
}

.float-badge i {
    font-size: 1.5rem;
}

.badge-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.badge-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.badge-1 {
    top: 20px;
    left: -40px;
    animation-delay: 0s;
}
.badge-1 i { color: #61dafb; }

.badge-2 {
    bottom: 50px;
    right: -30px;
    animation-delay: 1.5s;
}
.badge-2 i { color: #f59e0b; }

.badge-3 {
    bottom: -20px;
    left: 20px;
    animation-delay: 3s;
}
.badge-3 i { color: #10b981; }

.react-spin {
    animation: spin 10s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   6. About Me & Stats Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.main-about-card {
    padding: 2.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.highlight-item i {
    color: #10b981;
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

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

/* --------------------------------------------------------------------------
   7. Education Timeline
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 2.5rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 2.5rem;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    z-index: 5;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-item.left .timeline-dot {
    right: -21px;
}

.timeline-item.right .timeline-dot {
    left: -21px;
}

.timeline-content {
    padding: 1.8rem;
}

.timeline-date-badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 0.8rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-institution {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

.score-highlight {
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Skills Grid & Filter Tabs
   -------------------------------------------------------------------------- */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.skill-card.hide {
    display: none;
}

.skill-icon {
    font-size: 2.2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.skill-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.skill-category {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* --------------------------------------------------------------------------
   9. Projects Section
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-banner {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-banner-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.85));
    z-index: 2;
}

/* CV Viewer Modal Styles */
.cv-viewer-container {
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cv-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cv-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.cv-header p {
    color: var(--secondary);
    font-weight: 600;
}

.cv-section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary);
    margin: 1.2rem 0 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.project-banner-icon {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.25);
    z-index: 2;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-banner-icon {
    transform: scale(1.15) rotate(-5deg);
}

.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    z-index: 3;
}

.project-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.project-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.project-bullets {
    margin-bottom: 1.5rem;
}

.project-bullets li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.project-bullets li i {
    color: var(--primary);
    margin-top: 4px;
}

.project-actions {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   10. Strengths & Languages Section
   -------------------------------------------------------------------------- */
.strengths-languages-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.sub-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sub-heading i {
    color: var(--primary);
}

.strengths-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.strength-card {
    padding: 1.4rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.strength-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.strength-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.strength-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Languages */
.languages-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.language-card {
    padding: 1.2rem 1.5rem;
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.lang-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.lang-level {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.badge-prof { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.badge-conv { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.badge-native { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.progress-bar-bg {
    height: 8px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.mca-box {
    padding: 1.8rem;
    margin-top: 0.5rem;
    position: relative;
    border-left: 4px solid var(--primary);
}

.mca-box-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.mca-box-text {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.mca-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   11. Contact Section & Form
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-lead-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.contact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-card {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

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

.contact-detail {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contact-label {
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.link-accent:hover {
    color: var(--primary);
}

.copy-btn-large {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.copy-btn-large:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.external-link-btn {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.5rem;
}

.external-link-btn:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-col {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.input-icon-wrapper input {
    padding-left: 2.8rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
    resize: vertical;
}

/* --------------------------------------------------------------------------
   12. Footer & Back to Top
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* --------------------------------------------------------------------------
   13. Toast Notifications System
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-glow);
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toast-in 0.3s ease-out forwards;
}

.toast i {
    color: #10b981;
    font-size: 1.1rem;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   14. Modal Dialog Overlay
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.modal-header-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.2rem 0 0.6rem 0;
    color: var(--primary);
}

.modal-list {
    margin-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.modal-list li {
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   15. Media Queries / Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .typing-wrapper {
        justify-content: center;
    }

    .hero-chips, .hero-cta, .quick-contacts {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .about-grid, .strengths-languages-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px !important;
        padding-right: 0 !important;
    }

    .timeline-item.left, .timeline-item.right {
        left: 0;
    }

    .timeline-dot {
        left: 9px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.6rem;
    }

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-surface);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .image-frame {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.1rem;
    }
    
    .typing-wrapper {
        font-size: 1.1rem;
    }

    .badge-1, .badge-2, .badge-3 {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   16. Project Title Overlay on Banner Images
   -------------------------------------------------------------------------- */
.project-title-overlay {
    position: absolute;
    bottom: 14px;
    left: 16px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    z-index: 4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    letter-spacing: -0.3px;
}

.project-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* --------------------------------------------------------------------------
   17. CV Viewer Modal Full Styles
   -------------------------------------------------------------------------- */
.cv-viewer-inner {
    font-size: 0.93rem;
}

.cv-header {
    text-align: center;
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
    border-bottom: 2px solid var(--primary-light);
}

.cv-header h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.cv-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cv-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-section {
    margin-bottom: 1.5rem;
}

.cv-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.7rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cv-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
}

.cv-edu-item {
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--border-color);
}

.cv-edu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cv-edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.cv-edu-header strong {
    color: var(--text-main);
    font-size: 0.93rem;
}

.cv-year {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
}

.cv-year-tech {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.cv-edu-detail {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cv-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-skill-chip {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99,102,241,0.2);
}

.cv-list {
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cv-list li::marker {
    color: var(--primary);
}

.cv-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.cv-contact-row span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.cv-contact-row i {
    color: var(--primary);
    width: 16px;
}

.cv-contact-row a {
    color: var(--secondary);
    font-weight: 500;
}

.cv-contact-row a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* LinkedIn card in contact section */
.contact-card .fa-linkedin-in {
    background: linear-gradient(135deg, #0a66c2, #0077b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 600px) {
    .cv-two-col,
    .cv-contact-row {
        grid-template-columns: 1fr;
    }
}
