/* ===================================
   Sarkari Yojana Portal - Custom CSS
   Indian Tricolor Theme
   =================================== */

/* ============= ROOT VARIABLES ============= */
:root {
    --saffron: #FF9933;
    --white: #FFFFFF;
    --green: #138808;
    --blue: #000080;
    --dark-gray: #333333;
    --light-gray: #f8f9fa;
    --text-dark: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ============= GLOBAL STYLES ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

p {
    font-family: 'Hind', sans-serif;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============= UTILITY CLASSES ============= */
.text-saffron {
    color: var(--saffron) !important;
}

.text-green {
    color: var(--green) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.bg-saffron {
    background-color: var(--saffron) !important;
}

.bg-green {
    background-color: var(--green) !important;
}

.bg-blue {
    background-color: var(--blue) !important;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--saffron), var(--green));
}

/* ============= TOP INFO BAR ============= */
.top-info-bar {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--green) 100%);
    color: white;
    font-size: 0.9rem;
}

.top-info-bar a {
    color: white;
    transition: var(--transition);
}

.top-info-bar a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* ============= NAVIGATION BAR ============= */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--saffron);
    padding-left: 2rem;
}

/* Mega Menu Styles */
.mega-menu {
    min-width: 800px;
    border-radius: 8px;
}

.mega-menu h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============= HERO SECTION ============= */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(19, 136, 8, 0.1) 100%);
    padding: 4rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--saffron), var(--green), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .lead {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.indian-flag-text {
    font-size: 3rem;
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* ============= STATS SECTION ============= */
.stats-section {
    background-color: var(--light-gray);
}

.stat-box {
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.counter {
    background: linear-gradient(135deg, var(--saffron), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============= ABOUT / EEAT SECTION ============= */
.about-section {
    padding: 4rem 0;
}

.eeat-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.eeat-content h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.eeat-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.list-verified li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.scheme-detail-box {
    background-color: #f8f9fa;
    transition: var(--transition);
}

.scheme-detail-box:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.scheme-detail-box h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.state-scheme-box {
    transition: var(--transition);
}

.state-scheme-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.sector-box {
    background-color: white;
    transition: var(--transition);
}

.sector-box:hover {
    box-shadow: var(--shadow);
}

/* Step Process Design */
.steps-container .step-box {
    position: relative;
    padding-left: 80px !important;
}

.step-number {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-box h5 {
    color: var(--blue);
    font-weight: 600;
}

/* ============= FEATURED SCHEMES SECTION ============= */
.featured-schemes {
    background-color: var(--light-gray);
}

.scheme-card {
    transition: var(--transition);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.scheme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.scheme-icon {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(19, 136, 8, 0.1));
    border-radius: 8px;
}

.scheme-card h5 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.scheme-card .list-unstyled li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.scheme-card .btn {
    margin-top: 1rem;
}

/* ============= CM SCHEMES SECTION ============= */
.cm-schemes-section {
    padding: 4rem 0;
}

.cm-state-card {
    transition: var(--transition);
    border: none;
    border-radius: 12px;
}

.cm-state-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cm-state-card h5 {
    color: var(--blue);
    font-weight: 600;
}

.cm-state-card ul li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* ============= FAQ SECTION ============= */
.faq-section {
    background-color: var(--light-gray);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background-color: white;
    border: none;
    padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(19, 136, 8, 0.1));
    color: var(--blue);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
    font-size: 1rem;
    line-height: 1.7;
}

/* ============= NEWSLETTER SECTION ============= */
.newsletter-section {
    background: linear-gradient(135deg, var(--saffron), var(--green));
}

.newsletter-section h3 {
    font-size: 2rem;
}

.newsletter-section ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.newsletter-form {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-control {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.newsletter-form .form-control:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
}

/* ============= CONTACT SECTION ============= */
.contact-section {
    padding: 4rem 0;
}

.contact-info .info-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
}

.contact-info h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form {
    box-shadow: var(--shadow);
}

.contact-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
}

.social-links .btn {
    margin: 0.3rem;
}

/* ============= FOOTER ============= */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}

.footer h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.footer-links li {
    padding: 0.4rem 0;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.social-media-footer .btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transition: var(--transition);
}

.social-media-footer .btn:hover {
    background-color: var(--saffron);
    border-color: var(--saffron);
    transform: translateY(-3px);
}

/* ============= SCROLL TO TOP BUTTON ============= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.show {
    display: flex;
}

/* ============= RESPONSIVE STYLES ============= */

/* Tablets */
@media (max-width: 991px) {
    .mega-menu {
        min-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .footer .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.3rem !important;
    }
    
    .stat-box {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .eeat-content h3 {
        font-size: 1.5rem;
    }
    
    .steps-container .step-box {
        padding-left: 70px !important;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .newsletter-section h3 {
        font-size: 1.5rem;
    }
    
    .footer h6 {
        font-size: 0.9rem;
    }
    
    .footer-links li a {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .top-info-bar {
        text-align: center;
    }
    
    .top-info-bar .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    .indian-flag-text {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ============= CUSTOM SCROLLBAR ============= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--saffron), var(--green));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--green), var(--blue));
}

/* ============= LOADING ANIMATION ============= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* ============= PRINT STYLES ============= */
@media print {
    .navbar,
    .top-info-bar,
    .hero-buttons,
    .newsletter-section,
    .contact-section,
    .footer,
    .scroll-top-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}