
/* ============================================
   JALESHWAR CCI - MAIN STYLESHEET
   Colors: Red (#C8102E), White (#FFFFFF), Blue (#1B3A5C)
   Fonts: Anek (Headings), Mukta (Body)
   ============================================ */

/* Google Fonts Import - Anek for Headings, Mukta for Body */
@import url('https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@100..800&family=Mukta:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Colors */
    --red-primary: #C8102E;
    --red-dark: #A00D24;
    --red-light: #E8334A;
    --blue-primary: #1B3A5C;
    --blue-dark: #0F2640;
    --blue-light: #2A5885;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-700: #495057;
    --gray-900: #212529;
    
    /* Font Families */
    --font-heading: 'Anek Devanagari', sans-serif;
    --font-body: 'Mukta', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue-dark);
}

p {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition);
}

.top-bar a:hover {
    opacity: 1;
    color: var(--red-light);
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-nav {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0;
    border-bottom: 3px solid var(--red-primary);
}

.navbar {
    padding: 0;
}

.navbar-brand {
    padding: 10px 0;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    color: var(--blue-dark);
    margin-left: 15px;
        padding-top:5px;

}

.brand-text span {
    color: var(--red-primary);
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--blue-dark);
    padding: 25px 15px !important;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--red-primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--red-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--red-primary);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 15px;
    border-top: 3px solid var(--red-primary);
    animation: fadeInUp 0.3s ease;
}

.dropdown-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 25px;
    color: var(--gray-700);
    transition: var(--transition);
    position: relative;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--red-primary);
    padding-left: 30px;
}

.dropdown-item::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 8px;
    position: absolute;
    left: 15px;
    opacity: 0;
    transition: var(--transition);
    color: var(--red-primary);
}

.dropdown-item:hover::before {
    opacity: 1;
}

/* ============================================
   MODERN MOBILE MENU TOGGLE (3-LINE HAMBURGER)
   ============================================ */
.navbar-toggler {
    border: none;
    border-radius: 12px;
    padding: 0;
    transition: var(--transition);
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.25);
    transform: scale(0.98);
}

/* Animated Hamburger Icon Container */
.hamburger-icon {
    position: relative;
    width: 26px;
    height: 20px;
    display: block;
    transition: var(--transition);
}

/* All three lines */
.hamburger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Line positions */
.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon span:nth-child(3) {
    bottom: 0;
}

/* Animation when menu is open (X shape) */
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hover effect on toggle button */
.navbar-toggler:hover {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    transform: scale(1.02);
}

.navbar-toggler:active {
    transform: scale(0.96);
}

/* ============================================
   MODERN MOBILE MENU OFFCANVAS
   ============================================ */
.offcanvas {
    background: linear-gradient(145deg, var(--white) 0%, var(--gray-100) 100%);
    border-left: none;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

/* Offcanvas Header with Brand Color */
.offcanvas-header {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    padding: 1.5rem;
    border-bottom: 3px solid var(--red-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.offcanvas-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(200, 16, 46, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.offcanvas-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: -0.5px;
}

.offcanvas-title span {
    color: var(--red-light);
    position: relative;
}

/* Custom Close Button */
.btn-close-custom {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-close-custom i {
    color: var(--white);
    font-size: 1.2rem;
}

.btn-close-custom:hover {
    background: var(--red-primary);
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 1.5rem;
}

/* Modern Mobile Menu Links */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu li {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.mobile-menu .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--blue-dark);
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
}

.mobile-menu .nav-link i:first-child {
    width: 24px;
    font-size: 1.1rem;
    color: var(--red-primary);
    transition: var(--transition);
    text-align: center;
}

.mobile-menu .nav-link .link-text {
    flex: 1;
}

.mobile-menu .nav-link:hover {
    background: linear-gradient(90deg, rgba(200, 16, 46, 0.08), transparent);
    transform: translateX(8px);
    color: var(--red-primary);
}

.mobile-menu .nav-link:hover i:first-child {
    transform: scale(1.1);
    color: var(--red-primary);
}

/* Active link style */
.mobile-menu .nav-link.active {
    background: linear-gradient(90deg, rgba(200, 16, 46, 0.12), transparent);
    color: var(--red-primary);
    border-left: 3px solid var(--red-primary);
}

.mobile-menu .nav-link.active i {
    color: var(--red-primary);
}

/* Mobile Dropdown Styling */
.mobile-dropdown-toggle {
    cursor: pointer;
    justify-content: space-between;
}

.mobile-dropdown-toggle .dropdown-arrow {
    transition: transform 0.25s ease;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.mobile-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--red-primary);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 2rem;
    background: rgba(27, 58, 92, 0.04);
    border-radius: 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.2s ease;
}

.mobile-submenu.show {
    max-height: 500px;
    opacity: 1;
    padding: 0.5rem 0;
}

.mobile-submenu .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    margin: 0.2rem 0.5rem;
}

.mobile-submenu .nav-link i {
    width: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.mobile-submenu .nav-link:hover {
    background: var(--white);
    color: var(--red-primary);
    transform: translateX(5px);
}

/* Mobile Contact Info Card */
.mobile-contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border-radius: 24px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.mobile-contact-info h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.mobile-contact-info h6::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--red-light);
    border-radius: 2px;
}

.mobile-contact-info p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.mobile-contact-info i {
    color: var(--red-light);
    width: 22px;
    font-size: 1rem;
}

/* Mobile Social Links */
.mobile-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 12px;
}

.mobile-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.mobile-social a:hover {
    background: var(--red-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

/* Smooth animations for offcanvas */
.offcanvas.show {
    animation: slideInRight 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    margin-top: -3px;
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(27,58,92,0.9), rgba(27,58,92,0.3));
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    left: 10%;
    right: 10%;
    text-align: left;
}

.carousel-caption h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease;
}

.carousel-caption p {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--red-primary);
    border: 2px solid var(--red-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 36px;
    color: var(--blue-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--gray-700);
    margin-top: 20px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}

.card-text {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--gray-700);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--red-primary);
}

.footer p, .footer li {
    font-family: var(--font-body);
    font-size: 14px;
    opacity: 0.9;
}

.footer a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer a:hover {
    opacity: 1;
    color: var(--red-light);
    padding-left: 5px;
}

.footer-bottom {
    background: var(--blue-primary);
    padding: 20px 0;
    margin-top: 40px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .navbar-collapse {
        display: none;
    }
    
    .navbar-toggler {
        display: flex;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 32px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
    }
    
    .carousel-caption h1 {
        font-size: 24px;
    }
    
    .brand-text {
        font-size: 24px;
            margin-left: 15px;
        padding-top:5px;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}
