:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --gold: #f0c040;
    --gold-light: #fff8e1;
    --gold-deep: #c9a84c;
    --gold-dark: #8a7233;
    --gold-glow: rgba(240, 192, 64, 0.25);
    --blue-deep: #1a2b6b;
    --purple-deep: #3a1a6b;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(240, 192, 64, 0.2);
    --border-soft: rgba(240, 192, 64, 0.12);
    --text-primary: #f5f5f7;
    --text-secondary: #a8a8b3;
    --text-muted: #6b6b78;
    --whatsapp: #25d366;
    --whatsapp-hover: #1ebe5d;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-gold: 0 0 40px rgba(240, 192, 64, 0.3);
    --shadow-glow: 0 0 30px rgba(240, 192, 64, 0.5);
    --font-main: 'Heebo', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    cursor: none;
}

/* ===== Layered atmospheric background ===== */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(240, 192, 64, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 85% 30%, rgba(58, 26, 107, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 70% 85%, rgba(26, 43, 107, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 25% 90%, rgba(240, 192, 64, 0.12) 0%, transparent 50%);
    animation: meshDrift 75s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-3%, 2%) scale(1.05); }
    66% { transform: translate(2%, -3%) scale(0.98); }
    100% { transform: translate(-2%, -2%) scale(1.03); }
}

.bg-mesh-2 {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(240, 192, 64, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 60% 40% at 90% 70%, rgba(58, 26, 107, 0.2) 0%, transparent 50%);
    animation: meshDrift 90s ease-in-out infinite alternate-reverse;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gold);
    top: -200px;
    right: -100px;
    animation: blobFloat1 65s ease-in-out infinite;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: #2540a0;
    bottom: -250px;
    left: -150px;
    animation: blobFloat2 80s ease-in-out infinite;
    opacity: 0.22;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: #5a2a8a;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobFloat3 70s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-150px, 200px) scale(1.15); }
    66% { transform: translate(100px, 100px) scale(0.9); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(200px, -150px) scale(1.1); }
    66% { transform: translate(-100px, -250px) scale(0.95); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-30%, -70%) scale(1.2); }
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 15px var(--gold), 0 0 30px rgba(240, 192, 64, 0.5);
    transition: transform 0.15s ease, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(240, 192, 64, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-dot.hover {
    width: 16px;
    height: 16px;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.1);
}

@media (max-width: 968px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Container ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    color: var(--gold);
    font-size: 1.6rem;
    text-shadow: 0 0 20px var(--gold-glow);
}

.logo span {
    color: var(--gold);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

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

.nav-cta {
    background: var(--whatsapp);
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: #fff !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform-origin: center;
}

.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);
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
        order: -1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-right: 1px solid var(--border-soft);
        padding: 24px;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: none;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

@media (max-width: 968px) { .btn { cursor: pointer; } }

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-deep) 100%);
    color: #0a0a0f;
    box-shadow: 0 6px 24px rgba(240, 192, 64, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(240, 192, 64, 0.6), 0 12px 40px rgba(240, 192, 64, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(240, 192, 64, 0.3);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5), 0 12px 40px rgba(37, 211, 102, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(-100%);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(240, 192, 64, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(58, 26, 107, 0.18) 0%, transparent 50%);
    pointer-events: none;
    will-change: transform;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    will-change: transform;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(240, 192, 64, 0.08);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ===== Gradient text utility ===== */
.gradient-text {
    background: linear-gradient(135deg, #f0c040 0%, #fff8e1 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: wordIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: 0 0.18em 0 0;
}

.hero h1 .word.gold {
    background: linear-gradient(135deg, #f0c040 0%, #fff8e1 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(240, 192, 64, 0.35));
}

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

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Page Header (sub-pages) ===== */
.page-header {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f0c040 0%, #fff8e1 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 30px rgba(240, 192, 64, 0.25));
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Section ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    display: block;
    text-shadow: 0 0 12px rgba(240, 192, 64, 0.4);
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f0c040 0%, #fff8e1 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 28px rgba(240, 192, 64, 0.2));
}

/* ===== Stats ===== */
.stats {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    background: var(--surface-hover);
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #f0c040 0%, #fff8e1 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 16px rgba(240, 192, 64, 0.3));
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .stat-card { padding: 28px 20px; }
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 36px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border);
    background: var(--surface-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card:hover::before {
    opacity: 1;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.18), rgba(240, 192, 64, 0.05));
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: var(--gold);
    transition: var(--transition);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card:hover .service-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #0a0a0f;
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 0 30px rgba(240, 192, 64, 0.5);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-card .link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.service-card .link:hover {
    gap: 14px;
}

@media (max-width: 968px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ===== Process / Steps ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 16%;
    left: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
    box-shadow: 0 0 12px var(--gold-glow);
}

.process-step {
    text-align: center;
    position: relative;
    padding: 24px;
}

.process-number {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.2);
}

.process-step:hover .process-number {
    background: var(--gold);
    color: #0a0a0f;
    box-shadow: 0 0 40px rgba(240, 192, 64, 0.6);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .process-grid { grid-template-columns: 1fr; }
    .process-grid::before { display: none; }
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    padding: 32px;
}

.testimonial .stars {
    color: var(--gold);
    margin-bottom: 16px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(240, 192, 64, 0.5);
}

.testimonial .quote {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0f;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

@media (max-width: 968px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== CTA Banner ===== */
.cta-banner {
    text-align: center;
    padding: 80px 40px;
    background:
        linear-gradient(135deg, rgba(240, 192, 64, 0.12), rgba(240, 192, 64, 0.02)),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: ctaGlow 8s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-100px, 50px) scale(1.2); opacity: 1; }
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    background: linear-gradient(135deg, #f0c040 0%, #fff8e1 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
    position: relative;
}

.cta-banner .hero-buttons {
    position: relative;
}

/* ===== Services Page ===== */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-detail {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
}

.service-detail .service-icon {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
}

.service-detail h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-detail .tagline {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-detail .price {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.4);
}

.service-detail .price small {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 6px;
    text-shadow: none;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.feature-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    text-shadow: 0 0 10px rgba(240, 192, 64, 0.5);
}

.service-detail .btn {
    width: 100%;
}

@media (max-width: 968px) {
    .service-detail-grid { grid-template-columns: 1fr; }
}

/* ===== Portfolio ===== */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

@media (max-width: 968px) { .filter-btn { cursor: pointer; } }

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: #0a0a0f;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(240, 192, 64, 0.5);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
    cursor: none;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

@media (max-width: 968px) { .portfolio-item { cursor: pointer; } }

.portfolio-item.hidden {
    display: none;
}

.portfolio-thumb {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-thumb.gradient-1 { background: linear-gradient(135deg, #2c1654, #6b3fa0, #f0c040); }
.portfolio-thumb.gradient-2 { background: linear-gradient(135deg, #0f3443, #34e89e); }
.portfolio-thumb.gradient-3 { background: linear-gradient(135deg, #ee0979, #ff6a00); }
.portfolio-thumb.gradient-4 { background: linear-gradient(135deg, #1a2980, #26d0ce); }
.portfolio-thumb.gradient-5 { background: linear-gradient(135deg, #f0c040, #8a7233, #1a1a24); }
.portfolio-thumb.gradient-6 { background: linear-gradient(135deg, #6a3093, #a044ff); }
.portfolio-thumb.gradient-7 { background: linear-gradient(135deg, #134e5e, #71b280); }
.portfolio-thumb.gradient-8 { background: linear-gradient(135deg, #f12711, #f5af19); }
.portfolio-thumb.gradient-9 { background: linear-gradient(135deg, #232526, #f0c040); }

.portfolio-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-thumb {
    transform: scale(1.08);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(240, 192, 64, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

.portfolio-cat {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(240, 192, 64, 0.5);
}

.portfolio-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.portfolio-overlay .btn {
    align-self: flex-start;
    padding: 10px 22px;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .portfolio-overlay { opacity: 1; background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 30%, transparent 100%); }
}

@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    direction: rtl;
    backdrop-filter: blur(10px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f0c040'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 48px;
}

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

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.05);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.15), 0 0 24px rgba(240, 192, 64, 0.2);
}

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

.contact-info-card {
    padding: 36px;
}

.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition);
}

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

.contact-info-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-info-list a:hover {
    color: var(--gold);
}

.contact-info-list .info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-info-list .info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.form-success {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25d366;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
    text-align: center;
    display: none;
}

.form-success.show {
    display: block;
}

.contact-decor {
    margin-top: 24px;
    height: 220px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(240, 192, 64, 0.15), rgba(240, 192, 64, 0.02)),
        radial-gradient(circle at 30% 50%, rgba(240, 192, 64, 0.25), transparent 60%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.contact-decor::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(240, 192, 64, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 192, 64, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.contact-decor-text {
    position: relative;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 16px rgba(240, 192, 64, 0.5);
}

.contact-decor-text small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 6px;
    text-shadow: none;
}

@media (max-width: 968px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-soft);
    background: rgba(10, 10, 15, 0.5);
    margin-top: 80px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 360px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-about p { margin: 16px auto 0; }
}

/* ===== Stronger scroll-reveal ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: bounce 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.7), 0 12px 40px rgba(37, 211, 102, 0.5);
}

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

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* ===== Project Modal ===== */
body.modal-open { overflow: hidden; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    cursor: pointer;
}

.modal-frame {
    position: relative;
    width: min(1100px, 92vw);
    height: min(85vh, 800px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(240, 192, 64, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-frame {
    transform: scale(1);
}

.modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.modal-title {
    color: var(--gold);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 0 12px rgba(240, 192, 64, 0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.modal-open-new,
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-family: inherit;
    cursor: none;
    transition: var(--transition);
    line-height: 1;
}

@media (max-width: 968px) {
    .modal-open-new,
    .modal-close { cursor: pointer; }
}

.modal-open-new:hover,
.modal-close:hover {
    background: var(--gold);
    color: #0a0a0f;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.5);
}

.modal-close {
    font-size: 1.5rem;
}

.modal-iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
    display: block;
}

@media (max-width: 768px) {
    .modal-frame {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    .modal-bar { padding: 12px 16px; }
    .modal-title { font-size: 0.9rem; }
}

/* Image-backed portfolio thumbs */
.portfolio-thumb {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-tertiary);
}

/* Live iframe preview thumbnails */
.portfolio-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.portfolio-preview iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 1400px;
    height: 1750px;
    border: 0;
    transform: scale(0.32);
    transform-origin: top right;
    pointer-events: none;
    background: #fff;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-preview iframe {
    transform: scale(0.36);
}

.portfolio-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.05) 0%, rgba(10, 10, 15, 0.55) 100%);
    pointer-events: none;
}

@media (max-width: 968px) {
    .portfolio-preview iframe { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .blob, .bg-mesh, .bg-mesh-2 { animation: none !important; }
}
