:root {
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3385FF;
  --primary-very-light: #f0f5ff;
  --accent: #0066FF;
  --accent-light: #3385FF;
  --danger: #0066FF;
  --danger-light: #3385FF;
  --text: #0f1419;
  --text-light: #5a6269;
  --text-lighter: #8b92a1;
  --bg-light: #ffffff;
  --bg-lighter: #f8f9fb;
  --border-light: #e5e7eb;
  --border-primary: #d4e4ff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}


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

html {
  scroll-behavior: smooth;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100%;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  position: relative;
}

/* Text gradient effect for headings */
h2 {
    color: #0077FF; /* Fallback for browsers that don't support background-clip */
    background: linear-gradient(135deg, #0077FF 0%, #0056CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Unified underline animation for all section titles */
@keyframes expandLine {
    0%, 100% {
        width: 80px;
    }
    50% {
        width: 120px;
    }
}

/* Smaller underline animation for card titles */
@keyframes expandLineSmall {
    0%, 100% {
        width: 50px;
    }
    50% {
        width: 70px;
    }
}

section {
    margin: 0;
    padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

/* ==================== LOADING SCREEN - DISABLED ==================== */
.loading-screen {
  display: none;
}

/* ==================== HEADER STYLES ==================== */

header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.98);
}

header.nav-hidden {
  transform: translateY(-100%);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--text);
}

.logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.btn-devis {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.btn-devis:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    position: fixed;
    right: 1rem;
    top: 1.5rem;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.4s ease;
}


/* Nouveaux styles à ajouter */
@media (max-width: 900px) {
    .navbar {
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 1.5rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0.75rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links li:nth-child(5) { transition-delay: 0.25s; }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text);
        padding: 0.5rem 0;
        transition: color 0.3s ease;
    }

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

    .nav-links li a::after {
        display: none;
    }

    .burger {
        display: flex;
        position: fixed;
        right: 1.5rem;
        top: 1rem;
    }

    .burger span {
        background: var(--text);
    }

    .burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .btn-devis {
        display: none;
    }

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

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

    body.menu-open {
        overflow: hidden;
    }
}

/* ==================== HERO SECTION ==================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 0;
    padding-top: 80px;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #ffffff 100%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 119, 255, 0.3), transparent);
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    bottom: -50px;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary);
    top: 50%;
    right: -50px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* hero-content : 50% largeur */
.hero-content {
    width: 50%;
    padding-left: 5%;
    padding-right: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Espacement vertical entre h1 et p */
.hero-title {
    font-size: 3.2rem;
    color: var(--text);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    position: relative;
    letter-spacing: -0.5px;
}

.hero-typed {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
    display: block;
    margin-bottom: 1.5rem;
    min-height: 80px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    position: relative;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    max-width: 90%;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    font-weight: 400;
}

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

/* hero-image : 50% largeur + centrage */
.hero-image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 60%;
    height: auto;
    opacity: 0;
    animation: fadeInScale 1s ease forwards;
    animation-delay: 0.8s;
    filter: drop-shadow(0 20px 40px rgba(0, 119, 255, 0.2));
}

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

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-primary:active {
    transform: translateY(0px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

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

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
    transition: transform 0.2s ease;
}

/* Ripple effect for buttons */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after, .btn-secondary:active::after {
    width: 300px;
    height: 300px;
}

/* Pulse animation on hover */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 119, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 119, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 119, 255, 0);
    }
}

/* Removed pulse animation on button hover for more professional look */

.vague {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-content {
        width: 55%;
        padding-left: 5%;
    }
    
    .hero-image {
        width: 45%;
    }
    
    .hero-title, .hero-typed {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 120px 2rem 4rem 2rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero-image img {
        max-width: 70%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .hero-typed {
        font-size: 2.2rem;
        min-height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 1.5rem 2.5rem 1.5rem;
    }

    .hero-content {
        padding-left: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
        letter-spacing: -0.5px;
    }

    .hero-typed {
        font-size: 2rem;
        min-height: 65px;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.8rem;
        padding: 0 0.25rem;
        letter-spacing: 0.2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-image img {
        max-width: 80%;
    }
}



/* About Section */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 8%;
    background: linear-gradient(to right, #ffffff 0%, #f9f9f9 50%, #ffffff 100%);
    gap: 4rem;
    flex-wrap: wrap;
    margin: 0;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 119, 255, 0.2), transparent);
}

/* Partie gauche (cartes) */
.about-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 30%;
    min-width: 280px;
}

.about-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.4rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    border-left: 4px solid var(--primary);
}

.about-card img {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.about-card p {
    position: relative;
    z-index: 1;
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border-color: var(--primary);
    border-left: 4px solid var(--primary);
}

.about-card:hover img {
    transform: scale(1.05);
}

/* Partie droite (texte) */
.about-right {
    width: 55%;
    min-width: 300px;
}

.about-right h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.about-right h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 0.8rem;
}

.about-right p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-light);
    text-align: justify;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about {
        gap: 3rem;
        padding: 5rem 5%;
    }
    
    .about-left {
        width: 35%;
    }
    
    .about-right {
        width: 60%;
    }
    
    .about-right h2 {
        font-size: 2.2rem;
    }
    
    .about-right p {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .about {
        flex-direction: column;
        text-align: center;
        padding: 4rem 4%;
        gap: 2.5rem;
    }
    .about-left,
    .about-right {
        width: 100%;
    }
    .about-card {
        justify-content: center;
    }
    .about-right h2 {
        font-size: 2rem;
        text-align: center;
    }
    .about-right h2::after {
        margin: 0.6rem auto 0;
    }
    .about-right p {
        text-align: center;
        padding-left: 0;
    }
    .about-right p::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .about {
        padding: 3rem 1.5rem;
    }
    
    .about-right h2 {
        font-size: 1.8rem;
    }
    
    .about-right p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .about-card {
        font-size: 0.95rem;
        padding: 1.2rem 1.5rem;
    }
    .about-card img {
        width: 45px;
        height: 45px;
    }
}


/* ==================== STATISTICS SECTION ==================== */
.stats-section {
    background: linear-gradient(135deg, #0077FF 0%, #0056CC 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.stat-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover::after {
    top: 100%;
    left: 100%;
}

.stat-icon {
    color: #fff;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.stat-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 2.5rem 1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
}


/* Services Section */

.services {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 6rem 5%;
    text-align: center;
    overflow: hidden;
    margin: 0;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 119, 255, 0.2), transparent);
}

.wave-top {
    display: none;
}

.wave-bottom {
    display: none;
}

.services-container {
    max-width: 1000px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.services-container h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
}

.services-container h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 1rem auto 0;
}

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

.note-services {
    margin-top: 5rem;
    font-size: 1rem;
    color: #444;
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4fa 100%);
    border: 2px solid rgba(0, 119, 255, 0.2);
    border-left: 5px solid #0077FF;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.note-services::before {
    content: 'ℹ️';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

.note-services:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 119, 255, 0.25);
    border-color: rgba(0, 119, 255, 0.4);
}

.note-services strong {
    color: #0077FF;
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services {
        width: 100%;
        padding: 4rem 1.5rem;
    }
    
    .services-container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .card {
        padding: 2rem 1.5rem;
    }
    
    .note-services {
        text-align: center;
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
    }
    
    /* Masquer les carrés bleus derrière les cartes sur tablette */
    .card-content::before,
    .card-content::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .services {
        padding: 3rem 1rem;
    }
    
    .services-container h2 {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }

    .card {
        padding: 1.5rem 1.2rem;
    }
    
    .card-title h3 {
        font-size: 1.1rem;
    }

    .card .para {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .card-title img {
        width: 50px;
        height: 50px;
    }
    
    .note-services {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
    
    .note-services::before {
        font-size: 1.5rem;
        right: 10px;
    }
    
    /* Masquer les carrés bleus derrière les cartes sur mobile */
    .card-content::before,
    .card-content::after {
        display: none;
    }
}



.card {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    height: 300px;
    border-radius: 12px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.card-content {
    height: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 36px;
    border-radius: 12px;
    color: var(--text);
    overflow: hidden;
    background: #ffffff;
    border: 2px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card-content img {
    width: 48px;
    height: 48px;
}

.card-content .para {
    font-size: 18px;
    color: var(--text-light);
}

.card-content .link {
    color: var(--primary);
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-size: 16px;
    transition: color 0.3s ease;
}

.card-content .link:hover {
    text-decoration: underline;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-start;
    width: 100%;
}

.card-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    transition: all 0.3s ease;
}

.card:hover .card-title h3 {
    transform: translateX(5px);
}

.card-title img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 10px rgba(0, 119, 255, 0.3));
}

.card:hover .card-title img {
    transform: rotate(15deg) scale(1.1);
}



/* ==================== PROCESS SECTION ==================== */

.process {
    background: linear-gradient(135deg, #CFE8F3 0%, #E8F4FA 100%);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    margin: 0;
    border-top: 1px solid rgba(0, 119, 255, 0.15);
}

.process::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.process h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.process h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: auto;
    z-index: 1;
}

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

.timeline-step {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    transition: var(--transition);
}

.timeline-step.left {
    flex-direction: row;
}

.timeline-step.right {
    flex-direction: row-reverse;
}

.icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: none;
}

.timeline-step:hover .icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
}

.icon img {
    width: 55px;
    height: 55px;
    filter: brightness(0) invert(1);
    transition: transform 0.5s ease;
}

.timeline-step:hover .icon img {
    transform: scale(1.05);
}

.content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.timeline-step:hover .content {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d0d0d0;
}

.content h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* --- Responsive Timeline --- */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .process {
        padding: 5rem 1.5rem;
    }
    
    .process h2 {
        font-size: 2.4rem;
        margin-bottom: 3.5rem;
    }
    
    .timeline {
        gap: 3rem;
    }
    
    .timeline-step {
        gap: 2rem;
    }
    
    .icon {
        width: 85px;
        height: 85px;
    }
    
    .icon img {
        width: 48px;
        height: 48px;
    }
    
    .content {
        padding: 2rem;
    }
    
    .content h3 {
        font-size: 1.2rem;
    }
    
    .content p {
        font-size: 1rem;
    }
}

/* Tablet/Large Mobile (768px) */
@media (max-width: 768px) {
    .process {
        padding: 4rem 1.5rem;
    }
    
    .process h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .timeline {
        max-width: 100%;
        gap: 2.5rem;
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 40px;
        width: 2px;
    }
    
    .timeline-step {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .timeline-step.left,
    .timeline-step.right {
        flex-direction: row !important;
    }
    
    .icon {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin-left: -60px;
    }
    
    .icon img {
        width: 45px;
        height: 45px;
    }
    
    .content {
        padding: 1.8rem;
        flex: 1;
    }
    
    .content::before {
        display: block;
        left: -11px !important;
        right: auto !important;
    }
    
    .content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .process {
        padding: 3rem 1rem;
    }
    
    .process h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .timeline {
        padding-left: 50px;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 32px;
    }
    
    .timeline-step {
        gap: 1rem;
    }
    
    .icon {
        width: 65px;
        height: 65px;
        margin-left: -50px;
        border-width: 2px;
    }
    
    .icon img {
        width: 36px;
        height: 36px;
    }
    
    .content {
        padding: 1.5rem 1.2rem;
    }
    
    .content::before {
        width: 16px;
        height: 16px;
        left: -8px !important;
    }
    
    .content h3 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
        letter-spacing: 0.3px;
    }
    
    .content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .timeline-step:hover .icon {
        transform: scale(1.05) rotate(5deg);
    }
    
    .timeline-step:hover .content {
        transform: translateY(-4px) scale(1.01);
    }
}


/* Tarifs Section */
.tarifs {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 50%, #ffffff 100%);
    text-align: center;
    width: 100%;
    padding: 6rem 2rem;
    margin: 0;
    overflow: hidden;
}

.tarifs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 119, 255, 0.2), transparent);
}

.tarifs h1 {
    color: var(--text);
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.tarifs h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Container cartes */
.tarifs-container {
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2%;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Cartes */
.card-tarif {
    background: #fff;
    padding: 2.5rem 2rem;
    flex: 1 1 320px;
    max-width: 400px;
    border: 2px solid var(--border-primary);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 119, 255, 0.08);
    opacity: 1;
    position: relative;
    overflow: hidden;
}

.card-tarif:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 119, 255, 0.15);
    border-color: var(--primary);
}

.card-tarif h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.5px;
}

.card-tarif h3 {
    background: linear-gradient(135deg, #0077FF 0%, #0056CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    line-height: 1;
}

.card-tarif h3::after {
    content: '';
}

/* Liste */
.card-tarif ul {
    padding: 2rem 0;
    margin: 2rem 0;
    text-align: left;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.card-tarif ul li {
    list-style: none;
    margin: 1.1rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.card-tarif ul li:hover {
    color: var(--primary);
}

.card-tarif ul li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.card-tarif ul li strong {
    color: var(--primary);
    font-weight: 600;
}

/* Badge Populaire */
.badge-populaire {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

/* Carte Options premium */
.options-tarifs {
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    color: var(--text);
    border: 2px solid var(--primary);
    box-shadow: 0 6px 30px rgba(0, 119, 255, 0.12);
    position: relative;
    transform: none;
    overflow: hidden;
}

.options-tarifs:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 45px rgba(0, 119, 255, 0.2);
}

.options-tarifs h2 {
    color: var(--text);
}

.options-tarifs ul li {
    color: var(--text-light);
}

.options-tarifs ul li:hover {
    color: var(--primary);
}

.options-tarifs ul li::before {
    color: var(--primary);
}

.options-tarifs ul li strong {
    color: var(--primary);
    font-weight: 700;
}

/* Note finale */
.note-limitation {
    margin: 3rem auto 0;
    font-size: 1rem;
    max-width: 900px;
    color: var(--text-light);
    font-style: italic;
    background: var(--bg-lighter);
    border-left: 3px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.note-limitation:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1024px) {
    .options-tarifs {
        transform: scale(1);
    }
    
    .options-tarifs:hover {
        transform: translateY(-12px);
    }
}

@media (max-width: 768px) {
    .tarifs {
        padding: 4rem 1.5rem;
    }
    
    .tarifs h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .tarifs-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 0;
    }

    .card-tarif {
        max-width: 100%;
        width: 100%;
        padding: 2rem 1.5rem;
        transform: scale(1) !important;
        overflow: visible; /* Permet d'afficher tout le contenu */
        height: auto; /* Hauteur automatique */
        min-height: auto; /* Pas de hauteur minimale */
    }
    
    .options-tarifs {
        transform: scale(1) !important;
        max-width: 100%;
        width: 100%;
        overflow: visible;
        height: auto;
    }
    
    .card-tarif h2 {
        font-size: 1.6rem;
    }
    
    .card-tarif h3 {
        font-size: 2rem;
    }
    
    .card-tarif ul {
        margin-bottom: 1rem; /* Espace en bas de la liste */
    }
    
    .note-limitation {
        font-size: 0.95rem;
        padding: 1.2rem 1.5rem 1.2rem 2.5rem;
        margin: 2rem 0 0;
    }
    
    .note-limitation::before {
        font-size: 1.5rem;
        left: 0.8rem;
    }
}

@media (max-width: 576px) {
    .tarifs {
        padding: 3rem 1rem;
    }
    
    .tarifs h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .card-tarif {
        padding: 1.5rem 1.2rem;
        overflow: visible; /* Permet d'afficher tout le contenu */
        height: auto; /* Hauteur automatique */
        min-height: auto; /* Pas de hauteur minimale */
    }
    
    .card-tarif h2 {
        font-size: 1.4rem;
    }
    
    .card-tarif h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .card-tarif ul {
        margin-bottom: 1rem; /* Espace en bas de la liste */
    }
    
    .card-tarif ul li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
        margin: 0.8rem 0;
    }
    
    .badge-populaire {
        top: -12px;
        right: 15px;
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .note-limitation {
        font-size: 0.85rem;
        padding: 1rem 1.2rem 1rem 2.2rem;
        line-height: 1.6;
    }
}



/* ==================== PORTFOLIO SECTION ==================== */

.portfolio-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 6rem 5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    position: relative;
}

.portfolio-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 119, 255, 0.2), transparent);
}

.portfolio-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.portfolio-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}
        
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}
        
.project-card {
    cursor: pointer;
    position: relative;
    height: auto;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-primary);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
        
.project-image {
    height: auto;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}
.project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.02);
}
        
.project-image::before {
    content: "Image du projet";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
}
        
.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
        
.project-title {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 700;
}
        
.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex: 1;
    font-size: 0.95rem;
}

.see-more {
    height: auto;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: auto;
}

.see-more-button {
    background-color: transparent;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    max-width: 180px;
}

.see-more-button:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio-button-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Styles du Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.modal h3 {
  text-align: center;
  margin-top: 0;
  font-size: 1.8rem;
  color: #333;
}

.modal img {
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 6px;
  object-fit: cover;
}

.modal p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #000;
}

.modal a.btn-primary {
  display: inline-block;
  text-align: center;
  background-color: #0066ff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
  margin: 0 auto;
  display: block;
  max-width: 200px;
}

.modal a.btn-primary:hover {
  background-color: #0051cc;
}



        
/* Portfolio Responsive */

/* Large Tablet (1200px) */
@media (max-width: 1200px) {
    .portfolio-container {
        padding: 4rem 2rem;
    }
    
    .projects-grid {
        gap: 2rem;
    }
    
    .portfolio-title {
        font-size: 2.4rem;
    }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .portfolio-container {
        padding: 4rem 1.5rem;
    }
    
    .portfolio-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}
        
/* Tablet/Large Mobile (768px) */
@media (max-width: 768px) {
    .portfolio-container {
        padding: 3.5rem 1.5rem;
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .project-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .see-more-button {
        width: auto;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .modal {
        max-width: 90%;
        padding: 1.8rem;
    }
    
    .modal h3 {
        font-size: 1.5rem;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .portfolio-container {
        padding: 3rem 1rem;
    }
    
    .portfolio-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .portfolio-title::after {
        width: 50px;
        height: 3px;
        margin: 0.6rem auto 0;
    }
    
    .projects-grid {
        gap: 1.2rem;
        margin-top: 2rem;
        grid-template-columns: 1fr;
    }
    
    .project-card {
        border-radius: 12px;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .project-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .see-more-button {
        width: auto;
        max-width: 150px;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .portfolio-button-container {
        margin-top: 2rem;
    }
    
    .modal {
        max-width: 95%;
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .modal h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .modal img {
        margin: 1rem 0;
    }
    
    .modal p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .modal-close {
        top: 0.6rem;
        right: 1rem;
        font-size: 1.3rem;
    }
    
    .modal a.btn-primary {
        padding: 0.65rem 1.3rem;
        font-size: 0.9rem;
        max-width: 180px;
    }
}





/* CTA Section */

.cta-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0;
    border-top: 1px solid rgba(0, 119, 255, 0.15);
}

.vague-haut,
.vague-bas {
    display: none;
}

.cta-wrapper {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-container {
    max-width: 800px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 4rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-primary);
}

.cta-container:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.cta-container h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
}

.cta-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.cta-container p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.cta-benefit svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.cta-benefit span {
    color: var(--text-light);
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.cta-button:active {
    transform: translateY(0px);
    box-shadow: var(--shadow-md);
}

/* CTA Responsive */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .cta-wrapper {
        padding: 6rem 2rem;
    }
    
    .cta-container {
        padding: 3.5rem 2rem;
    }
    
    .cta-container h2 {
        font-size: 2rem;
    }
    
    .cta-container p {
        font-size: 1.1rem;
    }
    
    .cta-benefits {
        gap: 1.5rem;
    }
}

/* Tablet/Large Mobile (768px) */
@media (max-width: 768px) {
    .cta-wrapper {
        padding: 5rem 1.5rem;
    }
    
    .cta-container {
        padding: 3rem 1.8rem;
        border-radius: 20px;
    }
    
    .cta-container h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-container h2::after {
        width: 50px;
        margin: 0.6rem auto 0;
    }
    
    .cta-container p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }
    
    .cta-benefits {
        gap: 1.2rem;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .cta-benefit {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 1rem 2.2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 350px;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .cta-wrapper {
        padding: 4rem 1rem;
    }
    
    .cta-container {
        padding: 2.5rem 1.5rem;
        border-radius: 18px;
    }
    
    .cta-container h2 {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }
    
    .cta-container h2::after {
        width: 45px;
        height: 2.5px;
        margin: 0.5rem auto 0;
    }
    
    .cta-container p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .cta-benefits {
        gap: 1rem;
        margin-bottom: 1.8rem;
    }
    
    .cta-benefit {
        font-size: 0.9rem;
    }
    
    .cta-benefit svg {
        width: 18px;
        height: 18px;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }
    
    .cta-container:hover {
        transform: translateY(-4px) scale(1.01);
    }
}




/* Contact Section */

.contact {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.contact p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.3rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.contact-form button {
    padding: 1.1rem 2.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
}

.contact-form button span {
    position: relative;
    z-index: 1;
}

.contact-form button:active {
    transform: translateY(0px);
}

/* Contact Responsive */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .contact {
        padding: 5rem 2rem;
    }
    
    .contact h2 {
        font-size: 2.2rem;
    }
    
    .contact p {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-form {
        max-width: 550px;
    }
}

/* Tablet/Large Mobile (768px) */
@media (max-width: 768px) {
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .contact h2::after {
        width: 60px;
        margin: 0.8rem auto 0;
    }
    
    .contact p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-form {
        max-width: 100%;
        gap: 1.3rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 1.1rem 1.3rem;
        font-size: 0.95rem;
        border-radius: 15px;
    }
    
    .contact-form textarea {
        min-height: 140px;
    }
    
    .contact-form button {
        padding: 1.1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 350px;
        margin: 0.8rem auto 0;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .contact {
        padding: 3rem 1rem;
    }
    
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 0.7rem;
    }
    
    .contact h2::after {
        width: 50px;
        height: 2.5px;
        margin: 0.7rem auto 0;
    }
    
    .contact p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }
    
    .contact-form {
        gap: 1.3rem;
        max-width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 1.1rem 1.3rem;
        font-size: 1rem;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form textarea {
        min-height: 150px;
        resize: vertical;
    }
    
    .contact-form button {
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
        margin-top: 0.5rem;
        border-radius: 10px;
    }
    
    .contact-form button:hover {
        transform: translateY(-2px) scale(1.01);
    }
}


/* Footer Section */

.footer-legal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    color: #333;
    text-align: center;
    padding: 3rem 1rem 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.footer-legal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.footer-legal-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-legal-container ul li {
    position: relative;
}

.footer-legal-container ul li::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-legal-container ul li:hover::after {
    width: 100%;
}

.footer-legal-container ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal-container ul li a:hover {
    color: #0077FF;
    transform: translateY(-2px);
}

.footer-legal-container p {
    color: #666;
    font-size: 0.85rem;
    margin-top: 1rem;
    font-weight: 400;
}

/* Footer Responsive */

/* Tablet (768px) */
@media (max-width: 768px) {
    .footer-legal {
        padding: 2.5rem 1rem 1.8rem;
    }
    
    .footer-legal-container ul {
        gap: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-legal-container p {
        font-size: 0.8rem;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .footer-legal {
        padding: 2rem 1rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .footer-legal-container ul {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-legal-container ul li {
        text-align: center;
    }
    
    .footer-legal-container ul li::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-legal-container ul li a {
        font-size: 0.9rem;
    }
    
    .footer-legal-container p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

/* ==================== CUSTOM CURSOR ==================== */
.custom-cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--danger));
    background-size: 200% 100%;
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 2px 15px rgba(0, 119, 255, 0.6);
    animation: progressGradient 3s ease infinite;
}

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

/* ==================== ENHANCED ANIMATIONS ==================== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* ==================== UTILITY CLASSES ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Image loading effect */
img {
    opacity: 1; /* Default visible */
}

img.lazy-load {
    opacity: 0;
    animation: imageLoad 0.8s ease forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth hover transitions for all interactive elements */
a, button, .card, .project-card, .about-card, .stat-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.back-to-top:hover::before {
    width: 100px;
    height: 100px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.3);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.4);
}

.back-to-top:active {
    transform: translateY(0px) scale(1);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

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

/* ==================== TEXT HIGHLIGHT ANIMATION ==================== */
.highlight-text {
    background: linear-gradient(120deg, transparent 0%, transparent 50%, #FFE66D 50%, #FFE66D 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    transition: background-position 0.8s ease;
    padding: 0 4px;
}

.highlight-text.active {
    background-position: 0 0;
}

/* ==================== ENHANCED CARD SHINE EFFECT ==================== */
.card, .project-card, .about-card {
    position: relative;
    overflow: hidden;
}

.card::before, .project-card::before, .about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.card:hover::before, .project-card:hover::before, .about-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* ==================== FLOATING ACTION BUTTON ==================== */


/* ==================== SECTION DIVIDER ANIMATION ==================== */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: dividerShine 3s ease-in-out infinite;
}

@keyframes dividerShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* ==================== ENHANCED BUTTON GLOW ==================== */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* ==================== STAGGERED TEXT REVEAL ==================== */
.split-text {
    display: inline-block;
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charReveal 0.5s ease forwards;
}

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

/* ==================== ENHANCED HOVER GLOW FOR CARDS ==================== */
/* Box-shadow effects are already defined in individual hover states above */

/* ==================== LOADING SKELETON ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== SCROLL INDICATOR ARROW ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: scrollBounce 2.5s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.2);
    border: 2px solid rgba(0, 119, 255, 0.2);
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 119, 255, 0.3);
    border-color: rgba(0, 119, 255, 0.4);
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    filter: drop-shadow(0 2px 8px rgba(0, 119, 255, 0.3));
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(5px);
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ==================== ENHANCED HOVER EFFECTS ==================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==================== RIPPLE EFFECT ==================== */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* ==================== PAGE TRANSITION OVERLAY ==================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.page-transition-logo {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    animation: logoFade 1s ease-in-out infinite;
}

@keyframes logoFade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ==================== SECTION ENTRANCE ANIMATIONS ==================== */
section {
    opacity: 0;
    animation: sectionFadeIn 0.8s ease forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== ENHANCED LINK HOVER EFFECTS ==================== */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ==================== BUTTON HOVER LIFT ==================== */
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(-1px);
}

/* ==================== CARD STACKING EFFECT ==================== */
.card,
.project-card,
.about-card {
    will-change: transform;
}

/* ==================== SMOOTH FOCUS RING ==================== */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
    transition: outline 0.2s ease;
}

/* ==================== SELECTION STYLING ==================== */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* ==================== ANIMATED GRADIENT BACKGROUNDS ==================== */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

/* ==================== TOOLTIP STYLES ==================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

[data-tooltip]:hover::before {
    transform: translateX(-50%) translateY(-12px);
}

/* ==================== BADGE STYLES ==================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--accent);
}

.badge-warning {
    background: #FFB800;
}

.badge-danger {
    background: var(--danger);
}

/* ==================== PULSE ANIMATION FOR NOTIFICATIONS ==================== */
.pulse {
    animation: pulseAnimation 2s ease-in-out infinite;
}

@keyframes pulseAnimation {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ==================== SHAKE ANIMATION FOR ERRORS ==================== */
.shake {
    animation: shakeAnimation 0.5s ease;
}

@keyframes shakeAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

/* ==================== BOUNCE ANIMATION ==================== */
.bounce {
    animation: bounceAnimation 1s ease infinite;
}

@keyframes bounceAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==================== ROTATE ANIMATION ==================== */
.rotate {
    animation: rotateAnimation 2s linear infinite;
}

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

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 119, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hover-glow:hover::after {
    width: 300px;
    height: 300px;
}