/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.moon-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.crescent-moon {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 50px #ffd700,
        0 0 100px rgba(255, 215, 0, 0.5),
        0 0 150px rgba(255, 215, 0, 0.3);
    animation: moonGlow 3s infinite alternate;
}

.crescent-moon::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: #16213e;
    border-radius: 50%;
    top: -15px;
    left: 15px;
    animation: crescentReveal 2s ease-out forwards;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stars::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    box-shadow: 
        50px 50px white,
        100px 30px white,
        150px 80px white,
        80px 120px white,
        30px 150px white,
        180px 150px white,
        -50px 50px white,
        -100px 30px white,
        -150px 80px white;
    animation: twinkle 1s infinite alternate;
}

.loading-text {
    color: #ffd700;
    font-size: 24px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
    position: relative;
}

.loading-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--ramadan-gold),
        transparent
    );
    animation: loadingBar 2s ease-in-out infinite;
}

.dedication {
    position: absolute;
    bottom: 50px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

.dedication-text {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.special-name {
    display: block;
    font-size: 36px;
    color: #ffd700;
    text-shadow: 
        0 1px 0 #cca300,
        0 2px 0 #b38f00,
        0 3px 0 #997a00,
        0 4px 0 #806600,
        0 5px 0 #664d00,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
    animation: textFloat 3s ease-in-out infinite;
}

.ornament-line {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        #ffd700, 
        transparent);
    margin: 15px auto;
    position: relative;
}

.ornament-line::before,
.ornament-line::after {
    content: '❁';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 20px;
}

.ornament-line::before {
    left: 20px;
}

.ornament-line::after {
    right: 20px;
}

.moon-container::after {
    content: '✦';
    position: absolute;
    font-size: 20px;
    color: var(--ramadan-gold);
    animation: sparkle 1.5s ease-in-out infinite;
}

.moon-container::after:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.moon-container::after:nth-child(2) { top: 60%; right: 20%; animation-delay: 0.3s; }
.moon-container::after:nth-child(3) { bottom: 20%; left: 40%; animation-delay: 0.6s; }

/* Animations */
@keyframes moonGlow {
    0% { box-shadow: 0 0 50px #ffd700, 0 0 100px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 70px #ffd700, 0 0 150px rgba(255, 215, 0, 0.7); }
}

@keyframes crescentReveal {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes colorCycle {
    0% { color: #ffd700; }
    33% { color: #ff9f43; }
    66% { color: #ff6b6b; }
    100% { color: #ffd700; }
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes loadingBar {
    0% { width: 0; opacity: 0; }
    50% { width: 100px; opacity: 1; }
    100% { width: 0; opacity: 0; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 3D Transform Effects */
.splash-screen * {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.crescent-moon {
    transform: translate(-50%, -50%) rotateX(20deg) rotateY(20deg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotateX(20deg) rotateY(20deg) translateZ(0); }
    50% { transform: translate(-50%, -50%) rotateX(25deg) rotateY(25deg) translateZ(20px); }
}

:root {
    --primary-color: #c8a45d;
    --primary-rgb: 200, 164, 93;
    --secondary-color: #8d6e3f;
    --accent-color: #d4af37;
    --text-color: #333;
    --card-bg: rgba(255, 255, 255, 0.95);
    --header-bg: rgba(255, 255, 255, 0.98);
    --progress-bg: #f0f0f0;
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --background-color: #f5f6fa;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gold: #ffd700;
    --green: #2ecc71;
    --ramadan-primary: #c17e12;
    --ramadan-secondary: #8e44ad;
    --depth-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --hover-lift: 20px;
    --rotation-degree: 15deg;
    --perspective: 1000px;
    --transition-speed: 0.4s;
    --ocean-deep: #006994;
    --ocean-medium: #0099cc;
    --ocean-light: #66ccff;
    --ocean-foam: #e6f7ff;
    --ocean-dark: #003366;
    --wave-color: rgba(102, 204, 255, 0.2);
}

[data-theme="dark"] {
    --primary-color: #ecf0f1;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #ecf0f1;
    --background-color: #1a1a2e;
    --card-bg: #16213e;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-dark));
    color: var(--ocean-foam);
    position: relative;
    overflow-x: hidden;
    transition: all 0.3s ease;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Amiri', serif;
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-dark));
    color: var(--ocean-foam);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23c8a45d' fill-opacity='0.1'%3E%3Cpath d='M40 0c22.091 0 40 17.909 40 40S62.091 80 40 80 0 62.091 0 40 17.909 0 40 0zm0 2c21.015 0 38 16.985 38 38S61.015 78 40 78 2 61.015 2 40 18.985 2 40 2zm0 4c19.882 0 36 16.118 36 36S58.882 76 40 76 6 58.882 6 40 21.222 6 40 6zm0 2c18.778 0 34 15.222 34 34S56.778 74 40 74 10 54.778 10 40 23.431 12 40 12zm0 4c16.569 0 30 13.431 30 30S55.464 68 40 68 10 54.569 10 40 24.536 14 40 14z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--wave-color) 100%
    );
    animation: wave 8s infinite linear;
    z-index: -1;
}

.lantern {
    position: fixed;
    width: 40px;
    height: 60px;
    background: radial-gradient(circle at 50% 50%, var(--ramadan-primary), transparent);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.lantern::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 5px 5px 0 0;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.crescent-moon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--ramadan-primary), var(--gold));
    border-radius: 50%;
    box-shadow: 15px 15px 0 0 var(--bg-color);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: opacity 0.5s ease-out;
}

.islamic-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23c8a45d' fill-opacity='0.1'%3E%3Cpath d='M40 0c22.091 0 40 17.909 40 40S62.091 80 40 80 0 62.091 0 40 17.909 0 40 0zm0 2c21.015 0 38 16.985 38 38S61.015 78 40 78 2 61.015 2 40 18.985 2 40 2zm0 4c19.882 0 36 16.118 36 36S58.882 76 40 76 6 58.882 6 40 21.222 6 40 6zm0 2c18.778 0 34 15.222 34 34S56.778 74 40 74 10 54.778 10 40 23.431 12 40 12zm0 4c16.569 0 30 13.431 30 30S55.464 68 40 68 10 54.569 10 40 24.536 14 40 14z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.1;
}

/* Prayer Times Styles */
.prayer-times-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.prayer-times-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prayer-times-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.current-time {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

.prayer-time-card {
    background: linear-gradient(135deg, var(--ocean-foam), white);
    border: 2px solid var(--ocean-light);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.prayer-time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--ocean-medium);
}

.prayer-time-card i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.prayer-time-card h3 {
    margin: 10px 0;
    color: var(--secondary-color);
}

.prayer-time-card .time {
    font-size: 1.2em;
    color: var(--text-color);
    font-weight: bold;
}

/* Enhanced Zikr Cards */
.zikr-card {
    background: linear-gradient(135deg, var(--ocean-foam), white);
    border: 2px solid var(--ocean-light);
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zikr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 153, 0.3);
    border-color: var(--ocean-medium);
}

.zikr-card.completed {
    background: linear-gradient(135deg, var(--ocean-light), var(--ocean-foam));
    border-color: var(--ocean-deep);
    box-shadow: 0 0 15px rgba(0, 153, 204, 0.3);
}

.zikr-card.completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--ocean-deep);
    font-size: 24px;
}

.zikr-text {
    color: var(--ocean-dark);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.zikr-source {
    color: var(--ocean-deep);
    font-style: italic;
    margin-top: 10px;
    font-size: 14px;
}

.counter-btn {
    background: linear-gradient(135deg, var(--ocean-medium), var(--ocean-deep));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.counter-btn:hover {
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-dark));
    transform: scale(1.05);
}

.counter-btn:active {
    transform: scale(0.95);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 10px;
    background: var(--ocean-foam);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ocean-medium), var(--ocean-light));
    transition: width 0.5s ease;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zikr-card {
        padding: 20px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }

    .app-container {
        padding: 10px;
    }

    .zikr-text {
        font-size: 1em;
    }
}

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

/* Navigation Styles */
.categories-nav {
    background: var(--header-bg);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-scroll {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.category-btn {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 10px 20px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Amiri', serif;
}

.category-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 20px auto;
}

#searchInput {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 1.1em;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Amiri', serif;
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

/* Touch Device Optimizations */
@media (hover: none) {
    .zikr-card:active {
        transform: scale(0.98) !important;
        background: rgba(255, 215, 0, 0.05);
    }
    
    .counter-wrapper:active {
        transform: scale(0.95);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .zikr-card {
        padding: 20px;
        margin: 10px;
    }

    .zikr-text {
        font-size: 1.1rem;
    }

    .counter-wrapper {
        padding: 6px 12px;
    }

    .counter {
        font-size: 1rem;
    }

    .increment-btn {
        width: 25px;
        height: 25px;
    }

    .completed::after {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

.app-header {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.app-header h1 {
    font-family: 'Aref Ruqaa', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--background-color);
    border-radius: 30px;
    padding: 10px 20px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: inset 0 2px 5px var(--shadow-color);
}

.search-bar input {
    width: 100%;
    border: none;
    background: none;
    padding: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
    outline: none;
}

.search-bar i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.nav-scroll {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
}

.category-btn {
    background: var(--card-bg);
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.category-btn.active {
    background: var(--secondary-color);
    color: white;
}

.progress-container {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.progress-text {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.progress-bar {
    height: 10px;
    background: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--green);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.azkar-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.zikr-title {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 1.4rem;
    color: var(--ramadan-primary);
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prophet-name {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.2rem;
    color: var(--ramadan-secondary);
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.zikr-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 20px 0;
    text-align: justify;
    position: relative;
    z-index: 2;
}

.zikr-source {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
    margin-top: 10px;
}

.explanation, .lessons, .virtues {
    margin-top: 15px;
    padding: 10px;
    border-right: 3px solid var(--ramadan-primary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.explanation {
    border-color: var(--ramadan-primary);
}

.lessons {
    border-color: var(--gold);
}

.virtues {
    border-color: var(--ramadan-secondary);
}

.category-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(145deg, var(--ramadan-primary), var(--gold));
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.daily-update {
    text-align: center;
    margin-bottom: 20px;
    color: var(--ramadan-primary);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--ramadan-primary);
    border-radius: 3px;
    opacity: 0.5;
}

.floating-counter {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.counter-card {
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
}

.counter-value {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.counter-label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.counter-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.counter-btn:hover {
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.app-footer {
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
}

.footer-content {
    position: relative;
}

.ramadan-decoration {
    height: 60px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%233498db" fill-opacity="0.2" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.footer-info {
    padding: 20px;
    color: var(--text-color);
}

.social-links {
    margin-top: 15px;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

@keyframes completion {
    0% { transform: scale(1); }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 30px var(--gold);
    }
    100% { transform: scale(1); }
}

.completed {
    animation: completion 1s ease;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--gold); }
    50% { box-shadow: 0 0 20px var(--gold); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.islamic-ornament {
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%233498db" d="M50,0 L100,50 L50,100 L0,50 L50,0 Z"/></svg>');
    background-size: 40px;
    background-repeat: repeat-x;
    margin: 20px 0;
    opacity: 0.2;
}

@media (max-width: 768px) {
    .prayer-times-details {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        padding: 5px;
    }

    .ramadan-banner h2 {
        font-size: 2rem;
    }

    .prayer-time-card {
        padding: 10px;
    }

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

    .prayer-name {
        font-size: 1rem;
    }

    .time {
        font-size: 1.1rem;
    }

    .next-prayer {
        font-size: 1rem;
    }

    .floating-counter {
        padding: 10px 20px;
    }

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

    .settings-panel {
        width: 100%;
        left: -100%;
    }
}

.info-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

.info-card h3 {
    color: var(--secondary-color);
    margin: 15px 0 10px;
    font-size: 1.2em;
}

.info-card p {
    margin: 10px 0;
    line-height: 1.6;
}

.info-card strong {
    color: var(--accent-color);
}

.info-card ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.info-card li {
    padding: 5px 0;
    position: relative;
    padding-right: 20px;
}

.info-card li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    right: 0;
}

.pillars, .beliefs, .principles {
    background: rgba(var(--primary-rgb), 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

/* Add beautiful animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.2); }
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Progress bar styles */
.progress-container {
    width: 100%;
    height: 10px;
    background: var(--ocean-foam);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ocean-medium), var(--ocean-light));
    transition: width 0.5s ease;
    border-radius: 5px;
}

.prayer-time-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.prayer-time-card.next-prayer {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
    background: linear-gradient(45deg, #E3F2FD, #BBDEFB);
}

/* Theme transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes wave {
    0% { transform: translateX(0) translateZ(0) scaleY(1); }
    50% { transform: translateX(-25%) translateZ(0) scaleY(0.8); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Celebration Effects */
.celebration-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--ramadan-gold);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: celebrate 1s ease-out forwards;
    animation-delay: var(--delay);
}

@keyframes celebrate {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(cos(var(--angle)) * var(--distance)),
            calc(sin(var(--angle)) * var(--distance))
        ) scale(1);
        opacity: 0;
    }
}

/* Counter Animation */
.count-text {
    transition: all 0.2s ease;
    display: inline-block;
}

/* Completion Glow Effect */
.completed .counter-btn {
    background: linear-gradient(135deg, var(--ramadan-gold), var(--ramadan-primary));
    animation: glow 2s infinite;
}

/* Add sparkle effect to completed cards */
.completed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(255, 215, 0, 0.2) 0%,
                transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.completed:hover::before {
    opacity: 1;
    --x: var(--mouse-x);
    --y: var(--mouse-y);
}
