/* --- Global Styles --- */
:root {
    /* New Professional Theme Colors */
    --primary-color: #004d40;
    /* Deep Teal - Main Heading */
    --secondary-color: #00796b;
    /* Light Teal - Icons */
    --accent-color: #ff6f00;
    /* Amber - Buttons */
    --text-color: #263238;
    /* Dark Blue Grey - Text */

    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.70);
    /* थोड़ा ज्यादा सफेद ताकि टेक्स्ट साफ दिखे */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(0, 77, 64, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    /* Modern Gradient Background */
    background: linear-gradient(120deg, #e0f2f1, #80cbc4);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Circles (Background Decoration) --- */
.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, #4db6ac, #009688);
    z-index: -1;
}

.circle-1 {
    top: -5%;
    left: -5%;
    width: 250px;
    height: 250px;
    opacity: 0.5;
}

.circle-2 {
    bottom: 5%;
    right: -5%;
    width: 350px;
    height: 350px;
    opacity: 0.4;
}

/* --- Glassmorphism Utility --- */
.glass-nav,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* --- Navigation --- */
/* --- Floating Navigation (Shrunk Version) --- */
header {
    position: fixed;
    top: 20px;
    /* ऊपर से थोड़ी जगह */
    left: 50%;
    transform: translateX(-50%);
    /* स्क्रीन के एकदम बीच में */
    width: 90%;
    /* स्क्रीन का सिर्फ 90% हिस्सा लेगा */
    max-width: 1100px;
    /* ज्यादा बड़ी स्क्रीन पर भी इससे ज्यादा नहीं फैलेगा */

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    /* अंदर का स्पेस कम किया */
    z-index: 1000;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 77, 64, 0.1);
    /* सॉफ्ट शैडो */
    border-radius: 50px;
    /* किनारों को गोल (Capsule look) किया */
}

/* लोगो को थोड़ा छोटा और एडजस्ट किया */
/* --- Logo Container --- */
/* लोगो और टेक्स्ट को एक लाइन में लाने के लिए */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* लोगो और नाम के बीच में गैप */
}

.college-logo {
    height: 45px;
    /* लोगो का साइज */
    width: 45px;
    border-radius: 50%;
    /* गोल करने के लिए */
    object-fit: cover;
}

/* लोगो पर माउस ले जाने पर इफेक्ट */
.college-logo:hover {
    transform: rotate(10deg) scale(1.1);
    /* थोड़ा घूमेगा और बड़ा होगा */
}

/* --- Mobile Logo Adjustment --- */
@media screen and (max-width: 768px) {
    .college-logo {
        height: 40px;
        /* मोबाइल पर थोड़ा छोटा */
        width: 40px;
    }

    .logo h2 {
        font-size: 1.1rem;
        /* मोबाइल पर नाम का फोंट छोटा */
    }
}

/* नेविगेशन लिंक पास-पास लाए */
.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

/* Gap का यूज़ किया */
.nav-links li {
    margin: 0;
}

/* पुराना मार्जिन हटाया */

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
}

/* Hover करने पर बैकग्राउंड कलर */
.nav-links a:hover {
    background: var(--light-green);
    /* हल्का बैकग्राउंड */
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* --- Mobile Fixes for Floating Nav --- */
@media screen and (max-width: 768px) {
    header {
        width: 95%;
        /* मोबाइल पर थोड़ा चौड़ा */
        top: 10px;
        padding: 12px 25px;
        border-radius: 30px;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        /* मेनू हेडर के नीचे खुलेगा */
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        border-radius: 20px;
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

        /* छिपाने और दिखाने का एनीमेशन */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: 0.3s ease;
    }

    /* जब मेनू खुलेगा */
    .nav-links.nav-active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0%);
    }

    .burger {
        display: block;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    padding: 50px;
    max-width: 850px;
    width: 100%;
}

/* --- Hero Section with Background Image --- */
.hero {
    position: relative;
    /* जरूरी है */
    height: 100vh;
    /* पूरी स्क्रीन की ऊंचाई */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
    padding-top: 80px;
    color: white;
    /* टेक्स्ट का रंग अब सफ़ेद होगा */

    /* --- बैकग्राउंड इमेज और ओवरले --- */
    /* यह लाइन सबसे जरूरी है: पहले एक हल्का काला/हरा पर्दा, फिर आपकी इमेज */
    background: linear-gradient(rgba(0, 77, 64, 0.75), rgba(0, 48, 40, 0.85)),
        url('../images/hero.JPG');

    /* इमेज को सही से सेट करने के लिए */
    background-size: cover;
    /* इमेज को काटे बिना पूरा फिट करे */
    background-position: center;
    /* इमेज का सेंटर दिखाए */
    background-attachment: fixed;
    /* स्क्रॉल करने पर इमेज पीछे फिक्स रहे (Parallax Effect) */
}

/* हीरो सेक्शन के अंदर का ग्लास कार्ड */
.hero .glass-card {
    background: rgba(255, 255, 255, 0.1);
    /* ज्यादा पारदर्शी (Transparent) */
    backdrop-filter: blur(8px);
    /* थोड़ा ब्लर */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 40px 50px;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* हेडिंग का स्टाइल */
.hero h1 {
    font-size: 3rem;
    color: white;
    /* सफ़ेद रंग */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    /* टेक्स्ट के पीछे छाया ताकि उभरा हुआ दिखे */
}

/* सबटाइटल का स्टाइल */
.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #e0f2f1;
    /* हल्का सफ़ेद */
}

/* "RAJUVAS" को हाईलाइट करने के लिए */
.hero .highlight {
    color: #ffca28;
    /* गोल्डन/पीला रंग जो दूर से चमके */
    font-weight: 700;
}

/* मोबाइल के लिए फॉन्ट साइज एडजस्टमेंट */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .glass-card {
        padding: 30px 20px;
    }
}

/* New Button Style */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 35px;
    background: linear-gradient(45deg, var(--accent-color), #f57c00);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
    transition: 0.3s;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
}

/* --- Features Section with Slider (Fixed) --- */
.features {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    color: white;
}

/* Slider CSS */
.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 15s infinite;
    filter: blur(6px);
    transform: scale(1.1);
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 64, 0.85);
    /* Greenish-Blue Overlay instead of black */
    z-index: -1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.features .section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 50px;
    font-weight: 700;
}

.feature-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.features .glass-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 40px 30px;
    width: 320px;
    transition: 0.4s;
}

.features .glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.features .icon {
    font-size: 3rem;
    color: #80cbc4;
    /* Light Teal Icon */
    margin-bottom: 20px;
}

.features h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.contact-box {
    padding: 50px;
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.contact-box .section-title {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-item {
    margin: 25px 0;
    font-size: 1.1rem;
    color: #546e7a;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.phone-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--primary-color);
    /* Footer ab Dark hoga */
    color: white;
    margin-top: 50px;
}

footer strong {
    color: #80cbc4;
}

.footer-line {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    max-width: 300px;
}

.developer strong {
    color: #ffca28;
}

/* Yellow for developer name */

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: white;
        height: auto;
        padding: 20px 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .features .glass-card {
        width: 100%;
    }
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   (Add this to the bottom of your file)
   ========================================= */

/* 1. About Page Small Hero Header */
.page-header {
    position: relative;
    height: 50vh;
    /* होम पेज (100vh) से आधी हाइट */
    /* आप यहाँ दूसरी इमेज लगा सकते हैं */
    background: url('https://images.unsplash.com/photo-1590579491624-f98f36d4c763?q=80&w=1400') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

/* हेडर के ऊपर डार्क लेयर */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 64, 0.7);
    /* डार्क ग्रीन ओवरले */
    z-index: 0;
}

.page-header .header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 2. History Section (Left Text, Right Image) */
.history-section {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.history-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 50px;
    max-width: 1100px;
    width: 100%;
    /* ग्लास इफेक्ट */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.history-content {
    flex: 1;
    text-align: left;
}

.history-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #37474f;
    margin-bottom: 15px;
}

.history-image {
    flex: 1;
}

.history-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
    transition: transform 0.3s;
}

.history-image img:hover {
    transform: scale(1.02);
}

/* Mobile Responsive for History */
@media screen and (max-width: 768px) {
    .history-section .container {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* =========================================
   MAGIC CSS CARDS (For Mission & Vision)
   ========================================= */

/* बेस कार्ड में ट्रांजीशन */
.magic-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(255, 255, 255, 0.6);
    /* थोड़ा पारदर्शी */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 1. ग्लोइंग बॉर्डर इफेक्ट (Glowing Border) */
.magic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* रंगीन ग्रेडिएंट */
    background: linear-gradient(45deg, #004d40, #ff6f00, #FFD700);
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.magic-card:hover::before {
    opacity: 0.6;
    transform: scale(1.2);
}

/* 2. हवा में तैरना (Float Effect) */
.magic-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 77, 64, 0.25);
    background: white;
    /* होवर पर कार्ड सफ़ेद हो जाएगा */
    border-color: transparent;
}

/* 3. उछलता हुआ आइकॉन (Bouncy Icon) */
.magic-card .icon {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s ease;
}

.magic-card:hover .icon {
    transform: scale(1.4) rotate(15deg);
    color: #ff6f00;
    /* ऑरेंज कलर */
    text-shadow: 0 0 15px rgba(255, 111, 0, 0.4);
}

.magic-card:hover h3 {
    color: #004d40;
    /* हेडिंग का कलर डार्क ग्रीन */
}

/* --- FIX: Mission & Vision Section Layout --- */
.mission-section {
    text-align: center;
    padding: 60px 20px;
}

.mission-section .section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

/* 1. कंटेनर को सही करना ताकि कार्ड्स बीच में आएं */
.mission-section .feature-container {
    display: flex !important;
    /* फ्लेक्सबॉक्स जबरदस्ती लागू करें */
    justify-content: center;
    flex-wrap: wrap;
    /* मोबाइल पर नीचे शिफ्ट होने के लिए */
    gap: 30px;
    /* कार्ड्स के बीच गैप */
    width: 100%;
}

/* 2. कार्ड्स का साइज फिक्स करना (ताकि वो पट्टियां न बनें) */
.mission-section .magic-card {
    width: 320px;
    /* कार्ड की चौड़ाई फिक्स की */
    min-height: 280px;
    /* कार्ड की ऊंचाई */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* कंटेंट ऊपर से शुरू हो */
    align-items: center;
    padding: 30px;
    margin: 10px;
    /* थोड़ी एक्स्ट्रा जगह */
    text-align: center;
    border-radius: 15px;
    /* कोने गोल */
}

/* 3. टेक्स्ट को सुंदर बनाना */
.mission-section .magic-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.mission-section .magic-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- FIX: Course Page Alignment --- */
.course-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
}