:root {
    --primary: #7e22ce;
    --secondary: #a855f7;
    --accent: #c084fc;
    --dark: #0f0a19;
    --light: #f5f0ff;
    --glass: rgba(126, 34, 206, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-soft: linear-gradient(135deg, rgba(126, 34, 206, 0.92), rgba(168, 85, 247, 0.92));
    --shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.6), 0 8px 18px -10px rgba(0, 0, 0, 0.45);
    --glow: 0 0 22px rgba(168, 85, 247, 0.42);
    --radial-glow: radial-gradient(circle at center, rgba(168, 85, 247, 0.35), transparent 70%);

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

    --border-glass: rgba(255, 255, 255, 0.10);
    --border-glass-strong: rgba(192, 132, 252, 0.35);

    --elev-1: 0 4px 18px rgba(0, 0, 0, 0.35);
    --elev-2: 0 16px 40px rgba(0, 0, 0, 0.42);
    --elev-3: 0 30px 70px rgba(0, 0, 0, 0.5);

    --text-dim: rgba(245, 240, 255, 0.74);
    --text-faint: rgba(245, 240, 255, 0.5);
}

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

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

img,
video {
    max-width: 100%;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    letter-spacing: 0.01em;
    background: var(--dark);
    background-image:
        var(--radial-glow),
        radial-gradient(circle at 20% 30%, rgba(126, 34, 206, 0.3) 0%, transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.3) 0%, transparent 42%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(168, 85, 247, 0.35);
    color: #ffffff;
    text-shadow: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#zenrealm-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 25, 0.96);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    animation:
        avatar-float 6s ease-in-out infinite,
        avatar-fade 1.2s ease-out forwards;
}

.loader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) saturate(1.1);
}

.loader-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    margin: 25px 0 15px;
    background: linear-gradient(to right, #e9d5ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation:
        name-fade 0.8s ease-out 0.6s forwards,
        text-glow 2s ease-in-out infinite alternate;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7e22ce, #a855f7);
    transition: width 0.4s ease-out;
}

.loader-complete {
    opacity: 0;
    pointer-events: none;
}

.visitor-counter {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.counter-display {
    background: rgba(15, 10, 25, 0.9);
    padding: 15px 25px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #c084fc;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
    border: 1px solid rgba(192, 132, 252, 0.4);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-display:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.6);
}

.counter-display i {
    color: #f0abfc;
    animation: pulse 2s infinite;
}

.counter-pulse {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.counter-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(192, 132, 252, 0.3);
    border-radius: 50%;
    border-top-color: #c084fc;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.pulse-animation {
    animation: pulse 0.5s ease;
}

.api-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.api-status.active {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.api-status.inactive {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#video-bg {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    filter: brightness(0.3) saturate(1.5) hue-rotate(-10deg);
    object-fit: cover;
    opacity: 0.7;
    transition: filter 0.8s ease;
}

header {
    background: rgba(15, 10, 25, 0.72);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: padding 0.4s var(--ease-out), background 0.4s ease, box-shadow 0.4s ease;
}

.scrolled-header {
    padding: 9px 0;
    background: rgba(15, 10, 25, 0.9);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    background: var(--gradient);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    animation: pulse 3s infinite, float 6s ease-in-out infinite;
    box-shadow: var(--glow), 0 0 30px rgba(168, 85, 247, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--light);
    letter-spacing: 1.5px;
    background: linear-gradient(to right, #e9d5ff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: var(--glow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo:hover .logo-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), text-shadow 0.3s ease, box-shadow 0.3s ease, transform 0.2s var(--ease-out);
    font-family: 'Poppins', sans-serif;
}

nav a:hover,
nav a.active {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.16);
    box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.28), 0 0 18px rgba(168, 85, 247, 0.25);
    text-shadow: 0 0 14px rgba(192, 132, 252, 0.8);
}

nav a:active {
    transform: scale(0.96);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(192, 132, 252, 0.4);
    background: var(--glass);
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(168, 85, 247, 0.25);
}

.nav-toggle.active {
    background: rgba(168, 85, 247, 0.3);
}

.hero {
    padding: 190px 0 120px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(126, 34, 206, 0.18), transparent 60%);
    animation: rotate 60s linear infinite;
    z-index: -1;
    will-change: transform;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 35px;
    letter-spacing: 2px;
    animation: fadeIn 1.5s ease, glow 4s infinite alternate;
    text-shadow: 0 0 22px rgba(192, 132, 252, 0.8);
    position: relative;
    line-height: 1.15;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
    box-shadow: 0 0 20px var(--accent);
    animation: border-glow 3s infinite alternate;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 60px auto;
    flex-wrap: wrap;
}

.hero-image {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow), var(--glow), 0 0 50px rgba(168, 85, 247, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
    animation: float 8s ease-in-out infinite;
    border: 3px solid rgba(192, 132, 252, 0.55);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
    z-index: 1;
    will-change: transform;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    border: 1.5px dashed rgba(192, 132, 252, 0.5);
    animation: rotate 22s linear infinite;
    z-index: -1;
    will-change: transform;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out), filter 0.5s ease;
    filter: brightness(1.1) contrast(1.08) saturate(1.15);
}

.hero-image:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 26px 50px rgba(126, 34, 206, 0.5), 0 0 40px rgba(168, 85, 247, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    animation-play-state: paused;
}

.hero-image:hover img {
    transform: scale(1.12);
    filter: brightness(1.18) contrast(1.12);
}

.zen-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    color: transparent;
    text-align: center;
    margin-top: 25px;
    animation: fadeIn 2s ease;
    position: relative;
    display: inline-block;
    padding: 0 25px;
    background: linear-gradient(to right, #d8b4fe, #a855f7, #d8b4fe);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.zen-name::before,
.zen-name::after {
    content: '\2727';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.8rem;
    text-shadow: 0 0 15px var(--accent);
    animation: pulse 2s infinite alternate;
}

.zen-name::before {
    left: -5px;
}

.zen-name::after {
    right: -5px;
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 17px 44px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.35s ease, letter-spacing 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1.15rem;
    margin-top: 44px;
    box-shadow: 0 14px 30px -8px rgba(126, 34, 206, 0.6), 0 0 22px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 40px -10px rgba(126, 34, 206, 0.7), 0 0 34px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

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

.cta-button:active {
    transform: translateY(-3px) scale(0.98);
}

.role-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.role-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
    animation-delay: calc(0.12s * var(--i));
    color: white;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.role-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 50%;
}

.role-badge:hover {
    transform: translateY(-5px) scale(1.2);
    box-shadow: 0 0 16px currentColor;
    z-index: 3;
}

.role-badge:hover::before {
    transform: scale(1.8);
    opacity: 0;
}

.badge-developer {
    background: rgba(82, 4, 150, 0.7);
    color: #96ffb9;
}

.badge-moderator {
    background: rgba(82, 4, 150, 0.7);
    color: #8adeff;
}

.badge-artist {
    background: rgba(82, 4, 150, 0.7);
    color: #da67bd;
}

.badge-designer {
    background: rgba(139, 92, 246, 0.7);
    color: #c4b5fd;
}

.badge-creator {
    background: rgba(192, 132, 252, 0.7);
    color: #ede9fe;
}

.badge-innovator {
    background: rgba(107, 33, 168, 0.7);
    color: #a855f7;
}

.badge-enthusiast {
    background: rgba(147, 51, 234, 0.7);
    color: #c084fc;
}

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

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 25, 0.95);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: transparent;
    display: inline-block;
    padding-bottom: 20px;
    position: relative;
    background: linear-gradient(to right, #e9d5ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
    box-shadow: var(--glow);
    animation: border-glow 3s infinite alternate;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    background: var(--glass);
    padding: 50px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow), var(--glow);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-top: 1px solid var(--border-glass);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(192, 132, 252, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 6s infinite;
    opacity: 0.5;
}

.about-text:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(126, 34, 206, 0.4), 0 0 38px rgba(168, 85, 247, 0.6);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    background: linear-gradient(to right, #e9d5ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent);
    animation: border-glow 3s infinite alternate;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--light);
    line-height: 1.8;
    position: relative;
    padding-left: 30px;
    opacity: 0.9;
}

.about-text p::before {
    content: '\2727';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite alternate;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow), var(--glow);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.28), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.about-image:hover {
    transform: translateY(-12px) rotate(1.5deg);
    box-shadow: 0 32px 66px rgba(126, 34, 206, 0.5), 0 0 42px rgba(168, 85, 247, 0.8);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image:hover img {
    transform: scale(1.1) rotate(-2deg);
}

.dni-section {
    background: rgba(189, 4, 10, 0.2);
    padding: 25px;
    border-radius: 15px;
    margin-top: 40px;
    border-left: 4px solid var(--accent);
    box-shadow: inset 0 0 15px rgba(189, 4, 10, 0.4), 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dni-section:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 20px rgba(189, 4, 10, 0.5), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dni-section::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    animation: shine 8s infinite;
    opacity: 0.3;
}

.dni-section h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #ffb8b8;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.7);
    font-size: 1.5rem;
}

.dni-section h3 i {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.dni-section ul {
    padding-left: 30px;
    color: #ffd6d6;
}

.dni-section li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
    font-size: 1.1rem;
}

.dni-section li::before {
    content: '\2716';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
    font-size: 1.3rem;
    animation: pulse 1.5s infinite;
}

.calmhaven-section {
    padding: 140px 0;
    position: relative;
    background: rgba(15, 10, 25, 0.98);
    overflow: hidden;
}

.calmhaven-section::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(126, 34, 206, 0.1), rgba(168, 85, 247, 0.05));
    z-index: -1;
}

.calmhaven-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.calmhaven-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), 0 0 60px rgba(126, 34, 206, 0.5);
    border: 4px solid rgba(192, 132, 252, 0.5);
    margin-bottom: 30px;
    position: relative;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.calmhaven-avatar:hover {
    transform: scale(1.05);
}

.calmhaven-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calmhaven-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, #d8b4fe, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(168, 85, 247, 0.55);
    position: relative;
    display: inline-block;
}

.calmhaven-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent);
    animation: border-glow 3s infinite alternate;
}

.calmhaven-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #e9d5ff;
    max-width: 600px;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.35);
}

.discord-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient);
    color: white;
    padding: 17px 46px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.35s ease, letter-spacing 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1.15rem;
    box-shadow: 0 14px 30px -8px rgba(126, 34, 206, 0.6), 0 0 22px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.discord-invite-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s var(--ease-out);
}

.discord-invite-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: -1;
}

.discord-invite-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px -10px rgba(126, 34, 206, 0.7), 0 0 34px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 1.8px;
}

.discord-invite-btn:hover i {
    transform: rotate(8deg) scale(1.08);
}

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

.discord-invite-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow), var(--glow);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(192, 132, 252, 0.15), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 60px rgba(126, 34, 206, 0.4), 0 0 38px rgba(168, 85, 247, 0.6);
    border-color: var(--accent);
}

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

.service-icon i {
    transition: transform 0.45s var(--ease-out);
}

.service-card:hover .service-icon i {
    transform: scale(1.1) translateY(-4px);
}

.service-icon {
    height: 220px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 6s infinite;
}

.service-content {
    padding: 35px;
    position: relative;
    z-index: 1;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    background: linear-gradient(to right, #e9d5ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent);
    animation: border-glow 3s infinite alternate;
}

.service-content p {
    margin-bottom: 25px;
    color: var(--light);
    opacity: 0.9;
    line-height: 1.8;
    font-size: 1.1rem;
}

.price-list {
    margin-top: 25px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--light);
    position: relative;
    font-size: 1.1rem;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item span:last-child {
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.price-item::before {
    content: '\2726';
    position: absolute;
    left: -25px;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite alternate;
}

.social-section {
    background: var(--gradient);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(192, 132, 252, 0.4);
    border-bottom: 1px solid rgba(192, 132, 252, 0.4);
}

.social-section::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(126, 34, 206, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

.social-intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 50px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    transition: transform 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 15px rgba(0, 0, 0, 0.25), var(--glow);
    position: relative;
    overflow: hidden;
}

.social-icon i {
    transition: transform 0.35s var(--ease-out);
    position: relative;
    z-index: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.85), 0 0 40px rgba(168, 85, 247, 0.7);
}

.social-icon:hover i {
    transform: scale(1.15);
}

.social-icon:hover::before {
    transform: scale(1.8);
    opacity: 0;
}

.social-icon:active {
    transform: translateY(-6px) scale(1.04);
}

footer {
    background: rgba(15, 10, 25, 0.98);
    color: white;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(192, 132, 252, 0.4);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient);
    box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    background: linear-gradient(to right, #e9d5ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: var(--glow);
    animation: border-glow 3s infinite alternate;
}

.footer-column p {
    margin-bottom: 25px;
    opacity: 0.8;
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    transition: padding-left 0.3s ease;
}

.footer-links li:hover {
    padding-left: 35px;
}

.footer-links li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite alternate;
}

.footer-links li:hover::before {
    transform: translateX(8px);
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.7);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    color: var(--light);
    font-size: 1.1rem;
    position: relative;
}

.copyright span {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    font-weight: 600;
}

.audio-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(15, 10, 25, 0.82);
    border-radius: var(--radius-pill);
    padding: 12px;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-top: 1px solid var(--border-glass);
    box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.audio-controls:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 34px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.audio-btn {
    background: var(--gradient);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.audio-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 50%;
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.audio-btn:hover::before {
    transform: scale(1.5);
    opacity: 0;
}

.audio-btn:active {
    transform: scale(0.94);
}

.particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.particle {
    position: absolute;
    background: rgba(192, 132, 252, 0.6);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.85);
    animation: float-particle 15s infinite linear;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 10, 25, 0.8);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.28);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 34px rgba(168, 85, 247, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.94);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 60px 0;
    position: relative;
}

.section-divider::before {
    content: '\2726';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(126, 34, 206, 0.55), var(--dark) 72%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(192, 132, 252, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
    text-shadow: 0 0 15px var(--accent);
    box-shadow: 0 0 26px rgba(168, 85, 247, 0.4);
    animation: pulse 3s ease-in-out infinite alternate;
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.6);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.js .reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
    will-change: opacity, transform, filter;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

.js .service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.js .service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.js .service-card.reveal:nth-child(4) { transition-delay: 0.24s; }

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

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

@keyframes border-glow {
    0% { box-shadow: 0 0 10px var(--accent); }
    100% { box-shadow: 0 0 25px var(--accent); }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(192, 132, 252, 0.5); }
    100% { text-shadow: 0 0 25px rgba(192, 132, 252, 0.9); }
}

@keyframes avatar-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

@keyframes avatar-fade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes text-glow {
    0% { text-shadow: 0 0 10px rgba(192, 132, 252, 0.4); }
    100% { text-shadow: 0 0 20px rgba(192, 132, 252, 0.8); }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .calmhaven-title {
        font-size: 2.8rem;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 10, 25, 0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(192, 132, 252, 0.35);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    #header.nav-open nav {
        max-height: 380px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 15px 24px;
        font-size: 1.05rem;
    }

    nav a::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 80px 0;
    }

    .calmhaven-title {
        font-size: 2.3rem;
    }

    .visitor-counter {
        left: 15px;
        bottom: 15px;
    }

    .counter-display {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 576px) {
    .header-content {
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .calmhaven-title {
        font-size: 2rem;
    }

    .calmhaven-description {
        font-size: 1.1rem;
    }

    .about-text {
        padding: 32px 24px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .section {
        padding: 170px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
