/* Hero Redesign vUltimate - The Immersion Core */

:root {
    --core-primary: #7c3aed;
    --core-secondary: #3b82f6;
    --core-accent: #fb7185;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #0f172a;
}

.hero-redesign-section {
    position: relative;
    padding: 16rem 0 14rem 0;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* Base for 3D depth */
}

/* Master Immersion Core (Background 3D) */
.immersion-core-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.core-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(80px);
    animation: core-rotate 30s linear infinite;
    overflow: hidden;
    background: #ffffff; /* Base for blobs */
}

.inner-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(40px);
}

.blob-purple { background: var(--core-primary); top: 10%; left: 10%; }
.blob-blue { background: var(--core-secondary); bottom: 10%; right: 10%; }
.blob-rose { background: var(--core-accent); top: 30%; right: 5%; }

.core-glass-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 0 80px rgba(255, 255, 255, 0.2),
        0 40px 100px rgba(124, 58, 237, 0.15);
    z-index: 1;
}

@keyframes core-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* Floating Neural UI Cards */
.neural-card {
    position: absolute;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform 0.1s ease-out; /* Parallax smooth */
}

.card-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--core-primary);
}

.card-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Positions for Neural Cards (Desktop) */
.card-top-left { top: 20%; left: 15%; }
.card-bottom-right { bottom: 25%; right: 15%; }
.card-mid-right { top: 40%; right: 10%; }

/* Ultimate Typography */
.hero-content-inner {
    position: relative;
    z-index: 20;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-title-ultimate {
    font-size: 6rem;
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-ultimate {
    font-size: 1.4rem;
    color: #475569;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 4rem auto;
    font-weight: 500;
}

/* High-End Interactive Buttons */
.ultimate-cta-hub {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.btn-ultimate-primary {
    position: relative;
    background: var(--text-main);
    color: white;
    padding: 1.25rem 3.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.btn-ultimate-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-ultimate-primary:hover::before { left: 100%; }

.btn-ultimate-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 35px 60px -12px rgba(15, 23, 42, 0.35);
}

.btn-ultimate-secondary {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-ultimate-secondary:hover {
    color: var(--core-primary);
    transform: translateX(5px);
}

/* Subtle Film Texture */
.hero-grain-overlay {
    position: absolute;
    inset: 0;
    background-image: 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)'/%3E%3C/svg%3E");
    opacity: 0.025;
    mix-blend-mode: multiply;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-title-ultimate { font-size: 4.5rem; }
    .neural-card { display: none; } /* Hide complex UI on tablets to save space */
}

@media (max-width: 768px) {
    .hero-redesign-section { padding: 10rem 0; }
    .hero-title-ultimate { font-size: 3.5rem; }
    .ultimate-cta-hub { flex-direction: column; }
    .core-sphere { width: 400px; height: 400px; }
    .core-glass-layer { width: 320px; height: 320px; }
}

/* Header Scrolled State */
header.header-scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Linktree Brand UI */
.linktree-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #39e09b;
    color: #1e2330 !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 224, 155, 0.2);
}

.linktree-brand:hover {
    background: #2cc988;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 224, 155, 0.3);
}

.linktree-brand svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Footer Linktree variant */
.footer-linktree {
    color: #39e09b !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-linktree:hover {
    opacity: 0.8;
}
