/* =============================================
   TEKALIO CI - STYLES PERSONNALISÉS
   ============================================= */

/* Variables CSS */
:root {
    --primary: #2344a1;
    --primary-dark: #1a3577;
    --primary-light: #3b5cc9;
    --secondary: #ace0a2;
    --tertiary: #fee080;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* Global overflow prevention */
*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}
div {
    overflow: hidden !important;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    padding: 0;
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 72px;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.logo-text {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(35, 68, 161, 0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(35, 68, 161, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.25rem;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* CTA Button */
.nav-cta {
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 68, 161, 0.3);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 68, 161, 0.4);
    color: white;
}

/* Hide desktop CTA on mobile */
@media (max-width: 1024px) {
    .nav-cta-desktop {
        display: none;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 1.5rem;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}
.hamburger::after {
    bottom: -6px;
}

.mobile-toggle.active .hamburger {
    background: transparent;
    animation: burgerToX 0.3s ease forwards;
}

@keyframes burgerToX {
    to {
        background: transparent;
    }
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    animation: rotate45 0.3s ease forwards;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
    animation: rotateNeg45 0.3s ease forwards;
}

@keyframes rotate45 {
    from {
        top: -6px;
    }
    to {
        top: 0;
        transform: rotate(45deg);
    }
}

@keyframes rotateNeg45 {
    from {
        bottom: -6px;
    }
    to {
        bottom: 0;
        transform: rotate(-45deg);
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    max-height: 0;
    overflow: hidden;
    z-index: 10000;
}

.mobile-menu.active {
    display: block !important;
    visibility: visible !important;
    max-height: 500px;
    padding: 1rem;
    opacity: 1;
    z-index: 10000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem;
    margin: 0.25rem 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.3s ease forwards;
}

.mobile-menu.active .nav-link {
    animation: fadeInLeft 0.4s ease forwards;
}

.mobile-menu.active .nav-link:nth-child(1) {
    animation-delay: 0.05s;
}
.mobile-menu.active .nav-link:nth-child(2) {
    animation-delay: 0.1s;
}
.mobile-menu.active .nav-link:nth-child(3) {
    animation-delay: 0.15s;
}
.mobile-menu.active .nav-link:nth-child(4) {
    animation-delay: 0.2s;
}
.mobile-menu.active .nav-link:nth-child(5) {
    animation-delay: 0.25s;
}
.mobile-menu.active .nav-link:nth-child(6) {
    animation-delay: 0.3s;
}
.mobile-menu.active .nav-link:nth-child(7) {
    animation-delay: 0.35s;
}

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

.mobile-menu .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-menu .nav-link.active {
    background: rgba(35, 68, 161, 0.1);
    color: var(--primary);
}

.mobile-menu .nav-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.4s ease forwards;
    animation-delay: 0.4s;
}

/* Responsive Header */
@media (max-width: 1024px) {
    .nav-menu,
    .nav-cta-desktop {
        display: none;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        left: auto !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .header-container {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .logo-img {
        height: 3rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

/* Body padding for fixed header */
body {
    padding-top: 70px;
    overflow-x: hidden;
    max-width: 100vw;
}

/* =============================================
   RESPONSIVE MOBILE - 100% WIDTH
   ============================================= */

/* Mobile base styles */
@media (max-width: 768px) {
    /* Empêcher le débordement horizontal */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Toutes les sections à 100% */
    section,
    .section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }

    /* Tous les conteneurs à 100% */
    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: hidden !important;
    }

    /* Grilles à 100% */
    .grid,
    .grid-cols-1,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    /* Row flexible */
    .row,
    .flex,
    .flex-col,
    .flex-row {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Toutes les divs à 100% */
    div {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Images responsives */
    img {
        max-width: 150px !important;
        height: auto !important;
    }

    /* Keep project images full width on mobile */
    #realisations img {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }

    /* Typography mobile */
    h1 {
        font-size: 2rem !important;
        text-align: center;
        word-wrap: break-word !important;
    }

    h2 {
        font-size: 1.75rem !important;
        text-align: center;
        word-wrap: break-word !important;
    }

    h3 {
        font-size: 1.5rem !important;
        text-align: center;
        word-wrap: break-word !important;
    }

    p {
        text-align: center;
        word-wrap: break-word !important;
    }

    /* Buttons full width */
    .btn,
    button,
    a.btn {
        max-width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Cards full width */
    .card,
    .glass-card,
    .service-card,
    .saas-card,
    .realisation-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    /* Flexbox mobile */
    .flex-col > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Form elements full width */
    input,
    textarea,
    select,
    form {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Padding global mobile */
    .py-4,
    .py-8,
    .py-12,
    .py-16,
    .py-20,
    .py-24,
    .py-32 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Gap mobile */
    .gap-4,
    .gap-6,
    .gap-8,
    .gap-12 {
        gap: 1.5rem !important;
    }

    /* Hero mobile */
    .hero-bg,
    .hero-gradient {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Footer mobile */
    footer {
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Grid items */
    .grid > * {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* STATS Section - prevent overflow */
#stats,
#stats *,
.stats-section,
section.stats {
    overflow: hidden !important;
    overflow-y: hidden !important;
    max-width: 100vw !important;
    height: auto !important;
}

#stats .absolute,
.stats-section .absolute {
    max-width: 50vw !important;
    overflow: hidden !important;
}

#stats .absolute > *,
.stats-section .absolute > * {
    max-width: 100% !important;
}

/* Mobile blur elements fix */
@media (max-width: 768px) {
    .blur-3xl,
    .blur-2xl,
    .blur-xl {
        max-width: 80% !important;
        width: 80% !important;
    }

    .blur-3xl {
        filter: blur(40px) !important;
    }

    /* POURQUOI NOUS section fix */
    .bg-white .absolute {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }

    .bg-white .relative {
        margin-top: 2rem;
    }

    /* POURQUOI NOUS - items visibility on small screens */
    @media (max-width: 768px) {
        .bg-white section .text-gray-600 {
            color: #4b5563 !important;
        }

        .bg-white section .text-gray-900 {
            color: #111827 !important;
        }
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .py-32,
    .py-24 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Ensure all containers are responsive */
* {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container max-width */
.container,
.container-lg,
.container-md {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* =============================================
   TYPOGRAPHIE
   ============================================= */
body {
    font-family:
        "Plus Jakarta Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* =============================================
   ANIMATIONS
   ============================================= */
html {
    scroll-behavior: smooth;
}

/* Hero Gradient Animation */
.hero-bg {
    background: linear-gradient(-45deg, #2344a1, #1a3577, #3b5cc9, #2344a1);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Shared inner-page hero */
.about-hero {
    --about-hero-wave-fill: #ffffff;
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0) 38%
        ),
        linear-gradient(
            120deg,
            #08163f 0%,
            #08163f 54%,
            #12307c 54%,
            #12307c 100%
        );
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 36%
    );
    pointer-events: none;
    z-index: -1;
}

.about-hero__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}

.about-hero__orb--left {
    width: 340px;
    height: 340px;
    left: -120px;
    bottom: -140px;
    background: rgba(172, 224, 162, 0.5);
}

.about-hero__orb--right {
    width: 300px;
    height: 300px;
    right: -80px;
    top: -100px;
    background: rgba(254, 224, 128, 0.44);
}

.about-hero__content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 3.75rem;
}

.about-hero__title {
    color: #ffffff;
    font-size: clamp(2rem, 4.7vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.06;
    margin-bottom: 1.1rem;
}

.about-hero__subtitle {
    margin: 0 auto;
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.98rem, 2.2vw, 1.25rem);
    line-height: 1.65;
}

.about-hero__divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    overflow: hidden;
}

.about-hero__wave {
    width: 100%;
    height: 3.8rem;
    display: block;
    stroke: none;
    overflow: hidden;
    margin-bottom: -1px;
}

.about-hero__wave-fill {
    fill: var(--about-hero-wave-fill);
}

@media (min-width: 768px) {
    .about-hero {
        min-height: 66vh;
    }

    .about-hero__wave {
        height: 6.4rem;
    }
}

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

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Animated shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: pulse 8s ease-in-out infinite;
}

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

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

.shape-3 {
    width: 200px;
    height: 200px;
    background: #3b82f6;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* =============================================
   GLASSMORPHISM
   ============================================= */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar-blur {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* =============================================
   CARDS & HOVER EFFECTS
   ============================================= */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(35, 68, 161, 0.15);
}

.service-card .icon-box {
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), #3b82f6);
}

.service-card:hover .icon-box svg {
    color: white !important;
}

/* Saas Card */
.saas-card {
    position: relative;
    overflow: hidden;
}

.saas-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* Realisation Card */
.realisation-card {
    position: relative;
    overflow: hidden;
}

.realisation-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 68, 161, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realisation-card:hover .overlay {
    opacity: 1;
}

.realisation-card img {
    transition: transform 0.5s ease;
}

.realisation-card:hover img {
    transform: scale(1.1);
}

/* JSON cards media: show the full image without cropping */
.json-card-media {
    overflow: visible;
}

.json-card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: initial !important;
    display: block;
}

.saas-details {
    margin-top: 1rem;
}

.saas-details__summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.saas-details__summary::-webkit-details-marker {
    display: none;
}

.saas-details__summary::after {
    content: "+";
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(35, 68, 161, 0.25);
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1;
}

.saas-details[open] .saas-details__summary::after {
    content: "-";
}

.saas-details__content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(172, 224, 162, 0.3);
}

/* =============================================
   SECTIONS
   ============================================= */
.section-pattern {
    background-color: var(--gray-50);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232344a1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =============================================
   COUNTER / STATS
   ============================================= */
.counter-item {
    position: relative;
}

.counter-item::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* =============================================
   UTILITAIRES
   ============================================= */
.gradient-text {
    background: linear-gradient(
        135deg,
        var(--primary),
        #3b82f6,
        var(--secondary)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

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

/* =============================================
   PAGE TRANSITIONS
   ============================================= */
.page-transition {
    animation: fadeIn 0.5s ease;
}

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

/* =============================================
   LOADING
   ============================================= */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* =============================================
   BLOG
   ============================================= */
.blog-card {
    position: relative;
    overflow: hidden;
}

.blog-card-media {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-card-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
}

.blog-detail-media {
    max-height: 420px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-detail-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
}

@media (max-width: 768px) {
    .blog-card-media {
        height: 210px;
        min-height: 210px;
        max-height: 210px;
    }
}

/* =============================================
   CONTACT FORM
   ============================================= */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(35, 68, 161, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

/* =============================================
   FOOTER
   ============================================= */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link:hover {
    color: white !important;
}
