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

/* Light Theme (Default) - Soft & Comfortable */
:root {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a855f7;
    --secondary-color: #6b7280;
    --accent-color: #a855f7;
    
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    
    --bg-primary: #f5f6fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eaef;
    
    --border-color: #d1d5db;
    --border-hover: #9ca3af;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 8px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 16px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 32px -5px rgba(0, 0, 0, 0.1);
    
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
}

/* Dark Theme */
:root[data-theme="dark"] {
    --primary-color: #a855f7;
    --primary-dark: #9333ea;
    --primary-light: #c084fc;
    --secondary-color: #94a3b8;
    --accent-color: #c084fc;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    --border-color: #334155;
    --border-hover: #475569;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --navbar-bg-scrolled: rgba(15, 23, 42, 0.98);
}

html {
    background-color: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Ensure all sections are above the canvas background */
section, footer {
    position: relative;
    z-index: 10;
}

/* Ensure section content is properly stacked */
.skills, .projects, .experience, .xp-section, .certifications, .contact, .about {
    position: relative;
    z-index: 10;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(12, 14, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    z-index: 100;
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(238, 240, 245, 0.92);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.navbar.scrolled {
    background: rgba(12, 14, 20, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(238, 240, 245, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    margin-right: 18px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-initials {
    width: 36px;
    height: 36px;
    display: block;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-logo a:hover .logo-initials {
    opacity: 1;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.5rem 0.625rem;
    opacity: 0.8;
}

.nav-link .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.nav-link .nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.nav-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.625rem;
    right: 0.625rem;
    width: auto;
    height: 2px;
    background: var(--primary-color);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.nav-link:hover::after {
    opacity: 1;
}

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

[data-theme="light"] .language-toggle {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.lang-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.lang-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.lang-option:focus:not(:focus-visible) {
    outline: none;
}

.lang-option[aria-checked="true"] {
    background: rgba(139, 92, 246, 0.9);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .lang-option[aria-checked="true"] {
    background: rgba(139, 92, 246, 0.95);
}

@media (prefers-reduced-motion: no-preference) {
    .lang-option:hover {
        transform: scale(1.03);
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lang-option:hover {
        box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
    }
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    pointer-events: none;
    display: block;
    overflow: hidden;
    shape-rendering: geometricPrecision;
}

.lang-option[aria-checked="true"] .flag-icon {
    filter: brightness(1.05);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger:hover span {
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: visible;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.hero-left {
    animation: fadeInUp 0.8s ease;
}

.hero-right {
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Home page skill cards only */
.hero-skills .skill-card {
    background: var(--bg-secondary);
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    cursor: default;
}

.hero-skills .skill-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.hero-skills .skill-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-skills .skill-name {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

.hero-tagline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.hero-tagline p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Hero Right Column - About Me */
.hero-right {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 2.5rem;
}

[data-theme="dark"] .hero-right {
    background: rgba(255, 255, 255, 0.05);
}

.hero-right .about-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.hero-right .about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.hero-right .about-text {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    white-space: pre-line;
}

.hero-right .about-text:last-child {
    margin-bottom: 0;
}

/* Hero CTA */
.hero-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.btn-cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

.btn-cta:hover::after {
    transform: translateX(5px);
}

.btn-secondary-cta {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary-cta:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary-cta::after {
    content: '';
}

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

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

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

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Skills Section */
.skills {
    /* Background removed to show canvas */
    padding: 80px 0;
}

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

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 6 columns for proper centering of bottom row */
@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* Top row: each card spans 2 columns */
    .skills-grid .skill-card:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .skills-grid .skill-card:nth-child(2) {
        grid-column: 3 / 5;
    }
    
    .skills-grid .skill-card:nth-child(3) {
        grid-column: 5 / 7;
    }
    
    /* Bottom row: centered with 2 columns each, offset by 1 column */
    .skills-grid .skill-card:nth-child(4) {
        grid-column: 2 / 4;
    }
    
    .skills-grid .skill-card:nth-child(5) {
        grid-column: 4 / 6;
    }
}

/* Skills page cards - glassmorphism style matching rest of portfolio */
.skills-grid .skill-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease,
                transform 0.3s ease;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
}

/* Light theme adjustments */
:root[data-theme="light"] .skills-grid .skill-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.skills-grid .skill-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Glare effect */
.skills-grid .skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(168, 85, 247, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Grain texture */
.skills-grid .skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Card content needs higher z-index */
.skills-grid .skill-card > * {
    position: relative;
    z-index: 2;
}

/* Hover states */
@media (hover: hover) and (pointer: fine) {
    .skills-grid .skill-card:hover::before {
        opacity: 1;
    }

    .skills-grid .skill-card:hover {
        transform: translateY(-6px);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.3);
    }

    :root[data-theme="light"] .skills-grid .skill-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 0 0 1px rgba(168, 85, 247, 0.3);
        border-color: rgba(168, 85, 247, 0.4);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .skills-grid .skill-card {
        transform: none !important;
    }
    
    .skills-grid .skill-card::before {
        display: none;
    }
}

/* Touch devices */
@media (hover: none) or (pointer: coarse) {
    .skills-grid .skill-card {
        transition: box-shadow 0.3s ease;
    }
    
    .skills-grid .skill-card::before {
        display: none;
    }
}

/* Skill card header: icon and title on same line */
.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.skills-grid .skill-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.25rem;
}

.skills-grid .skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.skill-subtitle {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin: -0.75rem 0 1rem 0;
    padding-left: 0;
}

.skill-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================
   PROJECTS PAGE STYLES
   ========================================== */

/* Search Bar */
.projects-search-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0 2rem;
}

.projects-search-container {
    position: relative;
    width: 100%;
    max-width: 720px;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2; /* ensure icon sits above input background blur */
    filter: none; /* keep crisp in all themes */
}

.projects-search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

[data-theme="light"] .projects-search-input {
    background: rgba(255, 255, 255, 0.7);
}

.projects-search-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.projects-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
}

/* Filter Chips Section */
.projects-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 1200px;
}

.filter-chip {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.filter-chip:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Language-specific chip labels */
.chip-label-fr,
.chip-label-en {
    display: inline;
}

.filter-reset-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
    opacity: 0.7;
}

.filter-reset-btn:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Projects Grid - Responsive 3/2/1 columns */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 2 columns for tablets */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: keep 2 columns (wider cards) */
@media (min-width: 1280px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Project Card - Glassmorphism Style */
.project-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease,
                transform 0.3s ease;
    overflow: hidden;
    perspective: 1000px;
}

[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Glare effect */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(168, 85, 247, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Grain texture */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Card content needs higher z-index */
.project-card > * {
    position: relative;
    z-index: 2;
}

/* Hover states */
@media (hover: hover) and (pointer: fine) {
    .project-card:hover::before {
        opacity: 1;
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.3);
    }

    [data-theme="light"] .project-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 0 0 1px rgba(168, 85, 247, 0.3);
        border-color: rgba(168, 85, 247, 0.4);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .project-card {
        transform: none !important;
    }
    
    .project-card::before {
        display: none;
    }
}

/* Touch devices */
@media (hover: none) or (pointer: coarse) {
    .project-card {
        transition: box-shadow 0.3s ease;
    }
    
    .project-card::before {
        display: none;
    }
}

/* Project Status Badge */
.project-status {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.project-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-status.in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Project Content */
.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-right: 6rem; /* Space for status badge */
}

.project-client {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
}

/* Project Meta (Year & Duration) */
.project-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta i {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Project Button */
.project-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Empty State */
.projects-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-tertiary);
}

.projects-empty p {
    font-size: 1.1rem;
    margin: 0;
}

/* Projects Footer */
.projects-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .projects-search-wrapper {
        margin: 1.5rem 0;
    }
    
    .projects-search-input {
        font-size: 0.95rem;
        padding: 0.875rem 3rem 0.875rem 3rem;
    }
    
    .filter-chips {
        gap: 0.5rem;
    }
    
    .filter-chip {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .projects-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr !important;
    }
    
    .project-card {
        backdrop-filter: blur(12px) saturate(160%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
    }
    
    .project-content {
        padding: 1.75rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
    }
    
    .project-card::after {
        opacity: 0.3;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .projects-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .projects-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Contact Section */
.contact {
    /* Background removed to show canvas */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.contact-details h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-cta {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.contact-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

/* Footer */
/* Footer Styles - Modern Glassmorphism */
.footer {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding: 0.9rem 0 0.6rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

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

/* Left side - Copyright & Legal */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.75;
    line-height: 1.4;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.footer-legal a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-legal .separator {
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* Right side - Availability & Icons */
.footer-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-availability {
    color: #c7b6ff;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

[data-theme="light"] .footer-availability {
    color: #7c3aed;
}

/* Contact icons */
.footer-social {
    display: flex;
    gap: 1.125rem;
    align-items: center;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    opacity: 0.75;
}

.social-link:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

/* CV Page Styles */
.cv-section {
    padding: 100px 0 60px;
    min-height: 100vh;
}

.cv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* CV Sidebar */
.cv-sidebar {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cv-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: var(--text-tertiary);
    border: 3px solid var(--border-color);
}

.cv-contact h3,
.cv-info-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cv-contact {
    margin-bottom: 2rem;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    word-break: break-all;
}

.cv-contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

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

.cv-info-block {
    margin-bottom: 2rem;
}

.cv-info-block p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.cv-list {
    list-style: none;
    padding: 0;
}

.cv-list li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.cv-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CV Main Content */
.cv-main {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cv-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.cv-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cv-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cv-summary {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.cv-section-main {
    margin-bottom: 3rem;
}

.cv-section-main:last-child {
    margin-bottom: 0;
}

.cv-section-main > h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* CV Timeline */
.cv-timeline {
    position: relative;
}

.cv-timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.cv-timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-top: 0.25rem;
}

.cv-timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cv-timeline-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.cv-timeline-list {
    list-style: none;
    padding: 0;
}

.cv-timeline-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.cv-timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* CV Certifications */
.cv-certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cv-cert-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cv-cert-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cv-cert-item p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* CV Skills Grid */
.cv-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cv-skill-category {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cv-skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.cv-skill-category p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Print Styles */
@media print {
    @page {
        margin: 1cm;
    }

    body {
        background: white;
        color: #000;
    }

    .navbar,
    .footer,
    .theme-toggle,
    .language-toggle {
        display: none !important;
    }

    .cv-section {
        padding: 0;
    }

    .cv-container {
        display: block;
    }

    .cv-sidebar {
        position: static;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    .cv-main {
        background: white;
        border: none;
        padding: 0;
    }

    .cv-section-main {
        page-break-inside: avoid;
    }

    * {
        background: white !important;
        color: #000 !important;
        border-color: #ddd !important;
    }

    .cv-header h1,
    .cv-header h2,
    .cv-section-main > h3,
    .cv-timeline-date,
    .cv-contact h3,
    .cv-info-block h3 {
        color: #6b21a8 !important;
    }

    a {
        text-decoration: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.highlight-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.about-cta {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    text-align: center;
}

.about-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   EXPERIENCE SECTION - VERTICAL TIMELINE
   ============================================ */

.xp-section {
    padding: 80px 0;
    position: relative;
}

.xp-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Vertical timeline container */
.xp-timeline-vertical {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 60px;
}

/* Timeline vertical line */
.xp-timeline-vertical::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        var(--primary-color) 0%, 
        rgba(168, 85, 247, 0.5) 50%, 
        rgba(168, 85, 247, 0.2) 100%
    );
}

/* Timeline item */
.xp-timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Timeline dot */
.xp-timeline-dot {
    position: absolute;
    left: -54px;
    top: 12px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
}

.xp-timeline-dot--current {
    width: 16px;
    height: 16px;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* Timeline item with perspective for 3D tilt */
.xp-timeline-item {
    position: relative;
    margin-bottom: 40px;
    perspective: 1000px;
}

/* Experience card with glassmorphism */
.xp-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    overflow: hidden;
}

/* Light theme adjustments */
:root[data-theme="light"] .xp-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Glare effect layer */
.xp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(168, 85, 247, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Grain texture overlay */
.xp-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Card content needs higher z-index */
.xp-card > * {
    position: relative;
    z-index: 2;
}

/* Hover state - only for pointer:fine devices */
@media (hover: hover) and (pointer: fine) {
    .xp-card:hover::before {
        opacity: 1;
    }

    .xp-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.3);
    }

    :root[data-theme="light"] .xp-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 0 0 1px rgba(168, 85, 247, 0.3);
        border-color: rgba(168, 85, 247, 0.4);
    }
}

/* Reduced motion - disable transforms */
@media (prefers-reduced-motion: reduce) {
    .xp-card {
        transform: none !important;
    }
    
    .xp-card::before {
        display: none;
    }
}

/* Touch devices - simpler hover */
@media (hover: none) or (pointer: coarse) {
    .xp-card {
        transition: box-shadow 0.3s ease;
    }
    
    .xp-card::before {
        display: none;
    }
}

/* Company row */
.xp-card-company-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.xp-card-company-row i {
    color: var(--primary-color);
    font-size: 1rem;
}

.xp-card-company {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

.xp-badge-current {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Role title */
.xp-card-role {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

/* Meta info */
.xp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.xp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.xp-meta-item i {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Section title */
.xp-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 10px 0;
}

/* Bullets list */
.xp-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.xp-bullets-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.xp-bullets-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Tech chips */
.xp-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.xp-tech-chip {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.xp-tech-chip:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .xp-timeline-vertical {
        padding-left: 40px;
    }
    
    .xp-timeline-vertical::before {
        left: 5px;
    }
    
    .xp-timeline-dot {
        left: -36px;
        width: 12px;
        height: 12px;
    }
    
    .xp-timeline-dot--current {
        width: 14px;
        height: 14px;
    }
    
    .xp-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    /* Slightly reduce blur on mobile for better performance */
    .xp-card {
        backdrop-filter: blur(12px) saturate(160%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
    }
    
    .xp-card-company-row {
        flex-wrap: wrap;
    }
    
    .xp-badge-current {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .xp-card-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Very small screens - further optimize */
@media (max-width: 480px) {
    .xp-card {
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
    }
    
    .xp-card::after {
        opacity: 0.3; /* Reduce grain on small screens */
    }
}

/* ============================================
   DIPLOMAS SECTION - GLASSMORPHISM CARDS
   ============================================ */

.diplomas-section {
    padding: 0 0 40px 0;
    position: relative;
}

.diplomas-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Diplomas grid - 2 columns on desktop */
.diplomas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .diplomas-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
    }
}

/* Diploma card with same glassmorphism as experience cards */
.diploma-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    overflow: hidden;
    perspective: 1000px;
}

/* Light theme adjustments */
:root[data-theme="light"] .diploma-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Glare effect for diploma cards */
.diploma-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(168, 85, 247, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Grain texture */
.diploma-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Card content needs higher z-index */
.diploma-card > * {
    position: relative;
    z-index: 2;
}

/* Hover state */
@media (hover: hover) and (pointer: fine) {
    .diploma-card:hover::before {
        opacity: 1;
    }

    .diploma-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.3);
    }

    :root[data-theme="light"] .diploma-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 0 0 1px rgba(168, 85, 247, 0.3);
        border-color: rgba(168, 85, 247, 0.4);
    }
}

/* School name */
.diploma-school {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    font-weight: 600;
    opacity: 0.85;
}

/* Degree title */
.diploma-degree {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.5;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subline (option/specialization) - smaller text under degree title */
.diploma-subline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.5;
    opacity: 0.9;
}

/* Period */
.diploma-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    padding: 4px 0;
}

.diploma-period::before {
    content: '📅';
    font-size: 1rem;
    opacity: 0.8;
}

/* Badge (honors) - with proper spacing from period, on separate line */
.diploma-badge {
    display: block;
    width: fit-content;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(192, 132, 252, 0.08) 100%);
    color: var(--primary-color);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
    transition: all 0.3s ease;
}

.diploma-badge::before {
    content: '🏆 ';
    font-size: 1rem;
}

.diploma-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

/* Certification active badge (green) */
.cert-badge {
    display: block;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cert-badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.cert-badge-active::before {
    content: '✓ ';
    font-size: 0.8rem;
    font-weight: bold;
}

.cert-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Certification pending/planned/option badge (orange) */
.cert-badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Key topics section */
.diploma-topics {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
}

.diploma-topics-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.diploma-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.diploma-topics-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.diploma-topics-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Floating "View Diplomas" button */
.floating-diplomas-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(20px);
}

.floating-diplomas-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-diplomas-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5);
}

.floating-diplomas-btn svg {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Reduced motion - disable transforms */
@media (prefers-reduced-motion: reduce) {
    .diploma-card {
        transform: none !important;
    }
    
    .diploma-card::before {
        display: none;
    }
    
    .floating-diplomas-btn svg {
        animation: none;
    }
}

/* Touch devices */
@media (hover: none) or (pointer: coarse) {
    .diploma-card {
        transition: box-shadow 0.3s ease;
    }
    
    .diploma-card::before {
        display: none;
    }
}

/* Mobile responsive */
@media (max-width: 1023px) {
    .diplomas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .diplomas-section {
        padding: 60px 0;
    }
    
    .diploma-card {
        padding: 24px;
        backdrop-filter: blur(12px) saturate(160%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
    }
    
    .floating-diplomas-btn {
        bottom: 80px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .floating-diplomas-btn span {
        display: none;
    }
    
    .floating-diplomas-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .diploma-card {
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
    }
    
    .diploma-card::after {
        opacity: 0.3;
    }
}

/* Old Education Section - kept for backwards compatibility but hidden */
.education {
    display: none;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.education-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.education-subjects {
    list-style: none;
}

.education-subjects li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.education-subjects li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Certifications Section */
.certifications {
    padding: 80px 0;
    /* Background removed to show canvas */
}

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto 3rem auto;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.certification-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    overflow: hidden;
    perspective: 1000px;
}

/* Light theme adjustments for certification cards */
:root[data-theme="light"] .certification-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Glare effect for certification cards */
.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(168, 85, 247, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Grain texture for certification cards */
.certification-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Certification card content needs higher z-index */
.certification-card > * {
    position: relative;
    z-index: 2;
}

/* Hover states for certification cards */
@media (hover: hover) and (pointer: fine) {
    .certification-card:hover::before {
        opacity: 1;
    }

    .certification-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.3);
    }

    :root[data-theme="light"] .certification-card:hover {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 0 0 1px rgba(168, 85, 247, 0.3);
        border-color: rgba(168, 85, 247, 0.4);
    }
}

/* Reduced motion - disable transforms for certification cards */
@media (prefers-reduced-motion: reduce) {
    .certification-card {
        transform: none !important;
    }
    
    .certification-card::before {
        display: none;
    }
}

/* Touch devices - simpler hover for certification cards */
@media (hover: none) or (pointer: coarse) {
    .certification-card {
        transition: box-shadow 0.3s ease;
    }
    
    .certification-card::before {
        display: none;
    }
}

/* Mobile responsive for certification cards */
@media (max-width: 768px) {
    .certification-card {
        padding: 24px;
        backdrop-filter: blur(12px) saturate(160%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
    }
}

@media (max-width: 480px) {
    .certification-card {
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
    }
    
    .certification-card::after {
        opacity: 0.3;
    }
}

/* Contact Form */
.contact-form-section {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--primary-color);
    opacity: 1;
}

.nav-link.active::after {
    opacity: 1;
}

/* Mobile Menu */
.nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-medium);
}

.nav-menu.active .nav-link {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.nav-menu.active .nav-link:last-child {
    border-bottom: none;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
/* Tablet: 2 columns × 3 rows */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-skills {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet/Medium screens - trigger mobile nav earlier for FR labels */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Mobile: 1 column × 6 rows */
@media (max-width: 768px) {
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-skills {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-right {
        padding: 1.75rem;
    }
    
    .hero-right .about-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-right .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-right .about-text {
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
    
    .btn-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .hero-tagline {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    /* Footer responsive */
    .footer {
        padding: 1rem 0 0.75rem;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-bottom {
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-availability {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Experience section mobile - handled in main experience styles */
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-actions,
    .cta-actions {
        flex-direction: column;
    }
    
    /* CV responsive */
    .cv-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cv-sidebar {
        position: static;
    }
    
    .cv-main {
        padding: 2rem;
    }
    
    .cv-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cv-header h1 {
        font-size: 2rem;
    }
    
    .cv-skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 24px;
    align-items: start;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Info Card & Form Card */
.contact-info-card,
.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-form-card {
    background: rgba(255, 255, 255, 0.7);
}

.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Contact Info List */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

[data-theme="light"] .contact-info-icon {
    background: rgba(139, 92, 246, 0.08);
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-info-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-info-content span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Social Section within Info Card */
.contact-social-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.contact-social-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link-btn i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Contact Form Card */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.btn-submit {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Form Message */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Centered Map Section */
.contact-map {
    margin-top: 24px;
    padding: 16px 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

[data-theme="light"] .contact-map {
    background: rgba(255, 255, 255, 0.7);
}

.contact-map h3 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.9;
}

.map-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .map-embed iframe {
        height: 220px;
    }
}
