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

:root {
    --primary: #1a3c4a;
    --secondary: #c9a84c;
    --accent: #2d6a4f;
    --dark: #0d1b2a;
    --light: #f8f4e9;
    --cream: #f0e6d3;
    --gold: #d4a843;
    --gold-light: #f0d78c;
    --text: #2c3e50;
    --text-light: #6c7a7f;
    --card-bg: #ffffff;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Amiri', serif;
}

.logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--gold);
    border-radius: 4px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3c4a 40%, #2d6a4f 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 24px 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(45, 106, 79, 0.1) 0%, transparent 50%);
    animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 1%) rotate(1deg); }
    66% { transform: translate(-1%, -1%) rotate(-1deg); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 8px;
    line-height: 1.4;
}

.translation {
    color: var(--gold-light);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 24px;
}

.hero-text {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.verse-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 36px;
    backdrop-filter: blur(8px);
}

.arabic-verse {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 12px;
    line-height: 1.8;
}

.english-verse {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 8px;
}

.verse-ref {
    color: var(--gold-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #b8912e);
    color: var(--dark);
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(201, 168, 76, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(201, 168, 76, 0.2);
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section.dark-bg {
    background: var(--dark);
    color: #ddd;
}

.section.dark-bg .section-title {
    color: var(--gold);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 4px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* Prayer Times */
.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.prayer-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.prayer-card i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.prayer-card h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.prayer-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Amiri', serif;
}

.location-info {
    text-align: center;
    color: var(--text-light);
    margin-top: 24px;
    font-size: 0.95rem;
}

/* Quran Reader */
.quran-reader {
    max-width: 700px;
    margin: 0 auto;
}

.selector-row {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.surah-selector,
.ayah-selector {
    flex: 1;
}

.surah-selector label,
.ayah-selector label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-weight: 500;
}

.surah-selector select,
.ayah-selector select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #eee;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    cursor: pointer;
    outline: none;
}

.surah-selector select option,
.ayah-selector select option {
    background: var(--dark);
    color: #eee;
}

.ayah-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arabic-ayah {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
    line-height: 1.8;
}

.bengali-ayah {
    color: #d4edda;
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-family: 'Hind Siliguri', sans-serif;
    line-height: 1.8;
}

.english-ayah {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.ayah-number {
    color: var(--gold-light);
    font-size: 0.85rem;
    font-style: italic;
}

.ayah-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

/* Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.pillar-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--gold);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold), #b8912e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pillar-icon i {
    font-size: 1.5rem;
    color: var(--dark);
}

.pillar-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.pillar-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.pillar-card p:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 99 Names */
.search-box {
    max-width: 400px;
    margin: 0 auto 32px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #eee;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    font-family: 'Hind Siliguri', sans-serif;
}

.search-box input::placeholder {
    color: #888;
}

.search-box input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.name-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.name-card:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-2px);
}

.name-card .arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.name-card .transliteration {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 4px;
    font-weight: 500;
}

.name-card .meaning {
    font-size: 0.8rem;
    color: #999;
}

/* Footer */
footer {
    background: var(--dark);
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Amiri', serif;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.footer-text {
    color: #888;
    font-style: italic;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.copyright {
    color: #666;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 27, 42, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 4px;
        transition: left 0.3s ease;
    }

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

    .nav-links a {
        font-size: 1.1rem;
        padding: 14px 32px;
        width: 80%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .names-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .prayer-card {
        padding: 20px 12px;
    }

    .prayer-card i {
        font-size: 1.5rem;
    }

    .names-grid {
        grid-template-columns: 1fr;
    }

    .ayah-nav {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .ayah-nav .btn-secondary {
        justify-content: center;
    }
}
