/* --- CSS VARIABLES & DESIGN SYSTEM --- */
:root {
    --primary: #00E5FF;
    --secondary: #7B2EFF;
    --accent: #FF2ED1;
    --bg-deep: #0A0A0F;
    --surface: rgba(18, 18, 26, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --glow-primary: 0 0 20px rgba(0, 229, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(123, 46, 255, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo { font-family: 'Orbitron', sans-serif; }

/* --- BACKGROUND ANIMATIONS --- */
#particles {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite alternate;
}
.orb-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: var(--secondary); }
.orb-2 { bottom: -10%; right: -10%; width: 300px; height: 300px; background: var(--primary); animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* --- LOADER --- */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}
.glitch-text {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: var(--glow-primary);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}
.progress-bar {
    width: 200px; height: 4px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
}
.progress {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: loadProgress 1s ease-out forwards;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.05); } }
@keyframes loadProgress { to { width: 100%; } }

/* --- NAVBAR --- */
.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 30px;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo { font-size: 1.2rem; color: var(--primary); font-weight: 700; letter-spacing: 2px; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); text-shadow: var(--glow-primary); }

/* --- TYPOGRAPHY & LAYOUT --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 20px;
}
.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.neon-title {
    font-size: clamp(3rem, 8vw, 5rem);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
    margin-bottom: 10px;
}
.subtitle { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 30px; }

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-secondary);
    transition: var(--transition);
    display: flex; align-items: center; gap: 10px;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--glow-primary); }

.btn-icon {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }

/* --- GLASS CARDS (HUB) --- */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
}
.grid { display: flex; flex-direction: column; gap: 15px; }
.link-card {
    display: flex; align-items: center; gap: 20px;
    text-decoration: none; color: white;
    position: relative; overflow: hidden;
}
.link-card i:first-child { font-size: 2rem; }
.card-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.card-info p { font-size: 0.85rem; color: var(--text-secondary); }
.card-arrow { margin-left: auto; color: var(--text-secondary); transition: var(--transition); }

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 229, 255, 0.05);
}
.link-card:hover .card-arrow { transform: translateX(5px); color: var(--primary); }

/* --- VIDEO --- */
.video-container { padding: 10px; }
.video-container iframe { border-radius: 12px; }

/* --- ANIMATIONS (SCROLL) --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- TOAST --- */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--accent); color: white;
    padding: 12px 24px; border-radius: 30px;
    opacity: 0; transition: var(--transition); z-index: 1000;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .nav-links { display: none; } /* Simplified for mobile */
    .neon-title { font-size: 2.5rem; }
}
/* Navigation Links Styling */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px; /* Icon එක සහ අකුර අතර පරතරය */
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Icons වලට පොඩි පාටක් එකතු කිරීම */
.nav-links li a i {
    font-size: 1.1rem;
    color: #00f2ff; /* Neon Cyan color */
    transition: transform 0.3s ease;
}

/* Hover Effect - මවුස් එක උඩට ගිය විට */
.nav-links li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-links li a:hover i {
    transform: translateY(-2px); /* Icon එක පොඩ්ඩක් උඩට යයි */
    color: #fff;
}

/* Active Section Indicator (පහළින් එන ඉර) */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00f2ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 70%;
}

/* Mobile Responsive - ෆෝන් එකේදී අකුරු නැතිව Icons විතරක් පෙන්වීමට අවශ්‍ය නම් */
@media (max-width: 600px) {
    .nav-links {
        gap: 15px;
    }
    .nav-links li a span {
        display: none; /* අකුරු හංගා icons විතරක් පෙන්වයි */
    }
    .nav-links li a i {
        font-size: 1.3rem;
    }
}
.contact-link {
    color: #00f2ff; /* ඔයාගේ Theme එකට ගැලපෙන Neon Cyan පාට */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px dashed transparent;
}

.contact-link:hover {
    color: #fff;
    border-bottom: 1px dashed #00f2ff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
}
