:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0a0f1e;
    --accent-color: #2563eb;
    --dark-pink: #be185d;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --light-text: #666;
    --gradient-1: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-3: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    --gradient-text: linear-gradient(45deg, #3b82f6, #6366f1, #8b5cf6);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(37, 99, 235, 0.3);
    --border-radius: 20px;
    --transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Space Grotesk', 'Comfortaa', cursive;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== LOADER ==================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 15px;
}

.loader-circle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

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

    40% {
        transform: scale(1);
    }
}

/* ==================== NAVIGATION ==================== */
nav.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 7%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

nav.navbar.scrolled {
    padding: 0.7rem 7%;
    box-shadow: var(--shadow-md);
}

.nameInNav {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.nameInNav img {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.nameInNav:hover img {
    transform: rotate(360deg);
}

.nameInNav h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.nameInNav span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-size: 1rem;
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-text);
    transition: var(--transition);
    border-radius: 10px;
}

nav ul li a:hover::before,
nav ul li a.active::before {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Language Toggle Button */
.lang-btn {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: white;
    border: 2px solid rgba(96, 165, 250, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.lang-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #be185d);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.lang-btn i {
    font-size: 1rem;
}

#menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

#menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* ==================== HOME SECTION ==================== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background:
        linear-gradient(135deg, #0a0f1e 0%, #0f172a 50%, #1e293b 100%),
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(190, 24, 93, 0.08) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
    z-index: 0;
}

.home::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(190, 24, 93, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.04) 0%, transparent 40%);
    animation: gradient-shift 15s ease infinite;
    z-index: 0;
}

@keyframes gradient-shift {

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

    33% {
        transform: translate(-5%, -5%) rotate(120deg);
    }

    66% {
        transform: translate(5%, 5%) rotate(240deg);
    }
}

/* Animated Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 90%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 80%;
    left: 20%;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 30%;
    left: 70%;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 50%;
    animation-delay: 2.5s;
}

.particle:nth-child(8) {
    width: 65px;
    height: 65px;
    top: 90%;
    left: 60%;
    animation-delay: 4.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Data Visualization Elements */
.data-visualization {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: none;
}

.data-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(190, 24, 93, 0.12));
    border: 2px solid rgba(59, 130, 246, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: none;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.data-node i {
    font-size: 1.5rem;
    color: rgba(147, 197, 253, 0.85);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.data-node:nth-child(odd) {
    animation-delay: 1s;
}

.data-node:nth-child(even) {
    animation-delay: 2s;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.08);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 8px 40px rgba(37, 99, 235, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.12);
        transform: scale(1.1);
    }
}

@keyframes float-node {

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

    25% {
        transform: translateY(-20px) translateX(10px);
    }

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

    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

.home .content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    position: relative;
}

.home .container-texts {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.greeting {
    font-size: 0.95rem;
    color: #60a5fa;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3), 0 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0.85;
}

.name-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(59, 130, 246, 0.4);
    letter-spacing: 1px;
}

.family-name {
    color: #ffffff;
    display: inline-block;
    font-weight: 600;
}

.role {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    color: #ffffff;
    margin-bottom: 1.8rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(37, 99, 235, 0.3);
    letter-spacing: -1px;
    line-height: 1.05;
}

.wonderful-color {
    background: linear-gradient(135deg, #3b82f6, #be185d, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
    filter: brightness(1.1);
}

.subtitle {
    font-size: 1.15rem;
    color: #60a5fa;
    margin-bottom: 3rem;
    font-weight: 600;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 1), 0 0 40px rgba(96, 165, 250, 0.6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-text-contact {
    margin-left: 50px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #be185d);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4), 0 5px 15px rgba(0, 0, 0, 0.4);
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5), 0 10px 30px rgba(190, 24, 93, 0.4), 0 8px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #3b82f6, #db2777);
}

.btn-secondary {
    background: transparent;
    color: #60a5fa;
    border: 2px solid #60a5fa;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    transform: translateY(-5px) scale(1.05);
    border-color: #93c5fd;
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #60a5fa;
    opacity: 0.7;
    animation: fadeInUp 1s ease 1s both;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    width: max-content;
    max-width: 200px;
    margin: 0 auto;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #60a5fa;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

.wheel {
    width: 6px;
    height: 10px;
    background: #60a5fa;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

.scroll-indicator p {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================== ANIMATIONS ==================== */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

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

.reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays for cards - DISABLED */
.skills .card:nth-child(1) {
    animation-delay: 0s;
}

.skills .card:nth-child(2) {
    animation-delay: 0s;
}

.skills .card:nth-child(3) {
    animation-delay: 0s;
}

.skills .card:nth-child(4) {
    animation-delay: 0s;
}

.skills .card:nth-child(5) {
    animation-delay: 0s;
}

.skills .card:nth-child(6) {
    animation-delay: 0s;
}

.project-card:nth-child(1) {
    animation-delay: 0s;
}

.project-card:nth-child(2) {
    animation-delay: 0s;
}

.project-card:nth-child(3) {
    animation-delay: 0s;
}

.project-card:nth-child(4) {
    animation-delay: 0s;
}

.project-card:nth-child(5) {
    animation-delay: 0s;
}

.project-card:nth-child(6) {
    animation-delay: 0s;
}

/* ==================== ABOUT SECTION ==================== */
.about-me {
    padding: 7rem 7%;
    display: flex;
    align-items: center;
    gap: 5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.about-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(0,0,0,0.03)"/></svg>');
    opacity: 0.5;
}

.about-me .container-images {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 350px;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    position: relative;
    z-index: 2;
    animation: morph 8s ease-in-out infinite;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 20px;
    left: 20px;
    z-index: 1;
    animation: morph 8s ease-in-out infinite reverse;
}

.about-me .container-texts {
    flex: 1.2;
    position: relative;
}

.about-me h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-me h1 span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-description {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-item h3 {
    font-size: 2.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    padding: 7rem 7%;
    background: white;
}

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

.section-header img {
    width: 70px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.section-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-header h1 span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 400;
}

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

.skills .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.skills .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skills .card:hover::before {
    transform: none;
}

.skills .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.skills .card-header i {
    font-size: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.skills .card-header h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.skills .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.skills .skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0.5rem;
    border-radius: 10px;
    will-change: transform;
    cursor: pointer;
}

.skills .skill:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: scale(1.1) translateY(-5px);
}

.skills .skill .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.skills .skill:hover .icon {
    transform: none;
}

.skills .skill .icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.skills .theory {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 500;
}

.skills .theory div {
    padding: 0.7rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.skills .theory div:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(10px);
}

/* ==================== EDUCATION SECTION ==================== */
.education {
    padding: 7rem 7%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #be185d, #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.education-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25), 0 12px 25px rgba(0, 0, 0, 0.15);
}

.education-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.education-card:hover .education-logo {
    transform: none;
}

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

/* ==================== CAROUSEL ==================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(37, 99, 235, 0.95);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.education-content {
    flex: 1;
}

.education-degree {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.education-school {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-location {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-location::before {
    content: '📍';
}

.education-years {
    font-size: 0.95rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-years::before {
    content: '📅';
}

.education-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.education-description p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.7;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    padding: 7rem 7%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(190, 24, 93, 0.06));
    opacity: 0;
    transition: none;
    z-index: 0;
    pointer-events: none;
}

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: visible;
    z-index: 50;
}

.project-presentation {
    height: 240px;
    overflow: hidden;
    position: relative;
    transition: overflow 0s 0.4s, z-index 0s;
    z-index: 1;
}

.project-card:hover .project-presentation {
    overflow: visible;
    z-index: 100;
    transition: overflow 0s, z-index 0s;
}

.project-presentation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.project-card:hover .project-presentation::after {
    opacity: 0;
}

.project-presentation img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e7ef 100%);
    cursor: pointer;
}

.project-card:hover .project-presentation img {
    transform: scale(1.15);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

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

.project-description {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.7;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #be185d);
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.btn-small:hover::before {
    left: 0;
}

.btn-small:hover {
    color: white;
    transform: translateX(10px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* ==================== CERTIFICATES SECTION ==================== */
.certificats {
    padding: 7rem 7%;
    background: white;
}

.certificats .box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.certificats .certif {
    width: 180px;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    cursor: pointer;
}

.certificats .certif::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #3b82f6, #be185d, #8b5cf6);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.certificats .certif:hover::before {
    opacity: 0.4;
}

.certificats .certif img {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.certificats .certif:hover {
    transform: translateY(-10px);
}

.certificats .certif:hover img {
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35), 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== CONTACT SECTION ==================== */
.contacts {
    padding: 7rem 7%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.contacts .section-header h1 {
    color: white;
}

.contacts .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contacts .box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #be185d, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.contact-item img {
    width: 60px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
}

.contact-item div {
    font-weight: 500;
    color: var(--light-text);
    word-break: break-word;
}

.contact-item a {
    display: block;
    transition: var(--transition);
}

.contact-item a:hover {
    transform: scale(1.05);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 7%;
    text-align: center;
}

footer h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

footer h4 span {
    background: linear-gradient(45deg, #ff274b, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer .social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

footer .social a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    border: 2px solid rgba(96, 165, 250, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    color: white;
    font-size: 1.3rem;
}

footer .social a:hover {
    background: linear-gradient(135deg, #3b82f6, #be185d);
    border-color: #be185d;
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5), 0 6px 20px rgba(190, 24, 93, 0.3);
}

footer .social a i {
    transition: var(--transition-smooth);
}

footer .social a:hover i {
    transform: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .about-me {
        gap: 3rem;
    }

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

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    nav.navbar {
        padding: 1rem 5%;
    }

    #menu {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(96, 165, 250, 0.1);
    }

    nav ul.is-active {
        right: 0;
    }

    nav ul li {
        width: 100%;
        text-align: left;
        padding: 0 2rem;
    }

    nav ul li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    #menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

    #menu.is-active span:nth-child(2) {
        opacity: 0;
    }

    #menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }

    .about-me {
        flex-direction: column;
        text-align: center;
        padding: 5rem 5%;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills,
    .projects,
    .certificats,
    .contacts {
        padding: 5rem 5%;
    }

    .education {
        padding: 5rem 5%;
    }

    .education-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 1.5rem;
    }

    nav ul.is-active {
        display: flex;
        right: 0;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    #menu {
        display: block;
    }

    #menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

    #menu.is-active span:nth-child(2) {
        opacity: 0;
    }

    #menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }

    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .lang-btn i {
        font-size: 0.85rem;
    }

    .scroll-indicator {
        display: flex !important;
    }

    .home {
        padding-top: 100px;
        min-height: 100vh;
        padding-bottom: 5rem;
    }

    .data-node {
        width: 45px;
        height: 45px;
    }

    .data-node i {
        font-size: 1.2rem;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .btn-text-contact {
        margin-left: 0 !important;
    }

    .scroll-indicator {
        display: flex !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 20px;
        margin: 0 auto;
    }

    .skills .content {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .education-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .education-card {
        padding: 2rem;
    }

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nameInNav h2 {
        font-size: 1rem;
    }

    .nameInNav img {
        width: 35px;
        height: 35px;
    }

    nav.navbar {
        padding: 1rem 4%;
    }

    .lang-btn span {
        display: none;
    }

    .lang-btn {
        padding: 0.5rem 0.8rem;
        min-width: auto;
    }

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

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

    .data-node {
        display: none;
    }

    .particle {
        width: 30px !important;
        height: 30px !important;
    }

    .scroll-indicator {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 15px;
        width: auto;
        max-width: 150px;
        margin: 0 auto;
    }

    .scroll-indicator p {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .contact-item {
        width: 100%;
    }

    .certificats .certif {
        width: 150px;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto 1.5rem;
    }

    .education-degree {
        font-size: 1.3rem;
    }
}

/* ==================== UTILITIES ==================== */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}