/* ==========================================================================
   ANJUM.PRO — LUXURY REFINED OBSIDIAN & LIGHT ENGINE
   ========================================================================== */

:root {
    --bg-dark: #030206;
    --card-bg: rgba(22, 14, 35, 0.78);
    --btn-bg: rgba(32, 22, 51, 0.72);
    
    --border-card: rgba(168, 85, 247, 0.32);
    --border-subtle: rgba(216, 180, 254, 0.18);
    --border-hover: rgba(232, 121, 249, 0.85);

    --text-primary: #ffffff;
    --text-heading: #f5f3ff;
    --text-body: #e9d5ff;
    --text-muted: #c084fc;

    --glow-card-base: rgba(0, 0, 0, 0.8);
    --glow-card-hover: rgba(168, 85, 247, 0.45);
    
    --grid-color: rgba(168, 85, 247, 0.028);
    --ambient-opacity: 0.85;
    --ripple-color: #f8fafc;
}

/* Light Mode Overrides */
html.light-mode {
    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --btn-bg: rgba(241, 245, 249, 0.9);
    
    --border-card: rgba(168, 85, 247, 0.25);
    --border-subtle: rgba(168, 85, 247, 0.15);
    --border-hover: rgba(168, 85, 247, 0.7);

    --text-primary: #0f172a;
    --text-heading: #1e1b4b;
    --text-body: #334155;
    --text-muted: #7c3aed;

    --glow-card-base: rgba(148, 163, 184, 0.15);
    --glow-card-hover: rgba(168, 85, 247, 0.25);

    --grid-color: rgba(168, 85, 247, 0.04);
    --ambient-opacity: 0.35;
    --ripple-color: #030206;
}

/* Cinematic Ripple Eclipse Overlay */
.theme-ripple-overlay {
    position: fixed;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background-color: var(--ripple-color);
    transform: translate(-50%, -50%);
    z-index: 99999;
    pointer-events: none;
    transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1), height 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-ripple-overlay.active {
    width: 350vmax;
    height: 350vmax;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: auto !important;
}

html {
    background-color: var(--bg-dark);
    color-scheme: dark light;
    font-size: 16px;
    scroll-behavior: smooth;
    cursor: auto !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: auto !important;
}

/* --------------------------------------------------------------------------
   THEME SWITCHER BUTTON STYLES
   -------------------------------------------------------------------------- */
.theme-switch-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   2.0-SECOND CINEMATIC KINETIC OPENING SEQUENCE
   -------------------------------------------------------------------------- */
.page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    visibility: visible;
    opacity: 1;
}

.page-loader.fade-out {
    opacity: 0;
    transform: scale(1.08);
    visibility: hidden;
    pointer-events: none;
}

.loader-backdrop-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.15) 50%, transparent 100%);
    animation: scanlinePass 2s ease-in-out infinite;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 2;
}

.loader-geometric-core {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.core-ring-1 {
    border-top-color: #a855f7;
    border-bottom-color: #e879f9;
    animation: loaderSpinClockwise 1.4s linear infinite;
}

.core-ring-2 {
    inset: -6px;
    border-left-color: #c084fc;
    border-right-color: rgba(168, 85, 247, 0.2);
    animation: loaderSpinCounter 2.2s linear infinite;
}

.loader-monogram {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    animation: loaderCorePulse 1.4s ease-in-out infinite alternate;
}

.loader-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.loader-progress-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #a855f7, #e879f9);
    animation: progressLoad 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

@keyframes loaderCorePulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    100% { transform: scale(1.06); opacity: 1; }
}

@keyframes scanlinePass {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes progressLoad {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

/* Stagger Unmask Sequence */
body:not(.loaded) .glass-card,
body:not(.loaded) .header-frameless {
    animation: none !important;
    opacity: 0;
    transform: translateY(22px);
}

body.loaded .glass-card,
body.loaded .header-frameless {
    animation: luxuryFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --------------------------------------------------------------------------
   LUXURY FLUID AMBIENT BACKGROUND & ORB ENGINE
   -------------------------------------------------------------------------- */
.ambient-light {
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 140vw;
    height: 140vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 50% 25%, rgba(168, 85, 247, 0.32) 0%, transparent 60%),
        radial-gradient(circle at 85% 75%, rgba(126, 34, 206, 0.22) 0%, transparent 50%),
        var(--bg-dark);
    filter: blur(70px);
    will-change: transform;
    opacity: var(--ambient-opacity);
    animation: backgroundFluidBreath 18s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

@keyframes backgroundFluidBreath {
    0% { transform: scale(1) translate(0, 0); opacity: var(--ambient-opacity); }
    50% { transform: scale(1.05) translate(15px, -15px); opacity: calc(var(--ambient-opacity) + 0.15); }
    100% { transform: scale(1.02) translate(-10px, 10px); opacity: var(--ambient-opacity); }
}

.cyber-grid-overlay {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.ambient-glow-orb {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    will-change: transform;
}

.orb-1 {
    top: -150px;
    left: -150px;
    background: rgba(168, 85, 247, 0.35);
    animation: orbFloatA 22s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.orb-2 {
    bottom: -150px;
    right: -150px;
    background: rgba(126, 34, 206, 0.3);
    animation: orbFloatB 26s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.orb-3 {
    top: 35%;
    right: -180px;
    background: rgba(232, 121, 249, 0.2);
    animation: orbFloatC 30s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes orbFloatA {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 90px) scale(1.18); }
}

@keyframes orbFloatB {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -120px) scale(1.22); }
}

@keyframes orbFloatC {
    0% { transform: translate(0, 0) scale(0.95); }
    100% { transform: translate(-130px, 100px) scale(1.15); }
}

.container {
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   HEADER & FLUID KINETIC AVATAR ENGINE
   -------------------------------------------------------------------------- */
.header-frameless {
    text-align: center;
    margin-bottom: 36px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.avatar-frame {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    animation: avatarGentleFloat 7s ease-in-out infinite;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(232, 121, 249, 0.9), rgba(126, 34, 206, 0.95));
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.45), inset 0 0 12px rgba(232, 121, 249, 0.3);
    animation: ringRotationSmooth 16s linear infinite;
}

.avatar-ring-pulse {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    animation: ringPulseSmooth 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

@keyframes ringPulseSmooth {
    0% { transform: scale(0.92); opacity: 0.3; }
    50% { transform: scale(1.08); opacity: 0.65; }
    100% { transform: scale(0.92); opacity: 0.3; }
}

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

.avatar-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1b0d36 0%, #070312 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 1px solid rgba(232, 121, 249, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.25), inset 0 -6px 14px rgba(0, 0, 0, 0.95);
    animation: monogramBreath 5s ease-in-out infinite alternate;
}

html.light-mode .avatar-content {
    background: linear-gradient(180deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #581c87;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.9), inset 0 -4px 10px rgba(168, 85, 247, 0.2);
}

@keyframes monogramBreath {
    0% { text-shadow: 0 0 4px rgba(232, 121, 249, 0.25); }
    100% { text-shadow: 0 0 14px rgba(232, 121, 249, 0.6); }
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: var(--bg-dark);
    border-radius: 50%;
    padding: 3px;
    color: #e879f9;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 10px rgba(232, 121, 249, 0.5);
    animation: badgeFloatSmooth 4s ease-in-out infinite;
}

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

h1.executive-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
    line-height: 1.25;
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(168, 85, 247, 0.15);
}

.subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 0.95;
}

/* --------------------------------------------------------------------------
   LUXURY GLASS CARDS & SILKY SWEEP SHINE
   -------------------------------------------------------------------------- */
.glass-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid var(--border-card);
    padding: 34px 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 35px -5px var(--glow-card-base), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

html.light-mode .glass-card {
    box-shadow: 0 12px 30px -5px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Silky, Smooth Ambient Sweep Shine */
.card-sweep-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(232, 121, 249, 0.04) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(232, 121, 249, 0.04) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1;
    animation: silkyCardSweep 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.glass-card:nth-of-type(1) .card-sweep-shine { animation-delay: 0s; }
.glass-card:nth-of-type(2) .card-sweep-shine { animation-delay: 1.8s; }
.glass-card:nth-of-type(3) .card-sweep-shine { animation-delay: 3.6s; }
.glass-card:nth-of-type(4) .card-sweep-shine { animation-delay: 5.4s; }
.glass-card:nth-of-type(5) .card-sweep-shine { animation-delay: 7.2s; }

@keyframes silkyCardSweep {
    0% { left: -150%; opacity: 0; }
    25% { left: 150%; opacity: 0.85; }
    100% { left: 150%; opacity: 0; }
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(232, 121, 249, 0.1), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 16px 45px -4px var(--glow-card-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.018);
    z-index: 5;
}

.glass-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

/* Category Accent Glows */
.glass-card h2 i.icon-overview { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
.glass-card h2 i.icon-comm     { color: #c084fc; text-shadow: 0 0 10px rgba(192, 132, 252, 0.5); }
.glass-card h2 i.icon-pro      { color: #34d399; text-shadow: 0 0 10px rgba(52, 211, 153, 0.5); }
.glass-card h2 i.icon-social   { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.glass-card h2 i.icon-media    { color: #fb7185; text-shadow: 0 0 10px rgba(251, 113, 133, 0.5); }

.glass-card h2 i {
    font-size: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover h2 i {
    transform: scale(1.15) rotate(5deg);
}

.glass-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-body);
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   SILKY INTERACTIVE BUTTON ENGINE & MOUSE TRACKING
   -------------------------------------------------------------------------- */
.grid-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.btn-premium {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--btn-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.light-mode .btn-premium {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Smooth Cursor-Tracking Glow Pill */
.btn-glow-pill {
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-premium:hover .btn-glow-pill {
    opacity: 1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 121, 249, 0.35), transparent);
    transition: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.btn-premium:hover::after {
    left: 120%;
}

.btn-premium:hover {
    border-color: var(--border-hover);
    background-color: rgba(168, 85, 247, 0.08);
    transform: translateY(-2.5px) scale(1.012);
    box-shadow: 0 10px 24px -5px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-premium:active {
    transform: translateY(0px) scale(0.985);
}

.btn-icon {
    font-size: 16px;
    width: 26px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

/* Brand Colors with Refined Ambient Glows */
.icon-email    { color: #38bdf8; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4)); }
.custom-signal-icon { color: #3B49FF; filter: drop-shadow(0 0 6px rgba(59, 73, 255, 0.4)); }
.icon-telegram { color: #229ed9; filter: drop-shadow(0 0 6px rgba(34, 158, 217, 0.4)); }
.icon-discord  { color: #5865f2; filter: drop-shadow(0 0 6px rgba(88, 101, 242, 0.4)); }
.icon-linkedin { color: #0a66c2; filter: drop-shadow(0 0 6px rgba(10, 102, 194, 0.4)); }
.icon-github   { color: var(--text-primary); filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.2)); }
.icon-x        { color: var(--text-primary); filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.2)); }
.icon-facebook { color: #1877f2; filter: drop-shadow(0 0 6px rgba(24, 119, 242, 0.4)); }
.icon-reddit   { color: #ff4500; filter: drop-shadow(0 0 6px rgba(255, 69, 0, 0.4)); }
.icon-xbox     { color: #107c41; filter: drop-shadow(0 0 6px rgba(16, 124, 65, 0.4)); }
.icon-spotify  { color: #1db954; filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.4)); }

.btn-premium:hover .btn-icon {
    transform: scale(1.18) rotate(-4deg);
}

.btn-text {
    flex: 1;
    letter-spacing: -0.01em;
    z-index: 3;
}

.arrow-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    z-index: 3;
}

.btn-premium:hover .arrow-icon {
    transform: translateX(5px);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   LUXURY KEYFRAMES & ACCESSIBILITY
   -------------------------------------------------------------------------- */
@keyframes avatarGentleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0px); }
}

@keyframes luxuryFadeIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .avatar-frame, .avatar-ring, .avatar-ring-pulse, .ambient-glow-orb, .ambient-light, .cyber-grid-overlay, .card-sweep-shine {
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   FOOTER & RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
footer {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 20px;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

@media screen and (max-width: 600px) {
    .container {
        width: 100% !important;
        padding: 30px 15px !important;
    }
    
    .glass-card {
        border-radius: 20px !important;
        padding: 24px 20px !important;
    }

    h1.executive-name {
        font-size: 1.75rem;
    }
}
