/* ====================== GLOBAL STYLES ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #1E2A32;
    scroll-behavior: smooth;
    line-height: 1.5;
}

/* ====================== LOADING SCREEN ====================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 1s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 180px;
    height: 150px;
    animation: fadeInOut 2.2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(30, 123, 104, 0.3));
}

.loading-text {
    margin-top: 25px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1E2A32;
    letter-spacing: 4px;
    animation: fadeInOutText 2.2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%   { opacity: 1; }
    50%  { opacity: 0; }      
    100% { opacity: 1; }     
}

@keyframes fadeInOutText {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ====================== HEADER & NAVIGATION ====================== */
.header {
    position: fixed;
    top: 20px;
    left: 5%;
    width: 90%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    z-index: 1000;
    border: 2px solid #206ac5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #1E2A32;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #206ac5;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #206ac5;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: #1E2A32;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
    padding: 10px 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.dropdown-menu li {
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.2s;
    list-style: none;
}

.dropdown-menu li:hover {
    background: #F8F9FC;
    color: #206ac5;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ====================== HERO SECTION ====================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.glass-card-light {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border-radius: 48px;
    padding: 2.5rem;
    border: 1px solid rgba(201,160,61,0.4);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1E2A32;
}

.hero-text h1 span {
    color: #206ac5;
}

.hero-text p {
    color: #5A6E7A;
    margin: 1rem 0;
    font-size: 1.2rem;
}

/* Buttons */
.btn-primary, .btn-outline-light {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    margin: 0.5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.btn-primary {
    background: #206ac5;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201,160,61,0.3);
}

.btn-outline-light {
    border: 2px solid #206ac5;
    color: #1E2A32;
}

.btn-outline-light:hover {
    background: #206ac5;
    color: white;
}

/* ====================== GENERAL SECTIONS ====================== */
.section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge-light {
    background: rgba(32, 106, 197, 0.1);
    color: #206ac5;
    padding: 6px 18px;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title-light {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E2A32;
    position: relative;
    display: inline-block;
}

.section-title-light:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #206ac5;
    border-radius: 4px;
}

.alt-bg-light {
    background: #F8F9FC;
}

/* ====================== ABOUT SECTION ====================== */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat span {
    font-size: 2rem;
    font-weight: 800;
    color: #206ac5;
}

.about-img {
    flex: 1;
}

.img-wrapper-light {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
}

.img-wrapper-light img {
    width: 100%;
    display: block;
}

/* ====================== CORE VALUES (FLIP CARDS - LIGHT BLUE) ====================== */
.core-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.core-card-flip {
    width: 280px;
    height: 300px;
    perspective: 1000px;
}

.core-card-flip .flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform-style: preserve-3d;
    border-radius: 28px;
}

.core-card-flip:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.flip-front {
    border: 2px solid rgba(32, 106, 197, 0.3);
}

.flip-front i {
    font-size: 3rem;
    color: #206ac5;
    margin-bottom: 1rem;
}

.flip-front h3 {
    color: #1E2A32;
    font-size: 1.3rem;
    text-align: center;
}

.flip-back {
    background: #206ac5;
    color: white;
    transform: rotateY(180deg);
}

.flip-back p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    padding: 0.5rem;
}

.core-card-flip:hover .flip-front {
    border-color: #206ac5;
    box-shadow: 0 10px 25px rgba(32, 106, 197, 0.2);
}

/* Mobile touch support for flip cards */
@media (max-width: 768px) {
    .core-card-flip {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .flip-back p {
        font-size: 0.85rem;
    }
    
    .flip-front h3 {
        font-size: 1.2rem;
    }
}

/* ====================== SERVICES SECTION ====================== */
.services-selector {
    text-align: center;
    margin-bottom: 2rem;
}

.glass-select-light {
    background: white;
    border: 1px solid #206ac5;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
}

.service-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-card {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    outline: 4px solid #206ac5;
    outline-offset: -4px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
    outline-color: #206ac5;
    transform: translateY(-4px);
}

.service-content {
    flex: 1;
    min-width: 280px;
}

.service-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #1E2A32;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    display: block;
}

.service-desc {
    font-size: 1.15rem;
    color: #5A6E7A;
    line-height: 1.6;
}

.service-images {
    flex: 1.6;
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.service-images img {
    width: 320px;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: 0.4s;
    outline: 2px solid rgba(32, 106, 197, 0.2);
    outline-offset: -2px;
}

.service-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
    outline-color: #206ac5;
    transform: translateY(-6px) scale(1.03);
}

/* ====================== PARTNERS MARQUEE ====================== */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    background: white;
    border-radius: 60px;
    padding: 2.5rem 0 !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    margin: 2.5rem 0;
}

.marquee-track {
    display: flex !important;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.marquee-wrapper .marquee-track img {
    height: 180px !important;
    margin: 0 45px !important;
    filter: grayscale(0.2);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) !important;
    flex-shrink: 0;
}

.marquee-track img:hover {
    filter: grayscale(0) !important;
    transform: scale(1.08) !important;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused !important;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====================== TEAM SECTION ====================== */
.team-grid-modern {
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card-modern {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.2rem;
}

.team-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 40px -10px rgba(32, 106, 197, 0.15);
    border: 2px solid #206ac5;
}

.team-card-modern img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    flex-shrink: 0;
    border: 6px solid rgba(32, 106, 197, 0.1);
    transition: 0.4s;
}

.team-card-modern:hover img {
    transform: scale(1.05);
    border-color: #206ac5;
}

.team-info {
    flex: 1;
    padding-right: 1rem;
}

.team-card-modern h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1E2A32;
    margin-bottom: 0.3rem;
}

.team-card-modern .role {
    font-size: 1.35rem;
    color: #206ac5;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.team-card-modern .rank {
    font-size: 1.1rem;
    color: #5A6E7A;
    line-height: 1.5;
}

/* ====================== ACTIVITIES SECTION ====================== */
.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.activity-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: stretch;
    gap: 2rem;
    padding: 1.5rem;
}

.activity-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 40px -10px rgba(32, 106, 197, 0.18);
    border: 2px solid #206ac5;
}

.activity-card img {
    width: 340px;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    flex-shrink: 0;
    transition: 0.4s;
}

.activity-card:hover img {
    transform: scale(1.04);
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.activity-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E2A32;
    margin-bottom: 0.6rem;
}

.activity-card p {
    font-size: 1.15rem;
    color: #5A6E7A;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-read {
    align-self: flex-start;
    background: transparent;
    border: 2px solid #206ac5;
    color: #206ac5;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
}

.btn-read:hover {
    background: #206ac5;
    color: white;
    transform: translateY(-3px);
}

/* ====================== VIDEO BACKGROUND SECTION ====================== */
#video {
    position: relative;
    height: 600px;
    max-width: 1100px;
    margin: 3rem auto;
    border-radius: 32px;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    z-index: 2;
}

.video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

/* ====================== CONTACT SECTION ====================== */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-radius: 48px;
    padding: 2rem;
    border: 1px solid rgba(201,160,61,0.3);
}

.map-box {
    flex: 1;
}

.contact-info {
    flex: 1;
}

.input-group-light {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    margin-bottom: 1rem;
    padding: 0 1rem;
    border: 1px solid #eee;
}

.input-group-light i {
    color: #206ac5;
}

.input-group-light input, .input-group-light textarea {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 60px;
    outline: none;
    font-family: inherit;
}

.input-group-light textarea {
    border-radius: 24px;
}

.btn-primary-light {
    background: #206ac5;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-light:hover {
    background: #1a5aa8;
}

/* Contact Glass Panel New Layout */
.contact-glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border: 3px solid #206ac5;
    border-radius: 40px;
    padding: 2.5rem;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
    max-width: 1280px;
    margin: 0 auto;
}

.contact-grid {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
}

.contact-map {
    flex: 1;
    min-height: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-info-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.hours-card {
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(32,106,197,0.15);
    border-radius: 24px;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hours-card i {
    font-size: 2.2rem;
    color: #206ac5;
}

.hours-card h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.25rem;
    color: #1E2A32;
}

.hours-card h5 {
    margin: 0 0 0.4rem 0;
    font-size: 0.9rem;
    color: #5A6E7A;
    font-weight: normal;
}

.hours-card .closed {
    color: #d9534f;
    font-size: 1rem;
}

.contact-details {
    font-size: 1.15rem;
    color: #5A6E7A;
}

.contact-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-details a {
    color: #206ac5;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-light button {
    width: 100%;
    margin-top: 1rem;
}

/* ====================== FOOTER ====================== */
.footer-light {
    background: #F8F9FC;
    color: #5A6E7A;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #eaeef2;
}

.social-links a {
    color: #206ac5;
    margin: 0 0.5rem;
    font-size: 1.3rem;
}

.footer-simple {
    background: #ffffff;
    border-top: 3px solid #206ac5;
    padding: 2rem 0 1.5rem;
    color: #5A6E7A;
}

.footer-content-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-left-simple .footer-logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1E2A32;
}

.copyright {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.itqan-logo-simple {
    height: 40px;
    justify-content: right;
}

.developed-by {
    margin: 0;
    font-size: 0.95rem;
    color: #777;
    text-align: right;
}

.developed-by strong {
    color: #206ac5;
}

/* ====================== RESPONSIVE MEDIA QUERIES ====================== */
@media (max-width: 992px) {
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-images {
        width: 100%;
        justify-content: center;
    }
    
    .service-images img {
        width: 280px;
        height: 210px;
    }

    .contact-grid {
        flex-direction: column;
    }
    
    .contact-map {
        min-height: 340px;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: 0.3s;
        box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-img {
        order: -1;
        width: 100%;
    }

    .about-text {
        width: 100%;
    }

    .stats-row {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .service-images img {
        width: 240px;
        height: 190px;
    }

    .team-card-modern {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .team-card-modern img {
        width: 220px;
        height: 220px;
    }
    
    .team-info {
        padding-right: 0;
    }
    
    .team-card-modern h3 {
        font-size: 1.7rem;
    }

    .activity-card {
        flex-direction: column;
        text-align: center;
        padding: 1.8rem;
        gap: 1.5rem;
    }
    
    .activity-card img {
        width: 100%;
        height: 220px;
    }
    
    .activity-content {
        padding: 0;
    }
    
    .btn-read {
        align-self: center;
    }

    .footer-content-simple {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-right-simple {
        text-align: center;
    }
    
    .itqan-logo-simple {
        height: 60px;
    }

    #video {
        height: 250px;
    }
}