@import 'variables.css';
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;600;700&display=swap');

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Modern UI font */
    background-color: var(--accent-sand);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Amiri', serif;
    /* Elegant serif for headings */
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Use CSS Pattern instead of missing image */
    background-color: var(--primary-dark);
    background-image:
        radial-gradient(circle at center, rgba(140, 18, 1, 0.8) 0%, rgba(94, 0, 0, 1) 100%),
        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='%23d19a02' fill-opacity='0.1'%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");
    background-size: cover, auto;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/arabesque.png');
    /* Subtle texture */
    opacity: 0.1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.ramadan-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 4rem;
    color: white;
    /* Override default */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* Feature Grid */
.features {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Gallery Multi-Image Grid */
.event-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 2px;
    background: #eee;
    overflow: hidden;
}

.event-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.event-card:hover .event-image-grid img {
    transform: scale(1.05);
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
    border: 1px solid rgba(140, 18, 1, 0.05);
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.feature-card {
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    background: white;
    border-radius: 16px;
    /* Smooth corners */
    border: 1px solid rgba(140, 18, 1, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #fff3f0;
    /* Light red tint */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Countdown */
.countdown-section {
    background: white;
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 16px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent-gold);
}

.timer-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.timer-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    font-family: 'Amiri', serif;
}

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

/* Footer & Pattern Overlay */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 70px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Islamic Pattern Overlay for Footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 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='%23d19a02' fill-opacity='0.1'%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.3;
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    padding: 20px;
    z-index: 999;
}

.mobile-menu a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: var(--primary-dark);
    font-weight: 500;
}

.mobile-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Azkar Counter Feature */
.zikr-card {
    position: relative;
    /* For badge positioning */
    cursor: pointer;
    user-select: none;
}

.zikr-count-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    transition: 0.2s;
}

.zikr-card:active .zikr-count-badge {
    transform: scale(0.9);
}

.zikr-card.completed {
    opacity: 0.5;
    background: #f9f9f9;
    border-color: #ddd;
    pointer-events: none;
    /* Disable clicking */
}

.zikr-card.completed .zikr-count-badge {
    background: #27ae60;
    /* Green check */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .timer-grid {
        gap: 10px;
    }

    .timer-item .number {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
}