/* ==========================================================================
   1. Root Variables & Global Styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@400;700&display=swap');

:root {
    --primary-teal: #2a9d8f;
    --dark-blue-bg: #1c252e;
    --card-bg: #24313d;
    --light-text: #e0e0e0;
    --glow-color: rgba(42, 157, 143, 0.8);
}

body {
    background-color: var(--dark-blue-bg);
    color: var(--light-text);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding-bottom: 150px;
    overflow-x: hidden;
}

/* ==========================================================================
   2. Layout & Major Sections
   ========================================================================== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0a192f 0%, #1c252e 100%);
}

.logo-container,
.main-content,
.corner-nav,
#dock-container {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 45vh;
    text-align: center;
}

.content-block {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. Components
   ========================================================================== */
/* --- Sticky Header --- */
#sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: transparent;
    backdrop-filter: blur(10px);
    padding: 10px 30px;
    transform: translateY(-120%);
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#sticky-header.is-visible {
    transform: translateY(0);
}

.sticky-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-header-logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.sticky-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--light-text);
}

.anim-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
}

/* --- Main Logo --- */
#main-logo {
    width: 380px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    z-index: 2;
}

/* --- Corner Nav --- */
.corner-nav {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.corner-icon {
    font-size: 24px;
    color: #8899a6;
    transition: all 0.2s ease;
}

.corner-icon:hover {
    color: var(--primary-teal);
    transform: scale(1.2);
}

.corner-icon:nth-child(2) {
    animation: pulse-glow 3s infinite ease-in-out;
}

/* --- Dock Navigation --- */
#dock-container {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.dock {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-icon {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: button-glow 3.5s infinite ease-in-out;
    position: relative;
    font-size: 24px;
}

.home-icon>i,
.home-icon>img {
    position: absolute;
    transition: opacity 0.4s ease-in-out;
}

.home-icon-logo {
    width: 35px;
    opacity: 0;
}

.arc-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.nav-item {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    width: 50px;
    height: auto;
    opacity: 0;
    transform: scale(0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    text-decoration: none;
}

.arc-icon {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.2s ease;
}

.arc-icon .iconify {
    font-size: 26px;
}

.dock.expanded .home-icon {
    box-shadow: 0 0 35px var(--glow-color);
    animation: none;
}

.arc-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--light-text);
    margin-top: 8px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s, color 0.3s ease;
    /* Added color to transition */
}

.dock.expanded .arc-label {
    opacity: 1;
    transform: translateY(0);
}

/* /* >> FINAL TOUCH << */
/* This is the new, polished hover effect. */
.nav-item:hover .arc-icon {
    transform: translateY(-5px);
    /* Lifts the icon up */
    border-color: var(--primary-teal);
}

.nav-item:hover .arc-label {
    color: var(--primary-teal);
    /* Lights up the label */
}

/* ==========================================================================
   4. Animations & State Changes
   ========================================================================== */
@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(42, 157, 143, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(42, 157, 143, 1);
    }
}

@keyframes button-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(42, 157, 143, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(42, 157, 143, 0.9);
    }
}

body.scrolled #main-logo {
    opacity: 0;
}

body.scrolled .home-icon {
    animation: none;
}

body.scrolled .home-icon>img {
    opacity: 1;
}

body.scrolled .home-icon>i {
    opacity: 0;
}

/* ==========================================================================
   5. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    #main-logo {
        width: 250px;
    }

    h1.anim-text {
        font-size: 2rem;
    }

    h3.anim-text {
        font-size: 1rem;
    }
}