:root {
    --bg-dark: #0f172a;
    --bg-surface: rgba(30, 41, 59, 0.7);
    --primary: #fbbf24;
    --primary-glow: rgba(251, 191, 36, 0.3);
    --secondary: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #22c55e;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    
    /* Neon Branding Colors */
    --neon-blue: #00f3ff;
    --neon-gold: #ffcc00;
}

/* 3D Neon Logo Styles */
.neon-logo-container {
    perspective: 1000px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.neon-logo-main {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue);
    animation: neon-flicker 2s infinite alternate;
    letter-spacing: 4px;
}

.neon-logo-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--neon-gold);
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 0 5px var(--neon-gold);
    margin-top: 5px;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 4px #fff,
            0 0 10px var(--neon-blue),
            0 0 20px var(--neon-blue),
            0 0 40px var(--neon-blue);
    }
    20%, 24%, 55% { text-shadow: none; }
}

.brand-icons-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    opacity: 0.6;
}

.brand-icons-row svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: all 0.3s ease;
}

.brand-icons-row svg:hover {
    fill: var(--neon-blue);
    transform: scale(1.2);
    opacity: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans Sinhala', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(251, 191, 36, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

/* Language Switcher Tab */
.lang-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--glass-border);
    margin-right: 15px;
}

.lang-tab {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-tab.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.lang-tab:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Navigation */
nav {
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.stat-card {
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

button {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:active {
    transform: scale(0.97);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th {
    text-align: left;
    padding: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

td {
    padding: 14px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-paid { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-overdue { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* --- Responsive Media Queries --- */

/* Tablets */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 12px;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .lang-switcher {
        margin-right: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .glass-panel {
        padding: 15px;
        border-radius: 12px;
    }

    input, select, button {
        height: 50px;
        font-size: 0.95rem;
    }

    h1, h2, h3 {
        font-size: 1.25rem;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Small Screens */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .nav-content {
        gap: 8px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .lang-tab {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }
}

/* --- Landing Page Styles --- */
.landing-page {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-dark);
    scroll-behavior: smooth;
    overflow-y: auto;
}

.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 100%),
        linear-gradient(to bottom, transparent 80%, var(--bg-dark) 100%);
}

.hero-content {
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-premium {
    background: linear-gradient(135deg, var(--neon-blue), #00a2ff);
    color: #000;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-premium:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    background: rgba(255, 204, 0, 0.05);
}

/* Sections */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-title .accent {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--neon-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-text strong {
    color: #fff;
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.about-stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.about-stat-item .value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-blue);
}

.about-stat-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Locations */
.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.location-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

.location-item h4 {
    color: var(--neon-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.location-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #020205;
    padding: 80px 20px 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo h2 {
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Floating Elements Background */
.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- Mobile Fixes for Landing --- */
@media (max-width: 768px) {
    .section-title h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 3.5rem !important; }
    .about-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}
