/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #edf2f7;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --card-bg-secondary: #f9fafb;
    --accent-color: #3b82f6;
    --accent-color-dark: #2563eb;
    --text-on-accent: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --border: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --card-bg: #2d3748;
    --card-bg-secondary: #4a5568;
    --accent-color: #60a5fa;
    --accent-color-dark: #93c5fd;
    --text-on-accent: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* View Counter */
.view-counter {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    z-index: 1000;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.view-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow);
}

.view-counter i {
    color: var(--accent);
    font-size: 1rem;
}

.view-count {
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.view-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Hide view counter on mobile */
@media (max-width: 768px) {
    .view-counter {
        display: none;
    }
}

/* Cursor for interactive elements */
a,
button,
.filter-btn,
.cta-button,
.project-card,
.toggle-btn,
.theme-btn,
.hamburger-menu,
input[type="submit"],
input[type="button"],
[role="button"],
.nav-links a,
.skill-category,
.timeline-item,
select,
.social-links a {
    cursor: pointer;
}

[data-theme="dark"] a,
[data-theme="dark"] button,
[data-theme="dark"] .filter-btn,
[data-theme="dark"] .cta-button,
[data-theme="dark"] .project-card,
[data-theme="dark"] .toggle-btn,
[data-theme="dark"] .theme-btn,
[data-theme="dark"] .hamburger-menu,
[data-theme="dark"] input[type="submit"],
[data-theme="dark"] input[type="button"],
[data-theme="dark"] [role="button"],
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] select,
[data-theme="dark"] .social-links a {
    cursor: url('../curseur/Ice link.cur'), pointer !important;
}

/* Navigation - Floating Pill Style */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-pill {
    background: rgba(45, 55, 72, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-pill:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.25);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-item i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.nav-item:hover i {
    transform: scale(1.1);
}

[data-theme="dark"] .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .nav-item.active {
    background: rgba(96, 165, 250, 0.15);
}

/* Contact Nav Item - Accent Style */
.nav-contact {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff !important;
    border-radius: 20px;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.nav-contact i,
.nav-contact span {
    color: #ffffff !important;
}

.nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .nav-contact {
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .nav-contact:hover {
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

/* Theme Toggle Button */
.theme-toggle {
    padding: 0.6rem 0.8rem;
}

.theme-toggle i {
    font-size: 1.1rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Nav Divider */
.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 0.25rem;
}

/* Language Toggle */
.lang-toggle {
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-toggle .lang-text {
    font-weight: 600;
}

/* Responsive Navigation */
@media (max-width: 600px) {
    .floating-nav {
        top: 15px;
    }

    .nav-pill {
        gap: 0.15rem;
        padding: 0.4rem 0.5rem;
    }

    .nav-item {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .nav-item span:not(.lang-text) {
        display: none;
    }

    .nav-item i {
        font-size: 1.1rem;
    }

    .nav-divider {
        height: 16px;
    }
}

@media (max-width: 380px) {
    .nav-pill {
        gap: 0.1rem;
        padding: 0.35rem 0.4rem;
    }

    .nav-item {
        padding: 0.45rem 0.6rem;
    }
}

/* Legacy nav classes - keeping for compatibility */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
}

.nav-logo {
    display: none;
}

.nav-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    margin-right: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-container {
    position: relative;
    cursor: pointer;
    background: var(--bg-secondary);
    border-radius: 20px;
    height: 32px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

/* Language Toggle */
.toggle-container:first-child {
    width: 90px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.toggle-container:first-child * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.toggle-btn {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    width: 42px;
    height: 26px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.toggle-btn.active {
    color: white;
}

.toggle-container:first-child .toggle-slider {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 42px;
    height: 26px;
    background: var(--accent);
    border-radius: 17px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: translateX(0);
}

.toggle-btn:last-child.active~.toggle-slider {
    transform: translateX(42px);
}

.toggle-container:first-child[data-lang="fr"] .toggle-slider {
    transform: translateX(42px);
}

/* Theme Toggle */
.toggle-container:last-child {
    width: 84px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 3px;
}

.toggle-container:last-child * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.theme-btn {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    width: 42px;
    height: 26px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
    pointer-events: none;
}

.theme-btn .icon {
    font-size: 16px;
    display: inline-block;
    line-height: 1;
}

.theme-btn.active {
    color: white;
}

.toggle-container:last-child .toggle-slider {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 39px;
    height: 26px;
    background: var(--accent);
    border-radius: 17px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: translateX(0);
}

.toggle-container:last-child[data-theme="dark"] .toggle-slider {
    transform: translateX(39px);
}

/* Hover Effects */
.toggle-btn:hover:not(.active) {
    color: var(--accent);
}

.toggle-label:hover .toggle-slider {
    box-shadow: 0 0 8px var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .toggle-group {
        gap: 8px;
    }

    .toggle-container {
        height: 28px;
    }

    .toggle-container:first-child {
        width: 80px;
    }

    /* Language toggle adjustments */
    .toggle-btn {
        width: 37px;
        height: 22px;
        font-size: 0.85rem;
    }

    .toggle-container:first-child .toggle-slider {
        width: 37px;
        height: 22px;
    }

    .toggle-container:first-child[data-lang="fr"] .toggle-slider {
        transform: translateX(37px);
    }

    /* Theme toggle adjustments */
    .toggle-container:last-child {
        width: 74px;
    }

    .theme-btn {
        width: 37px;
        height: 22px;
    }

    .toggle-container:last-child .toggle-slider {
        width: 34px;
        height: 22px;
    }

    .toggle-container:last-child[data-theme="dark"] .toggle-slider {
        transform: translateX(34px);
    }

    .theme-btn .icon {
        font-size: 14px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(0, 0, 0, 0.2)), url('../images/bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animated-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -200px;
    background: linear-gradient(135deg, var(--accent), transparent);
    animation-delay: 0s;
}

.shape2 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -200px;
    background: linear-gradient(225deg, var(--accent), transparent);
    animation-delay: -7s;
}

.shape3 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: 20%;
    background: linear-gradient(45deg, var(--accent), transparent);
    animation-delay: -14s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-greeting {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #fff;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.4s forwards;
    font-family: 'JetBrains Mono', monospace;
}

.hero-title .highlight {
    color: var(--accent);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-subtitle .typed-text {
    display: inline-block;
    white-space: nowrap;
}

.hero-subtitle .typed-cursor {
    color: var(--accent);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.8s forwards;
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: slideUp 0.8s ease-out 1s forwards;
}

.cta-button {
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.cta-button.primary {
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -10px) rotate(5deg);
    }

    50% {
        transform: translate(-5px, 15px) rotate(-3deg);
    }

    75% {
        transform: translate(-10px, -5px) rotate(2deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 7rem 2rem 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.hidden {
    display: none;
}

/* About Section */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.about-content:hover {
    box-shadow: 0 12px 40px var(--shadow);
    transform: translateY(-2px);
}

/* About Left - contains image and mini info */
.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.about-image-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.about-image-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image-container:hover::before {
    opacity: 1;
}

.about-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px var(--shadow);
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Mini Info Items under photo */
.about-info-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.info-mini-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.info-mini-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.info-mini-item i {
    color: var(--accent);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.info-mini-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .info-mini-item {
    background: rgba(255, 255, 255, 0.03);
}

.about-text {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* About Blocks */
.about-block {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.about-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.about-block-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.about-block-title i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.about-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

[data-theme="dark"] .about-block {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .about-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.about-heading {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
}

.about-description {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-align: justify;
}

/* Media queries for About section */
@media (min-width: 768px) {
    .about-container {
        padding: 2rem;
    }

    .about-content {
        grid-template-columns: 320px 1fr;
        gap: 3rem;
        padding: 2rem;
    }

    .about-left {
        max-width: 320px;
    }

    .about-text {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 1rem;
    }

    .about-content {
        padding: 1rem;
    }

    .about-image-container {
        max-width: 250px;
    }

    .about-heading {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        margin-bottom: 1rem;
    }

    .about-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-block {
        padding: 1rem 1.25rem;
    }

    .about-block-title {
        font-size: 1rem;
    }

    .about-block p {
        font-size: 0.9rem;
    }

    .about-text {
        gap: 1rem;
    }
}

/* Info Cards */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px var(--shadow);
    border-color: var(--accent);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Resume Section */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-description {
    color: var(--text-secondary);
}

.download-cv {
    display: block;
    margin: 2rem auto;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    max-width: 200px;
}

.download-cv:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Work Section */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow);
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center;
    border: 1px solid var(--border);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px var(--shadow);
    border-color: var(--accent);
}

.project-card:active {
    transform: translateY(-8px) scale(1.01);
}

.project-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--card-bg));
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-date-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.project-card:hover .project-date-badge {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-content {
    padding: 2rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-link-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    /* Red gradient */
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
    position: relative;
}

.project-link-badge::before {
    content: "🔗";
    margin-right: 6px;
}

.project-link-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.project-card:hover .project-content {
    transform: translateY(-4px);
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.project-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.project-tech span {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-tech span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.project-card:hover .project-tech span {
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

/* Modal and Carousel */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
    /*align-items: center;*/
    align-items: flex-start;
    /* aligné en haut au lieu de centré */
    justify-content: center;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content {
    background: var(--card-bg);
    max-width: 900px;
    width: 95%;
    margin: 2rem auto;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;

}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 2rem;
}

.carousel-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: none;
}

.carousel-item.active {
    opacity: 1;
    display: block;
    animation: fadeZoomIn 0.4s ease;
}

.carousel-item img,
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
}

.carousel-btn:hover {
    background: var(--accent);
    opacity: 1;
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 11;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

#modalContent {
    color: var(--text-primary);
}

.project-subtitle {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-technologies span {
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 1.5rem;
    background: var(--card-bg);
    box-shadow: 0 8px 24px var(--shadow);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    flex: 1;
    min-width: 0;
    max-width: 220px;
    border: 1px solid var(--border);
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px var(--shadow);
    border-color: var(--accent);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-icon i {
    z-index: 1;
    font-size: 3.5rem;
    color: var(--accent);
}

.contact-link:hover .contact-icon {
    transform: scale(1.1);
}

.contact-link:hover .contact-icon img {
    transform: scale(1.1);
}

.contact-text {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.contact-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.25rem;
}

/* Contact Section Responsive Styles */
@media (max-width: 1024px) {
    .contact-links {
        gap: 1.5rem;
    }

    .contact-link {
        max-width: 180px;
        padding: 1.25rem 1rem;
    }

    .contact-icon img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .contact-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .contact-link {
        width: calc(50% - 0.5rem);
        max-width: none;
        padding: 1.25rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon img {
        width: 50px;
        height: 50px;
    }

    .contact-text {
        font-size: 1rem;
    }

    .contact-detail {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .contact-links {
        gap: 0.75rem;
    }

    .contact-link {
        width: calc(50% - 0.375rem);
        padding: 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .contact-icon img {
        width: 40px;
        height: 40px;
    }

    .contact-detail {
        display: none;
    }
}



/* Form Styles */
.email-form-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border);
}

.email-form-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.7;
}

/* Accessibility Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.toggle-switch:focus,
.filter-btn:focus,
.cta-button:focus,
.carousel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

/* Loading State Styles */
.submit-btn {
    position: relative;
    overflow: hidden;
}

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

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.loading-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.btn-text.hidden,
.btn-loading.hidden {
    display: none;
}

/* Resume Section Styles */
.resume-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Grid for experience cards */
.resume-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    align-items: stretch;
}

.resume-cards-grid .resume-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resume-cards-grid .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resume-cards-grid .experience-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resume-cards-grid .experience-group .description {
    flex: 1;
}

.resume-cards-grid .skill-tags {
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 900px) {
    .resume-cards-grid {
        grid-template-columns: 1fr;
    }
}

.resume-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 24px var(--shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.resume-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--accent);
}

.card-header {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 2rem 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.resume-card:hover .card-header::after {
    opacity: 1;
}

.card-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.25);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.resume-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 2rem;
}

.card-content .role {
    color: var(--accent);
}

.skills .card-content {
    display: grid;
    gap: 2rem;
    padding: 2rem;
}

.skill-group {
    background: var(--card-bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skill-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.skill-group:hover::before {
    transform: scaleX(1);
}

.skill-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.skill-group h4 {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Skills Section - Clean Professional Design */
.skills-section {
    width: 100%;
    padding: 2rem 0;
}

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

.skills-icon-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.skills-icon-circle i {
    font-size: 1.5rem;
    color: white;
}

.skills-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.skills-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    padding: 0 1rem;
}

.skills-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
}

.divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.divider-dot.active {
    background: var(--accent);
}

/* Skills Categories */
.skills-category {
    margin-bottom: 2rem;
}

.category-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skills-section .skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    width: 90px;
    background: var(--card-bg);
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skills-section .skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.skills-section .skill-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skills-section .skill-item:hover img {
    transform: scale(1.1);
}

.skills-section .skill-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

/* Dark mode adjustments */
[data-theme="dark"] .skills-section .skill-item {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .skills-section .skill-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skills-section .skill-item img {
    filter: brightness(1.05);
}

/* Responsive Skills */
@media (max-width: 600px) {
    .skills-row {
        gap: 0.75rem;
    }

    .skills-section .skill-item {
        width: 75px;
        padding: 0.75rem;
    }

    .skills-section .skill-item img {
        width: 32px;
        height: 32px;
    }

    .skills-section .skill-item span {
        font-size: 0.65rem;
    }

    .skills-title {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 0.9rem;
    }
}

/* ====================================
   UNIFIED SECTION HEADER STYLE
   ==================================== */
.section-header-styled {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.section-title-styled {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

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

.section-divider-styled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.section-divider-styled .divider-line {
    width: 40px;
    height: 2px;
    background: var(--text-secondary);
    opacity: 0.3;
}

.section-divider-styled .divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
}

.section-divider-styled .divider-dot.active {
    background: var(--accent);
    opacity: 1;
}

/* Responsive for unified headers */
@media (max-width: 768px) {
    .section-title-styled {
        font-size: 1.8rem;
    }

    .section-subtitle-styled {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title-styled {
        font-size: 1.5rem;
    }

    .section-subtitle-styled {
        font-size: 0.85rem;
    }
}

/* Certifications Section */
.certifications-section {
    width: 100%;
    padding: 2rem 0;
    margin-top: 2rem;
}

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

.certifications-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.certifications-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
}

.certifications-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Carousel Wrapper */
.cert-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Carousel Container */
.cert-carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    flex: 1;
    min-width: 0;
}

/* Carousel Track */
.cert-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

/* Slide Wrapper - not used anymore */
.cert-slide-wrapper {
    flex: 0 0 calc(33.333% - 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual Slide */
.cert-slide {
    position: relative;
    flex: 0 0 280px;
    min-width: 280px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.cert-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cert-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.cert-slide:hover img {
    filter: brightness(0.4);
}

/* Dark Overlay with Icon */
.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    pointer-events: none;
}

.cert-slide:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay i {
    font-size: 2.5rem;
}

.cert-overlay span {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Verify Button Inside Image */
.cert-verify-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.cert-verify-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateX(-50%) scale(1.05);
}

.cert-verify-btn i {
    font-size: 0.75rem;
}

.cert-btn {
    background: var(--accent);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cert-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.cert-expand {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

.cert-expand:hover {
    background: white;
}

/* Certification Modal */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cert-modal.show {
    display: flex;
}

.cert-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.cert-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: certModalIn 0.3s ease;
}

@keyframes certModalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cert-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cert-modal-title {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
}

.cert-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cert-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Dark mode for cert buttons */
[data-theme="dark"] .cert-expand {
    background: rgba(30, 30, 30, 0.95);
    color: var(--text-primary);
}

[data-theme="dark"] .cert-expand:hover {
    background: rgba(50, 50, 50, 1);
}

/* Carousel Buttons */
.cert-carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.cert-carousel-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.cert-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Carousel Dots */
.cert-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.cert-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cert-carousel-dot.active {
    opacity: 1;
    background: var(--accent);
    transform: scale(1.2);
}

.cert-carousel-dot:hover {
    opacity: 0.7;
}

/* Dark mode */
[data-theme="dark"] .cert-slide {
    background: var(--card-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cert-slide:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cert-carousel-btn {
    background: var(--card-bg);
}

/* Responsive */
@media (max-width: 900px) {
    .cert-slide {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .certifications-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .cert-slide {
        flex: 0 0 100%;
        min-width: 100%;
        width: 100%;
    }

    .cert-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .cert-carousel-wrapper {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .cert-carousel-container {
        padding: 0;
        overflow: hidden;
    }

    .cert-carousel-track {
        gap: 0.75rem;
    }

    .certifications-subtitle {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .cert-overlay i {
        font-size: 1.5rem;
    }

    .cert-name {
        font-size: 0.75rem;
    }

    .cert-carousel-dots {
        margin-top: 1rem;
        gap: 0.4rem;
    }

    .cert-carousel-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 400px) {
    .cert-carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .cert-carousel-wrapper {
        gap: 0.25rem;
        padding: 0 0.25rem;
    }
}

/* Legacy skill-tags styling (for experience section) */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.skill-tag {
    background: var(--accent);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.skill-tag:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

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

/* Dark theme specific adjustments */
[data-theme="dark"] .skill-group {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .skill-tag {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .skill-tag:hover {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    box-shadow: 0 6px 14px rgba(96, 165, 250, 0.5);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--accent);
}

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

.timeline-item h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.timeline-item .date {
    color: var(--accent);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.timeline-item .description {
    color: var(--text-secondary);
    margin: 0;
}

.exp-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.exp-list li {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.exp-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

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

.skill-group h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

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

.skill-tag {
    background: var(--tag-bg, var(--accent-light));
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.resume-flex-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.cert-list li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cert-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--accent);
    color: var(--text-on-accent);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow);
}

.cert-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

[data-theme="dark"] .cert-link {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.download-cv {
    display: inline-block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.download-cv-container {
    display: flex;
    justify-content: center;
    margin: 3rem auto 2rem;
}

.download-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cv-download-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--card-bg);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.cv-download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.cv-download-button:hover::before {
    transform: scaleX(1);
}

.cv-download-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px var(--shadow);
    border-color: var(--accent-color);
}

.cv-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cv-download-button:hover .cv-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.cv-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

[data-theme="dark"] .cv-download-button {
    background: var(--card-bg-secondary);
}

.cert-link {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.8rem;
    background-color: var(--accent);
    color: var(--text-on-accent);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.cert-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

[data-theme="dark"] .cert-link {
    background-color: var(--accent);
    color: var(--text-on-accent);
}

@media (max-width: 768px) {
    .nav-container {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .filter-buttons {
        margin-top: 2rem;
    }

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

    .contact-intro {
        margin-top: 2rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 1rem;
    }

    .carousel-container {
        aspect-ratio: 4/3;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .project-technologies {
        gap: 0.5rem;
    }

    .project-technologies span {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }

    .resume-container {
        padding: 0.75rem;
    }

    .experience-timeline {
        width: 100%;
    }

    .timeline-item {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .resume-flex-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }

    .nav-controls {
        gap: 0.6rem;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Mobile Navigation Styles */
@media (max-width: 850px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-logo {
        margin-right: 0;
    }

    .nav-logo img {
        height: 40px;
    }

    .hamburger-menu {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
        gap: 2rem;
        margin-right: 0;
    }

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

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
        padding: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-primary);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.experience .timeline-item {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg-secondary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience .timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.experience h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.experience .experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Uses shared .date-tag class */

.experience .role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.2rem 0.8rem;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 15px;
}

.experience .exp-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.experience .exp-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.experience .exp-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.experience .tech-stack {
    margin-top: 1rem;
}

.experience .tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.experience .tech-item {
    background: var(--accent-color-light);
    color: var(--accent-color);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.experience .tech-item:hover {
    background: var(--accent-color);
    color: var(--text-on-accent);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .experience .card-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

[data-theme="dark"] .experience .tech-item {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Education Section - Modern Design ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.education-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent);
}

.education-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.education-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.education-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.education-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}

.education-school {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.education-school i {
    font-size: 0.75rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-card {
        padding: 1.25rem;
    }

    .education-logo {
        width: 50px;
        height: 50px;
    }
}

/* ===== Experience Timeline - Modern Design ===== */
.experience-timeline {
    position: relative;
    padding-left: 50px;
    width: 100%;
    max-width: 100%;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(59, 130, 246, 0.2));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    width: 100%;
}

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

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 1.5rem;
    width: 26px;
    height: 26px;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    width: 100%;
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: var(--accent);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.timeline-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.timeline-info {
    flex: 1;
}

.timeline-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-company {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
}

.timeline-date {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timeline-details {
    margin: 0 0 1.25rem 0;
    padding-left: 1rem;
    list-style: none;
}

.timeline-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.timeline-tag {
    background: var(--accent);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .experience-timeline {
        padding-left: 0;
    }

    .experience-timeline::before {
        display: none;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-item {
        padding-bottom: 1.5rem;
    }

    .timeline-content {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-content:hover {
        transform: none;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-header {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .timeline-info h4 {
        font-size: 1rem;
    }

    .timeline-company {
        font-size: 0.85rem;
    }

    .timeline-date {
        font-size: 0.75rem;
    }

    .timeline-details li {
        font-size: 0.85rem;
        padding-left: 1rem;
    }

    .timeline-tags {
        gap: 0.4rem;
    }

    .timeline-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .timeline-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .timeline-header {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .timeline-info h4 {
        font-size: 0.95rem;
    }

    .timeline-company {
        font-size: 0.8rem;
    }

    .timeline-date {
        font-size: 0.7rem;
    }

    /* Hide details on mobile, show only first item */
    .timeline-details {
        margin-bottom: 0.75rem;
        padding-left: 0;
    }

    .timeline-details li {
        display: none;
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        line-height: 1.4;
        padding-left: 0.75rem;
    }

    .timeline-details li:first-child {
        display: block;
    }

    .timeline-details li::before {
        width: 4px;
        height: 4px;
        top: 0.4rem;
    }

    .timeline-tags {
        gap: 0.3rem;
        padding-top: 0.5rem;
    }

    .timeline-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }

    /* Show only first 3 tags on mobile */
    .timeline-tag:nth-child(n+4) {
        display: none;
    }
}

/* Legacy education styles - keep for backwards compatibility */
.education .card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education .skill-group {
    padding: 1.2rem;
    background: var(--card-bg-secondary);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.education .skill-group:hover {
    transform: translateY(-2px);
}

.education .skill-group h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.education .title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.education .date-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.education .description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .education .card-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .education .skill-group {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 480px) {
    .education .skill-group {
        padding: 1rem;
    }

    .education .skill-group h4 {
        font-size: 1rem;
    }

    .education .date-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .education .description {
        font-size: 0.9rem;
    }
}

/* Shared date-tag styles */
.date-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.date-tag:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

[data-theme="dark"] .date-tag {
    background: rgba(96, 165, 250, 0.15);
}

/* Experience card styles */
.experience .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.experience-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.experience-group .title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-group h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.experience-group .date-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.experience-group .description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
    flex: 1;
}

.experience-group .skill-tags {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Dark theme adjustments */
[data-theme="dark"] .experience-group .date-tag {
    background: rgba(96, 165, 250, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-group {
        padding: 1.2rem;
    }

    .experience-group h4 {
        font-size: 1rem;
    }

    .experience-group .title-row {
        gap: 0.8rem;
    }
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn .btn-text {
    position: relative;
    z-index: 1;
}

/* Loading state styles */
.submit-btn.loading {
    background: var(--accent-hover);
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.loading-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: loadingDots 1s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent);
    color: var(--text-on-accent);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Associations Section - Modern Design */
.associations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.association-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.association-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent);
}

.association-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.association-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.association-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.association-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.association-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.association-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.association-role {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.association-role i {
    font-size: 0.75rem;
}

.association-desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .associations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .association-card {
        padding: 1.25rem;
    }

    .association-logo {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}