/* ============================================
   ERTUNÇ MEDİKAL - Modern Medical Website
   ============================================ */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #06b6d4;
    --accent: #14b8a6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, #0c4a6e 0%, #0e7490 50%, #0f766e 100%);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-logo-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
    animation: logoBreathe 2.4s ease-in-out infinite;
}

.loader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes logoBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(14, 165, 233, 0.25);
        border-color: rgba(56, 189, 248, 0.35);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 60px rgba(14, 165, 233, 0.5);
        border-color: rgba(56, 189, 248, 0.7);
    }
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header.scrolled .nav-link {
    color: var(--dark);
}

.header.scrolled .nav-logo {
    color: var(--dark);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
    z-index: 1102;
    position: relative;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.logo-img--footer {
    height: 60px;
    border-radius: 12px;
}

.nav-logo:hover .logo-img,
.footer-logo:hover .logo-img {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu-head,
.nav-menu-contact,
.nav-menu .nav-menu-cta {
    display: none !important;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    z-index: 10;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1102;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.header.scrolled .nav-toggle span {
    background: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .header {
    z-index: 1200;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

#particleCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.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% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
    z-index: 2;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.15);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(20, 184, 166, 0.12);
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 140px 24px 100px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: inline;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1.2s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--white);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image {
    width: 400px;
    height: 400px;
    border-radius: var(--radius-xl);
    background: var(--gradient);
    padding: 4px;
    position: relative;
    z-index: 2;
}

.about-image-inner {
    width: 100%;
    height: 100%;
    background: var(--dark);
    border-radius: calc(var(--radius-xl) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.8;
}

.about-ring {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 2px dashed rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.about-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: floatCard 4s ease-in-out infinite;
}

.about-float-card i {
    width: 44px;
    height: 44px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.about-float-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.about-float-card span {
    font-size: 0.8rem;
    color: var(--gray);
}

.card-1 {
    top: 20px;
    right: -20px;
}

.card-2 {
    bottom: 40px;
    left: -30px;
    animation-delay: -2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-text {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-features {
    margin: 32px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 500;
    color: var(--dark-light);
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover .service-card-glow {
    opacity: 0.03;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    background: var(--white);
    overflow: hidden;
}

.products-slider {
    overflow: hidden;
    margin: 0 -12px;
}

.products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px;
}

.product-card {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    padding: 32px 24px;
    background: var(--light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-card span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.products-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.products-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--light);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.products-btn:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1);
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.why-us-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.why-us .section-tag {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary-light);
}

.why-us .section-title {
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.why-card {
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-6px);
}

.why-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.why-icon {
    width: 52px;
    height: 52px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--gradient);
    color: var(--white);
}

.why-card h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 80px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%23ffffff' fill-opacity='0.05'%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");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content .gradient-text {
    -webkit-text-fill-color: var(--white);
    background: none;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-desc {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.contact-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-social a:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.form-success.show {
    display: block;
}

.form-success i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-success p {
    color: var(--gray);
}

.contact-form.hidden {
    display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-newsletter h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ============================================
   ANIMATIONS (AOS-like)
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-40px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }

    .about-image {
        width: 320px;
        height: 320px;
    }

    .about-ring {
        width: 360px;
        height: 360px;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 16px;
    }

    .nav-logo .logo-img {
        height: 46px;
        max-width: 170px;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--dark);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
        z-index: 1201;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        visibility: hidden;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        pointer-events: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: var(--dark);
        z-index: 2;
    }

    .nav-menu-logo {
        height: 48px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
        border-radius: 10px;
    }

    .nav-menu-close {
        width: 46px;
        height: 46px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: var(--white);
        font-size: 1.3rem;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        flex-shrink: 0;
    }

    .nav-menu-close:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.35);
    }

    .nav-menu-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        list-style: none;
        padding: 12px 20px;
        margin: 0;
        flex: 0 0 auto;
        gap: 4px;
    }

    .nav-menu-list li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        width: 100%;
        color: rgba(255, 255, 255, 0.92) !important;
        background: transparent !important;
        padding: 16px 18px;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: var(--radius-md);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--white) !important;
        background: rgba(14, 165, 233, 0.15) !important;
    }

    .nav-menu-contact {
        display: flex !important;
        flex-direction: column;
        gap: 14px;
        margin: auto 20px 20px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        flex-shrink: 0;
    }

    .nav-menu-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.9rem;
        line-height: 1.5;
        text-decoration: none;
        transition: var(--transition);
    }

    a.nav-menu-contact-item:hover {
        color: var(--primary-light);
    }

    .nav-menu-contact-item i {
        width: 36px;
        height: 36px;
        background: rgba(14, 165, 233, 0.15);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-light);
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .nav-menu .nav-menu-cta {
        display: inline-flex !important;
        margin: 0 20px 28px;
        justify-content: center;
        flex-shrink: 0;
    }

    .nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
    }

    .header.scrolled .nav-toggle,
    .page-products .nav-toggle {
        background: rgba(15, 23, 42, 0.06);
    }

    .nav-toggle.active {
        opacity: 0;
        pointer-events: none;
    }

    .nav-toggle span {
        background: var(--white);
    }

    .header.scrolled .nav-toggle span,
    .page-products .nav-toggle span {
        background: var(--dark);
    }

    .nav-cta {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .about-image {
        width: 280px;
        height: 280px;
    }

    .about-ring {
        width: 320px;
        height: 320px;
    }

    .card-1 { right: 0; }
    .card-2 { left: 0; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 70px 0;
    }

    .hero-content {
        padding: 120px 24px 80px;
    }

    .hero-scroll {
        display: none;
    }
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
    color: var(--white);
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--dark);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ============================================
   FORM ERROR
   ============================================ */
.form-error {
    display: none;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-error.show {
    display: block;
}

/* ============================================
   PRODUCTS CTA (HOME)
   ============================================ */
.products-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.page-products .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.page-products .nav-link {
    color: var(--dark);
}

.page-products .nav-link:hover,
.page-products .nav-link.active {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.page-products .nav-toggle span {
    background: var(--dark);
}

.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--dark) 0%, #0c4a6e 100%);
    text-align: center;
}

.page-hero .section-tag {
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary-light);
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.catalog {
    padding-top: 60px;
    background: var(--light);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.catalog-search {
    flex: 1;
    min-width: 260px;
    max-width: 480px;
    position: relative;
}

.catalog-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.catalog-search input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: var(--transition);
}

.catalog-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.catalog-count {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: var(--white);
    color: var(--gray);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    color: var(--primary);
    border-color: rgba(14, 165, 233, 0.2);
}

.filter-btn.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.catalog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.15);
}

.catalog-card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 16px;
    transition: var(--transition);
}

.catalog-card:hover .catalog-card-icon {
    transform: scale(1.08) rotate(3deg);
}

.catalog-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 10px;
}

.catalog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.catalog-card-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.catalog-card-code {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-light);
    font-weight: 500;
    margin-bottom: 20px;
}

.catalog-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.catalog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.catalog-empty i {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.catalog-empty h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .back-to-top {
        bottom: 95px;
        right: 20px;
    }

    .whatsapp-float {
        right: 20px;
        bottom: 25px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .product-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 100%;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
