@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Global Base */
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0px; 
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations - Managed by AOS Library */

/* Splash Selection Screen Redesign */
.splash-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    overflow: hidden;
    background: #000;
    display: flex;
}

/* Intro Message Overlay */
.intro-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: opacity 1.5s ease-in-out;
}

.intro-text {
    color: white;
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInIntro 3s forwards ease-in-out;
}

@keyframes fadeInIntro {
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Split Sides */
.side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: flex 1s cubic-bezier(0.85, 0, 0.15, 1);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}

.side:hover {
    flex: 2;
}

.side-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    transition: background 0.5s ease;
    z-index: 1;
}

.side:hover .side-overlay {
    background: rgba(0,0,0,0.3);
}

.side-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    opacity: 0;
    transform: scale(0.9);
    transition: 1s cubic-bezier(0.19, 1, 0.22, 1) 1.5s;
}

.side-content.visible {
    opacity: 1;
    transform: scale(1);
}

.side.web {
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=1500&auto=format&fit=crop');
}

.side.gamer {
    background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=1500&auto=format&fit=crop');
    border-left: 1px solid rgba(255,255,255,0.1);
}

.side h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 10px 0 30px;
    line-height: 1;
    text-transform: uppercase;
}

.side span {
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.select-btn {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.side:hover .select-btn {
    transform: translateY(-5px) scale(1.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.side.web:hover .select-btn { 
    background: #C9A050; 
    border-color: #C9A050; 
    color: white; 
    box-shadow: 0 15px 35px rgba(201, 160, 80, 0.4);
}

.side.gamer:hover .select-btn { 
    background: #00D2FF; 
    border-color: #00D2FF; 
    color: #000; 
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.4);
}

.select-btn::after {
    content: ' →';
    display: inline-block;
    margin-left: 10px;
    opacity: 0.7;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.side:hover .select-btn::after {
    transform: translateX(5px);
    opacity: 1;
}

/* Visual Deco */
.side::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 2;
    transition: 0.8s;
}

.side:hover::after {
    bottom: -20%; right: -20%;
}
/* HUD Navigation Bar Styles (Shared across all modes) */
/* === UNIFIED ANGULAR INDUSTRIAL HUD === */
.floating-return-btn, .hud-nav {
    position: fixed;
    top: 40px; 
    height: 45px;
    z-index: 10005;
    display: flex;
    align-items: center;
    background: rgba(3, 4, 8, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-return-btn {
    left: 40px;
    padding: 0 25px;
}

.hud-nav {
    right: 40px;
    left: auto;
    transform: none;
    padding: 0 25px;
    max-width: calc(100vw - 300px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
}
.hud-nav::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.floating-return-btn:hover, .hud-nav:hover {
    background: rgba(3, 4, 8, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Shared Typography & Glow Interaction */
.floating-return-btn .text, 
.hud-nav .nav-links-area a {
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    position: relative;
    padding: 15px 0;
    transition: color 0.3s ease;
}

/* Identical Underline Glow for all Nav Elements */
.floating-return-btn .text::after,
.hud-nav .nav-links-area a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.floating-return-btn:hover .text::after,
.hud-nav .nav-links-area a:hover::after {
    width: 100%;
}

/* Icons within unified style */
.floating-return-btn .icon {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 12px;
}

.floating-return-btn:hover .text, 
.floating-return-btn:hover .icon,
.hud-nav .nav-links-area a:hover {
    color: #fff !important;
}

/* Web Mode Theme Synchronization will go at the end to prevent overrides */
.hud-nav .nav-links-area {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0 10px;
}

.hud-nav .nav-links-area a {
    padding: 15px 0;
}

@keyframes navEntrance {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes navEntrance {
    0% { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(0.95); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.hud-nav:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(3, 4, 8, 0.55);
    box-shadow: 0 50px 120px rgba(0,0,0,0.6), inset 0 0 30px rgba(255,255,255,0.05);
}

.hud-nav .brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.hud-nav .brand-area:hover { transform: scale(1.02); }

.hud-nav .nav-links-area {
    display: flex;
    gap: 35px;
    align-items: center;
    padding: 0 25px 0 0;
}

.hud-nav .nav-links-area a {
    position: relative;
    padding: 8px 0;
}

.hud-nav .nav-links-area a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1.5px;
    background: white;
    box-shadow: 0 0 10px white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 10px;
    transform: translateX(-50%);
}

.hud-nav .nav-links-area a:hover::after {
    width: 80%;
}

.hud-nav .nav-action-area {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.hud-nav a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hud-nav a:hover { color: white; text-shadow: 0 0 15px rgba(255,255,255,0.4); }

/* --- WEB MODE THEME FOR TOPBAR --- */
.web-mode .floating-return-btn, 
.web-mode .hud-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.web-mode .floating-return-btn:hover, 
.web-mode .hud-nav:hover {
    background: #fff !important;
    border-color: #C9A050 !important;
}

.web-mode .floating-return-btn .text,
.web-mode .floating-return-btn .icon,
.web-mode .hud-nav a {
    color: #111111 !important;
    text-shadow: none !important;
    font-weight: 900 !important;
}

.web-mode .floating-return-btn:hover .text, 
.web-mode .floating-return-btn:hover .icon,
.web-mode .hud-nav a:hover {
    color: #C9A050 !important;
}

/* Web Mode Underline Glow Variant */
.web-mode .floating-return-btn .text::after,
.web-mode .hud-nav a::after {
    background: #C9A050 !important;
    box-shadow: 0 0 8px rgba(201, 160, 80, 0.4) !important;
}

.status-tag {
    font-size: 0.5rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
    font-weight: 900;
    transition: all 0.3s ease;
}

/* Responsiveness for HUD Nav - More aggressive to avoid cutting off */
@media (max-width: 1200px) {
    .hud-nav { top: 20px; transition: 0.3s; }
    .hud-nav .nav-links-area { gap: 15px; }
    .hud-nav a { font-size: 0.6rem; letter-spacing: 1px; }
}

@media (max-width: 1000px) {
    .hud-nav .nav-links-area { gap: 10px; }
    .hud-nav a { font-size: 0.55rem; letter-spacing: 0.5px; }
}
@media (max-width: 850px) {
    .hud-nav .status-tag { display: none; }
    .hud-nav .brand-area span:first-child { font-size: 1rem; }
    .hud-nav .nav-links-area { gap: 8px; }
}

@media (max-width: 768px) {
    .hud-nav { 
        top: 15px;
        width: 92%;
        padding: 10px 15px;
        border-radius: 100px;
        gap: 15px;
    }
    .hud-nav .nav-links-area { display: flex; gap: 10px; } 
    .hud-nav .nav-links-area a { font-size: 0.5rem; letter-spacing: 0px; }
    .floating-brand { position: relative !important; top: 0 !important; left: 0 !important; text-align: center; margin-bottom: -150px; z-index: 10; width: 100%; display: flex; justify-content: center; padding-top: 100px; }
}

/* === NANO-TECH STRIKING TEAM HUD (FINAL REPAIR) === */
.contact-hud {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 750px;
    margin: 40px auto 0;
    padding: 0 15px;
    perspective: 1000px;
}

.hud-card {
    flex: 1;
    min-height: 220px;
    border-radius: 24px;
    padding: 25px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hud-card.dark-theme { background: #0A0A0A; color: white; border-color: rgba(255, 255, 255, 0.1); }
.hud-card.light-theme { background: #fff; color: #1A1A1A; border-color: rgba(0, 0, 0, 0.05); box-shadow: 0 15px 35px rgba(0,0,0,0.03); }

.hud-card:hover { transform: translateY(-5px); }

.hud-card-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.hud-card-header h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.hud-card-header .role {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
}

.hud-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 5px;
    border-radius: 12px;
    text-transform: uppercase;
    font-size: 0.5rem;
    font-weight: 950;
    letter-spacing: 1px;
    transition: 0.2s;
}

.dark-theme .btn-tile { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.4); }
.light-theme .btn-tile { background: rgba(0, 0, 0, 0.02); color: rgba(0, 0, 0, 0.4); }

.btn-tile:hover { transform: translateY(-2px); color: #fff !important; }
.btn-tile i { font-size: 1rem; }

.btn-wa:hover { background: #25D366 !important; }
.btn-tg:hover { background: #00D2FF !important; }
.btn-gm:hover { background: #EA4335 !important; }

@media (max-width: 650px) {
    .contact-hud { flex-direction: column; align-items: center; gap: 15px; }
    .hud-card { width: 100%; max-width: 350px; }
}
}
