/* 
    CD Global Public School - Main Design System
    Aesthetics: Modern, Vibrant, Child-Friendly, Premium
*/

:root {
    --primary: #6c2b85;
    /* Deep Purple/Plum */
    --primary-dark: #4a1d5a;
    --secondary: #ffeb3b;
    /* Bright Yellow */
    --accent: #e91e63;
    /* Magenta/Pink */
    --info: #03a9f4;
    /* Light Blue */
    --success: #8bc34a;
    /* Green */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #ffffff;
    --bg-yellow: #ffeb3b;
    --bg-purple: #6c2b85;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --blob-1: rgba(108, 43, 133, 0.1);
    --blob-2: rgba(255, 235, 59, 0.2);
    --blob-3: rgba(233, 30, 99, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 10px 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    display: block;
    transition: var(--transition);
}

.logo-link:hover .site-logo img {
    transform: scale(1.1) rotate(-5deg);
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.site-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

#primary-menu {
    display: flex;
    gap: 20px;
}

#primary-menu li a {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
}

#primary-menu li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

#primary-menu li a:hover:after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-phone:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.btn-gallery {
    color: #e91e63;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 15px;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
}

.btn-gallery:hover {
    color: #c2185b;
    transform: scale(1.1);
}

/* Hero Section - Full Banner Slider */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider-bg img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--white) !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-content h2 span {
    color: var(--secondary) !important;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--white) !important;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-punchline {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    color: var(--white);
    padding: 20px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Abstract Background Shapes */
.abstract-shape {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.blob {
    width: 300px;
    height: 300px;
    background: var(--blob-1);
    border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
    animation: blob-float 10s infinite alternate;
}

.blob-yellow {
    background: var(--blob-2);
    width: 400px;
    height: 400px;
}

.blob-green {
    background: var(--blob-3);
    width: 350px;
    height: 350px;
}

/* Hexagon Shapes */
.hexagon {
    width: 320px;
    height: 360px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.hexagon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-stripe {
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.05) 1px, transparent 0, transparent 50%);
    background-size: 10px 10px;
}

.insta-item:hover .insta-overlay {
    opacity: 1 !important;
}

.insta-item img {
    transition: var(--transition);
}

.insta-item:hover img {
    transform: scale(1.1);
}

/* Footer Creative Elements */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.icon-circle {
    background: var(--white);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-qr-container {
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 15px;
    text-align: center;
}

.footer-qr-placeholder {
    width: 80px;
    height: 80px;
    background: #eee;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #999;
    margin-bottom: 5px;
}

.shape-circle {
    width: 150px;
    height: 150px;
    border: 15px solid var(--blob-1);
    border-radius: 50%;
    opacity: 0.5;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--text-muted) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.2;
}

/* Wave Dividers */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
    pointer-events: none;
    z-index: 1;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: var(--bg-light);
}

/* Global Abstract Background */
.page-abstract-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.page-abstract-bg .blob {
    position: absolute;
    filter: blur(40px);
}

.bg-blob-1 {
    top: 10%;
    left: -10%;
    background: var(--blob-1);
    width: 600px;
    height: 600px;
}

.bg-blob-2 {
    top: 40%;
    right: -15%;
    background: var(--blob-2);
    width: 700px;
    height: 700px;
}

.bg-blob-3 {
    bottom: 10%;
    left: 20%;
    background: var(--blob-3);
    width: 500px;
    height: 500px;
}

.bg-blob-4 {
    bottom: -10%;
    right: 10%;
    background: var(--blob-1);
    width: 400px;
    height: 400px;
}

/* Pattern Overlay */
.page-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(var(--text-muted) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
}

/* Features/Stats */
.features {
    padding: 80px 0;
    margin-top: -50px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.section-header p {
    color: var(--text-muted);
}

/* Facilities */
.facilities {
    padding: 100px 0;
    background: var(--white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.facility-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-item:hover img {
    transform: scale(1.1);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #f1f5f9;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-subtitle {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 700;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .main-navigation {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 700;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .enquiry-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 600px) {
    .main-navigation {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .enquiry-form-card {
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }

    .class-selection {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
    }
}