/* 
   Vikas High School - Public Website CSS Design System
   Aesthetic: Premium, Sleek Slate & Warm Gold Accent
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;       /* Deep Slate Blue */
    --primary-light: #1e293b; /* Mid Slate */
    --accent: #f59e0b;        /* Warm Gold */
    --accent-hover: #d97706;  /* Deep Gold */
    --accent-glow: rgba(245, 158, 11, 0.15);
    --text-main: #334155;     /* Slate 700 */
    --text-muted: #64748b;    /* Slate 500 */
    --light-bg: #f8fafc;      /* Slate 50 */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 16px;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

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

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Announcement Top Bar */
.announcement-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent);
    z-index: 1040;
}
.announcement-bar a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
.announcement-bar a:hover {
    color: var(--white);
}

/* Sticky Glassmorphic Navbar */
.navbar-custom {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    transition: var(--transition);
}
.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}
.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.navbar-custom .navbar-brand img {
    height: 48px;
    width: 48px;
    background-color: var(--white);
    padding: 3px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    border: 2px solid var(--accent);
    object-fit: contain;
    transition: var(--transition);
}
.navbar-custom .navbar-brand:hover img {
    transform: rotate(15deg) scale(1.05);
}
.brand-text-container {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    line-height: 1.1;
    text-align: left;
}
.brand-name {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.brand-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    transition: var(--transition);
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    background: var(--primary);
    padding: 100px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}
.hero-tag {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 20px;
}
.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--white) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    max-width: 550px;
}
.hero-images-grid {
    position: relative;
    z-index: 2;
}
.hero-img-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}
.hero-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-img-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}
.hero-img-card:hover img {
    transform: scale(1.05);
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--primary) !important;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3);
}
.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(245, 158, 11, 0.5);
}
.btn-premium-outline {
    background: transparent;
    color: var(--white) !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}
.btn-premium-outline:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Section Header styling */
.section-header {
    margin-bottom: 60px;
}
.section-tag {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}
.section-title-premium {
    font-size: 2.6rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}
.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title-left {
    text-align: left;
}
.section-title-left::after {
    left: 0;
    transform: none;
}

/* Statistics Counter Section */
.stats-section {
    background: var(--primary-light);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    margin-top: -40px;
    z-index: 10;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}
.stat-card {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-card:last-child {
    border-right: none;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media(max-width: 767px) {
    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
    }
    .stat-card:last-child {
        border-bottom: none;
    }
}

/* Cards & Interactions */
.card-premium {
    background: var(--white);
    border: 1px solid #f1f5f9;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.2);
}
.card-premium:hover::before {
    opacity: 1;
}
.card-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}
.card-premium:hover .card-icon-wrapper {
    background: var(--accent);
    color: var(--primary);
    transform: rotate(360deg);
}

/* Facility Page Cards */
.facility-card-premium {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.facility-card-premium .card-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}
.facility-card-premium .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.facility-card-premium .card-icon-badge {
    position: absolute;
    bottom: -25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 15px rgba(245, 158, 11, 0.3);
    z-index: 2;
    transition: var(--transition);
}
.facility-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.facility-card-premium:hover .card-img-wrapper img {
    transform: scale(1.08);
}
.facility-card-premium:hover .card-icon-badge {
    background: var(--primary);
    color: var(--accent);
}

/* Achievements Grid Cards */
.achievement-card-premium {
    background: var(--white);
    border: 1px solid #f1f5f9;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.achievement-card-premium .img-wrapper {
    height: 260px;
    overflow: hidden;
}
.achievement-card-premium .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.achievement-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.achievement-card-premium:hover .img-wrapper img {
    transform: scale(1.06);
}
.achievement-badge-date {
    background: var(--accent-glow);
    color: var(--accent-hover);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Vertical Timeline for About Page */
.timeline-premium {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}
.timeline-premium::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #e2e8f0;
    transform: translateX(-50%);
}
.timeline-item-premium {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}
.timeline-item-premium:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item-premium:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-item-premium::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary-light);
    z-index: 1;
}
.timeline-item-premium:nth-child(odd)::before {
    right: -10px;
}
.timeline-item-premium:nth-child(even)::before {
    left: -10px;
}
.timeline-content-premium {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.timeline-content-premium:hover {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
@media(max-width: 767px) {
    .timeline-premium::before {
        left: 20px;
    }
    .timeline-item-premium {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
        margin-bottom: 30px;
    }
    .timeline-item-premium:nth-child(even) {
        left: 0;
    }
    .timeline-item-premium::before {
        left: 10px !important;
    }
}

/* Photo Gallery styling */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.gallery-tab-btn {
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}
.gallery-tab-btn:hover, 
.gallery-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-grid-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-overlay-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}
.gallery-grid-item:hover img {
    transform: scale(1.08);
}
.gallery-grid-item:hover .gallery-overlay-premium {
    opacity: 1;
}
.gallery-img-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.gallery-img-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Floating Elements animations */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating-element {
    animation: floatAnimation 4s ease-in-out infinite;
}

/* Welcome image styling */
.welcome-image-stack {
    position: relative;
    padding-bottom: 40px;
}
.welcome-img-back {
    width: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.welcome-img-front {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    border-radius: var(--border-radius);
    border: 5px solid var(--white);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

/* Contact Page design */
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 50%;
}
.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.contact-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}
.contact-detail-item:hover .contact-detail-icon {
    background: var(--accent);
    color: var(--primary);
}
.contact-form-card {
    background: var(--white);
    border: 1px solid #f1f5f9;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.contact-form-card .form-control {
    border: 1px solid #cbd5e1;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.contact-form-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Footer modern styles */
.footer-modern {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent);
}
.footer-logo {
    font-weight: 800;
    color: var(--white);
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.footer-logo span {
    color: var(--accent);
}
.footer-title {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 12px;
}
.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-links-list a:hover {
    color: var(--accent);
    transform: translateX(5px);
}
.social-icons-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}
.social-icon-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    margin-top: 50px;
    font-size: 0.85rem;
}

/* Transitions and animations for pages */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpAnim 0.8s forwards ease-out;
}
@keyframes fadeInUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Page Banner Custom Accent Background */
.page-banner-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%) !important;
    border-bottom: 3px solid var(--accent);
}
