/* ============================================
   GLOBAL STYLES & CUSTOM PROPERTIES
   ============================================ */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0f0c29;
    --dark-bg-secondary: #1a1636;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.glass-nav {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.brand-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: #fff !important;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

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

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image-wrapper {
    position: relative;
}

.hover-zoom {
    transition: transform 0.5s ease;
    cursor: pointer;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    min-width: 120px;
    animation: float 3s ease-in-out infinite;
}

.floating-badge span {
    display: block;
}

.floating-badge small {
    font-size: 0.75rem;
    opacity: 0.9;
}

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

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.table-card:hover {
    transform: translateY(-5px);
}

.table thead {
    position: relative;
}

.table-striped tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.table-bordered {
    border: 2px solid #dee2e6;
}

.table-bordered thead {
    border-bottom: 3px solid #198754;
}


/* Badge Styles */
.badge {
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-item {
    position: relative;
    height: 350px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-img {
    object-fit: cover;
    transition: transform 0.5s ease;
    height: 100%;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

/* Figure Styles */
.figure-img {
    transition: all 0.3s ease;
}

.figure:hover .figure-img {
    transform: scale(1.05) rotate(1deg);
}

.figure-caption {
    color: #6c757d;
    font-style: italic;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 126, 234, 0.5),
        transparent
    );
}

.footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff !important;
    transform: translateX(5px);
}

.social-links .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Show button on scroll */
body.scrolled .btn-back-to-top {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .floating-badge {
        bottom: 10px;
        right: 10px;
        padding: 1rem;
        min-width: 100px;
    }

    .gallery-item {
        height: 250px;
    }

    .navbar-nav {
        background: rgba(15, 12, 41, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }

    .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .stat-card h2 {
        font-size: 2.5rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .gallery-item {
        height: 200px;
        margin-bottom: 1rem;
    }

    .btn-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .footer-section .col-lg-4,
    .footer-section .col-lg-3,
    .footer-section .col-lg-2 {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }

    .display-3 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h2 {
        font-size: 2rem;
    }

    .card-header h4 {
        font-size: 1.1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-primary-subtle {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add animation on scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .btn-back-to-top,
    .gallery-overlay {
        display: none !important;
    }

    body {
        background: white;
    }

    .hero-section {
        min-height: auto;
        background: white;
        color: black;
    }
}