/* ==========================================================================
   STYLE SHEET - DR. OUSSAMA ACHTOUT (DOC USHA)
   Aesthetic Medicine & Cosmetology
   Theme: Dark Luxury (Black, Carbon, Silver, White)
   ========================================================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    --bg-black: #000000;
    --bg-carbon: #080808;
    --bg-dark-gray: #121212;
    --bg-card: #0c0c0e;
    --text-pure: #ffffff;
    --text-silver: #e0e0e0;
    --text-gray: #a0a0a5;
    --text-muted: #66666e;
    
    --accent-silver: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.06);
    --accent-glow-strong: rgba(255, 255, 255, 0.15);
    
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --whatsapp: #25D366;
    --whatsapp-dark: #1eaf53;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.04);
    
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-silver);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-pure);
}

em {
    font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    color: var(--text-pure);
    position: relative;
    display: inline-block;
}

em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ========== GLOBAL UTILITIES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-carbon);
}

.section-black {
    background-color: var(--bg-black);
}

/* Section Tag & Headers */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-silver);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.section-tag i {
    font-size: 0.7rem;
    color: var(--text-pure);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 300;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.6s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ========== PRELOADER VIDEO ========== */
.hide-preloader #preloader {
    display: none !important;
}

#preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.preloader-skip {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInSkip 2s ease forwards 1s;
}

.preloader-skip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

/* ========== FLOATING WHATSAPP BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: var(--text-pure);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 998;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--whatsapp-dark);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--whatsapp);
    animation: pulseRing 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--text-pure);
    color: var(--bg-black);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #eaeaea;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-pure);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--text-pure);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--text-pure);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-full {
    width: 100%;
    padding: 16px;
}

/* ========== HEADER & NAVBAR ========== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 18px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo brand styled */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: var(--text-gray);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-pure);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-pure);
    transition: var(--transition);
}

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

.nav-cta {
    display: inline-block;
}

/* Mobile toggle Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-pure);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

/* 3D background effects */
.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--text-silver);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #ffffff;
    font-size: 0.75rem;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-title span {
    display: block;
}

.hero-title .name-highlight {
    font-weight: 300;
}

.hero-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 38px;
    max-width: 520px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1;
}

.stat-value span {
    font-size: 1.5rem;
    font-weight: 300;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.stat-sep {
    width: 1px;
    height: 45px;
    background-color: var(--border);
}

/* Hero 3D Card Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-3d-card-wrap {
    width: 380px;
    height: 380px;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
}

.hero-3d-card {
    width: 280px;
    height: 280px;
    background: rgba(12, 12, 14, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 2;
    transform: rotateY(-10deg) rotateX(10deg);
    animation: float3dCard 6s ease-in-out infinite;
    transform-style: preserve-3d;
    padding: 30px;
}

@keyframes float3dCard {
    0%, 100% {
        transform: rotateY(-10deg) rotateX(10deg) translateY(0);
    }
    50% {
        transform: rotateY(5deg) rotateX(-5deg) translateY(-15px);
    }
}

.hero-3d-logo {
    width: 160px;
    height: 160px;
    transform: translateZ(50px);
    transition: var(--transition);
}

.hero-3d-logo svg {
    width: 100%;
    height: 100%;
}

.hero-3d-sub {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-gray);
    text-transform: uppercase;
    transform: translateZ(30px);
}

.hero-orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-a {
    width: 320px;
    height: 320px;
    animation: spinOrbit 25s linear infinite;
}

.orbit-b {
    width: 380px;
    height: 380px;
    animation: spinOrbit 35s linear infinite reverse;
}

.orbit-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-pure);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #ffffff;
}

@keyframes spinOrbit {
    100% { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
}

.mouse-scroll {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    position: relative;
}

.mouse-scroll::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background-color: var(--text-pure);
    border-radius: 3px;
    animation: mouseScroll 2s infinite ease-in-out;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* ========== ABOUT SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.about-3d-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.about-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #101012, #202025);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    transform-style: preserve-3d;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: var(--transition);
}

.about-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #0e0e10 0%, #1c1c22 100%);
}

.about-photo-fallback i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-photo-fallback h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.about-photo-fallback p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hover tilt effect logic from JS will drive transform, but defaults: */
.about-3d-frame:hover .about-img-placeholder {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
}

.about-badge {
    position: absolute;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transform: translateZ(40px);
    transition: var(--transition);
}

.about-badge i {
    font-size: 1.2rem;
    color: var(--text-pure);
}

.about-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-pure);
}

.badge-a {
    top: 30px;
    right: -25px;
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-b {
    bottom: 30px;
    left: -25px;
    animation: floatBadge 4s ease-in-out infinite alternate-reverse 1s;
}

@keyframes floatBadge {
    0% { transform: translateZ(40px) translateY(0); }
    100% { transform: translateZ(40px) translateY(-10px); }
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-name {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.about-title-sub {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.about-bio {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 300;
}

.about-bio strong {
    color: var(--text-pure);
    font-weight: 500;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-feat-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-pure);
    font-size: 1rem;
}

.about-feat-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feat-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    perspective: 1000px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.service-glow-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    top: 0;
    left: 0;
    z-index: 1;
}

.service-card:hover .service-glow-effect {
    opacity: 1;
}

.service-icon-box {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-pure);
    margin-bottom: 24px;
    transition: var(--transition);
    transform: translateZ(20px);
}

.service-card:hover .service-icon-box {
    background-color: var(--text-pure);
    color: var(--bg-black);
    transform: translateZ(30px) scale(1.05);
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 14px;
    transform: translateZ(20px);
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
    transform: translateZ(10px);
}

.service-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-pure);
    opacity: 0.8;
    transform: translateZ(15px);
}

.service-link i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-link {
    opacity: 1;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ========== TARIF CARDS & PRICING ========== */
.tarif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    perspective: 1000px;
}

.tarif-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.tarif-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.tarif-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tarif-card-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1.3;
}

.tarif-sub {
    font-weight: 400;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Tarif list items with dotted connector */
.tarif-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.tarif-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.tarif-list li:last-child {
    border-bottom: none;
}

.tarif-list li:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--radius-sm);
}

.tarif-name {
    font-size: 0.88rem;
    color: var(--text-silver);
    font-weight: 400;
    white-space: nowrap;
}

.tarif-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
    min-width: 20px;
    margin-bottom: 4px;
}

.tarif-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-pure);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.tarif-price small {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 1px;
    margin-left: 2px;
}

.highlight-price {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* CTA button on tarif card */
.tarif-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-pure);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
    margin-top: auto;
}

.tarif-cta:hover {
    background-color: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.tarif-cta i {
    font-size: 1.1rem;
}

/* Premium card variant */
.tarif-card-premium {
    background: linear-gradient(145deg, #0e0e12, #16161c);
    border-color: rgba(200, 170, 110, 0.15);
}

.tarif-card-premium:hover {
    border-color: rgba(200, 170, 110, 0.35);
    box-shadow: 0 10px 30px rgba(200, 170, 110, 0.08);
}

.tarif-card-premium .service-icon-box {
    background: rgba(200, 170, 110, 0.08);
    border-color: rgba(200, 170, 110, 0.2);
    color: #c8aa6e;
}

.tarif-card-premium:hover .service-icon-box {
    background: #c8aa6e;
    color: var(--bg-black);
}

.tarif-card-premium .highlight-price {
    background: rgba(200, 170, 110, 0.1);
    border-color: rgba(200, 170, 110, 0.25);
    color: #dcc48e;
}

.tarif-premium-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #c8aa6e, #a38a4e);
    color: #0e0e12;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tarif-premium-badge i {
    font-size: 0.65rem;
}

/* Chirurgie sub-header spacing */
.tarif-chirurgie-header {
    margin-top: 80px;
}

/* Surgery grid — 2 columns side by side */
.tarif-surgery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.tarif-card-wide {
    /* inherits tarif-card styles */
}

/* ========== SWIPE GALLERY (3:4 Ratio) ========== */
.gallery {
    overflow: hidden;
}

.gallery-container {
    max-width: 100%;
    padding: 0 40px;
    position: relative;
}

.swiper-gallery {
    width: 100%;
    padding: 50px 0;
    overflow: visible !important;
}

.swiper-slide-gallery {
    width: 290px;
    height: 387px; /* 3:4 ratio based on width 290px */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-fast);
}

.swiper-slide-active {
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.swiper-slide-gallery:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.gallery-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.gallery-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-pure);
    font-family: 'Inter', sans-serif;
}

/* Swiper Pagination and Navigation */
.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.swiper-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--bg-card);
    color: var(--text-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.swiper-btn:hover {
    background-color: var(--text-pure);
    color: var(--bg-black);
    border-color: var(--text-pure);
}

.swiper-pagination-gallery {
    position: static !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    margin: 0 6px !important;
    transition: var(--transition-fast) !important;
}

.swiper-pagination-bullet-active {
    background: var(--text-pure) !important;
    transform: scale(1.2);
}

/* ========== WHY CHOOSE US ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.why-card:hover .why-num {
    color: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.why-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-pure);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.why-card:hover .why-icon-box {
    background-color: var(--text-pure);
    color: var(--bg-black);
}

.why-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 300;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info Column */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: rgba(12, 12, 14, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-fast);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item-link {
    cursor: pointer;
}

.contact-item-link:hover {
    transform: translateX(6px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text-pure);
    transition: var(--transition-fast);
}

.contact-item-link:hover .contact-icon {
    background-color: var(--text-pure);
    color: var(--bg-black);
    border-color: var(--text-pure);
}

.contact-detail h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Map frame styling */
.contact-map-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 220px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.contact-map-wrap:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.contact-map-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(120%);
    pointer-events: none;
}

/* Contact Form Column */
.contact-form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 44px 40px;
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-form-card h3 i {
    color: var(--whatsapp);
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-silver);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-pure);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-black);
    color: var(--text-silver);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--text-pure);
    background-color: rgba(255, 255, 255, 0.04);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--bg-carbon);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-svg {
    height: 38px;
    width: auto;
}

.footer-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.footer-social-link:hover {
    background-color: var(--text-pure);
    color: var(--bg-black);
    border-color: var(--text-pure);
    transform: translateY(-3px);
}

.footer-links-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links-box li {
    margin-bottom: 12px;
}

.footer-links-box a {
    font-size: 0.82rem;
    color: var(--text-gray);
    font-weight: 300;
}

.footer-links-box a:hover {
    color: var(--text-pure);
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-info li {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.4;
    align-items: flex-start;
    font-weight: 300;
}

.footer-contact-info i {
    font-size: 0.85rem;
    color: var(--text-pure);
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-dev-link {
    color: var(--text-silver);
    font-weight: 500;
}

.footer-dev-link:hover {
    color: var(--text-pure);
    text-decoration: underline;
}

/* ========== SCROLL ANIMATIONS ========== */
[data-animate] {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* ========== RESPONSIVE - DESKTOP / LARGE TABLET (1024px) ========== */
@media (max-width: 1024px) {
    .section {
        padding: 90px 0;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    .hero-container {
        gap: 40px;
    }
    .hero-3d-card-wrap {
        width: 320px;
        height: 320px;
    }
    .hero-3d-card {
        width: 240px;
        height: 240px;
    }
    .hero-3d-logo {
        width: 130px;
        height: 130px;
    }
    .orbit-a { width: 280px; height: 280px; }
    .orbit-b { width: 320px; height: 320px; }
    
    /* Grid adjustments */
    .about-grid {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Tarif grids — stay 2 cols on 1024 */
    .tarif-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tarif-surgery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-grid {
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
        gap: 30px;
    }
    .footer-links-box:nth-child(4) {
        display: none; /* Hide double link lists to fit layout */
    }
}

/* ========== RESPONSIVE - TABLET (768px) ========== */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Navigation drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-carbon);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.05rem;
    }
    
    .nav-cta {
        display: none; /* Hide button in header, will appear in nav drawer or contact form */
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hamburger Active states */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero layout */
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 70px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none; /* Hide visual orbital card on tablet/mobile hero to focus on content */
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-visual {
        order: -1; /* Display portrait above text */
    }
    
    .about-name {
        text-align: center;
    }
    
    .about-title-sub {
        text-align: center;
    }
    
    .about-badge {
        display: none; /* Hide floating badges to avoid screen clutter on smaller screens */
    }
    
    /* Tarif grids — 1 col on tablet */
    .tarif-grid,
    .tarif-surgery-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-contact-info li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========== RESPONSIVE - MOBILE (480px & smaller) ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 55px 0;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .section-subtitle {
        font-size: 0.88rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.1rem;
        letter-spacing: -1px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-sep {
        width: 60px;
        height: 1px;
    }
    
    /* About list */
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Services / Why us / Tarifs */
    .services-grid, .why-grid {
        grid-template-columns: 1fr;
    }
    .tarif-grid,
    .tarif-surgery-grid {
        grid-template-columns: 1fr;
    }
    .tarif-card {
        padding: 28px 20px;
    }
    .tarif-name {
        white-space: normal;
    }
    .tarif-chirurgie-header {
        margin-top: 56px;
    }
    
    .service-card {
        padding: 30px 24px;
    }
    
    .why-card {
        padding: 30px 24px;
    }
    
    /* Swiper Slider width adjust */
    .swiper-slide-gallery {
        width: 250px;
        height: 333px; /* 3:4 ratio */
    }
    
    /* Contact Card & Form padding */
    .contact-card {
        padding: 24px;
    }
    
    .contact-form-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}
