/* Al-Wissem School Premium Landing Page CSS - V2 (Interactive) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Brand Colors */
    --primary: #295C87;
    --primary-light: #3a7caf;
    --primary-dark: #1b405e;
    --secondary: #F9E17F;
    --secondary-light: #fbeba8;
    --secondary-dark: #e6c84c;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(249, 225, 127, 0.6);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 120px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-lg);
    border-radius: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px; /* Pill shape for modern look */
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(41, 92, 135, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(41, 92, 135, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(249, 225, 127, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 225, 127, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(41, 92, 135, 0.3);
}

/* Animations Keyframes */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(5px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(249, 225, 127, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(249, 225, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 225, 127, 0); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blobBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1.5rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 55px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.navbar.scrolled .logo-img {
    height: 45px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    border-radius: 3px;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(-45deg, var(--bg-light), #e2e8f0, #f1f5f9, var(--bg-light));
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    overflow: hidden;
}

/* Animated Background Blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,225,127,0.4) 0%, rgba(255,255,255,0) 70%);
    filter: blur(40px);
    z-index: 0;
    animation: blobBounce 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,92,135,0.2) 0%, rgba(255,255,255,0) 70%);
    filter: blur(60px);
    z-index: 0;
    animation: blobBounce 12s infinite alternate-reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--primary-dark);
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-badge i {
    color: var(--secondary-dark);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s both;
}

.hero-title span {
    background: linear-gradient(90deg, var(--primary), #5297c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 16px;
    background: var(--secondary);
    z-index: -1;
    border-radius: 8px;
    opacity: 0.8;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.6s both;
}

.hero-cta .btn-secondary {
    animation: pulseGlow 2s infinite;
}

/* 3D Tilt Cards */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-inner {
    transform: translateZ(30px);
}

/* Features/Values Section */
.features {
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 1.5rem;
    background: var(--bg-light);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
    background: var(--white);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(41, 92, 135, 0.2);
    animation: float 6s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 1.5s; background: linear-gradient(135deg, var(--secondary-dark), var(--secondary)); color: var(--primary-dark); }
.feature-card:nth-child(3) .feature-icon { animation-delay: 3s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 4.5s; background: linear-gradient(135deg, var(--secondary-dark), var(--secondary)); color: var(--primary-dark); }

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Cycles / Programs */
.cycles {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Background grid pattern for cycles */
.cycles::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.cycles .section-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
}

.cycles .section-title::after {
    background: var(--secondary);
}

.cycles .section-subtitle {
    color: #cbd5e1;
}

.cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.cycle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: var(--transition-normal);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cycle-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(249, 225, 127, 0.1), transparent);
    transition: var(--transition-normal);
}

.cycle-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 225, 127, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cycle-card:hover::after {
    height: 100%;
}

.cycle-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    transition: var(--transition-normal);
}

.cycle-card:hover .cycle-icon {
    transform: scale(1.2) translateY(-5px);
    text-shadow: var(--shadow-glow);
}

.cycle-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cycle-card p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-light);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    cursor: crosshair;
    background: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(27, 64, 94, 0.8) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--secondary);
    font-size: 3rem;
    transform: scale(0.5);
    transition: var(--transition-normal);
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(249, 225, 127, 0.5));
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
    opacity: 1;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    padding: 7rem 0;
    text-align: center;
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

/* Diagonal stripe overlay */
.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.1) 20px,
        rgba(255,255,255,0.1) 40px
    );
    animation: slideBackground 20s linear infinite;
    z-index: 0;
}

@keyframes slideBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.2);
    padding: 4rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.4);
}

.cta-title {
    color: var(--primary-dark);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.cta-content .btn-primary {
    background: var(--primary-dark);
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.cta-content .btn-primary:hover {
    background: var(--primary);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 6rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
}

.footer-text {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-5px) rotate(10deg);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(249, 225, 127, 0.2);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    transition: var(--transition-normal);
    font-size: 1.05rem;
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    color: var(--secondary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-info i {
    color: var(--secondary);
    margin-top: 5px;
    font-size: 1.2rem;
    background: rgba(249, 225, 127, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

/* Enhanced Entrance Animations */
@keyframes fadeInUpScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .nav-links { display: none; } /* Simple hide for mobile, assuming a hamburger menu is added later */
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .section-padding { padding: 4rem 0; }
    .hero { padding-top: 100px; min-height: 85vh; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .cta-content { padding: 2rem; }
    .cta-title { font-size: 2.5rem; }
}
