﻿/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d1b5e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffc107;
}

/* Hero Background Placeholder */
.hero-bg-placeholder {
    background: linear-gradient(135deg, #0a1547 0%, #1a237e 50%, #0d1b5e 100%);
    min-height: 100%;
    position: relative;
}

.hero-bg-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

/* Image Placeholders */
.img-placeholder {
    background: linear-gradient(135deg, #d9e0f0 0%, #b3c1e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder i {
    color: #0d1b5e;
    opacity: 0.5;
}

/* Notice Tab Active State */
.notice-tab.active {
    background-color: #0d1b5e;
    color: white;
}

/* Gallery Tab Active State */
.gallery-tab.active {
    background-color: #0d1b5e;
    color: white;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffc107 0%, #e6a800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu */
#mobileMenu {
    display: none !important;
}
#mobileMenu.active {
    display: block !important;
}

/* Navbar Shadow on Scroll */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile: fixed navbar (sticky breaks with overflow-x:hidden on body) */
@media (max-width: 1023px) {
    #navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }
    body {
        padding-top: 64px;
    }
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Gold Border Accent */
.gold-border {
    border: 1px solid #ffc107;
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.card-shine:hover::before {
    opacity: 1;
    transform: rotate(30deg) translate(30%, 30%);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form Focus Styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* Language Switcher Button */
.lang-switch-btn {
    min-width: 40px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* English Language Mode */
html[lang="en"] body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
}

/* Hero Slider */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-dot.active {
    background-color: #ffc107;
    transform: scale(1.3);
}

/* Hero Content Transition */
#heroBadge, #heroTitle, #heroDesc {
    animation: fadeContent 0.8s ease-out;
}

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

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
}

/* Marquee */
.marquee {
    animation: marquee 30s linear infinite;
}
.marquee:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Navbar Logo - Premium White Treatment */
.navbar-logo {
    filter: brightness(0) invert(1) opacity(0.9);
    transition: filter 0.3s ease;
}
.navbar-logo:hover {
    filter: brightness(0) invert(1) opacity(1);
}

/* Section Heading Styles */
.ct-gold-line {
    width: 48px;
    height: 2px;
    background: #C9A227;
}

.ct-section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #071B3A;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .ct-section-heading {
        font-size: 1.875rem;
    }
}

.ct-section-sub {
    font-size: 0.875rem;
    color: #64748B;
    max-width: 600px;
}
