/* MTC Blue Palette Extracted & Enhanced */
:root {
    --mw-blue-primary: #0a58ca;
    --mw-blue-dark: #052c65;
    --mw-blue-light: #88bae4;
    --mw-accent: #0dcaf0;
    /* Cyan for glow */
    --mw-glass-bg: rgba(10, 88, 202, 0.1);
    --mw-glass-border: rgba(136, 186, 228, 0.3);
    --mw-text-main: #212529;
    --mw-text-light: #f8f9fa;
    --mw-shadow-color: rgba(10, 88, 202, 0.25);
}

/* Global Enhancements */
body {
    background-color: #f0f4f8;
    /* Light blue-grey tint instead of plain white */
    overflow-x: hidden;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Orbitron', 'DM Sans', sans-serif;
    /* Tech feel */
    letter-spacing: -0.5px;
}

/* =========================================
   IMMERSIVE HERO SECTION
   ========================================= */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    filter: brightness(0.6) contrast(1.1);
    /* Darken for text readability */
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    background: rgba(5, 44, 101, 0.4);
    /* Glass pane behind text */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.title-hero-19 {
    font-size: 3.5rem !important;
    /* Override standard size */
    font-weight: 800;
    text-shadow: 0 0 20px rgba(13, 202, 240, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #88bae4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hide original slider since we replace it */
.main-slider.banner-slider {
    display: none;
}

/* =========================================
   GLASS CURDS & 3D HOVER
   ========================================= */
.box1,
.card,
.passion-grid-item-info {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--mw-glass-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.box1:hover,
.passion-grid-item-info:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--mw-shadow-color);
    border-color: var(--mw-blue-primary);
}

.box1 img {
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* =========================================
   NEON BUTTONS
   ========================================= */
.btn-primary,
.btn-style {
    background: linear-gradient(45deg, var(--mw-blue-dark), var(--mw-blue-primary));
    border: none;
    box-shadow: 0 4px 15px var(--mw-shadow-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--mw-accent);
    transition: width 0.3s;
    z-index: -1;
    opacity: 0.3;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--mw-accent);
}

/* =========================================
   NAVBAR ENHANCEMENTS
   ========================================= */
#site-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-fixed #site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.special-nav-link {
    background: linear-gradient(45deg, #1cb5e0, #000046);
    /* Deep Ocean gradient */
    color: white !important;
    border-radius: 30px;
    padding: 0.5rem 1.5rem !important;
    box-shadow: 0 5px 15px rgba(28, 181, 224, 0.4);
}

.special-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 181, 224, 0.6);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Apply staggered animations */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.box1,
.passion-grid-item-info {
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
    /* Needs JS to set --i if specific staggering is desired, else it just floats */
}

/* Text Highlights */
.highlight-text {
    position: relative;
    display: inline-block;
    color: var(--mw-blue-primary);
    font-weight: 800;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--mw-accent);
    opacity: 0.3;
    transform: skewX(-20deg);
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--mw-blue-dark);
    border-radius: 5px;
}

/* =========================================
   GALLERY PAGE ENHANCEMENTS
   ========================================= */
.gallery-section {
    padding: 4rem 1rem;
}

.gallery-title {
    text-align: center;
    margin: 3rem 0;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--mw-blue-dark), var(--mw-blue-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.Gallery-div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    border: none;
    /* Removed black border */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(20%);
    /* Artistic touch */
}

.Gallery-div>div {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
}

.gallery-img:hover {
    transform: scale(1.1) rotate(1deg);
    filter: grayscale(0%);
    box-shadow: 0 20px 40px var(--mw-shadow-color);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(5, 44, 101, 0.9), transparent);
    backdrop-filter: blur(2px);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    /* ensure it sits over the image */
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 10px;
}

.Gallery-div>div:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}