/* ========================================
   DR. ALESSANDRO MAROLLA - PREMIUM CSS
   Clinica Privata di Lusso Style
======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --color-primary: #0f172a;
    --color-secondary: #020617;
    --color-accent: #0ea5e9;
    --color-accent-2: #14b8a6;
    --color-gold: #d4af37;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-dark: #1e293b;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;

    /* Sizing */
    --header-height: 80px;
    --container-max: 1280px;

    /* Effects */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(14, 165, 233, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-premium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

body.no-scroll {
    overflow: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

strong {
    color: var(--color-text);
    font-weight: 600;
}

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

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
    animation: pulse 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, border-color 0.3s ease;
}

.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--color-gold);
}

@media (hover: hover) and (pointer: fine) {
    .cursor { opacity: 1; }
    body { cursor: none; }
    a, button, input, textarea, select { cursor: none; }
}

/* ===== HEADER & NAVBAR ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-premium);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--color-border);
}

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

.navbar {
    height: 100%;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    z-index: 1001;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 1.25rem;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
}

.btn::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: 0.5s;
}

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

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        var(--gradient-dark);
    animation: gradientShift 10s ease infinite;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.hero-particles span:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 50%; top: 60%; animation-delay: 1s; }
.hero-particles span:nth-child(5) { left: 60%; top: 30%; animation-delay: 3s; }
.hero-particles span:nth-child(6) { left: 70%; top: 70%; animation-delay: 5s; }
.hero-particles span:nth-child(7) { left: 80%; top: 20%; animation-delay: 2.5s; }
.hero-particles span:nth-child(8) { left: 85%; top: 50%; animation-delay: 1.5s; }
.hero-particles span:nth-child(9) { left: 40%; top: 90%; animation-delay: 3.5s; }
.hero-particles span:nth-child(10) { left: 15%; top: 50%; animation-delay: 4.5s; }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    animation: pulse 3s ease-in-out infinite;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-title {
    margin-bottom: var(--space-md);
}

.hero-greeting {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.hero-name {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--color-text);
    margin-bottom: var(--space-md);
    min-height: 2em;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
}

.hero-img {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.hero-image-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2;
}

.hero-image-badge i {
    color: var(--color-accent);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    color: var(--color-accent);
}

.floating-card.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 2s;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    animation: fadeInUp 1s ease 1.5s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease infinite;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

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

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: var(--space-lg);
    right: -30px;
    background: var(--gradient-accent);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-features {
    display: grid;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.feature-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    margin: 0;
}

.about-quote {
    position: relative;
    padding: var(--space-lg);
    background: rgba(14, 165, 233, 0.05);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: var(--space-lg);
}

.about-quote i {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.3;
}

.about-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.about-quote cite {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-style: normal;
    font-weight: 600;
}

/* ===== SPECIALIZATIONS ===== */
.specializations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.spec-card {
    position: relative;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-premium);
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-premium);
}

.spec-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.spec-card.featured {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.spec-card.featured::before {
    background: var(--gradient-gold);
}

.spec-icon {
    width: 80px;
    height: 80px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md) auto;
    transition: var(--transition-base);
    overflow: hidden;
}

.spec-icon i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.spec-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.spec-card:hover .spec-icon {
    background: var(--gradient-accent);
}

.spec-card:hover .spec-icon i {
    color: var(--color-primary);
}

.spec-card h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.spec-card > p {
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.spec-list {
    margin-bottom: var(--space-sm);
}

.spec-list li {
    position: relative;
    padding-left: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.spec-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
}

.spec-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-badge.gold {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
}

/* ===== TECHNIQUES ===== */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.technique-card {
    position: relative;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-premium);
    text-align: center;
}

.technique-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.technique-card.premium {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-color: rgba(14, 165, 233, 0.3);
}

.technique-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.25rem 0.75rem;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.technique-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.technique-icon i {
    font-size: 2rem;
    color: var(--color-primary);
}

.technique-card h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.technique-card h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.technique-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: var(--space-sm) auto var(--space-md);
    display: block;
    border-radius: var(--radius-md);
}

.technique-img-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: block;
    border: 3px solid var(--color-accent);
}

.technique-card > p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.technique-benefits {
    text-align: left;
}

.technique-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.technique-benefits i {
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        var(--gradient-primary);
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.stat-card .stat-icon i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card .stat-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.stat-card .stat-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 var(--space-md);
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: var(--space-sm);
    left: var(--space-md);
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.2;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-md);
}

.testimonial-rating i {
    color: var(--color-gold);
    font-size: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.author-info strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.testimonial-arrow {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--color-text);
}

.testimonial-arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.testimonials-dots {
    display: flex;
    gap: var(--space-xs);
}

.testimonials-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.testimonials-dots .dot.active {
    background: var(--color-accent);
    width: 30px;
    border-radius: 5px;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.contact-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(14, 165, 233, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.contact-card h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-link {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.contact-link:hover {
    color: var(--color-accent-2);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.contact-form {
    display: grid;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    padding-top: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-base);
}

.form-group textarea ~ label {
    top: 1.5rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: 0.5rem;
    transform: none;
    font-size: 0.75rem;
    color: var(--color-accent);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-accent);
}

.checkbox-group label {
    position: static;
    transform: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-main {
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.footer-links h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.footer-links ul li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: var(--space-xs);
}

.footer-bottom {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 999;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition-base);
}

.whatsapp-float i {
    font-size: 1.75rem;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

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

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

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

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }
    .section-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { order: -1; }
    .about-img { margin: 0 auto; }
    .about-features { max-width: 500px; margin: var(--space-lg) auto; }
    .about-quote { text-align: left; }
    .specializations-grid, .techniques-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px;
        height: 100vh; background: var(--color-secondary);
        flex-direction: column; justify-content: center; align-items: center;
        gap: var(--space-lg); transition: var(--transition-premium);
        border-left: 1px solid var(--color-border);
    }
    .nav-menu.active { right: 0; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .hero { padding-top: calc(var(--header-height) + var(--space-xl)); }
    .hero-stats { flex-direction: column; gap: var(--space-md); }
    .specializations-grid, .techniques-grid, .stats-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { max-width: 100%; }
    .footer-social { justify-content: center; }
    .footer-bottom .container { flex-direction: column; gap: var(--space-xs); text-align: center; }
    .floating-card { display: none; }
    .experience-badge { right: 50%; transform: translateX(50%); bottom: -30px; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-sm); }
    .section { padding: var(--space-2xl) 0; }
    .btn-lg { padding: 0.875rem 1.5rem; font-size: 0.95rem; }
    .hero-name { font-size: 2.5rem; }
    .stat-card .stat-value { font-size: 2.5rem; }
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-premium);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(14, 165, 233, 0.1);
    border-bottom: 1px solid var(--color-border);
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: var(--space-lg);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: var(--space-md) 0 var(--space-sm);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.modal-body ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.modal-body li {
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    padding-left: var(--space-sm);
}

.modal-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
}

.modal-body strong {
    color: var(--color-text);
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

/* Button More */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    margin-top: var(--space-sm);
    background: transparent;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-full);
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-more:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-more i {
    font-size: 0.75rem;
    transition: var(--transition-base);
}

.btn-more:hover i {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
