/* Premium Elegant Glassmorphic School Website CSS */

:root {
    /* Sophisticated Color Palette */
    --primary-glass: rgba(255, 255, 255, 0.08);
    --secondary-glass: rgba(255, 255, 255, 0.04);
    --accent-glass: rgba(255, 255, 255, 0.12);
    --border-glass: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.55);
    
    /* Elegant Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    --gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    
    /* Sophisticated Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-glass: 24px;
    --radius-soft: 16px;
    --radius-round: 50px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-bg);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphic Components */
.glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-glass);
    box-shadow: var(--shadow-glass);
}

.glass-soft {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-soft);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--shadow-glass);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.navbar-brand img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--radius-round);
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 70%;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-glass);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary) !important;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    transform: translateX(3px);
}

/* Hero Section - Elegant & Sophisticated */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    animation: heroTitleFloat 8s ease-in-out infinite;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: heroSubtitleFloat 8s ease-in-out infinite 1s;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroButtonsFloat 8s ease-in-out infinite 2s;
}

/* Floating Elements - Subtle & Elegant */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--gradient-glass);
    border-radius: 50%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    animation: float 10s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.6;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
    width: 100px;
    height: 100px;
}

.floating-element:nth-child(2) {
    top: 65%;
    right: 12%;
    width: 140px;
    height: 140px;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    left: 15%;
    width: 80px;
    height: 80px;
}

/* Buttons - Elegant & Sophisticated */
.btn {
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius-round);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    color: white;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Cards - Premium Glassmorphic */
.card {
    background: var(--gradient-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-glass);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-bounce);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

/* Carousel - Elegant */
.carousel {
    border-radius: var(--radius-glass);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

.carousel-item {
    height: 550px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-soft);
    padding: 2rem;
    bottom: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
}

/* Vision & Mission */
.vision-mission {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vision-card, .mission-card {
    text-align: center;
    position: relative;
}

.vision-card i, .mission-card i {
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
}

/* Principal Section */
.principal-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.principal-image {
    border-radius: var(--radius-glass);
    box-shadow: var(--shadow-glass);
    border: 3px solid var(--border-glass);
}

.principal-content {
    padding: 2.5rem;
}

.principal-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    position: relative;
}

.principal-quote::before {
    content: '"';
    font-size: 5rem;
    color: var(--text-muted);
    position: absolute;
    top: -1.5rem;
    left: -3rem;
    font-family: serif;
}

/* Stats Section */
.bg-gradient {
    background: var(--gradient-dark) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

/* Footer - Elegant */
.footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 1.5rem;
}

.footer h5 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    font-size: 0.95rem;
}

.footer ul li a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--gradient-glass);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-bounce);
    border: 1px solid var(--border-glass);
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--text-primary);
    background: var(--gradient-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 3rem;
}

.footer-copyright p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* Animations - Subtle & Elegant */
@keyframes heroTitleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes heroSubtitleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

@keyframes heroButtonsFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(90deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.8s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .floating-element {
        display: none;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-radius: var(--radius-soft);
        padding: 1.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-glass);
}

.rounded-custom {
    border-radius: var(--radius-glass);
}

.transition-custom {
    transition: var(--transition-smooth);
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 100px;
} 