/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
    /* Colors */
    --bg-dark: #0b0b0b;
    --bg-black: #000;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);

    --accent: #9b59b6;
    --accent-warm: #ff7a18;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-dark: rgba(0, 0, 0, 0.65);

    /* Effects */
    --blur-sm: 12px;
    --blur-md: 14px;
    --blur-lg: 16px;

    /* Layout */
    --navbar-height: 80px;
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 18px;

    /* Transitions */
    --ease-fast: 0.2s ease;
    --ease-normal: 0.3s ease;
}

/* =========================================================
   BASE
========================================================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--navbar-height);
    font-family: "Archivo", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    height: 100vh;
    background: url("images/header-bg.webp") center / cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    padding: 6px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--blur-sm));
}

.navbar-dark .dropdown-menu {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(var(--blur-sm));
    border: none;
}

.navbar-dark .dropdown-item {
    color: var(--text-main);
}

.navbar-dark .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(var(--blur-lg));
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--radius-sm);
    }
}

/* =========================================================
   IP BOX
========================================================= */
.ip-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    border-radius: var(--radius-md);
    background: var(--glass-dark);
    cursor: pointer;
    transition: transform var(--ease-fast), background var(--ease-fast);
}

.ip-box:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}

.ip-box small {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* =========================================================
   SECTIONS / GLASS
========================================================= */
.section {
    padding: 90px 20px;
}

.glass {
    padding: 35px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
}

/* =========================================================
   TITLES
========================================================= */
.gradient-title {
    background: linear-gradient(90deg, var(--accent-warm), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   SOCIAL ICONS
========================================================= */
.social-icons a {
    display: inline-block;
    font-size: 28px;
    margin-right: 15px;
    color: var(--text-main);
    transition: transform var(--ease-fast);
}

.social-icons a:hover {
    transform: scale(1.15);
}

/* =========================================================
   CAROUSEL
========================================================= */
.carousel-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.carousel-hover {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.25)
    );
    opacity: 0;
    transition: opacity var(--ease-normal);
    pointer-events: none;
}

.carousel-img:hover .carousel-hover {
    opacity: 1;
}

/* =========================================================
   ACCORDION
========================================================= */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.12);
}

.accordion-button {
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.14);
}

.accordion-body {
    background: rgba(0, 0, 0, 0.55);
    color: #eaeaea;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    padding: 50px 0;
    background: var(--bg-black);
}

.footer-muted {
    font-size: 0.65rem;
    opacity: 0.45;
}

/* =========================================================
   LINKS
========================================================= */
.links a {
    color: var(--accent);
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* =========================================================
   VIEWER.JS
========================================================= */
.viewer-backdrop {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(var(--blur-lg));
}

/* =========================================================
   EASTER EGG
========================================================= */
#easter-egg {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(var(--blur-sm));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#easter-egg.active {
    opacity: 1;
    pointer-events: all;
}

.egg-box {
    padding: 40px 50px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(20, 20, 20, 0.85);
    box-shadow: 0 0 40px rgba(155, 89, 182, 0.45);
    animation: pulseGlow 2s infinite;
}

.egg-box h3 {
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.egg-box small {
    font-size: 0.75rem;
    opacity: 0.6;
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 25px rgba(155, 89, 182, 0.35); }
    50%  { box-shadow: 0 0 45px rgba(155, 89, 182, 0.65); }
    100% { box-shadow: 0 0 25px rgba(155, 89, 182, 0.35); }
}
