/* 
 * Landing Page Stylesheet - Swimming Qween Academy
 * Theme: Sky & Water Premium
 */

:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary: #0369a1;
    --accent: #7dd3fc;
    --bg-light: #f0f9ff;
    --text-dark: #0c4a6e;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    scroll-behavior: smooth;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-brand img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}
.hero-actions {
	display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
	text-align: center;
}
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.6) 0%, rgba(3, 105, 161, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
	text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    transition: opacity 0.5s ease;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    transition: opacity 0.5s ease;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

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

.btn-white {
    background-color: var(--white);
    color: var(--primary);
	font-size: 20px;
}

.btn-white:hover {
    background-color: var(--accent);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Features */
.features {
    padding: 100px 0;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-icon-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.feature-icon-link:hover {
    transform: scale(1.1);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 12px;
    color: var(--primary-hover);
}

/* Stats */
.stats {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item h4 {
    font-size: 3rem;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--glass-dark);
    max-width: 700px; /* Reduced width for better focus */
    width: 100%;
    padding: 2rem; /* Reduced padding on mob */
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    color: white;
    max-height: 90vh; /* Hardware limit */
    overflow-y: auto; /* Enable scroll if content long */
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

/* Language Switcher */
.lang-switcher {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(14, 165, 233, 0.1);
}

/* Footer */
footer {
    background-color: var(--glass-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links ul li {
    margin-bottom: 0.75rem;
}

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

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* RTL Support */
[dir="rtl"] .hero h1, 
[dir="rtl"] .hero p {
    text-align: right;
}

[dir="rtl"] .nav-links {
    margin-right: auto;
}

[dir="rtl"] .footer-grid {
    text-align: right;
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow);
        border-top: 1px solid rgba(14, 165, 233, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    [dir="rtl"] .hero h1, [dir="rtl"] .hero p { text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Contact Us Section Styles */
.contact-us {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateX(<?php echo $dir == 'rtl' ? '-10px' : '10px'; ?>);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.info-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-card.whatsapp {
    border-left: 4px solid #25d366;
}
[dir="rtl"] .info-card.whatsapp {
    border-left: none;
    border-right: 4px solid #25d366;
}

.info-card.whatsapp .info-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-card {
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    color: var(--white);
}

.social-card.facebook { background: #1877f2; }
.social-card.tiktok { background: #000000; }

.social-card:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
}

.form-card h3 {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modern-form .form-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modern-form input, 
.modern-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.modern-form input:focus, 
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Responsiveness for Contact Us */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .modern-form .form-row {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 1.5rem;
    }
}

/* About Page & Advanced Slideshow */
.about-hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    transform: skewY(-2deg);
}

.about-content-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-text-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 950px;
    margin: 0 auto 5rem;
    border: 1px solid rgba(14, 165, 233, 0.1);
    position: relative;
    z-index: 2;
}

.about-text-card p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
}

.slideshow-container {
    max-width: 1100px;
    position: relative;
    margin: auto;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16/9;
    border: 8px solid var(--white);
}

.mySlides {
    display: none;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: panEffect 15s infinite alternate ease-in-out;
}

@keyframes panEffect {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

.fade {
    animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.slideshow-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background-color: var(--white);
    width: 35px;
    border-radius: 10px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.4s all ease;
    border-radius: 50%;
    user-select: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
    margin: 0 20px;
}

.next { right: 0; }
.prev { left: 0; }

.prev:hover, .next:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .about-text-card {
        padding: 2rem;
        margin-bottom: 3rem;
    }
    .about-text-card p {
        font-size: 1.2rem;
    }
    .slideshow-container {
        border-width: 4px;
        border-radius: 1.5rem;
    }
    .prev, .next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}
