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

:root {
    /* Main Colors */
    --color-primary: #f1ae0e;
    --color-primary-hover: #ffbd1a;
    --color-dark: #0a0a0a;
    --color-dark-alt: #1a1a1a;
    --color-dark-section: #0f0f0f;
    --color-dark-lighter: #2a2a2a;
    --color-black: #000;
    --color-white: #fff;
    
    /* Text Colors */
    --color-text-light: #ccc;
    --color-text-medium: #888;
    --color-text-dark: #555;
    
    /* Other Colors */
    --color-success: #4CAF50;
    --color-error: #ff6b6b;
    --color-overlay: rgba(10, 10, 10, 0.6);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-dark);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navigation Menu */
.main-nav {
    background: var(--color-dark-alt);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-dark-lighter);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    order: 1;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-donate {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-donate:hover {
    background: var(--color-primary-hover);
    transform: translateX(-50%) translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    margin-left: auto;
    order: 2;
}

.nav-menu li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
    .main-nav {
        padding: 15px 0 0 0;
    }

    .nav-container {
        flex-wrap: wrap;
        padding-bottom: 15px;
        position: relative;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .nav-logo {
        order: 1;
    }

    .nav-donate {
        order: 3;
        padding: 8px 20px;
        font-size: 0.9em;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .nav-donate:hover {
        transform: translate(-50%, -50%) translateY(-2px);
    }

    .nav-menu {
        position: absolute;
        top: 55px;
        left: 0;
        right: 0;
        background: var(--color-dark-alt);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        text-align: center;
        border-top: 1px solid var(--color-dark-lighter);
    }

    .nav-menu li a {
        display: block;
        padding: 15px;
    }
}

.container {
    background: var(--color-dark);
}

section {
    display: flex;
}

#home {
    display: block;
    background-image: url('https://images.pexels.com/photos/30511059/pexels-photo-30511059.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 50vh;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.6);
    z-index: 1;
}

#home .section-content {
    position: relative;
    z-index: 2;
    background: transparent;
    min-height: 50vh;
}

#about,
#donate,
#contact {
    display: block;
}

.section-content {
    flex: 1;
    background: var(--color-dark-section);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    position: relative;
}

#about .section-content,
#donate .section-content,
#contact .section-content {
    width: 100%;
    flex: none;
}

.about-content,
.donate-content,
.contact-content {
    max-width: 960px;
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    color: var(--color-dark-section);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-hover);
    transform: translateY(-5px);
}

.section-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-dark);
}

/* About Section */
#about {
    background: var(--color-dark-section);
}

.about-content h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--color-primary);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

.about-text {
    color: var(--color-white);
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: center;
}

.values-section {
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.values-section h3 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.values-list li {
    color: var(--color-white);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 0;
    position: relative;
}

.values-list li::before {
    display: none;
}

.values-list li strong {
    color: var(--color-primary);
}

/* Donate Section */
#donate {
    background: var(--color-dark-section);
}

.donate-content h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--color-primary);
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* Contact Section */
#contact {
    background: var(--color-dark-section);
}

.contact-content h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--color-primary);
    font-size: 2.5em;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .section-content {
        padding: 20px 30px;
    }
}

/* Header Top Bar */
.header-top-bar {
    background: var(--color-dark-section);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-dark-lighter);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.date-top {
    text-align: left;
    color: #888;
    font-size: 0.85em;
    line-height: 1.6;
}

.date-top .islamic {
    color: var(--color-primary);
    font-weight: 500;
}

.lang-btn {
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.lang-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.logo {
    width: 100px;
    height: auto;
    margin: 80px auto 30px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--color-primary);
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tagline {
    color: #888;
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: 300;
    font-style: italic;
}

.date-section {
    display: none;
}

.info-section {
    margin: 30px 0;
    color: var(--color-white);
    line-height: 1.8;
    font-size: 1em;
}

.info-section a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-section a:hover {
    color: var(--color-primary-hover);
}

.bank-details {
    margin: 40px 0;
    color: var(--color-white);
    line-height: 2;
}

.bank-details .title {
    color: var(--color-primary);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.bank-details .subtitle-text {
    color: var(--color-white);
    font-size: 0.95em;
    margin-bottom: 20px;
}

.bank-details .bank-info {
    margin-top: 15px;
}

.bank-details .bank-info div {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.copy-btn:hover {
    color: var(--color-primary-hover);
}

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

.copied {
    color: #4CAF50;
    font-size: 0.8em;
    margin-left: 5px;
}

.bank-details div {
    margin: 8px 0;
}

.map-container {
    width: 100%;
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: 1px solid var(--color-dark-lighter);
}

.footer {
    margin-top: 50px;
    color: #555;
    font-size: 0.9em;
}

/* Site Footer */
.site-footer {
    background: var(--color-dark-alt);
    border-top: 1px solid var(--color-dark-lighter);
    padding: 40px 20px 20px;
    color: var(--color-white);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-dark-section);
    color: #555;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    .about-content h2,
    .donate-content h2,
    .contact-content h2 {
        font-size: 2em;
    }

    .logo {
        margin: 60px auto 30px;
    }
}

/* Prayer Times Widget Styles */
.prayer-toggle-btn {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.prayer-toggle-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.prayer-toggle-btn svg {
    color: var(--color-dark-section);
}

.prayer-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--color-dark-section);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.prayer-panel.open {
    right: 0;
}

.prayer-panel-header {
    background: var(--color-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-primary);
}

.prayer-panel-header h3 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.prayer-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.prayer-close-btn:hover {
    color: var(--color-primary);
}

.prayer-panel-location {
    padding: 15px 20px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    background: #0f0f0f;
}

.prayer-panel-location svg {
    color: var(--color-primary);
}

.prayer-panel-date {
    padding: 15px 20px;
    background: var(--color-dark);
    border-bottom: 1px solid var(--color-dark-lighter);
    color: #ccc;
    font-size: 0.9em;
}

.prayer-panel-date .islamic-date {
    color: var(--color-primary);
    margin-top: 5px;
    font-size: 0.95em;
}

.prayer-times-list {
    padding: 20px;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #0f0f0f;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.prayer-item:hover {
    background: #151515;
    border-left-color: var(--color-primary);
}

.prayer-item.current-prayer {
    background: linear-gradient(135deg, var(--color-dark-section), #0f0f0f);
    border-left-color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.prayer-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prayer-name-en {
    color: #ccc;
    font-size: 1em;
    font-weight: 500;
}

.prayer-name-ar {
    color: #888;
    font-size: 0.85em;
}

.prayer-time {
    color: var(--color-primary);
    font-size: 1.2em;
    font-weight: 600;
}

.prayer-loading,
.prayer-error {
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.prayer-error {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .prayer-panel {
        width: 100%;
        right: -100%;
    }

    .prayer-toggle-btn {
        right: 20px;
    }
}

/* Impressum Page Styles */
.impressum-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 50vh;
}

.impressum-content h1 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--color-primary);
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

.impressum-section {
    margin-bottom: 40px;
    text-align: center;
}

.impressum-section h2 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.impressum-section p {
    color: var(--color-white);
    line-height: 1.8;
    margin-bottom: 10px;
    text-align: center;
}

.impressum-section a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-section a:hover {
    color: var(--color-primary-hover);
}
