/* ================================
   Global Variables & Styles
================================ */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--body-font);
    color: var(--dark);
    overflow-x: hidden;
    background: #fff;
    line-height: 1.8;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
}

/* ================================
   Preloader
================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--gradient-1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.book {
    position: relative;
    width: 80px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    gap: 5px;
}

.page {
    width: 20px;
    height: 100px;
    background: white;
    border-radius: 8px;
    animation: flip 2s infinite ease-in-out;
}

.page:nth-child(1) { animation-delay: 0s; }
.page:nth-child(2) { animation-delay: 0.3s; }
.page:nth-child(3) { animation-delay: 0.6s; }

@keyframes flip {
    0%, 100% { transform: rotateY(0deg) scaleX(1); }
    50% { transform: rotateY(180deg) scaleX(0.8); }
}

.loading-text {
    color: white;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 18px;
}

/* ================================
   Top Header Section
================================ */
.top-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

/* News Ticker Wrapper */
.news-ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    min-height: 40px;
}

.news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.news-label i {
    animation: pulse-icon 2s infinite;
}

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

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: scroll 30s linear infinite;
}

.news-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding-right: 50px;
}

.news-list li i {
    color: #ffd700;
    font-size: 6px;
}

.news-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-list li a:hover {
    color: #ffd700;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.news-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.news-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Top Info Wrapper */
.top-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    transition: transform 0.3s;
    cursor: pointer;
}

.info-item:hover {
    transform: translateY(-2px);
}

.info-item i {
    font-size: 14px;
}

.social-links-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px) rotate(360deg);
}

/* ================================
   Navigation
================================ */
.navbar {
    padding: 5px 0!important;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateX(10px);
}

.dropdown-item i {
    margin-right: 10px;
}

/* ================================
   Buttons
================================ */
.btn {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-apply,
.btn-gradient {
    background: var(--gradient-1);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-apply:hover,
.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-hero {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}



/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: auto;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

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

.control-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.carousel-control-prev:hover .control-icon,
.carousel-control-next:hover .control-icon {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    animation: bounce-scroll 2s infinite;
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 2s infinite;
}

@keyframes wheel-scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ================================
   Floating Stats Bar
================================ */
.stats-bar,
.floating-stats {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.stats-container,
.stats-wrapper {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    transition: transform 0.5s;
}

.stat-box:hover .stat-icon {
    transform: rotateY(360deg);
}

.stat-box h2 {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-box h2::after {
    content: '+';
}

.stat-box p {
    color: #64748b;
    font-weight: 600;
    font-size: 18px;
}

/* ================================
   Section Styles
================================ */
.section-padding {
    padding: 1.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle,
.subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    padding-left: 60px;
}

.subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: var(--gradient-1);
}

.section-title h2,
.title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-title p,
.description {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}









/* ================================
   Contact Cards
================================ */
.contact-card {
    background: white;
    border-radius: 25px;
    padding: 5px 35px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    background: var(--gradient-1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    transition: transform 0.5s;
}

.contact-card:hover .contact-icon {
    transform: rotateY(360deg);
}

.contact-card h5 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-card p {
    color: #64748b;
    line-height: 2;
}









/* ================================
   Footer
================================ */
.footer {
    background: var(--dark);
    color: white;
}

.footer-top {
    padding: 2rem 0 1rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo i {
    font-size: 40px;
    color: var(--primary);
}

.footer-logo span {
    font-size: 28px;
    font-weight: 900;
}

.footer-text,
.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-social,
.social-links {
    display: flex;
    gap: 15px;
}

.footer-social a,
.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover,
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer h5,
.widget-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-1);
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(10px);
}

.newsletter-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.newsletter-form .input-group {
    position: relative;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: white;
    padding: 0.8rem 1.5rem;
    height: 50px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
}

.newsletter-form .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
}

.copyright {
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links span {
    color: rgba(255,255,255,0.3);
    margin: 0 0.5rem;
}

/* ================================
   Floating Action Buttons
================================ */
.scroll-top-btn,
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.scroll-top-btn {
    bottom: 30px;
    right: 30px;
    background: var(--gradient-1);
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.whatsapp-float {
    bottom: 110px;
    right: 30px;
    background: #25d366;
    opacity: 1;
    visibility: visible;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ================================
   Utility Classes
================================ */
.py-5 {
    padding: 80px 0;
}

.bg-light {
    background: #f8fafc !important;
}

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

.text-end {
    text-align: end !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 1199px) {
    .hero h1,
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .hero h1,
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title h2,
    .title {
        font-size: 2.2rem;
    }
    
    .ticker-section {
        min-width: 100%;
    }
    
    .floating-card {
        right: 10px;
        bottom: 10px;
        padding: 1.5rem;
    }
    
    .apply-features {
        grid-template-columns: 1fr;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .control-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-image-float {
        margin-top: 2rem;
    }
    
    .news-ticker-wrapper {
        margin-bottom: 10px;
    }

    .top-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 10px;
    }
}

@media (max-width: 767px) {
    .hero,
    .hero-section,
    .carousel-item {
        min-height: 65vh;
        height: 65vh;
    }
    
    .hero h1,
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero p,
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title h2,
    .title {
        font-size: 1.8rem;
    }
    
    .stats-container,
    .stats-wrapper {
        padding: 30px 20px;
    }
    
    .stat-box h2 {
        font-size: 2.5rem;
    }
    
    .floating-badge,
    .float-badge {
        display: none;
    }
    
    .section-padding {
        padding: 1.5rem 0;
    }
    
    .floating-stats,
    .stats-bar {
        margin-top: -40px;
    }
    
    .application-form {
        padding: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-box h3 {
        font-size: 1.4rem;
    }
    
    .stat-box p {
        font-size: 0.8rem;
    }
    
    .news-label {
        padding: 6px 12px;
        font-size: 12px;
    }

    .news-list li a {
        font-size: 12px;
    }

    .contact-info {
        justify-content: center !important;
    }
}

@media (max-width: 575px) {
    .news-label span {
        display: none;
    }

    .news-label {
        padding: 6px 10px;
    }

    .social-links-top {
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .hero,
    .hero-section,
    .carousel-item {
        min-height: 55vh;
        height: 55vh;
    }
    
    .hero h1,
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero p,
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title h2,
    .title {
        font-size: 1.4rem;
    }
    
    .subtitle,
    .section-subtitle {
        padding-left: 40px;
        font-size: 0.8rem;
    }
    
    .subtitle::before {
        width: 35px;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .whatsapp-float,
    .scroll-top-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .whatsapp-float {
        bottom: 90px;
    }
}