:root {
    /* Nouvelle Palette */
    --bg-primary: #2a2a2a;
    --bg-secondary: #3c3c3c;
    --bg-tertiary: #4f4f4f;
    --text-primary: #f4e9d8;
    --text-secondary: #a8a29a;
    --accent-primary: #d97a7a;
    --accent-secondary: #e5b48e;

    /* Mapping vers les anciens noms de variables pour la compatibilité */
    --bg-color: var(--bg-primary);
    --text-color: var(--text-primary);
    --accent-color: var(--accent-primary);
    --accent-gradient: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    --secondary-color: var(--bg-secondary);
    --hover-color: var(--bg-tertiary);
    --transition-speed: 0.3s;
    --glitch-color1: var(--accent-secondary);
    --glitch-color2: var(--accent-primary);

    /* Variables pour le thème clair (utilisées par JavaScript) */
    --light-bg-color: #f5ede2;
    --light-text-color: #2b2218;
    --light-hover-color: #efe0cb;
    --light-secondary-color: #d8c8b4;

    /* Variables spécifiques au blog */
    --blog-overlay: color-mix(in srgb, var(--bg-color) 30%, transparent);
    --blog-overlay-strong: color-mix(in srgb, var(--bg-color) 35%, transparent);
    --blog-surface: color-mix(in srgb, var(--bg-color) 25%, transparent);
    --blog-glass-faint: color-mix(in srgb, var(--text-color) 2%, transparent);
    --blog-glass-muted: color-mix(in srgb, var(--text-color) 3%, transparent);
    --blog-glass-soft: color-mix(in srgb, var(--text-color) 5%, transparent);
    --blog-glass: color-mix(in srgb, var(--text-color) 8%, transparent);
    --blog-glass-strong: color-mix(in srgb, var(--text-color) 10%, transparent);
    --blog-border-soft: color-mix(in srgb, var(--text-color) 5%, transparent);
    --blog-border-muted: color-mix(in srgb, var(--text-color) 6%, transparent);
    --blog-border: color-mix(in srgb, var(--text-color) 8%, transparent);
    --blog-border-strong: color-mix(in srgb, var(--text-color) 10%, transparent);
    --blog-border-dashed: color-mix(in srgb, var(--text-color) 14%, transparent);
    --blog-accent-border: color-mix(in srgb, var(--accent-secondary) 25%, transparent);
    --blog-accent-border-strong: color-mix(in srgb, var(--accent-secondary) 35%, transparent);
    --blog-accent-border-heavy: color-mix(in srgb, var(--accent-secondary) 45%, transparent);
    --blog-accent-surface: color-mix(in srgb, var(--accent-secondary) 12%, transparent);
    --blog-accent-surface-strong: color-mix(in srgb, var(--accent-secondary) 15%, transparent);
    --blog-accent-surface-bold: color-mix(in srgb, var(--accent-secondary) 18%, transparent);
    --blog-accent-surface-radar: color-mix(in srgb, var(--accent-primary) 18%, transparent);
    --blog-shadow-strong: color-mix(in srgb, var(--bg-color) 35%, transparent);
    --blog-shadow-accent: color-mix(in srgb, var(--accent-primary) 25%, transparent);
    --blog-shadow-accent-strong: color-mix(in srgb, var(--accent-primary) 35%, transparent);
    --blog-shadow-accent-soft: color-mix(in srgb, var(--accent-primary) 18%, transparent);
    --blog-hero-gradient: linear-gradient(135deg,
            color-mix(in srgb, var(--accent-primary) 14%, transparent),
            color-mix(in srgb, var(--accent-secondary) 8%, transparent));
    --blog-hero-overlay: radial-gradient(circle at 20% 20%,
            color-mix(in srgb, var(--accent-secondary) 35%, transparent),
            transparent 60%),
        radial-gradient(circle at 80% 0%,
            color-mix(in srgb, var(--accent-primary) 25%, transparent),
            transparent 55%);
    --blog-card-highlight: radial-gradient(circle at top right,
            color-mix(in srgb, var(--accent-primary) 15%, transparent),
            transparent 60%);
    --blog-badge-neutral-bg: color-mix(in srgb, var(--text-color) 10%, transparent);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html.reduce-motion {
    scroll-behavior: auto;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

html.reduce-motion .custom-cursor,
html.reduce-motion .cursor-dot,
html.reduce-motion .cursor-trail,
html.reduce-motion #dynamicOverlay,
html.reduce-motion #particles-js {
    display: none !important;
}

body.light-theme {
    --bg-primary: var(--light-bg-color);
    --bg-secondary: #ecdecb;
    --bg-tertiary: #e2d2bf;
    --text-primary: var(--light-text-color);
    --text-secondary: #5c5144;
    --accent-primary: #c86b6b;
    --accent-secondary: #d89b6e;
    --bg-color: var(--bg-primary);
    --text-color: var(--text-primary);
    --hover-color: var(--light-hover-color);
    --secondary-color: var(--light-secondary-color);
    --accent-gradient: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    --glitch-color1: var(--accent-secondary);
    --glitch-color2: var(--accent-primary);
    --blog-overlay: rgba(43, 34, 24, 0.04);
    --blog-overlay-strong: rgba(43, 34, 24, 0.08);
    --blog-surface: rgba(255, 255, 255, 0.88);
    --blog-glass-faint: rgba(255, 255, 255, 0.55);
    --blog-glass-muted: rgba(255, 255, 255, 0.6);
    --blog-glass-soft: rgba(255, 255, 255, 0.7);
    --blog-glass: rgba(255, 255, 255, 0.78);
    --blog-glass-strong: rgba(255, 255, 255, 0.86);
    --blog-border-soft: rgba(43, 34, 24, 0.08);
    --blog-border-muted: rgba(43, 34, 24, 0.12);
    --blog-border: rgba(43, 34, 24, 0.16);
    --blog-border-strong: rgba(43, 34, 24, 0.22);
    --blog-border-dashed: rgba(43, 34, 24, 0.3);
    --blog-accent-border: color-mix(in srgb, var(--accent-secondary) 50%, transparent);
    --blog-accent-border-strong: color-mix(in srgb, var(--accent-secondary) 65%, transparent);
    --blog-accent-border-heavy: color-mix(in srgb, var(--accent-secondary) 75%, transparent);
    --blog-accent-surface: color-mix(in srgb, var(--accent-secondary) 28%, transparent);
    --blog-accent-surface-strong: color-mix(in srgb, var(--accent-secondary) 34%, transparent);
    --blog-accent-surface-bold: color-mix(in srgb, var(--accent-secondary) 40%, transparent);
    --blog-accent-surface-radar: color-mix(in srgb, var(--accent-primary) 32%, transparent);
    --blog-shadow-strong: rgba(43, 34, 24, 0.15);
    --blog-shadow-accent: color-mix(in srgb, var(--accent-primary) 24%, transparent);
    --blog-shadow-accent-strong: color-mix(in srgb, var(--accent-primary) 32%, transparent);
    --blog-shadow-accent-soft: color-mix(in srgb, var(--accent-primary) 18%, transparent);
    --blog-hero-gradient: linear-gradient(135deg,
            color-mix(in srgb, var(--accent-primary) 26%, rgba(255, 255, 255, 0.74)),
            color-mix(in srgb, var(--accent-secondary) 20%, rgba(255, 255, 255, 0.76)));
    --blog-hero-overlay: radial-gradient(circle at 20% 20%,
            color-mix(in srgb, var(--accent-secondary) 48%, transparent),
            transparent 60%),
        radial-gradient(circle at 80% 0%,
            color-mix(in srgb, var(--accent-primary) 38%, transparent),
            transparent 55%);
    --blog-card-highlight: radial-gradient(circle at top right,
            color-mix(in srgb, var(--accent-primary) 24%, transparent),
            transparent 65%);
    --blog-badge-neutral-bg: rgba(43, 34, 24, 0.08);
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zIgLAAAFHUlEQVR4AU2UhU8EMQxHx8zi7vj/PxPbvMsU0jYvu22S9xKEnXpSCLwFODBRoifyzVPOH2hpERcXnJ8RkZuKxJtQGFAB7a+Mf4QxQh6BbwEERjrkjx4gB35XGk7+CYTrSDEmJKCDnB8QLwIPF1AAt3Mn7hCnA/JD3hLC9EMk4iiQz52wE7kQeugxQCbVlCxxhABEVS8AJyYsSnAOYAKogEJ+FzwGKHIX3wkWICsJICuFXwEWd+IEEYiMgDEKVACLYzXSJwCGPM4NwAy5VgGYiHgGUICCSB5BKUAFpMhKPGZgfgTxAgwCZkN75QcEsQF/ZBYSwn2BEDWTQMj/jSYREBETIy8gDEJE5K1l1iNvH5wQIRIRwRahgujvJJ4E40ILJnNHcgOcARG5EQp4QECIz9YMxxbzZ4QLIkp8qCHCQpBDUAgQUwP8kO+NbBK39/j7wmPBE0EqwdQMlBDZpJI5h3ghQLggQtLiVhK5IcJ1ke0tBOuAmxsXigCEdIOg1iZVv3GjB1cC1QBL9T4BWICvIzM3qchcaBDAWAWyNzM3yhnZkbmQFSI5bBBpI1sELBE5oOSDIESgjRR5wJxRBISs1PsEZM5rqidE8sQCIZshAxBZpCKNMECEiTgLgWxfGVcC2X39unZRwMpEhAWxQEgKsXVTNw5AO0R8CsQMEMlskrdXh05YIJs0TSCJ+CKrFSJPEjktEB9EC4HkZBbJeAEM+SALBBZEwB+JgIQIgy8ypUILgfgiC6IgsgN1IGhzIwqBm3sgkJjC1QJJIjklTiuBOPDcOI+DKUQgGwRYXsIHgdxDZIGQAm2kzBYxCUggRYl0bqxIYIrwEXiTQvC+QIQF4kG8EGBJJIUQpuoLRL4kvgikT6QVARJqNQVDpEYke/XrFmDPhoFuCsTcCNWrYETCbyGQDpEqkSECkMgTEUggAm0k4Q5MId7fiyJwiCyQWiGEixRR9QW6vRdZCJBBKPEA0uWrA9zc+B7JvMgX8URsIOgnF0LUG7kGUmVsDKSOp0hmS5Bfie+Q1IoMAG5KJCJcrxM3AzckEogksh8IPzUi1IrQRCQigMAUMSNWCDMIuOlxjyXi8YA0gg9CT0TiDa27bJG4jUJqRFheCLDUR2tC+nULcNpRbNYO2jgBYClCN4QgXr9uAbZrJ26crBBvwuStF/Mj1Mf4KfIOkbnRY41sEHCNSCJgAcTTrfWCxCe5sDhBhH2QTTwRNAkRD6S3yBqBzYoAy6f0IdK5URXpF0Ra5IRU80SsEYEpEu+KPBE5fBDRbBFn5IGs9LxBCoBwvCuBdEh9kRkigVQKCQGcEWEgbgTi9fLl9SXiUCJwiLBuCGBBfBGNcIvkz44EEu9i0zSCTaQQdvg8xV4lHsTHRwj7xRt3S5qGpFRkqwiB5lqVQUAK8UFoFwJaL+e8ECICEGhEDMERWRbgkbzXrZRrROQLES4hIuXW30cU8UE82O0T0jciNBCrxIMGIXCLlG5VAcAmcrvXrUBqRLhKhL/gWYBXHUgiAYHHQO5KRN6IED8Iud39zYN8RQRCZAl4TxGJYLAQISyQNRL9h2G/J0KIvLVLRLaIRASMSDhFRKDKOkWGrAihvz2v0QTx1ImgUIhH1ILY72/sBLHW/e1RXiT69+bq74nvESdEpkjOu6Ajsopwo/pLRNKT7g/J+aIgW+SByIjgFGH9HzqTCYmxT8fjAAAAAElFTkSuQmCC");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}
.loading-bar-container {
    width: 300px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    transition: width 3s cubic-bezier(0.19, 1, 0.22, 1);
}
.loader-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-weight: 300;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
}
.loader-title::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-gradient);
    animation: loader-reveal 3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    transform: translateX(-100%);
}
@keyframes loader-reveal {
    0% {
        transform: translateX(-100%);
    }
    20% {
        transform: translateX(0);
    }
    80% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}
.loader-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.loading-icon {
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    position: relative;
}
.loading-circle {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}
.loading-circle:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: rgba(217, 122, 122, 0.7);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}
.loading-circle:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid transparent;
    border-top-color: rgba(217, 122, 122, 0.4);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    position: relative;
    z-index: 1;
}
.container.show {
    opacity: 1;
    transform: translateY(0);
}
.dynamic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0%, var(--bg-color) 60%);
    opacity: 0.4;
    display: none;
}
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}
.nav-container.scrolled {
    background-color: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
    text-decoration: none;
}
.logo::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 100%;
    top: 0;
    left: -10%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.2;
    filter: blur(8px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.logo:hover::before {
    transform: scaleX(1);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}
.menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed);
    display: inline-block;
    overflow: hidden;
}
.menu a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) cubic-bezier(0.65, 0.05, 0.36, 1);
}
.menu a:hover {
    color: var(--accent-color);
}
.menu a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    border-left: 1px solid var(--secondary-color);
    padding-left: 30px;
    margin-left: 0;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px;
}
.lang-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}
.lang-btn.active {
    color: var(--accent-color);
    font-weight: 700;
    pointer-events: none;
}
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1000;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}
.menu-toggle span:nth-child(1) {
    top: 0;
}
.menu-toggle span:nth-child(2) {
    top: 9px;
    width: 70%;
    right: 0;
}
.menu-toggle span:nth-child(3) {
    top: 18px;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--accent-color);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--accent-color);
}
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.grid-cell {
    width: 50px;
    height: 50px;
    border: 0.5px solid rgba(244, 233, 216, 0.05);
    transition: background-color 0.5s ease, transform 0.3s ease;
}
.grid-cell.active {
    transform: translateZ(20px);
}
.hero-content {
    z-index: 1;
    max-width: 900px;
    position: relative;
}
.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.hero-title span {
    color: var(--accent-color);
    position: relative;
    z-index: 1;
    display: inline-block;
}
.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent-gradient);
    opacity: 0.3;
    z-index: 0;
    transform: perspective(1000px) rotateX(20deg);
    transform-origin: bottom;
    filter: blur(4px);
}
.glitch {
    position: relative;
    animation: glitch-float 5s infinite alternate ease-in-out;
}
@keyframes glitch-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip: rect(0, 0, 0, 0);
    background: var(--bg-color);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--glitch-color1);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--glitch-color2);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 600px;
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(42, 42, 42, 0.1);
    transform: translateZ(10px);
}
.hero-cta {
    display: flex;
    gap: 20px;
}
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
    transform: scaleX(0);
    transform-origin: right;
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}
.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(217, 122, 122, 0.3);
    transform: translateY(-3px);
}
.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    position: relative;
    z-index: 1;
}
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    z-index: -1;
    transition: all var(--transition-speed);
    transform: scale(1.2);
    opacity: 0;
}
.btn-secondary:hover {
    border-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}
.btn-secondary:hover::before {
    transform: scale(1);
    opacity: 1;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    cursor: pointer;
    z-index: 1;
}
.scroll-indicator:hover {
    opacity: 1;
    transform: translate(-50%, -5px);
}
.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    position: relative;
}
.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: scrollAnim 2s infinite;
    box-shadow: 0 0 10px var(--accent-color);
}
@keyframes scrollAnim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 20px);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    transition: transform 0.1s ease-out;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease-out;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
}
.section-title:hover::after {
    width: 100%;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-image {
    position: relative;
    transition: transform 0.3s ease;
}
.about-image:hover {
    transform: scale(1.02);
}
.about-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}
.about-img-container:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}
.about-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-text p {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.1rem;
    position: relative;
    transition: transform 0.3s ease;
}
.about-text p:hover {
    transform: translateX(5px);
}
.about-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: transform 0.3s ease;
}
.info-item:hover {
    transform: translateX(10px);
}
.info-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 768px) {
    .about-info {
        grid-template-columns: 1fr 1fr;
    }
}
.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    perspective: 1000px;
}
.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 50px;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--accent-color);
}
.timeline-item:nth-child(odd)::after {
    right: -10px;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    padding: 30px;
    background-color: var(--hover-color);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg);
}
.timeline-content:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.timeline-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.timeline-date::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.timeline-content:hover .timeline-date::after {
    transform: scaleX(1);
    transform-origin: left;
}
.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}
.timeline-content:hover .timeline-title {
    color: var(--accent-color);
}
.timeline-company {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 15px;
    font-weight: 300;
}
.timeline-description ul {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 15px;
}
.timeline-description li {
    margin-bottom: 8px;
    font-weight: 300;
    position: relative;
    padding-left: 5px;
    transition: transform 0.3s ease;
}
.timeline-description li:hover {
    transform: translateX(5px);
}
.timeline-description li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.timeline-description li:hover::before {
    transform: translateX(5px);
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
    gap: 30px;
    perspective: 1000px;
    justify-content: center;
}
.skill-card {
    background-color: var(--hover-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-position 0.5s ease;
    transform-style: preserve-3d;
    background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 40%);
    background-size: 200% 200%;
    background-position: 0% 0%;
}
.skill-card:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background-position: 100% 100%;
}
.skill-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.skill-card:hover .skill-card-header {
    transform: translateZ(20px);
}
.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(217, 122, 122, 0.1), rgba(229, 180, 142, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: 0 3px 10px rgba(217, 122, 122, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover .skill-icon {
    transform: translateZ(30px);
    box-shadow: 0 5px 15px rgba(217, 122, 122, 0.4);
}
.skill-title {
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}
.skill-card:hover .skill-title {
    transform: translateZ(25px);
    color: var(--accent-color);
}
.skill-list {
    list-style: none;
    transition: transform 0.3s ease;
}
.skill-card:hover .skill-list {
    transform: translateZ(15px);
}
.skill-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    font-weight: 300;
    transition: transform 0.3s ease 0.1s;
}
.skill-list li:hover {
    transform: translateX(5px) translateZ(5px);
}
.skill-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.6rem;
    top: 6px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.skill-list li:hover::before {
    transform: scale(1.5);
    color: var(--accent-secondary);
}
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
    gap: 30px;
    perspective: 1000px;
    justify-content: center;
}
.education-card {
    background-color: var(--hover-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}
.education-card:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.education-card:hover::before {
    width: 10px;
}
.education-year {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.education-card:hover .education-year {
    transform: translateZ(20px);
}
.education-degree {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}
.education-card:hover .education-degree {
    transform: translateZ(15px);
    color: var(--accent-color);
}
.education-school {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 15px;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.education-card:hover .education-school {
    transform: translateZ(10px);
}
.education-description {
    font-weight: 300;
    margin-top: 15px;
    transition: transform 0.3s ease;
}
.education-card:hover .education-description {
    transform: translateZ(5px);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--hover-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.contact-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    transition: transform 0.5s ease;
    transform: rotate(45deg);
}
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.contact-item:hover::before {
    transform: rotate(45deg) translate(200%, 200%);
}
.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(217, 122, 122, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.contact-item:hover .contact-icon {
    transform: scale(1.2);
    background-color: rgba(217, 122, 122, 0.2);
}
.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}
.contact-item:hover .contact-details h4 {
    color: var(--accent-color);
}
.contact-details p {
    font-weight: 300;
    font-size: 0.9rem;
}
.contact-form {
    padding: 30px;
    background-color: var(--hover-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.form-group:focus-within label {
    color: var(--accent-color);
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(244, 233, 216, 0.05);
    border: 1px solid rgba(244, 233, 216, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(217, 122, 122, 0.2);
    transform: translateY(-2px);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.btn-form {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}
.btn-form::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-form:hover::after {
    width: 300px;
    height: 300px;
}
.form-success-message {
    display: none;
    background-color: rgba(217, 122, 122, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}
.form-success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
}
.form-success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.form-error-message {
    display: none;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff3333;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
    color: #ff3333;
    position: relative;
    overflow: hidden;
}
.form-error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff3333, #ff0066);
}
.form-error-message.show {
    display: block;
    animation: shakeError 0.5s ease;
}
@keyframes shakeError {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}
footer {
    padding: 30px 0;
    border-top: 1px solid rgba(244, 233, 216, 0.1);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
    transition: color 0.3s ease;
}
.copyright:hover {
    color: var(--accent-color);
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hover-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.social-icon:hover {
    color: var(--bg-color);
    transform: translateY(-3px) rotate(360deg);
}
.social-icon:hover::before {
    opacity: 1;
}
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(217, 122, 122, 0.5);
    pointer-events: none;
    z-index: 9990;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-radius 0.3s;
    mix-blend-mode: difference;
}
.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9990;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    pointer-events: none;
    z-index: 9989;
    opacity: 0;
    transform: translate(-50%, -50%);
}
.theme-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--hover-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}
.theme-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.theme-switch:hover {
    transform: scale(1.1);
}
.theme-switch:hover::before {
    opacity: 0.8;
}
.theme-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: color 0.3s ease, transform 0.5s ease;
}
.theme-switch:hover .theme-icon {
    color: var(--bg-color);
    transform: rotate(360deg);
}
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--hover-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(217, 122, 122, 0.3);
    transform: translateY(10px);
    pointer-events: none;
}
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--hover-color) transparent transparent transparent;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}
.fade-in.show {
    opacity: 1;
}
.parallax {
    position: relative;
    overflow: hidden;
}
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.1s;
}
.neon-text {
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(217, 122, 122, 0.5), 0 0 10px rgba(217, 122, 122, 0.3), 0 0 15px rgba(217, 122, 122, 0.2);
}
.highlight-hover {
    position: relative;
    display: inline-block;
    overflow: hidden;
}
.highlight-hover::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    top: 0;
    left: -100%;
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: -1;
}
.highlight-hover:hover::before {
    left: 0;
}
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--hover-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    overflow: hidden;
}
.scroll-to-top::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    transform: scale(1.1) translateY(0);
}
.scroll-to-top:hover::before {
    opacity: 1;
}
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 1000;
    transition: width 0.1s ease-out;
}
.perspective-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    pointer-events: none;
    z-index: 0;
}
.perspective-content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.5s ease-out;
}
#transition-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-img-container {
        padding-bottom: 75%;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 30px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: rgba(42, 42, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    .nav-right {
        gap: 15px;
    }
    .language-switcher {
        padding-left: 15px;
        border-left: none;
        position: absolute;
        bottom: 20px;
    }
    .menu.active {
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .menu.active .language-switcher {
        position: static;
        margin-top: 20px;
        padding: 20px;
        border-top: 1px solid var(--secondary-color);
        width: 100%;
        justify-content: center;
    }
    .menu a {
        font-size: 1.2rem;
        padding: 15px 0;
    }
    .menu-toggle {
        display: block;
        z-index: 1000;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .education-grid,
    .skills-container {
        grid-template-columns: 1fr;
    }
}
.ai-assistant-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--bg-color);
}
.ai-assistant-fab:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(217, 122, 122, 0.4);
}
.ai-fab-notification {
    position: fixed;
    bottom: 150px;
    right: 20px;
    background: var(--accent-gradient);
    color: var(--bg-color);
    padding: 8px 15px;
    border-radius: 20px 20px 5px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
    z-index: 1002;
}
.ai-fab-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.ai-assistant-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 400px;
    height: 600px;
    background-color: color-mix(in srgb, var(--bg-color) 85%, transparent);
    backdrop-filter: blur(15px);
    border: 1px solid var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease, visibility 0.3s;
}
.ai-assistant-container.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}
.ai-assistant-container.show ~ .ai-assistant-fab {
    transform: scale(0);
}
.ai-assistant-header {
    padding: 15px 20px;
    background-color: color-mix(in srgb, var(--secondary-color) 30%, transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--secondary-color);
}
.ai-header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-assistant-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent-color);
}
.ai-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}
.ai-close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}
.ai-assistant-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ai-assistant-body::-webkit-scrollbar {
    width: 6px;
}
.ai-assistant-body::-webkit-scrollbar-track {
    background: transparent;
}
.ai-assistant-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}
.ai-assistant-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}
.ai-message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 12px;
    line-height: 1.5;
    word-wrap: break-word;
}
.ai-message ul {
    padding-left: 20px;
    margin: 0;
}
.ai-message li {
    margin-bottom: 5px;
}
.ai-message.assistant {
    background-color: var(--hover-color);
    align-self: flex-start;
    border-top-left-radius: 0;
}
.ai-message.user {
    background: var(--accent-gradient);
    color: var(--bg-color);
    align-self: flex-end;
    border-top-right-radius: 0;
}
.ai-message.loading {
    align-self: flex-start;
}
.ai-message.loading p {
    display: flex;
    gap: 5px;
}
.ai-message.loading span {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.ai-message.loading span:nth-child(1) {
    animation-delay: -0.32s;
}
.ai-message.loading span:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes bounce {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}
.ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--secondary-color);
}
.suggestion-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.suggestion-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateX(5px);
}
.ai-assistant-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--secondary-color);
}
#ai-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px;
    color: var(--text-color);
    font-size: 1rem;
}
#ai-input:focus {
    outline: none;
}
#ai-send-btn {
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--bg-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}
#ai-send-btn:hover {
    transform: scale(1.1);
}
@media (max-width: 480px) {
    .ai-assistant-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .ai-assistant-container.show {
        transform: translateY(0);
    }
}
