@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Navy & Gold */
    --primary: #0a192f;
    --primary-light: #112240;
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.3);
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Animation Tokens */
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .nav-logo {
    font-family: 'Outfit', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
}

nav.scrolled {
    padding: 1rem 10%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo span {
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(15px);
    min-width: 200px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    margin-top: 10px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.dropdown-content a:hover {
    background: var(--glass);
    color: var(--accent);
}

.dropdown.show .dropdown-content {
    display: block;
}

.mobile-only { display: none; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .nav-logo.dropdown .dropdown-content { display: none !important; }
    .nav-logo.dropdown .fa-chevron-down { display: none; }
}

.admin-link {
    background: var(--glass);
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
}

.admin-link::after { display: none !important; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.9)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* --- Animated Background Blobs --- */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    animation: float 15s infinite alternate ease-in-out;
}

.hero::before {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.25); /* Emerald Glow */
    top: -10%;
    left: -5%;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: rgba(236, 72, 153, 0.2); /* Rose Glow */
    bottom: -20%;
    right: -10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(40px, 40px) scale(1.05); }
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #8892b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    width: 100%;
    margin: 3rem auto 0;
    position: relative;
    z-index: 10;
}

.search-bar {
    width: 100%;
    padding: 1.2rem 2rem;
    padding-left: 4rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.1rem;
    backdrop-filter: blur(15px);
    transition: var(--transition-fast);
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.search-bar:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.4rem;
    z-index: 11;
}

/* Services Section - Emerald Palette */
#services-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding-bottom: 5rem;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.section-header {
    text-align: center;
    padding: 6rem 10% 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #10b981; /* Emerald */
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 10% 5rem;
}

/* Branch Selector - Premium Pills */
.branch-select-container {
    margin-top: 3rem;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10;
}

.branch-btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-btn::before {
    content: '\f3c5'; /* FontAwesome Map Pin */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0.5;
}

.branch-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.branch-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.branch-btn.active::before {
    color: #000;
    opacity: 1;
}

.service-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card .details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: none;
}

.service-card.active .details {
    display: block;
}

.doc-list {
    list-style: none;
    margin-top: 0.5rem;
}

.doc-list li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-list li::before {
    content: '✓';
    color: var(--accent);
}

/* Footer */
footer {
    padding: 5rem 10% 2rem;
    background: #020c1b;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- MOBILE HAMBURGER MENU --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--accent);
    cursor: pointer;
    z-index: 1002;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 10% 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        border-left: 1px solid var(--glass-border);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .dropdown-content {
        position: static;
        display: block;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }
}

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

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- ADAPTIVE UI (Advanced Responsive) --- */

@media (max-width: 1024px) {
    .grid-layout { 
        grid-template-columns: 1fr !important; 
        gap: 2rem;
    }
    .manage-container { padding: 2rem 5%; }
    .glass-card { position: static !important; }
}

@media (max-width: 768px) {
    #navbar { padding: 1rem 5%; }
    .nav-logo { font-size: 1.4rem; }
    
    .hero { height: auto; min-height: 100vh; padding: 120px 5% 60px; }
    .hero h1 { font-size: 2.2rem !important; }
    .hero p { font-size: 1rem; }
    
    .branch-select-container { 
        flex-wrap: wrap;
        gap: 10px;
    }
    .branch-btn { padding: 10px 15px; font-size: 0.85rem; }
    
    .services-grid { 
        grid-template-columns: 1fr !important; 
        padding: 0 5% 5rem;
    }
    
    .section-header h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem !important; }
    .service-card { padding: 1.5rem; }
    .nav-logo span { display: none; }
}

/* Table Responsive Support */
.table-container, .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
