﻿/*--------------------------------------------------------------
# Main Styles - Jao Quran Website
# Cleaned version without navbar conflicts
--------------------------------------------------------------*/

:root {
    --primary-brown: #3E2D30;
    --gold: #CE9D72;
    --gold-dark: #B8865A;
    --light-blue: #4FC6E0;
    --dark-teal: #234449;
    --gray: #BCBEC0;
    --medium-teal: #3B6269;
    --cream: #F8F4F0;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--cream);
    color: var(--primary-brown);
    overflow-x: hidden;
}

/*--------------------------------------------------------------
# Islamic Pattern Background
--------------------------------------------------------------*/
.islamic-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    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%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%233E2D30' stroke-width='1'/%3E%3Cpath d='M30 10L50 30L30 50L10 30z' fill='none' stroke='%233E2D30' stroke-width='0.5'/%3E%3C/svg%3E");
}

/*--------------------------------------------------------------
# General Buttons (Outside Header)
--------------------------------------------------------------*/
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(206, 157, 114, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(206, 157, 114, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--light-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
    color: var(--primary-brown);
}

/*--------------------------------------------------------------
# Hero Slider
--------------------------------------------------------------*/
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 100px; /* Space for fixed header */
}

@media (max-width: 991px) {
    .hero {
        margin-top: 70px; /* Smaller header on mobile */
    }
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide:nth-child(1) .slide-bg {
    background: linear-gradient(rgba(62, 45, 48, 0.7), rgba(62, 45, 48, 0.8)), url('../images/photo3.jfif') center/cover;
}

.slide:nth-child(2) .slide-bg {
    background: linear-gradient(rgba(35, 68, 73, 0.7), rgba(35, 68, 73, 0.8)), url('../images/photo2.jfif') center/cover;
}

.slide:nth-child(3) .slide-bg {
    background: linear-gradient(rgba(59, 98, 105, 0.7), rgba(59, 98, 105, 0.8)), url('../images/photo1.jfif') center/cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L100 50L50 100L0 50z' fill='none' stroke='%23CE9D72' stroke-width='0.3' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: var(--white);
    max-width: 700px;
    z-index: 10;
}

.slide-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.slide-title {
    font-family: 'Amiri', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.slide-title span {
    color: var(--light-blue);
}

.slide-desc {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
}

.slide-btns {
    display: flex;
    gap: 15px;
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--gold);
    border-color: var(--white);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
    pointer-events: none;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(206, 157, 114, 0.3);
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
}

.slider-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.1);
}

/*--------------------------------------------------------------
# Section Headers
--------------------------------------------------------------*/
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: var(--light-blue);
}

.section-tag::before {
    right: -25px;
}

.section-tag::after {
    left: -25px;
}

.section-title {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-brown);
    margin-bottom: 15px;
}

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

.section-desc {
    font-size: 18px;
    color: var(--medium-teal);
    max-width: 600px;
    margin: 0 auto;
}

/*--------------------------------------------------------------
# Statistics Section
--------------------------------------------------------------*/
.stats {
    padding: 80px 60px;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(62, 45, 48, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--light-blue) 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(62, 45, 48, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(206, 157, 114, 0.1) 0%, rgba(79, 198, 224, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold);
}

.stat-number {
    font-family: 'Amiri', serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.stat-number span {
    color: var(--gold);
    font-size: 22px;
}

.stat-label {
    font-size: 14px;
    color: var(--medium-teal);
    font-weight: 500;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
    padding: 100px 60px;
    background: var(--primary-brown);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40z' fill='none' stroke='%23CE9D72' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.testimonials .section-tag {
    color: var(--light-blue);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-desc {
    color: var(--gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(206, 157, 114, 0.2);
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--gold);
}

.testimonial-quote {
    font-size: 48px;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Amiri', serif;
}

.testimonial-text {
    color: var(--white);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 25px;
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(206, 157, 114, 0.2);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.testimonial-info h4 {
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-info p {
    color: var(--gold);
    font-size: 14px;
}

.testimonial-rating {
    margin-right: auto;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 3px;
}

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
.partners {
    padding: 100px 60px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 30px rgba(62, 45, 48, 0.05);
    transition: all 0.4s;
    height: 120px;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(62, 45, 48, 0.1);
}

.partner-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background: var(--primary-brown);
    padding: 80px 60px 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23CE9D72' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo-icon {
    width: 70px;
    height: 70px;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.footer-logo-text span:first-child {
    font-size: 14px;
    color: var(--gold);
}

.footer-logo-text span:nth-child(2) {
    font-size: 18px;
    font-weight: 700;
}

.footer-logo-text span:last-child {
    color: var(--light-blue);
}

.footer-desc {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(206, 157, 114, 0.1);
    border: 1px solid rgba(206, 157, 114, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

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

.footer-column h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '◂';
    color: var(--gold);
    font-size: 10px;
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 10px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 15px;
}

.footer-contact li i {
    color: var(--gold);
    font-size: 18px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(206, 157, 114, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: var(--gray);
    font-size: 14px;
}

.footer-copyright span {
    color: var(--gold);
}

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

.footer-bottom-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

/*--------------------------------------------------------------
# Responsive - Tablet & Mobile
--------------------------------------------------------------*/
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .slide-content {
        right: 5%;
        left: 5%;
        text-align: center;
    }

    .slide-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats {
        padding: 60px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .testimonials {
        padding: 60px 20px;
    }

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

    .partners {
        padding: 60px 20px;
    }

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

    .footer {
        padding: 60px 20px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .slider-arrows {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-desc {
        font-size: 15px;
    }
    
    .slide-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

/*--------------------------------------------------------------
# Scrollbar Styling
--------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/*--------------------------------------------------------------
# Selection Color
--------------------------------------------------------------*/
::selection {
    background: var(--gold);
    color: var(--white);
}

::-moz-selection {
    background: var(--gold);
    color: var(--white);
}
