/* Custom Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&display=swap');

:root {
    --primary-color: #006837;
    --primary-dark: #004d29;
    --accent-color: #FF4061;
    --accent-hover: #e63956;
    --text-color: #2D3436;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.9);
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: 0.3s;
}

.top-bar a:hover {
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: 0.4s;
}

.navbar .navbar-brand img {
    height: 120px; /* Increased by 200% from 60px */
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar .navbar-brand img:hover {
    transform: scale(1.05) rotate(2deg);
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
    margin: 0 10px;
    font-size: 15px;
    transition: 0.3s;
}

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

.btn-admission {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 64, 97, 0.3);
}

.btn-admission:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 97, 0.4);
    color: var(--white);
}

/* Hero Carousel */
.carousel-item {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

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

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
}

.carousel-caption h2 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title .subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    display: inline-block;
}

/* Cards & Hover Effects */
.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-color);
    transition: 0.5s;
    z-index: -1;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,104,55,0.15);
    border-color: transparent;
}

.feature-card:hover h4, 
.feature-card:hover h5, 
.feature-card:hover p,
.feature-card:hover .icon {
    color: var(--white) !important;
}

.feature-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: 0.4s;
}

/* Premium Gallery Card Styling - 3x3 Grid with Colorful Border */
.gallery-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 10px;
    position: relative;
    padding: 5px; /* Space for the border */
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #f06, #9f6, #06f, #f06) border-box;
    border: 4px solid transparent;
    animation: border-rainbow 3s linear infinite;
}

@keyframes border-rainbow {
    0% { border-image-source: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); }
    100% { border-image-source: linear-gradient(405deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); }
}

/* Better Rainbow Border using Pseudo-element */
.rainbow-border {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 15px;
    padding: 5px;
}

.rainbow-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
    );
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.rainbow-border::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: white;
    border-radius: 10px;
    z-index: -1;
}

@keyframes rotate-border {
    100% { transform: rotate(360deg); }
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px; /* Fixed height for uniformity */
    border-radius: 10px;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.gallery-content {
    padding: 15px;
    text-align: center;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

.gallery-content h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.25rem;
    font-weight: 700;
}

.gallery-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 104, 55, 0.15);
}

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

.gallery-card:hover .gallery-content {
    background: var(--primary-color);
}

.gallery-card:hover h4, 
.gallery-card:hover p {
    color: #fff;
}

/* Gallery Hover Effect (Legacy - Keep if needed) */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Principal Section */
.principal-img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--primary-color);
}

/* Footer */
footer {
    background-color: #1A1A1A;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-links h5 {
    margin-bottom: 25px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #BBB;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 50px;
    font-size: 14px;
    color: #777;
}

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

/* Pulse Animation */
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse-animation 2s infinite ease-in-out;
    display: inline-block;
}

/* Hover-Up Effect */
.hover-up {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-up:hover {
    transform: translateY(-20px) scale(1.05);
    background: var(--primary-color) !important;
    color: white !important;
}

.hover-up:hover .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

.hover-up:hover .icon-box {
    color: white !important;
    transform: rotate(360deg);
    transition: 0.8s;
}

/* Background Decor */
.bg-decor-circle {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(0, 104, 55, 0.03);
    border-radius: 50%;
    z-index: -1;
}

/* Owl Carousel Premium Styling */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color) !important;
    color: white !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    font-size: 24px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s !important;
}

.owl-nav button:hover {
    background: var(--accent-color) !important;
    transform: translateY(-50%) scale(1.1);
}

.owl-nav .owl-prev { left: -25px; }
.owl-nav .owl-next { right: -25px; }

@media (max-width: 768px) {
    .owl-nav button { display: none; }
}

.owl-dots {
    text-align: center;
    margin-top: 30px;
}

.owl-dot span {
    width: 12px !important;
    height: 12px !important;
    background: #ccc !important;
    transition: 0.3s;
}

.owl-dot.active span {
    background: var(--primary-color) !important;
    width: 30px !important;
}
