/* Custom CSS for iDigital School Website */

/* Global Styles */
:root {
    --primary-color: #00BFFF;
    --secondary-color: #1E3A8A;
    --accent-color: #FFFFFF;
    --text-color: #374151;
    --light-bg: #F8FAFC;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Header Styles */
.header-section {
    position: relative;
    z-index: 1000;
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand h5 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.navbar-brand small {
    font-size: 0.75rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.contact-info {
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: -80px;
    padding-top: 80px;
}

.carousel-item img {
    height: 70vh;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
    bottom: 20%;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Feature Cards */
.features-section {
    background: var(--light-bg);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* About Section */
.about-section img {
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

/* Program Cards */
.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.program-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Facility Cards */
.facility-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.facility-card i {
    transition: transform 0.3s ease;
}

.facility-card:hover i {
    transform: scale(1.1);
}

/* Contact Section */
.contact-info {
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-3px);
}

.contact-info i {
    transition: color 0.3s ease;
}

.contact-info:hover i {
    color: var(--secondary-color) !important;
}

/* Footer */
.footer-section {
    background: #000000 !important;
    color: white !important;
}

.footer-section h5,
.footer-section h6,
.footer-section p,
.footer-section small,
.footer-section a {
    color: white !important;
}

.footer-section a:hover {
    color: #00BFFF !important;
}

.footer-brand img {
    filter: brightness(1.2);
}

.map-container iframe {
    transition: transform 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item img {
        height: 50vh;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .contact-info {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        display: none !important;
    }
    
    .feature-card,
    .program-card,
    .facility-card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print Styles */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .btn,
    .footer-section {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }
}



/* Footer Text Color Override */
.footer-section .text-muted {
    color: white !important;
}

.footer-section .list-unstyled a.text-muted {
    color: white !important;
}

.footer-section p.text-muted {
    color: white !important;
}

