/* ==========================================================================
   PREMIUM MODERN ARCHITECTURE THEMING VARIABLES
   ========================================================================== */
:root {
    --bg-base: #060913;
    --bg-surface: #0c1020;
    --bg-card: rgba(12, 16, 32, 0.65);
    --bg-card-hover: rgba(18, 24, 48, 0.85);
    
    --accent-cyan: #00f0ff;
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.4);
    --accent-cyan-glow: rgba(0, 240, 255, 0.35);
    
    --text-heading: #ffffff;
    --text-body: #94a3b8;
    --text-muted: #4e5d73;
    --border-subtle: rgba(59, 130, 246, 0.12);
    --border-bright: rgba(0, 240, 255, 0.4);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET & ROUTER WRAPPERS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-base);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .section-title, .logo-text {
    font-family: var(--font-heading);
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================================================
   BACKGROUND VISUAL GRADIENT BLURS
   ========================================================================== */
.mesh-gradient-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.55;
}

.mesh-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    mix-blend-mode: screen;
    opacity: 0.2;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -10%;
    right: -5%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -5%;
    left: -10%;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #6d28d9 0%, transparent 70%);
    top: 30%;
    left: 40%;
}

/* ==========================================================================
   HEADER / NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 0;
    transition: var(--transition-premium);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
}

.logo-bracket {
    color: var(--accent-cyan);
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-menu li a {
    cursor: pointer;
}

.nav-link, .nav-tab {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-premium);
}

.nav-tab i {
    font-size: 0.82rem;
    color: var(--accent-blue);
    opacity: 0.8;
}

.nav-tab:hover, .nav-tab.active {
    color: var(--accent-cyan);
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-nav:hover {
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    transition: var(--transition-premium);
}

/* ==========================================================================
   DYNAMIC INTERACTIVE SWITCHING CORE WINDOW SYSTEM
   ========================================================================== */
.dashboard-content-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 78px;
    min-height: calc(100vh - 78px);
    position: relative;
    width: 100%;
}

/* Hide sections completely when not active, add modern cinematic fade */
.page-viewport {
    display: none;
    width: 100%;
    padding: 80px 0;
    opacity: 0;
    transform: translateY(12px);
    animation: none;
}

.page-viewport.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: dashboardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dashboardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   CLEAN LANDING / HERO COMPONENT Blueprint
   ========================================================================== */
#home.page-viewport {
    padding: 0;
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
}

#home.page-viewport.active {
    display: flex;
}

.hero-center-wrapper {
    max-width: 780px;
    text-align: center;
    padding: 0 24px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    padding: 6px 14px;
    border-radius: 20px;
    color: #a3e635;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #a3e635;
    border-radius: 50%;
    box-shadow: 0 0 10px #a3e635;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.6; }
}
.animate-pulse { animation: pulse 2s infinite; }

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter-container {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-heading);
    min-height: 40px;
}

.dynamic-txt {
    color: var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
    padding-right: 4px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 38px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition-premium);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: var(--bg-base);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.38);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   GLOBAL VIEWPORT COMMON COMPONENTS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.subtitle-tag {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
}

/* ABOUT SUB-MODULE */
.about-grid { max-width: 860px; margin: 0 auto; }
.about-card-main {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.about-description { font-size: 1.05rem; margin-bottom: 20px; }
.highlight { color: var(--accent-cyan); font-weight: 600; }
.about-roles-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.role-chip {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.role-chip i { color: var(--accent-cyan); }

/* SKILLS MATRIX SUB-MODULE */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 32px;
    border-radius: 12px;
    transition: var(--transition-premium);
    backdrop-filter: blur(10px);
}
.skill-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    transition: var(--transition-premium);
}
.skill-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.skill-card p { font-size: 0.9rem; color: var(--text-body); }
.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.04);
}
.skill-card:hover .skill-icon-box {
    background: var(--accent-cyan);
    color: var(--bg-base);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* ACTIVE FLAGSHIPS SUB-MODULE */
.projects-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-premium);
    backdrop-filter: blur(10px);
}
.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}
.project-badge.variant-badge { border-color: var(--accent-blue); }
.project-header-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.project-icon, .project-icon-alt {
    width: 44px;
    height: 44px;
    background: rgba(0,240,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-cyan);
}
.project-icon-alt { background: rgba(59,130,246,0.08); color: var(--accent-blue); }
.project-card h3 { font-size: 1.5rem; }
.project-desc { font-size: 0.95rem; color: var(--text-body); margin-bottom: 24px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.project-tags span {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #ffffff;
}
.btn-project-link {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-premium);
}
.btn-project-link:hover { gap: 12px; color: #ffffff; }

/* COMMERCIAL B2B SERVICE OVERHAULS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.service-tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 35px;
    transition: var(--transition-premium);
}
.service-tier-card.premium-tier {
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 10px 35px rgba(0, 240, 255, 0.08);
}
.premium-ribbon {
    float: right; background: var(--accent-cyan); color: var(--bg-base);
    font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 4px;
}
.tier-header h4 { font-size: 1.3rem; margin-bottom: 10px; }
.tier-description { font-size: 0.88rem; margin-bottom: 24px; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tier-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.service-tier-card:hover { border-color: var(--accent-cyan); background: var(--bg-card-hover); }

/* TELEMETRY LOG MODULE */
.stats-box-dashboard {
    background: rgba(12, 16, 32, 0.8);
    border: 1px solid var(--border-subtle);
    padding: 45px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 24px;
}
.stat-metric-card h3 {
    font-size: 3.2rem; font-weight: 800; color: var(--accent-cyan);
    margin-bottom: 6px; text-shadow: 0 0 20px var(--accent-cyan-glow);
}
.stat-metric-card p { font-size: 0.92rem; font-weight: 500; color: #ffffff; }

/* PRODUCTION TRANSMISSION WEBHOOK MODIFICATION */
.contact-container {
    display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 45px; backdrop-filter: blur(10px);
}
.contact-info-panel h2 { font-size: 2rem; margin-bottom: 14px; }
.social-channels-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.social-card-item {
    background: rgba(255,255,255,0.01); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 16px;
    text-decoration: none; transition: var(--transition-premium);
}
.social-card-item i { font-size: 1.6rem; }
.social-card-item h4 { color: #ffffff; font-size: 0.95rem; }
.social-card-item p { font-size: 0.82rem; color: #64748b; }
.discord-color { color: #5865F2; }
.youtube-color { color: #FF0000; }
.instagram-color { color: #E1306C; }
.social-card-item:hover { background: rgba(255,255,255,0.04); border-color: var(--accent-cyan); transform: translateX(3px); }

.contact-form-panel form { display: flex; flex-direction: column; gap: 16px; }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-wrapper { display: flex; flex-direction: column; gap: 6px; }
.input-wrapper label { font-size: 0.82rem; font-weight: 600; color: #ffffff; }
.input-wrapper input, .input-wrapper textarea {
    background: rgba(6, 9, 19, 0.7); border: 1px solid var(--border-subtle);
    border-radius: 6px; padding: 12px 14px; color: #ffffff; font-family: var(--font-body);
    font-size: 0.9rem; transition: var(--transition-premium);
}
.input-wrapper input:focus, .input-wrapper textarea:focus {
    outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}
.btn-full-width { width: 100%; justify-content: center; padding: 14px; }

/* ==========================================================================
   PREMIUM MODAL LAYER SELECTION PORTAL Blueprints
   ========================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window-card {
    background: #0b0f1e;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 720px;
    padding: 45px;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.custom-modal-overlay.active .modal-window-card {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-modal-btn:hover { color: #ffffff; }

.modal-header-branding {
    text-align: center;
    margin-bottom: 35px;
}

.modal-discord-icon {
    font-size: 3rem;
    color: #5865F2;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.3));
}

.modal-header-branding h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal-header-branding p {
    font-size: 0.92rem;
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-body);
}

.modal-selection-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: var(--transition-premium);
}

.option-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    top: -20px;
    right: -20px;
    transition: opacity 0.4s ease;
}

.smp-theme .option-glow { background: var(--accent-cyan); }
.cafe-theme .option-glow { background: var(--accent-blue); }

.option-icon-frame {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 16px;
    transition: var(--transition-premium);
}

.modal-option-card h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #ffffff;
}

.modal-option-card p {
    font-size: 0.82rem;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-option-action {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-premium);
}

.smp-theme .btn-option-action { color: var(--accent-cyan); }
.cafe-theme .btn-option-action { color: var(--accent-blue); }

/* Hover mechanics for choices option card */
.modal-option-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.04);
}
.modal-option-card:hover .option-glow { opacity: 0.15; }

.modal-option-card:hover .option-icon-frame {
    background: #ffffff;
    color: var(--bg-base);
}
.modal-option-card:hover .btn-option-action { gap: 10px; }

/* ==========================================================================
   FOOTER BLOCK SECTION
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 35px 0;
    background: #04060c;
}
.footer-wrapper { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; }
.footer-meta-tags { display: flex; gap: 8px; }
.footer-tag-pill {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
    padding: 4px 10px; border-radius: 12px; font-size: 0.72rem; color: #52627a;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM MEDIA PIPELINES
   ========================================================================== */
@media (max-width: 1024px) {
    .projects-grid, .contact-container { grid-template-columns: 1fr; }
    .service-tier-card.premium-tier { transform: scale(1); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(6px) translateX(6px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-5px) translateX(5px); }
    
    .nav-menu {
        position: fixed; top: -100%; left: 0; width: 100%;
        background: var(--bg-surface); padding: 40px 24px;
        flex-direction: column; gap: 20px; transition: 0.4s ease-in-out;
        border-bottom: 1px solid var(--border-subtle); z-index: 99;
    }
    .nav-menu.active { top: 74px; }
    .stats-box-dashboard { grid-template-columns: 1fr; gap: 30px; }
    .form-group-row { grid-template-columns: 1fr; }
    .modal-selection-split { grid-template-columns: 1fr; }
    .modal-window-card { padding: 30px 20px; }
}
