/* 
    Vivekananda School - Premium Design System
    Theme: Modern, Trustworthy, Parent-Focused
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #1E3A8A;        /* Deep Blue */
    --primary-light: #2563EB;
    --primary-dark: #1e3a8a;
    --secondary: #FACC15;      /* Vibrant Yellow Accent */
    --accent-light: #FEFCE8;   /* Soft Yellow Background */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --text-main: #1F2937;
    --text-muted: #6B7280;

    /* Shadows */
    --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-premium: 0 25px 50px -12px rgba(30, 58, 138, 0.15);

    /* Spacing & Radii */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    --section-padding-desktop: 120px 0;
    --section-padding-mobile: 80px 0;
    
    /* Animation */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.container {
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-white { color: white; }
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    text-transform: capitalize;
}
.section-subtitle {
    display: block;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Layout Utilities */
.section-padding { padding: 120px 0; }
.full-width { width: 100%; }
.bg-light { background-color: var(--gray-50); }
.bg-primary { background-color: var(--primary); color: white; }
.bg-accent { background-color: var(--accent-light); }

.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 20px; }
}
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
    .container { width: 100% !important; max-width: 100% !important; padding: 0 15px; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.8rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}
.btn-secondary:hover {
    background-color: #eab308;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: var(--primary);
}
.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
}

/* Sticky Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

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

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
    flex-shrink: 0;
}

header.scrolled .logo-img { height: 50px; }

.logo-text { line-height: 1; }
.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

header.scrolled .logo-name { color: var(--primary); }

.logo-sub {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .logo-name { font-size: 1rem; }
    .logo-sub { font-size: 0.55rem; letter-spacing: 0; }
    .logo-img { height: 40px; }
    header.scrolled .logo-img { height: 35px; }
    .btn-sm { padding: 6px 12px; font-size: 0.75rem; }
    .header-container { gap: 10px; }
    .logo-link { gap: 8px; }
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

header.scrolled .nav-links a { color: var(--gray-800); }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }

header.scrolled .nav-links a:hover, 
header.scrolled .nav-links a.active { color: var(--primary-light); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}
header.scrolled .mobile-toggle { color: var(--primary); }

@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../../Images/School Image.jpeg') center/cover no-repeat;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 58, 138, 0.4) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero p { font-size: 1rem; }
    .hero { min-height: 500px; height: auto; padding: 100px 0; }
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Trust Bar / Highlights */
.trust-bar {
    padding: 40px 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: var(--radius-md);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-item i {
    font-size: 2rem;
    color: var(--primary-light);
}

.trust-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .trust-bar { margin-top: -30px; padding: 25px 0; }
}

/* Cards & Components */
.card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(30, 58, 138, 0.2);
}

.icon-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.icon-card i {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 2rem;
    transition: var(--transition);
}

.icon-card:hover i {
    background: var(--primary);
    color: white;
}

/* Academics Section */
.academics-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.academics-content h2 { margin-bottom: 24px; }
.academics-content p { margin-bottom: 32px; }

@media (max-width: 992px) {
    .academics-grid { grid-template-columns: 1fr; }
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.facility-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
}

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

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transition: var(--transition);
}

.facility-item:hover img { transform: scale(1.1); }
.facility-item:hover .facility-overlay { padding-bottom: 40px; }

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--gray-50);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--gray-200);
    line-height: 1;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info h4 { margin: 0; font-size: 1.1rem; }
.author-info span { font-size: 0.85rem; color: var(--text-muted); }

/* Final CTA */
.final-cta {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.9)), url('../../Images/Trip/Awareness2.jpeg') center/cover;
    color: white;
}

.final-cta h2 { color: white; margin-bottom: 32px; }

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 { margin-bottom: 8px; color: var(--primary); }

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer {
    background: var(--gray-800);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about p { color: rgba(255, 255, 255, 0.7); margin-top: 20px; }
.footer-links h3 { color: white; margin-bottom: 24px; font-size: 1.25rem; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: rgba(255, 255, 255, 0.7); transition: var(--transition); }
.footer-links ul li a:hover { color: var(--secondary); padding-left: 8px; }

.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.social-links a:hover { background: var(--secondary); color: var(--primary); }

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

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; }
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
