:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Latha', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header & Navigation */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 50px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: -4px;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.85rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    opacity: 1;
    color: var(--accent);
}

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

nav a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="white"/></svg>') repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    font-family: inherit;
}

.search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.search-container svg {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 5%;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 200px;
    border-bottom: 4px solid var(--accent);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Container & Grid */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gn-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.gn-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-top {
    background: var(--primary-light);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gn-number {
    background: var(--accent);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
}

.gn-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.contact-item svg {
    color: var(--accent-hover);
    width: 20px;
    height: 20px;
}

.gs-name-row {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    color: var(--primary);
}

.gs-name-row small {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gs-name-row span {
    font-weight: 600;
    font-size: 1.1rem;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content img {
    height: 70px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-district {
    color: var(--accent);
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .stats {
        flex-direction: column;
        align-items: center;
        padding: 2rem 5%;
        margin-top: -2rem;
    }
    .stat-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
}
