﻿:root {
    --red: #e63946;
    --white: #ffffff;
    --font: "Poppins", sans-serif;
    --dark-text: #1d3557;
}

body {
    font-family: var(--font);
}

html {
    scroll-behavior: smooth;
}

header {
    margin-bottom: 85px;
    width: 100%;
    overflow: hidden;
}

.hero-section {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-left: 8%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    border-radius: 10px;
}

.hero-content {
    text-align: left;
    color: white;
    z-index: 2;
    max-width: 600px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
    padding-top: 90px;
}

.hero-content h1 {
     font-size: 5rem;
     margin: 0;
     line-height: 1.1;
     font-weight: 800;
     margin-left: -5px;
}

.hero-content p {
     font-size: 1.1rem;
     line-height: 1.8;
     margin-top: 20px;
     font-weight: 300;
     margin-left: -5px;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0 50px;
    z-index: 10;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
     color: #d59297;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 20;
}

/* Buttons Styles */
.btn-navlogin {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    white-space: nowrap;
}

.btn-register {
    background: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    white-space: nowrap;
}

 .btn-register:hover {
     background: #c12e3a;
 }


.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right a[href*="javascript:void(0)"] {
     color: var(--red); 
     font-size: 26px; 
     text-decoration: none;
     display: flex;
     align-items: center;
}

.nav-right a[href*="javascript:void(0)"]:hover {
     transform: scale(1.05); 

}

.nav-right a[href*="Logout"] {
     background-color: var(--red);
     color: white;
     padding: 8px 16px; 
     border-radius: 6px;
     font-weight: 600; 
     text-decoration: none;
     display: flex;
     align-items: center;
     gap: 8px; 
}

.nav-right a[href*="Logout"]:hover {
      transform: translateX(3px); 
}

.free-btn {
    background-color: #ffffff;
    color: #e31e24;
    padding: 10px 25px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}


.free-btn:hover {
    background-color: #e31e24;
    color: #ffffff;
    border: 2px solid #ffffff;
    transform: translateY(-2px); 
}

header {
    margin-bottom: 85px;
}

@media screen and (min-width: 769px) {
    .nav-menu-wrapper {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    .nav-links{
        margin-left: 150px;
    }

    .nav-right{
        margin-right: 120px;
    }
    .nav-toggle {
        display: none !important;
    }
}

    /* Tablet */
    @media screen and (min-width: 769px) and (max-width: 1024px) {
        .hero-section {
            height: 70vh;
            padding-left: 5%;
        }

        .hero-content h1 {
            font-size: 3.5rem;
        }

        .hero-content p {
            font-size: 1rem;
        }

        .nav-links {
            gap: 20px;
        }

            .nav-links a {
                font-size: 13px;
            }

        .navbar {
            padding: 0 30px;
        }

        .hero-bg {
            object-position: center center;
        }
    }

    /* Mobile */
    @media screen and (max-width: 768px) {
        .nav-menu-wrapper {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 80px;
            left: 0;
            width: 100%;
            background: rgba(29, 53, 87, 0.98);
            padding: 20px;
            z-index: 1000;
            box-sizing: border-box;
        }

        .nav-menu-wrapper.active {
                display: block;
        }


        .nav-links,
        .nav-right {
            display: flex !important; 
            flex-direction: column;
            width: 100%;
            position: static; 
            background: transparent; 
            padding: 0;
        }

        .nav-right {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .hero-section {
            height: 100vh;
            padding-left: 0;
            align-items: flex-end;
            padding-bottom: 60px;
        }

        .hero-content {
            padding: 0 20px;
            padding-top: 0;
            max-width: 100%;
            margin: auto;
            font-size: 25px;
        }

        .hero-content h1 {
            font-size: 3rem;
        }

        .hero-content p {
            font-size: 1rem;
            line-height: 1.6;
        }

        .free-btn {
            margin: 20px auto 0 auto;
            display: inline-flex;
        }

        .nav-toggle {
            display: block;
        }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            width: 100%;
        }

        .nav-links a {
            display: block;
            padding: 12px 15px;
            border-radius: 8px;
            font-size: 1rem;
            color: white;
        }

        .nav-links a:hover {
             background: rgba(255,255,255,0.1);
        }

        .btn-navlogin,
        .btn-register {
            width: 100%;
            text-align: center;
            padding: 12px;
            justify-content: center;
            display: flex;
        }

        .hero-bg {
            object-position: left center;
        }

        .navbar {
            padding: 0 20px;
        }

        header {
            margin-bottom: 40px;
        }
    }

    @media screen and (max-width: 480px) {
        .hero-content h1 {
            font-size: 3.5rem;
        }

        .hero-content p {
            font-size: 1.5rem;
        }
    }

    .scroll-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background-color: var(--red);
        color: var(--white);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: none;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: all 0.3s ease;
    }

        .scroll-btn:hover {
            background-color: var(--dark-text);
            transform: translateY(-5px);
        }

        .scroll-btn i {
            font-size: 1.2rem;
        }

    .founder-container {
        height: 600px;
    }

        .founder-container h1 {
            text-align: center;
            margin-bottom: 0;
            color: var(--dark-text);
        }

    @keyframes slideFromLeft {
        from {
            opacity: 0;
            transform: translateX(-150px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideFromRight {
        from {
            opacity: 0;
            transform: translateX(100px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .founder-img-container,
    .founder p {
        opacity: 0;
    }

    .founder {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        padding-top: 20px;
        position: relative;
    }

    .bg-quote {
        position: absolute;
        top: -20px;
        right: 10%;
        font-size: 250px;
        font-family: "Playfair Display", serif;
        color: rgba(29, 53, 87, 0.05);
        z-index: -1;
        user-select: none;
    }

    .founder-img {
        flex-shrink: 0;
        position: relative;
        width: 220px;
        height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .founder img {
        width: auto;
        height: 500px;
        border-radius: 50%;
        object-fit: cover;
        border: 6px solid var(--white);
        float: left;
        shape-outside: circle(50%);
        margin-right: 30px;
        box-shadow: 0 0 0 3px #1d3557, 0 0 0 8px #e63946, 0 0 20px rgba(230, 57, 70, 0.4), 0 10px 20px rgba(0, 0, 0, 0.15);
        z-index: 2;
        animation: slideFromLeft linear forwards;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    .founder-img-container::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient( circle, rgba(230, 57, 70, 0.1) 0%, transparent 70% );
        border-radius: 50%;
        z-index: 1;
    }

    .founder-name {
        display: inline-block;
        font-family: "Playfair Display", serif;
        font-size: 2.8rem;
        font-weight: 800;
        letter-spacing: 1px;
        color: #1d3557;
        margin-bottom: 10px;
        background: linear-gradient(to right, #1d3557, #e63946);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .founder p {
        font-size: larger;
        text-align: justify;
        margin-bottom: 20px;
        line-height: 1.8;
        color: #444;
        animation: slideFromRight linear forwards;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    .founder strong {
        color: #1d3557;
        font-weight: 600;
    }

    @media screen and (max-width: 768px) {
        .founder-container {
            height: auto;
            padding: 50px 20px;
        }

        .founder {
            flex-direction: column;
            justify-content: center;
            text-align: center;
            padding-top: 0;
        }

            .founder img {
                height: 250px;
                width: 250px;
                float: none;
                margin: 0 auto 30px auto;
                shape-outside: none;
                border-width: 4px;
            }

            .founder p {
                font-size: 1.05rem;
                text-align: center;
                line-height: 1.6;
                padding: 0 10px;
            }

        .founder-name {
            font-size: 2rem;
            margin-bottom: 5px;
        }

        .bg-quote {
            font-size: 120px;
            top: -10px;
            right: 5%;
        }

        @keyframes slideFromLeft {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideFromRight {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }
    /* -------------------------------------------------------------------------------------------*/

    /* About us part */
    .story-section {
        max-width: 1000px;
        margin: 180px auto;
        padding: 0 5px;
    }

        .story-section h1 {
            text-align: center;
            color: var(--dark-text);
            background: linear-gradient(to right, #1d3557, #e63946);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    .story-block {
        display: flex;
        align-items: center;
        gap: 60px;
        margin-bottom: 90px;
    }

        .story-block.reverse {
            flex-direction: row-reverse;
        }

    /* The Big Decorative Number */
    .story-visual {
        font-size: 8rem;
        font-weight: 900;
        color: transparent;
        -webkit-text-stroke: 2px rgba(29, 53, 87, 0.1);
        flex: 1;
        text-align: center;
        font-family: var(--font);
    }

    .story-content {
        flex: 1.5;
    }

        .story-content h3 {
            font-size: 2rem;
            color: #1d3557;
            margin-bottom: 15px;
            position: relative;
        }

            /* Subtle red accent line under titles */
            .story-content h3::after {
                content: "";
                position: absolute;
                bottom: -5px;
                left: 0;
                width: 50px;
                height: 3px;
                background: #e63946;
            }

    .story-block.reverse .story-content h3::after {
        left: auto;
        right: 0;
    }

    .story-block.reverse .story-content {
        text-align: right;
    }

    .story-content p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #4a5568;
    }

    /* Arabic Slogan */
    .bottom-slogan {
        text-align: center;
        font-size: 2rem;
        color: #1d3557;
        margin-top: 10px;
        margin-bottom: 0;
        font-family: "Cairo", sans-serif;
    }

    /* Mobile: Stack them normally */
    @media (max-width: 768px) {
        .story-block,
        .story-block.reverse {
            flex-direction: column;
            text-align: center !important;
            gap: 20px;
        }

        .story-content h3::after {
            left: 50% !important;
            transform: translateX(-50%);
        }
    }

    /*Journey*/
    .how-it-works {
        padding: 80px 5%;
        background-color: #f8f9fa;
    }

    .steps-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-top: 50px;
    }

    .step-card {
        flex: 1;
        text-align: center;
        padding: 30px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        position: relative;
        transition: 0.3s;
    }

        .step-card:hover {
            transform: translateY(-5px);
        }

    .step-icon {
        width: 80px;
        height: 80px;
        background: var(--dark-text);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        margin: 0 auto 20px;
        position: relative;
    }

    .step-number {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--red);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .step-card h3 {
        color: var(--dark-text);
        margin-bottom: 15px;
        font-size: 1.25rem;
    }

    .step-card p {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.5;
    }

    .step-arrow {
        font-size: 1.5rem;
        color: var(--red);
    }

    /* Mobile Responsiveness */
    @media (max-width: 992px) {
        .steps-wrapper {
            flex-direction: column;
        }

        .step-arrow {
            transform: rotate(90deg);
            margin: 10px 0;
        }

        .step-card {
            width: 100%;
        }
    }

    /*Activities*/
    .community-life {
        padding: 80px 5% 50px;
        padding-bottom: 50px !important;
        background-color: #fff;
    }

    .section-title {
        font-size: 2rem;
        color: var(--dark-text);
        font-weight: 800;
        text-align: center;
    }

    .section-title,
    .section-subtitle {
        text-align: center;
    }

    .bento-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 250px);
        gap: 20px;
        margin-top: 40px;
    }

    .bento-item {
        border-radius: 20px;
        padding: 30px;
        position: relative;
        overflow: hidden;
        color: white;
        display: flex;
        align-items: flex-end;
        background-size: cover;
        background-position: center;
    }

    .concours {
        grid-column: span 2;
        grid-row: span 2;
        background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('/images/concours.jpg');
    }

    .sports {
        background: #e63946;
    }

    .ramadan {
        background: #1d3557;
    }

    .workshops {
        grid-column: span 2;
        background-color: #f1f1f1;
        color: #1d3557;
    }

    .bento-content h3 {
        margin: 10px 0;
        font-size: 1.5rem;
    }

    .badge {
        background: var(--red);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        text-transform: uppercase;
    }

    .insta-cta {
        margin-top: 60px;
        background: #f9f9f9;
        border-radius: 20px;
        padding: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #eee;
    }

    .cta-text h3 {
        color: var(--dark-text);
        margin-bottom: 10px;
    }

    .cta-text p {
        margin: 0;
        color: #555;
    }

    .insta-btn {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        color: white !important;
        padding: 15px 30px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    /* Mobile Responsiveness */
    @media (max-width: 992px) {
        .insta-cta {
            flex-direction: column;
            text-align: center;
            gap: 25px;
        }

        .bento-grid {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
        }

        .bento-item {
            grid-column: span 1;
            grid-row: span 1;
            min-height: 250px;
        }
    }


    /*           FEEDBACK SECTION                */
    .feedback-preview {
        padding: 100px 5%;
        padding-top: 50px !important;
        background-color: #fff;
    }

    .feedback-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 50px;
    }

    .feedback-card {
        background: #fdfdfd;
        padding: 40px;
        border-radius: 20px;
        border: 1px solid #eee;
        position: relative;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        .feedback-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.05);
            border-color: var(--red);
        }

    .quote-icon {
        color: var(--red);
        font-size: 1.5rem;
        margin-bottom: 20px;
        opacity: 0.3;
    }

    .feedback-text {
        font-style: italic;
        color: var(--dark-text);
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .rating-stars {
        border-top: 1px solid #eee;
        padding-top: 20px;
        margin-bottom: 15px;
        display: flex;
        gap: 4px;
    }

        .rating-stars i {
            color: #ffc107;
            font-size: 0.9rem;
        }

    .feedback-card:hover .rating-stars i {
        transform: scale(1.1);
        transition: 0.3s;
    }

    .feedback-footer {
        text-align: center;
        margin-top: 50px;
    }

    .btn-main {
        background-color: var(--red);
        color: white;
        padding: 15px 40px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: 0.3s;
        display: inline-block;
    }

        .btn-main:hover {
            background-color: var(--dark-text);
            color: white;
            transform: scale(1.05);
        }

    /*FOOTER*/
    .main-footer {
        background: #b51818;
        color: white;
        padding: 80px 5% 20px;
        font-family: var(--font);
    }

    .footer-container {
        display: grid;
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 50px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-col h2 span {
        color: white;
    }

    .footer-col h2 {
        color: var(--dark-text);
    }

    .footer-col h3 {
        color: white;
        font-size: 1.2rem;
        margin-bottom: 25px;
        position: relative;
    }

        .footer-col h3::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 30px;
            height: 2px;
            background: var(--dark-text);
        }

    .footer-col p {
        line-height: 1.6;
        margin: 20px 0;
    }

    .footer-col ul {
        list-style: none;
        padding: 0;
    }

        .footer-col ul li {
            margin-bottom: 12px;
        }

            .footer-col ul li a {
                color: white;
                text-decoration: none;
                transition: 0.3s;
            }

                .footer-col ul li a:hover {
                    color: white;
                    padding-left: 5px;
                }

    .social-links {
        display: flex;
        gap: 15px;
    }

        .social-links a {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
            transition: 0.3s;
            text-decoration: none;
        }

            .social-links a:hover {
                background: var(--dark-text);
                transform: translateY(-3px);
            }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }

        .contact-item i {
            color: var(--dark-text);
        }

    .footer-bottom {
        margin-top: 60px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
        font-size: 0.85rem;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .footer-container {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }
