/* =========================================
   ROA Design Studio - Variables and Reset
   ========================================= */

:root {
    /* Richer, Extravagant Palette */
    --color-purple: #a633ff;
    --color-pink: #ff33a1;
    --color-cyan: #33e6ff;
    --color-blue: #337aff;
    --color-orange: #ff9933;

    /* Backgrounds & Text */
    --color-bg: #030305;
    --color-bg-elevated: rgba(20, 20, 25, 0.4);
    --color-text: #ffffff;
    --color-text-muted: #a1a1aa;
    --color-border: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Complex Gradients */
    --grad-purple: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    --grad-blue: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    --grad-orange: linear-gradient(135deg, #ffcc00, var(--color-orange));
    
    /* Layout Constants */
    --nav-height: 90px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   Parallax Environment
   ========================================= */

.parallax-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    /* Noise texture overlay on the base */
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
}

.parallax-layer {
    position: absolute;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    will-change: transform;
    background-repeat: no-repeat;
}

.bg-base {
    /* Pure dark color was handled on wrapper */
}

/* Ambient dynamic orbs mapped to layers */
.layer-1 {
    background: radial-gradient(circle at 15% 30%, rgba(166, 51, 255, 0.15) 0%, transparent 40%);
}
.layer-2 {
    background: radial-gradient(circle at 85% 60%, rgba(51, 122, 255, 0.1) 0%, transparent 50%);
}
.layer-3 {
    background: radial-gradient(circle at 50% 90%, rgba(255, 51, 161, 0.08) 0%, transparent 35%);
}
.layer-4 {
    /* subtle floating elements simulation via radial gradients */
    background: radial-gradient(circle at 70% 20%, rgba(51, 230, 255, 0.1) 0px, transparent 15px),
                radial-gradient(circle at 20% 80%, rgba(255, 153, 51, 0.1) 0px, transparent 20px);
}

/* =========================================
   Typography & Shared Utils
   ========================================= */

h1, h2, h3, h4, .price-value {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-purple { color: var(--color-purple); }
.text-pink { color: var(--color-pink); }
.text-cyan { color: var(--color-cyan); }
.text-blue { color: var(--color-blue); }
.text-orange { color: var(--color-orange); }

.text-muted { color: var(--color-text-muted); }
.text-light { color: #f8f8f8; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.align-right { display: flex; flex-direction: column; align-items: flex-end; }
.align-left { display: flex; flex-direction: column; align-items: flex-start; }
.max-w-lg { max-width: 650px; }

.margin-b-lg { margin-bottom: 2.5rem; }
.margin-t-md { margin-top: 1.5rem; }
.small-text { font-size: 0.875rem; opacity: 0.8; }

/* =========================================
   Premium Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.3, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: -1;
}

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

.btn-primary {
    background: var(--grad-purple);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(166, 51, 255, 0.6), inset 0 1px 1px rgba(255,255,255,0.3);
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 15px 40px -5px rgba(166, 51, 255, 0.8), inset 0 1px 1px rgba(255,255,255,0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1.15rem 2.75rem;
    font-size: 1.125rem;
}

.btn-full { width: 100%; }

/* Ghost Buttons Specific */
[class*="btn-ghost-"] {
    position: relative;
    background: transparent;
    border: 1px solid;
    z-index: 1;
}
[class*="btn-ghost-"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
[class*="btn-ghost-"]:hover::after { opacity: 1; }

.btn-ghost-purple {
    border-color: rgba(166, 51, 255, 0.4);
    color: #dfb3ff;
}
.btn-ghost-purple::after { background: rgba(166, 51, 255, 0.15); box-shadow: 0 0 20px rgba(166,51,255,0.4); }

.btn-ghost-blue {
    border-color: rgba(51, 122, 255, 0.4);
    color: #b3d1ff;
}
.btn-ghost-blue::after { background: rgba(51, 122, 255, 0.15); box-shadow: 0 0 20px rgba(51,122,255,0.4); }

.btn-ghost-orange {
    border-color: rgba(255, 153, 51, 0.4);
    color: #ffdeb3;
}
.btn-ghost-orange::after { background: rgba(255, 153, 51, 0.15); box-shadow: 0 0 20px rgba(255,153,51,0.4); }


/* =========================================
   Navbar Extravaganza
   ========================================= */

.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 3, 5, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

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

.logo-img {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    transition: height 0.4s ease, transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05);
}
.navbar.scrolled .logo-img {
    height: 55px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.nav-link:hover { color: #fff; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--grad-purple);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--color-purple);
}
.nav-link:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}
.mobile-menu-btn .bar {
    width: 28px; height: 2px;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

/* Hero Text Content Strategy */
.hero-text-area {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    background: rgba(166, 51, 255, 0.08);
    border: 1px solid rgba(166, 51, 255, 0.3);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ebd1ff;
    box-shadow: 0 0 25px rgba(166, 51, 255, 0.2);
    backdrop-filter: blur(8px);
}
.badge::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--color-purple);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 12px var(--color-purple);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2.5px;
    line-height: 1.05;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--color-text-muted);
    margin-bottom: 3.5rem;
    max-width: 95%;
    line-height: 1.8;
}

.hero-actions { 
    display: flex; gap: 1.5rem; 
}

/* 3D Glass Orb with Multiple Logos */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 10;
}

.glass-orb-container {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-logo {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 15;
    animation: floatOrb 6s ease-in-out infinite alternate-reverse;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
}

.hero-pug-img {
    position: absolute;
    width: 500px; /* Restored size for desktop */
    height: auto;
    z-index: 5;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6));
    pointer-events: none;
    --pug-offset: 30px;
    transform: translateY(var(--pug-offset));
    animation: floatPug 6s ease-in-out infinite alternate;
}

@keyframes floatPug {
    0% { transform: translateY(var(--pug-offset)) rotateX(2deg) rotateY(-2deg); }
    100% { transform: translateY(calc(var(--pug-offset) - 20px)) rotateX(-2deg) rotateY(4deg); }
}

/* Speech bubble near pug's head */
.pug-speech-bubble {
    position: absolute;
    top: -140px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20;
    animation: floatOrb 6s ease-in-out infinite alternate;
}

.pug-speech-bubble .typing-container::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    margin-left: -8px;
    width: 16px;
    height: 16px;
    background: #191622;
    border-right: 1px solid rgba(166, 51, 255, 0.4);
    border-bottom: 1px solid rgba(166, 51, 255, 0.4);
    transform: rotate(45deg);
    border-bottom-right-radius: 3px;
    z-index: 1;
}

.floating-logo img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: rgba(20,20,25,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
}

.glass-orb {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.15);
    /* Internal and external realistic shadows/highlights */
    box-shadow: 
        inset 0 0 80px rgba(255,255,255,0.05), 
        inset 20px 20px 40px rgba(255,255,255,0.05),
        0 40px 80px rgba(0,0,0,0.6),
        0 0 100px rgba(166, 51, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatOrb 8s ease-in-out infinite alternate;
    transform-style: preserve-3d;
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 230, 255, 0.8) 0%, transparent 70%);
    opacity: 0.5;
    animation: floatParticle 10s infinite linear;
}
.p1 { width: 100px; height: 100px; top: 20%; left: 10%; background: radial-gradient(circle, rgba(166, 51, 255, 0.4) 0%, transparent 70%); animation-duration: 15s; }
.p2 { width: 60px; height: 60px; top: 60%; left: 45%; background: radial-gradient(circle, rgba(255, 51, 161, 0.5) 0%, transparent 70%); animation-duration: 20s; animation-direction: reverse; }
.p3 { width: 150px; height: 150px; top: 10%; right: 15%; animation-duration: 25s; opacity: 0.3; }

@keyframes floatParticle {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-50px) scale(1.2); }
    100% { transform: translateY(0) scale(1); }
}

.glass-orb::before {
    content: '';
    position: absolute;
    top: 5%; left: 10%;
    width: 40%; height: 20%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.hero-r-logo {
    width: 180px;
    opacity: 0.95;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)) drop-shadow(0 0 20px rgba(255,255,255,0.3));
    transform: translateZ(50px);
}

@keyframes floatOrb {
    0% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    100% { transform: translateY(-30px) rotateX(-5deg) rotateY(10deg); }
}

/* =========================================
   Sections Core
   ========================================= */

.section-header { margin-bottom: 5rem; text-align: center; }
.section-title { font-size: 3.5rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
.section-subtitle { font-size: 1.35rem; color: var(--color-text-muted); }

.plans-section { padding: 10rem 0; position: relative; }

.bg-altern {
    background: linear-gradient(180deg, transparent, rgba(10, 10, 15, 0.5) 50%, transparent);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

/* Color palettes */
.color-palette-demo { display: flex; justify-content: center; gap: 1.25rem; margin-top: 3rem; }
.color-swatch {
    width: 45px; height: 45px; border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 2px 2px rgba(255,255,255,0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.color-swatch:hover { transform: scale(1.25) translateY(-5px); }

/* =========================================
   Premium Glass Cards
   ========================================= */

.glass-card {
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), inset 0 1px 1px rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.15);
}

.plan-card-glow {
    position: absolute;
    top: -50px; left: -50px; width: 200px; height: 200px;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
    filter: blur(60px);
    transition: all 0.5s ease;
}
.glow-purple { background: var(--color-purple); }
.glow-blue { background: var(--color-blue); }
.glow-orange { background: var(--color-orange); }
.glow-pink { background: var(--color-pink); }
.glow-cyan { background: var(--color-cyan); }

.plan-header {
    padding: 3rem 2.5rem 2rem;
    position: relative; z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.plan-header h3 { font-size: 2.25rem; margin-bottom: 1rem; }
.plan-header p { color: var(--color-text-muted); font-size: 1rem; min-height: 75px; line-height: 1.6; }

.plan-price { margin-top: 2rem; display: flex; align-items: baseline; gap: 0.5rem; }
.price-value { font-size: 3rem; letter-spacing: -1.5px; }
.price-period { font-size: 1.25rem; font-weight: 600; opacity: 0.8; }
.large-price .price-value { font-size: 3.5rem; }

.plan-body {
    padding: 2.5rem; flex-grow: 1; position: relative; z-index: 1; display: flex; flex-direction: column;
}

.plan-features-title { margin-bottom: 1.5rem; font-size: 1.15rem; color: #fff; }

.feature-list { margin-bottom: 2rem; }
.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.5;
}
.feature-list li::before {
    content: '✦';
    position: absolute; left: 0; top: 2px;
    font-size: 1.2rem;
}
.list-purple li::before { color: var(--color-purple); text-shadow: 0 0 10px var(--color-purple); }
.list-blue li::before { color: var(--color-blue); text-shadow: 0 0 10px var(--color-blue); }
.list-orange li::before { color: var(--color-orange); text-shadow: 0 0 10px var(--color-orange); }

.plan-metrics {
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.03);
}
.plan-metrics h4 { font-size: 1.1rem; margin-bottom: 1rem; color: #fff; }
.metrics-list { color: var(--color-text-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.metrics-list li { background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; }

.social-icons {
    display: flex; justify-content: center; gap: 0.75rem;
    margin-top: auto; margin-bottom: 2rem;
}
.social-bubble {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem; font-weight: bold; color: var(--color-text-muted);
    transition: all 0.3s;
}
.social-bubble:hover {
    background: rgba(255,255,255,0.15); color: white;
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cards-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.cards-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto;
}

.padding-lg { padding: 1.5rem 0; }
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    margin: 2.5rem 0;
}

/* Featured / Premium */
.featured {
    transform: scale(1.05);
    border: 1px solid rgba(255, 153, 51, 0.5);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 0 30px rgba(255, 153, 51, 0.1);
}
.featured:hover { transform: scale(1.08) translateY(-15px); border-color: rgba(255, 153, 51, 0.8); }
.badge-featured {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: var(--grad-orange); color: white;
    padding: 0.4rem 1.25rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.4);
}

/* Info Note */
.info-note {
    margin-top: 6rem;
    background: linear-gradient(90deg, rgba(51, 122, 255, 0.05), transparent);
    border-left: 4px solid var(--color-blue);
    padding: 2.5rem;
    border-radius: 0 20px 20px 0;
    backdrop-filter: blur(10px);
}
.info-note h4 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.info-note p { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 0.75rem; line-height: 1.6; }

/* =========================================
   Branding Section
   ========================================= */

.branding-section { padding: 10rem 0; position: relative; }
.branding-section .container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: center; }

.branding-box { padding: 4rem; border-radius: 30px; }
.glow-border-blue {
    border: 1px solid rgba(51, 122, 255, 0.3);
    box-shadow: inset 0 0 50px rgba(51, 122, 255, 0.05), 0 30px 60px rgba(0,0,0,0.6);
}
.box-title { font-size: 1.8rem; margin-bottom: 2rem; color: #fff; }

.numbered-list { margin-left: 0; margin-bottom: 3rem; font-size: 1.2rem; counter-reset: item; }
.numbered-list > li {
    margin-bottom: 1.5rem; list-style-type: none; position: relative; padding-left: 3rem;
}
.numbered-list > li::before {
    content: counter(item); counter-increment: item;
    position: absolute; left: 0; top: -2px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(51, 122, 255, 0.1); color: var(--color-cyan);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: bold; border: 1px solid rgba(51, 122, 255, 0.3);
}

.numbered-list ul { margin-top: 1rem; list-style-type: none; }
.numbered-list ul li {
    font-size: 1rem; margin-bottom: 0.5rem; color: var(--color-text-muted); padding-left: 1.5rem; position: relative;
}
.numbered-list ul li::before {
    content: '-'; position: absolute; left: 0; color: rgba(255,255,255,0.3);
}

.branding-desc { margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.05rem; }

.branding-price-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 2.5rem; border-radius: 20px; margin-top: 3rem;
    box-shadow: 0 15px 30px rgba(51, 122, 255, 0.3);
}
.bg-blue-grad { background: var(--grad-blue); }
.price-label { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.price-total { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }

/* =========================================
   Footer Base
   ========================================= */

.footer {
    background: #020202; padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-purple), var(--color-blue), transparent);
}
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5rem; }
.footer-logo { width: 220px; margin-bottom: 2rem; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }
.footer-brand p { color: var(--color-text-muted); max-width: 320px; font-size: 1.1rem; }
.footer-contact h4 { font-size: 1.4rem; margin-bottom: 2rem; color: #fff; }
.contact-link {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
    color: var(--color-text-muted); font-size: 1.1rem;
}
.contact-link:hover { color: var(--color-cyan); transform: translateX(5px); }
.contact-icon { font-size: 1.3rem; }
.footer-bottom {
    text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 3rem; color: rgba(255,255,255,0.4); font-size: 0.95rem;
}

/* =========================================
   Animations Utilities
   ========================================= */

.reveal-up {
    opacity: 0; transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

.reveal-scale {
    opacity: 0; transform: scale(0.85);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* =========================================
   Responsive Overrides
   ========================================= */

@media (max-width: 1200px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .featured { transform: scale(1); }
    .featured:hover { transform: translateY(-10px); }
    .hero-title { font-size: 4rem; }
}

@media (max-width: 900px) {
    .hero { align-items: flex-start; padding-top: calc(var(--nav-height) + 4rem); padding-bottom: 4rem; }
    .branding-section .container { grid-template-columns: 1fr; gap: 4rem; }
    .hero-content-wrapper { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-visual { margin-top: 7rem; margin-bottom: 4rem; order: -1; }
    .hero-subtitle { margin: 0 auto 3rem; }
    .hero-actions { justify-content: center; }
    .align-right { align-items: center; text-align: center; }
    .text-right { text-align: center; }
    .glass-orb-container { width: 350px; height: 350px; }
    .hero-pug-img { width: 400px; --pug-offset: 20px; transform: translateY(var(--pug-offset)); }
    .section-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: rgba(5,5,8,0.95); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,0.05);
        transition: right 0.4s ease; padding: 2rem;
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: flex; }
    
    .mobile-menu-btn.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .logo-img { height: 55px; }
    .navbar.scrolled .logo-img { height: 40px; }
    
    .cards-grid, .cards-grid.cols-2 { grid-template-columns: 1fr; }
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .cat-card {
        width: 100%;
        height: 120px;
    }
    .cat-card h3 {
        font-size: 1rem;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .glass-orb-container, .glass-orb { width: 280px; height: 280px; }
    .hero-pug-img { width: 320px; --pug-offset: 15px; transform: translateY(var(--pug-offset)); }
    .pug-speech-bubble { top: -130px; }
    .pug-speech-bubble .typing-container { padding: 10px 20px; }
    .pug-speech-bubble .typing-effect { font-size: 1.3rem; white-space: nowrap; }
    .pug-speech-bubble .typing-cursor { font-size: 1.3rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-r-logo { width: 120px; }
    .footer-content { flex-direction: column; gap: 3rem; text-align: center; align-items: center; }
    .branding-price-bar { flex-direction: column; gap: 1rem; text-align: center; }
    .section-title { font-size: 2.2rem; }
    .plan-header { padding: 2rem 1.5rem 1.5rem; }
    .plan-body { padding: 1.5rem; }
    .features-list li { font-size: 0.9rem; }
    .portfolio-cta-section > .container > .glass-card { padding: 2.5rem 1.5rem !important; }
    
    .loader-gif { width: 260px; margin-bottom: 2rem; }
    .preloader-text { font-size: 1.25rem; text-align: center; }
}

/* =========================================
   Typing Effect
   ========================================= */
.typing-container {
    padding: 15px 25px;
    background: rgba(20, 20, 25, 0.75);
    border: 1px solid rgba(166, 51, 255, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(166, 51, 255, 0.2);
    display: inline-flex;
    align-items: center;
    position: relative;
}

.typing-effect {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.typing-cursor {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-purple);
    margin-left: 5px;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   Preloader screen
   ========================================= */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

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

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-gif {
    width: 400px;
    height: auto;
    margin-bottom: 3rem;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #fff;
    min-height: 48px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(166, 51, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.6);
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite steps(4, end);
}
@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* =========================================
   3D Portfolio Spatial Zoom
   ========================================= */

.portfolio-body {
    background-color: var(--color-bg);
    overflow-x: hidden;
    height: 100%;
    margin: 0;
}

.proxy-scroll {
    /* Virtual scroll height */
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.viewport-3d {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    perspective: 800px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.scene-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Estrella background layer */
.stars-layer {
    position: absolute;
    top: -500vh; left: -500vw;
    width: 1000vw; height: 1000vh;
    background: radial-gradient(circle at center, transparent 0%, #030305 80%),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3Ccircle cx='150' cy='120' r='1.5'/%3E%3Ccircle cx='250' cy='80' r='1'/%3E%3Ccircle cx='350' cy='180' r='0.5'/%3E%3Ccircle cx='80' cy='250' r='1.5'/%3E%3Ccircle cx='280' cy='290' r='1'/%3E%3Ccircle cx='180' cy='350' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 800px 800px;
    transform: translateZ(-10000px) scale(3);
    pointer-events: none;
}

.scene-item {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate3d(calc(-50% + var(--x, 0%)), -50%, var(--z, 0px));
    transform-style: preserve-3d;
    pointer-events: auto; /* Re-habilitar interactividad */
    text-align: center;
    will-change: transform, opacity;
}

.intro-item {
    width: 80%;
    max-width: 800px;
}
.outro-item {
    width: 80%;
    max-width: 600px;
}

.project-item {
    width: 450px;
}

.project-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 10, 15, 0.75);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255,255,255,0.05);
    /* Animación flotante local */
    animation: localFloat 6s ease-in-out infinite alternate;
}

.project-card h3 {
    margin-top: 1.5rem;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.project-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.scroll-instruction {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
    animation: fadePulse 2s infinite alternate;
}

.mouse-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

@keyframes localFloat {
    0% { transform: translateY(-10px) rotateX(2deg) rotateY(-2deg); }
    100% { transform: translateY(10px) rotateX(-2deg) rotateY(2deg); }
}

@keyframes fadePulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

@media (max-width: 768px) {
    .project-item { width: 320px; }
    .project-img { height: 180px; }
    .scene-item { transform: translate3d(-50%, -50%, var(--z, 0px)); } /* Eliminar offset X en móviles para apilar visualmente en el centro */
}

/* =========================================
   Portfolio Category Grid
   ========================================= */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.cat-card {
    position: relative;
    width: 250px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(166, 51, 255, 0.4);
    border-color: rgba(166, 51, 255, 0.5);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.cat-card:hover .cat-overlay {
    background: linear-gradient(to top, rgba(166, 51, 255, 0.8) 0%, rgba(0,0,0,0.1) 100%);
}

.cat-card h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.35rem;
    margin: 0;
    font-family: var(--font-heading);
    text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}
