/* ========== VARIABLES ========== */
:root {
    --primary-blue: #4A90E2;
    --light-blue: #87CEEB;
    --sky-blue: #F0F8FF;
    --dark-blue: #2E5C8A;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-gray: #4A4A4A;
    --text-light: #6B7280;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.navbar-visible {
    transform: translateY(0) !important;
    box-shadow: none;
    opacity: 1 !important;
    background-color: transparent;
    backdrop-filter: none;
}

.navbar.scrolled {
    transform: translateY(0);
    opacity: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);

}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.logo:hover {
    color: var(--dark-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.25);
    transition: all 0.3s ease;
    border: none;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--sky-blue) 100%);
    padding: 0 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    --hero-opacity: 1;
}

.hero-blob {
    position: absolute;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}

.blob-main {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    opacity: calc(0.5 * var(--hero-opacity, 1));
    animation: floatHero 50s ease-in-out infinite;
}

.blob-small {
    width: 400px;
    height: 400px;
    opacity: calc(0.4 * var(--hero-opacity, 1));
}

.blob-1 {
    top: 10%;
    right: 5%;
    animation: floatHeroSmall1 45s ease-in-out infinite;
}

.blob-2 {
    bottom: 15%;
    left: 8%;
    animation: floatHeroSmall2 55s ease-in-out infinite;
}

.blob-3 {
    top: 60%;
    right: 10%;
    animation: floatHeroSmall3 40s ease-in-out infinite;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-48%, -52%) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translate(-52%, -48%) rotate(10deg) scale(1);
    }

    75% {
        transform: translate(-50%, -52%) rotate(5deg) scale(1.05);
    }
}

@keyframes floatHeroSmall1 {

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

    33% {
        transform: translate(20px, -30px) rotate(8deg);
    }

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

@keyframes floatHeroSmall2 {

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

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

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

@keyframes floatHeroSmall3 {

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

    33% {
        transform: translate(15px, 25px) rotate(7deg);
    }

    66% {
        transform: translate(-20px, -15px) rotate(-8deg);
    }
}

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

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title {
    font-size: 1.8rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.btn-secondary:hover {
    background: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-blue), transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        height: 0;
    }

    50% {
        opacity: 1;
        height: 40px;
    }

    100% {
        opacity: 0;
        height: 40px;
    }
}

/* ========== ANIMATIONS ========== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delayed {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.fade-in-delayed-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out 0.4s backwards;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

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

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

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

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

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ========== SECTIONS ========== */
section {
    padding: 6rem 0;
}

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

.section-label {
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background: var(--white);
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    text-align: left;
    margin-bottom: 1.2rem;
}

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

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.highlight-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.profile-photo {
    /* make the image smaller but responsive */
    width: 340px;
    /* preferred displayed size on desktop */
    max-width: 100%;
    /* allow it to shrink inside narrow containers */
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    position: relative;
    display: block;
    /* ensure margin auto centers the image */
    margin: 0 auto;
}

/* responsive tweak: slightly smaller on small screens */
@media (max-width: 640px) {
    .profile-photo {
        width: 220px;
    }
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--sky-blue), var(--light-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.2);
}

.about-blob {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120%;
    height: 120%;
    z-index: 1;
}

/* ========== SKILLS SECTION ========== */
.skills-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.tools-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-blue) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.soft-skills-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.languages-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-blue) 100%);
    position: relative;
    overflow: hidden;
}

/* Décorations SVG en arrière-plan */
.section-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    opacity: 0.6;
    z-index: 1;
    animation: floatSlow 45s ease-in-out infinite;
}

.decoration-left {
    top: 10%;
    left: -100px;
    animation: floatSlow 50s ease-in-out infinite;
}

.decoration-right {
    top: 20%;
    right: -100px;
    animation: floatSlow 48s ease-in-out infinite reverse;
}

.decoration-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    animation: floatSlowCenter 55s ease-in-out infinite;
}

@keyframes floatSlow {

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

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

    50% {
        transform: translate(0, -80px) rotate(20deg);
    }

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

@keyframes floatSlowCenter {

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

    25% {
        transform: translate(calc(-50% + 50px), calc(-50% - 60px)) rotate(10deg);
    }

    50% {
        transform: translate(-50%, calc(-50% - 80px)) rotate(20deg);
    }

    75% {
        transform: translate(calc(-50% - 50px), calc(-50% - 60px)) rotate(10deg);
    }
}

.skills-section .container,
.tools-section .container,
.soft-skills-section .container,
.languages-section .container {
    position: relative;
    z-index: 2;
}

/* Grille des compétences détaillées */
.skill-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.skill-detailed-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.15);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.skill-detailed-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue), var(--light-blue));
    border-radius: 12px 0 0 12px;
    transition: var(--transition);
}

.skill-detailed-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.skill-detailed-item:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.skill-detailed-item:hover::before {
    width: 6px;
}

.skill-detailed-item:hover::after {
    opacity: 1;
}

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

.skill-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.skill-badge {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--sky-blue), var(--light-blue));
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.mini-tag {
    padding: 0.4rem 0.9rem;
    background: var(--sky-blue);
    color: var(--primary-blue);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mini-tag:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

/* Outils & Technologies détaillés */
.tools-detailed-content {
    max-width: 100%;
}

.tools-intro {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: auto;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
}

.tools-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.tool-category-item {
    background: var(--white);
    padding: 2rem;
    padding-top: 2.5rem;
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.15);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.tool-category-item::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 12px 12px 0 0;
    transition: var(--transition);
    z-index: 1;
}

.tool-category-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 0;
}

.tool-category-item:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.tool-category-item:hover::before {
    height: 6px;
}

.tool-category-item:hover::after {
    opacity: 1;
}

.tool-category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 2;
}

.tool-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}

.tool-item {
    padding: 0.7rem 1rem;
    background: var(--sky-blue);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: default;
    border: 1px solid transparent;
}

.tool-item:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    transform: translateX(5px);
    color: var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

/* Soft Skills détaillés */
.soft-skills-detailed {
    max-width: 100%;
}

.soft-skills-intro {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: auto;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
}

.soft-skills-grid-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.soft-skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.soft-skill-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.soft-skill-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.soft-skill-card:hover::after {
    opacity: 1;
}

.soft-skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.soft-skill-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.soft-skill-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Langues - Grille */
.languages-content {
    max-width: 100%;
}

.languages-intro {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: auto;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 900px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.language-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.language-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.language-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.language-card:hover::after {
    opacity: 1;
}

.language-flag {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.language-card-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.language-card-level {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.language-bar-mini {
    height: 4px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.language-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.reveal.active .language-fill {
    width: var(--lang-width) !important;
}

.language-card-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== PROJECTS SECTION ========== */
.projects-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.projects-section .container {
    position: relative;
    z-index: 2;
}

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

.project-item {
    background: var(--white);
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.project-item:hover {
    border-color: transparent;
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.project-item:hover::after {
    opacity: 1;
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    /* limit the displayed height so the image area is smaller */
    width: 100%;
}

.project-image.preview {
    aspect-ratio: 16 / 9;
    max-height: 200px;
    /* limit the height */
}

/* ensure any image inside the container covers the (smaller) area */
.project-image img,
.project-image>.project-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* responsive: reduce further on small screens */
@media (max-width: 640px) {
    .project-image {
        max-height: 160px;
    }
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sky-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-placeholder {
    transform: scale(1.1);
}

.project-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border: 2px solid var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.project-link:hover::before {
    left: 100%;
}

.project-link:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.project-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.tag {
    background: var(--sky-blue);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

/* ========== TIMELINE SECTION ========== */
.timeline-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.work-section {
    background: var(--white);
}

.education-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-blue) 100%);
}

.timeline-section .container {
    position: relative;
    z-index: 2;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    z-index: 0;
}

.timeline::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 2px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(74, 144, 226, 0.1);
    flex-shrink: 0;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0) translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.active .timeline-marker {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.timeline-item:nth-child(1) .timeline-marker {
    transition-delay: 0.7s;
}

.timeline-item:nth-child(2) .timeline-marker {
    transition-delay: 0.5s;
}

.timeline-item:nth-child(3) .timeline-marker {
    transition-delay: 0.3s;
}

.timeline-item:nth-child(4) .timeline-marker {
    transition-delay: 0.1s;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-item.active .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1) .timeline-content {
    transition-delay: 0.8s;
}

.timeline-item:nth-child(2) .timeline-content {
    transition-delay: 0.6s;
}

.timeline-item:nth-child(3) .timeline-content {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(4) .timeline-content {
    transition-delay: 0.2s;
}

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

.timeline-logo {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid rgba(74, 144, 226, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    flex-shrink: 0;
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
    padding: 5px;
    border-radius: 10px;
}

.timeline-header-text {
    flex: 1;
    text-align: left;
}

.timeline-content::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.timeline-content:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.timeline-content:hover::after {
    opacity: 1;
}

.timeline-date {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.8rem;
    background: var(--sky-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.timeline-content h3 {
    font-size: 1.05rem;
    margin: 0 0 0.3rem 0;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.timeline-company {
    color: var(--text-gray);
    font-weight: 600;
    margin: 0;
    font-size: 0.85rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.contact-info>p {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 2.5rem;
}

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

.contact-icon {
    font-size: 2rem;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-family: 'Poppins', sans-serif;
}

.contact-item p {
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.8rem 1.5rem;
    background: var(--sky-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-link:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(74, 144, 226, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    transition: var(--transition);
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    width: 100%;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1.05rem;
    padding: 1.1rem 2.5rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--white);
    border-top: 1px solid rgba(74, 144, 226, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-copyright {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.footer-divider {
    color: rgba(74, 144, 226, 0.3);
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .hero-name {
        font-size: 3.5rem;
    }

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

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skill-detailed-grid,
    .tools-categories,
    .soft-skills-grid-detailed {
        grid-template-columns: 1fr;
    }

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

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

    .section-decoration {
        width: 350px;
        height: 350px;
    }

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

    .timeline-marker {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-end;
    }

    .timeline-content {
        width: calc(100% - 60px);
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

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

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

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

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

    .section-decoration {
        width: 250px;
        height: 250px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .nav-menu {
        display: none;
    }
}

/* ========== PROJECT PAGE STYLES ========== */

.project-hero {
    background: linear-gradient(135deg, var(--sky-blue), var(--white));
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.project-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.project-hero .blob {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.6;
}

.project-hero .blob-1 {
    top: -100px;
    right: -50px;
    animation: float 20s ease-in-out infinite;
}

.project-hero .blob-2 {
    bottom: -150px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.project-hero .container {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--dark-blue);
    transform: translateX(-5px);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.project-hero-content {
    max-width: 800px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 800;
    word-break: break-word;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item svg {
    flex-shrink: 0;
}

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

.project-main-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(74, 144, 226, 0.2);
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-content-section {
    background: var(--white);
    padding: 4rem 0 6rem;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.project-article {
    max-width: 100%;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.article-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.project-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
}

.project-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

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

.feature-card {
    background: var(--sky-blue);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--sky-blue);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* Gallery */
.project-gallery {
    margin-top: 3rem;
}

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

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

/* Sidebar */
.project-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 2px solid rgba(74, 144, 226, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    background: var(--sky-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.role-description,
.duration-text,
.timeline-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

.duration-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.next-project-section {
    background: linear-gradient(135deg, var(--sky-blue), var(--light-blue));
    padding: 4rem 0;
}

.next-project-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.next-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.next-project-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.next-project-card p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.next-project-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 968px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-sidebar {
        position: static;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .project-meta {
        gap: 1rem;
    }

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

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

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

    .next-project-card h2 {
        font-size: 2rem;
    }

}

@media (max-width: 480px) {
  .project-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }
}

@media (max-width: 768px) {

    .project-hero-content {
    text-align: center;
    padding: 0 1rem;
  }

  .project-title {
    font-size: 1.75rem;
  }

  .project-subtitle {
    font-size: 1rem;
  }

    .timeline::before,
    .timeline-marker {
        display: none !important;
    }

    .timeline {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }

    .timeline-item {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 1rem;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        padding: 1.25rem;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(74, 144, 226, 0.1);
        position: relative;
    }

    .timeline-item::after {
        display: none;
    }

    .timeline-date {
        display: block;
        background: linear-gradient(90deg, #e8f3ff 0%, #f4f9ff 100%);
        color: #2b6cb0;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        padding: 0.4rem 0.8rem;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        width: fit-content;
    }

    .timeline-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
    }

    .timeline-logo img {
        width: 48px;
        height: 48px;
        border-radius: 0.75rem;
        object-fit: contain;
    }

    .timeline-header-text h3 {
        font-size: 1rem;
        font-weight: 700;
        margin: 0;
    }

    .timeline-header-text p {
        font-size: 0.9rem;
        font-weight: 500;
        color: #555;
        margin: 0;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #444;
        margin-top: 0.5rem;
    }

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

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

    .section-label {
        font-size: 0.9rem;
    }

    .section-decoration {
        opacity: 0.2;
    }
}