/* 🌟 Global Premium Styles (Extracted from index.html) 🌟 */

/* 1. Global Variables & Base */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

body {
    background-color: #f8f9fa;
}

/* Unified Section Spacing */
.section {
    padding: 60px 0;
}

/* 2. Modern Section Titles */
h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* 3. Card Glassmorphism & Lift */
.stat-card,
.about-card,
.service-card,
.official-card,
#leaders .container div div {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.stat-card:hover,
.about-card:hover,
.service-card:hover,
.official-card:hover,
#leaders .container div div:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: #764ba2;
}

/* 4. Button Polish */
.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    background: #e9ecef;
    color: #555;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .section {
        padding: 40px 0;
    }
}

/* 6. Utility & Animations */

/* 🗑️ Hide Redundant Slider */
.slider-wrap,
#officeSlider2 {
    display: none !important;
}

/* 🔢 Counter Up Animation */
.counter {
    display: inline-block;
    min-width: 50px;
}

/* 🧲 3D Tilt Effect on Cards */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 🌊 Footer Wave */
.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(186% + 1.3px);
    height: 70px;
    transform: rotateY(180deg);
}

.footer-wave .shape-fill {
    fill: #1a1a1a;
    /* Match footer background */
}

/* 🎾 Icon Bounce on Hover */
.service-card:hover .service-icon,
.stat-card:hover .stat-icon {
    animation: icon-bounce 0.6s ease infinite alternate;
}

@keyframes icon-bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

/* 📰 Modern News Ticker */
.news-ticker-container {
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
    overflow: hidden;
    height: 50px;
}

.ticker-title {
    background: #d32f2f;
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    z-index: 12;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.blink-dot {
    color: #fff;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

.ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 30px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.ticker-item:hover {
    color: #d32f2f;
}

.badge-new {
    background: #e53935;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    margin-right: 0;
}

.badge-notice {
    background: #1976d2;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ⌨️ Hero Typing Effect */
.typing-text {
    border-right: 3px solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: rgba(255, 255, 255, 0.75);
    }
}

/* ✨ Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .ticker-title {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .ticker-item {
        font-size: 0.9rem;
    }
}

/* 🌟 Welcome Popup Premium Styles 🌟 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.5s ease-out;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: scaleInPopup 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

.popup-logo {
    width: 80px;
    margin-bottom: 10px;
    animation: floatLogo 3s ease-in-out infinite;
}

.popup-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.popup-message-box {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #1a1a1a;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.popup-message-box h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #4a148c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-daily-thought {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}

.popup-info p {
    color: #555;
    margin-bottom: 20px;
    font-weight: 600;
}

.premium-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleInPopup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 82, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.popup-news-box {
    background: #fff5f5;
    border-left: 4px solid #ff5252;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}

/* 💎 Premium Populated Section Styles 💎 */

/* Executive Summary & Stats */
.exec-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.exec-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.exec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.15);
}

.exec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.exec-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #2d3436, #636e72);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

/* Scheme & Project Cards */
.premium-scheme-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.premium-scheme-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.premium-scheme-card.red {
    border-left-color: #ff7675;
}

.premium-scheme-card.green {
    border-left-color: #55efc4;
}

.premium-scheme-card.orange {
    border-left-color: #fab1a0;
}

.premium-scheme-card.blue {
    border-left-color: #74b9ff;
}

.premium-scheme-card.purple {
    border-left-color: #a29bfe;
}

.premium-scheme-card.teal {
    border-left-color: #00cec9;
}

/* Enhanced Progress Bar */
.premium-progress-bg {
    background: #dfe6e9;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.premium-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #0984e3, #74b9ff);
    box-shadow: 0 0 10px rgba(9, 132, 227, 0.4);
    position: relative;
    overflow: hidden;
}

.premium-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent);
    z-index: 1;
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* Service Grid Items */
.premium-service-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.premium-service-item:hover {
    background: #f8f9fa;
    border-color: #dfe6e9;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Leadership Cards */
.leader-card-premium {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.4s ease;
}

.leader-card-premium:hover {
    transform: translateY(-10px);
}

.leader-img-container {
    height: 120px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    position: relative;
}

.leader-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leader-info {
    padding: 60px 20px 20px;
}

/* Loader V2 */
.loader-v2 {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loader-v2-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: gentlePulse 2s infinite ease-in-out;
}

@keyframes gentlePulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.loader-v2-bar {
    width: 200px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.loader-v2-progress {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 10px;
    animation: loaderSlide 1.5s infinite ease-in-out;
}

@keyframes loaderSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* 🖼️ Hero Homepage Slider (V2 Premium) */
.homepage-slider {
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 15px;
}

.slider-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    display: flex !important;
    z-index: 2;
}

/* 🌑 Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* 📢 Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 90%;
    max-width: 800px;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffffff, #e0f7fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
    border: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.secondary-btn:hover {
    background: white;
    color: #764ba2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 6s ease-in-out;
}

.slide.active img {
    transform: scale(1.1);
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ⬇️ Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
    opacity: 0.8;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 22px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .homepage-slider {
        margin: 10px 0;
        padding: 0;
    }

    .slider-wrapper {
        height: 400px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-btn {
        width: 80%;
        padding: 12px 20px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}