:root {
    --primary-color: #c0392b;
    --primary-dark: #a93226;
    --secondary-color: #f1c40f;
    --accent-color: #e67e22;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    opacity: 0;
    transition: opacity 1s ease-in;
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 77, 162, 0.3);
}

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

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

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

.top-bar {
    background-color: rgba(192, 57, 43, 0.9);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1001;
}

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

.contact-info a {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.navbar {
    padding: 15px 0;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
}

.header.scrolled .navbar {
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px 10px;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Slider Hero Section */
.slider-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slider {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

/* Slider Controls */
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background: var(--primary-color);
}

.prev-slide { left: 30px; }
.next-slide { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--secondary-color);
    width: 30px;
    border-radius: 10px;
}

.hero-content {
    max-width: 800px;
    padding-top: 80px; /* Offset for solid header */
}

.badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.highlight {
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--white);
}

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

/* Why Sri Bhavishya Section (Red CTA) */
.why-us {
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%); /* Deep red to purple gradient like the image */
    padding: 0;
    overflow: hidden;
    color: var(--white);
    position: relative;
}

.why-container {
    display: flex;
    align-items: center;
    max-width: 100% !important;
    padding: 0 !important;
}

.why-image-box {
    flex: 1;
    position: relative;
    height: 600px;
}

.why-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Duotone start */
}

.why-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(192, 57, 43, 0.7); /* Red overlay for duotone effect */
    mix-blend-mode: multiply;
}

.why-content {
    flex: 1.2;
    padding: 80px;
}

.why-title {
    font-size: 5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--white);
    text-transform: uppercase;
}

.why-stats-grid {
    display: flex;
    gap: 60px;
}

.why-stat-item h3 {
    font-size: 3.5rem;
    color: var(--white);
    display: inline-block;
}

.why-stat-item span {
    font-size: 2.5rem;
    font-weight: 700;
}

.why-stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .why-container {
        flex-direction: column;
    }
    
    .why-image-box {
        width: 100%;
        height: 400px;
    }
    
    .why-title {
        font-size: 3rem;
    }
    
    .why-stats-grid {
        flex-wrap: wrap;
        gap: 30px;
    }
}


/* Section Headers */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

.typewriter-headline {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--secondary-color);
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary-color) }
}

@media (max-width: 768px) {
    .typewriter-headline { font-size: 2.2rem; }
}

.section-header {
    margin-bottom: 50px;
}

.subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary-color);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Gradients for each course */
.gradient-1 { background: linear-gradient(135deg, #ffffff 0%, #ffe9e9 100%); }
.gradient-2 { background: linear-gradient(135deg, #ffffff 0%, #fff4e5 100%); }
.gradient-3 { background: linear-gradient(135deg, #ffffff 0%, #eefbe9 100%); }
.gradient-4 { background: linear-gradient(135deg, #ffffff 0%, #f3e5f5 100%); }

.course-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.course-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.view-details {
    display: inline-block;
    margin-top: auto;
    padding-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.facility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.facility-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(192, 57, 43, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

/* Contact */
.contact-wrapper {
    display: flex;
    background-color: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info-panel {
    flex: 1;
    padding: 60px;
    background-color: var(--bg-light);
}

.contact-form-panel {
    flex: 1.5;
    padding: 60px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
}

/* Campuses Section */
.campuses {
    background: #f8fafc;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.campus-card {
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.campus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Gradient Classes */
.g-1 { background: linear-gradient(135deg, #0f172a, #334155); } /* Navy */
.g-2 { background: linear-gradient(135deg, #701a75, #c026d3); } /* Purple */
.g-3 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); } /* Blue */
.g-4 { background: linear-gradient(135deg, #312e81, #6366f1); } /* Indigo */
.g-5 { background: linear-gradient(135deg, #881337, #e11d48); } /* Rose */
.g-6 { background: linear-gradient(135deg, #7c2d12, #ea580c); } /* Orange */
.g-7 { background: linear-gradient(135deg, #064e3b, #10b981); } /* Teal */
.g-8 { background: linear-gradient(135deg, #4c0519, #9f1239); } /* Maroon */

.campus-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.campus-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.campus-header i {
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.campus-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.campus-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-row i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 4px;
}

.info-row p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-logo .logo-img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer h4 {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .whatsapp-float span { display: none; }
    .whatsapp-float {
        padding: 15px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
}

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

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    .why-content { padding: 40px; }
}

@media (max-width: 992px) {
    .top-bar { display: none; }
    
    .about-content, .contact-wrapper, .why-container {
        flex-direction: column;
    }
    
    .why-image-box { width: 100%; height: 400px; }
    .why-title { font-size: 3rem; }
    .why-stats-grid { flex-wrap: wrap; gap: 30px; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 100px 30px 50px;
        text-align: center;
        z-index: 999;
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        visibility: hidden;
        opacity: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links li { margin: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 15px; }
    .nav-links a { font-size: 1.5rem; color: var(--primary-dark); font-weight: 700; text-transform: uppercase; }
    
    .mobile-toggle { 
        display: block; 
        cursor: pointer; 
        z-index: 1001; 
        position: relative;
        font-size: 1.8rem;
    }
    
    /* Navbar button hiding logic */
    .navbar .btn { display: none; }
    .nav-links .nav-cta { display: block !important; border-bottom: none; }
    .nav-links .nav-cta .btn { display: inline-block; width: auto; min-width: 200px; margin-top: 20px; }
    
    .contact-info-panel, .contact-form-panel { padding: 40px; }

    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-header h2 { font-size: 2rem; }
    
    .logo-img { height: 75px; } /* Even bigger logo for brand presence */
    
    .hero h1 { font-size: 2.8rem; }
    .hero-info h1 { font-size: 2.5rem !important; }
    .hero-info p { font-size: 1.1rem !important; }
    
    .hero-buttons { flex-direction: column; gap: 15px; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .slider-controls button { width: 40px; height: 40px; font-size: 1rem; }
    .prev-slide { left: 10px; }
    .next-slide { right: 10px; }
    
    .course-grid { grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin-bottom: 30px; }
}

@media (max-width: 576px) {
    .hero { height: auto; min-height: 100vh; padding: 200px 20px 100px; } /* Balanced padding */
    .slider-section { height: auto; min-height: 100vh; }
    
    .hero-content { padding-top: 0; text-align: center; }
    
    .badge { padding: 6px 15px; font-size: 0.8rem; margin-bottom: 15px; display: inline-block; }
    
    .hero h1 { font-size: 2.2rem; margin-top: 10px; line-height: 1.1; }
    .hero p { font-size: 1rem; margin-bottom: 25px; line-height: 1.4; }
    
    .hero-info h1 { font-size: 1.8rem !important; }
    
    .hero-buttons { gap: 12px; align-items: center; }
    
    .why-title { font-size: 2.2rem; }
    .why-stat-item h3 { font-size: 2.2rem; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } /* 2 columns for better gallery browsing */
    .gallery-item { height: 180px; } /* Smaller height for 2-column layout */
    
    .contact-info-panel, .contact-form-panel { padding: 25px; }
    
    .slider-dots { bottom: 20px; }
    
    .slider-controls button { width: 32px; height: 32px; font-size: 0.8rem; }
    .prev-slide { left: 5px; }
    .next-slide { right: 5px; }
    
    .btn { width: 100%; max-width: 280px; margin: 0 auto; display: block; text-align: center; padding: 12px; font-size: 0.95rem; }
}
