:root {
    /* Color Palette */
    --primary-color: #1a1b1e;
    /* Standard Dark Background */
    --secondary-color: #2c2e33;
    /* Slightly Lighter Dark */
    --accent-color: rgb(253, 111, 40);
    /* New Primary Orange-Red */
    --accent-hover: rgb(220, 80, 20);
    /* Darker shade for hover */
    --text-color: #ffffff;
    /* White Text */
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.8);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1f2833 0%, #1a1b1e 100%);
    --gradient-accent: linear-gradient(135deg, rgb(253, 111, 40) 0%, rgb(220, 80, 20) 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: 'Outfit', 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

p,
span,
li,
a {
    color: var(--white);
    font-weight: 400;
    /* Reset to normal */
    letter-spacing: 0.5px;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.lead {
    color: var(--white) !important;
    opacity: 0.9;
}

/* Navbar */
/* Navbar */
.navbar {
    background-color: transparent;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(5, 6, 8, 0.85);
    /* Darker, more premium base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white) !important;
}

.brand-name {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 12px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    opacity: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-accent);
    /* Use gradient */
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-color);
    /* Glow effect */
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

/* Global Bootstrap Overrides */
.btn-primary,
.btn-danger,
.btn-primary-custom {
    background: var(--gradient-accent) !important;
    border: none !important;
    color: var(--white) !important;
}

.btn-primary:hover,
.btn-danger:hover,
.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(253, 111, 40, 0.4) !important;
    color: var(--white) !important;
}

.btn-outline-custom {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.bg-secondary-custom {
    background-color: var(--secondary-color);
}

/* Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.hero-bg {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomEffect 20s infinite alternate;
    /* Default animation */
}

/* Specific delay/duration for items if needed or just global */
.carousel-item.active .hero-bg {
    transform: scale(1);
    animation: zoomIn 6s linear forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: absolute !important;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

/* Cards */
.card {
    background-color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-card {
    background: linear-gradient(145deg, #1f2833, #16181d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(253, 111, 40, 0.2);
}

.feature-card:hover .icon-box {
    background: var(--accent-color);
    color: white !important;
    transform: scale(1.1);
}

.feature-card:hover .text-accent {
    color: white !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Pricing Cards */
.pricing-card {
    background: linear-gradient(135deg, #16181d 0%, #1f2833 100%);
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-bottom: 4px solid var(--accent-color) !important;
}

.pricing-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Ribbon Style for Best Value */
.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 100px;
    display: block;
    background: var(--accent-color);
    background: linear-gradient(var(--accent-color) 0%, var(--accent-hover) 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    right: -21px;
}

.ribbon span::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 100%;
    z-index: -1;
    border-left: 3px solid var(--accent-hover);
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid var(--accent-hover);
}

.ribbon span::after {
    content: "";
    position: absolute;
    right: 0px;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid var(--accent-hover);
    border-bottom: 3px solid transparent;
    border-top: 3px solid var(--accent-hover);
}

/* Text Animations for Slider */
.carousel-item.active .animate-pop-in {
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.carousel-item.active .animate-slide-up {
    animation: slideUpFade 1s ease forwards;
    opacity: 0;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-dark-glass {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    width: 60px;
    height: 60px;
}

.bg-dark-glass:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.tracking-wide {
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background-color: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.hover-text-white:hover {
    color: white !important;
    opacity: 1 !important;
}

.footer input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer input:focus {
    background-color: #050608 !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(253, 111, 40, 0.25);
}

/* About Section Layout */
.about-image-wrapper {
    min-height: 500px;
}

.main-img-mask {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: var(--shadow-lg);
    border: 15px solid var(--secondary-color);
    transition: all 0.5s ease;
}

.about-image-wrapper:hover .main-img-mask {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.secondary-img-mask {
    width: 250px;
    height: 250px;
    bottom: 50px;
    left: 0;
    z-index: 2;
}

.experience-badge {
    z-index: 3;
    min-width: 180px;
    background: linear-gradient(135deg, #1f2833 0%, #16181d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .about-image-wrapper {
        min-height: 400px;
        margin-bottom: 3rem;
    }

    .main-img-mask {
        width: 300px;
        height: 300px;
        margin: 0 auto;
        border-width: 10px;
    }

    .secondary-img-mask {
        width: 150px;
        height: 150px;
        bottom: 0;
        left: 50%;
        transform: translateX(-120%);
    }

    .experience-badge {
        right: 50%;
        transform: translateX(120%);
        bottom: 0;
        padding: 1.5rem !important;
        min-width: 140px;
    }

    .experience-badge h2 {
        font-size: 2.5rem;
    }

    .cta-bg {
        background-attachment: scroll !important;
    }
}

/* Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-container-premium {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hover-bg-light-5:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Text Stroke Effect */
.text-stroke {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    color: transparent;
    transition: all 0.3s ease;
}

.text-stroke:hover {
    -webkit-text-stroke: 2px var(--accent-color);
}

/* Icon Box Outline */
.icon-box-outline {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.icon-box-outline:hover {
    border-color: var(--accent-color);
    background: rgba(253, 111, 40, 0.1);
    transform: translateY(-5px);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* AOS overrides or helpers if needed */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Text Outline enhancement for headers */
.text-stroke-sm {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* Facility Image Grid */
.facility-card img {
    transition: transform 0.6s ease;
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    transition: all 0.4s ease;
    z-index: 1;
}

.facility-card:hover .facility-overlay {
    background: linear-gradient(to top, rgba(253, 111, 40, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
}

.facility-content {
    z-index: 2;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-content {
    transform: translateY(-5px);
}

.facility-text {
    opacity: 1 !important;
    max-height: none !important;
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: block !important;
}

/* --- INDUSTRIAL PLANS REDESIGN --- */
/* --- INDUSTRIAL PLANS REDESIGN (COMPACT) --- */
.plan-card-industrial {
    background: #0f1012;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.plan-card-industrial:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(253, 111, 40, 0.15);
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 3px 35px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.plan-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 0.25rem;
}

.plan-price {
    color: var(--accent-color);
    line-height: 1;
    margin-top: 10px;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
}

.plan-price .amount {
    font-size: 3.5rem;
    /* Reduced from 4.5rem */
    font-weight: 900;
    letter-spacing: -1px;
}

.plan-duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-top: 5px;
}

.plan-features ul li {
    padding: 8px 0;
    /* Reduced from 12px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.plan-features ul li:last-child {
    border-bottom: none;
}

.plan-features ul li i {
    margin-right: 12px;
    font-size: 0.8rem;
}

.btn-industrial {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-industrial:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(253, 111, 40, 0.4);
    transform: translateY(-3px);
}

/* --- INDUSTRIAL TRAINER DESIGN --- */
.trainer-card-industrial {
    background: #0f1012;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.trainer-card-industrial:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(253, 111, 40, 0.15);
}

.trainer-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.trainer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trainer-card-industrial:hover .trainer-img-wrapper img {
    transform: scale(1.1);
}

.trainer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #0f1012 10%, transparent);
    height: 50%;
    z-index: 1;
}

.trainer-info {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    margin-top: -60px;
}

.trainer-card-industrial:hover .trainer-info {
    transform: translateY(-10px);
}

.trainer-name {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.trainer-role {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.trainer-social a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* --- INDUSTRIAL CONTACT DESIGN --- */
.contact-form-wrapper {
    background: #0f1012;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* height removed to allow flexbox matching */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    /* Ensure it fills the column */
}

.map-container-industrial {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    height: 100%;
    /* Match parent flex column height */
    min-height: 400px;
    /* Safety minimum */
}

/* Seamless Input Group Styling */
.input-group {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(253, 111, 40, 0.2);
}

.input-group-text {
    background-color: var(--primary-color) !important;
    border: none;
    border-radius: 0;
    color: var(--accent-color);
    padding: 0 20px;
    display: flex;
    align-items: center;
    /* Center icons for inputs */
}

/* Specific alignment for textarea icon */
.input-group:has(textarea) .input-group-text {
    align-items: flex-start;
    padding-top: 15px;
}

.form-control-industrial {
    background-color: var(--primary-color);
    border: none;
    /* remove individual borders */
    border-radius: 0;
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    /* Slightly smaller detail text */
    transition: none;
    /* Handling transition on group */
}

.form-control-industrial:focus {
    background-color: var(--primary-color);
    box-shadow: none;
    /* remove default glow */
    color: white;
}

/* Ensure background changes on focus for both */
.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control-industrial {
    background-color: #0f1012 !important;
}

.contact-card-industrial {
    background: #0f1012;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card-industrial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.contact-card-industrial:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-card-industrial:hover::before {
    opacity: 1;
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #1a1b1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* Circle badge */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}

.icon-box i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: all 0.4s ease;
}

.contact-card-industrial:hover .icon-box {
    background: var(--accent-color);
    /* Fill with accent on hover */
    border-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(253, 111, 40, 0.4);
}

.contact-card-industrial:hover .icon-box i {
    color: white;
    /* Turn icon white */
    transform: scale(1.1);
}

.map-container-industrial {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    height: 520px !important;
    /* Force match */
}

.map-container-industrial iframe {
    width: 100%;
    height: 100%;
}

/* --- FULL SCREEN AUTH DESIGN (Professional Right Sidebar) --- */
.full-screen-auth {
    height: 100vh;
    width: 100%;
    /* Absolute path for reliability */
    background-image: url('/GYM/assets/images/Register.jpeg');
    background-size: cover;
    background-position: top center;
    /* Focus on top of image (faces/heads) */
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align sidebar to the RIGHT */
    padding: 0;
    /* Remove padding */
    overflow: hidden;
}

.full-screen-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Light overlay for image focus */
    z-index: 1;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on top of video, matching the image */
    z-index: 0;
    /* Behind overlay, in front of background-image */
    opacity: 1;
    /* Visible initially */
    transition: opacity 1.5s ease;
    /* Smooth fade out */
}

.auth-sidebar {
    position: relative;
    z-index: 2;
    background: #0f1012;
    /* Solid dark background */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    padding: 2rem 2rem;
    /* Reduced padding */
    width: 100%;
    max-width: 450px;
    /* Slightly Reduced Width */
    height: 100vh;
    /* Full height */
    overflow-y: auto;
    /* Internal scroll */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--accent-color) #0f1012;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically if screen is tall */
}

/* Custom Scrollbar for Webkit */
.auth-sidebar::-webkit-scrollbar {
    width: 6px;
}

.auth-sidebar::-webkit-scrollbar-track {
    background: #0f1012;
}

.auth-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* Ensure inputs look clean on sidebar */
.auth-sidebar .form-control,
.auth-sidebar .input-group-text {
    background: #1a1b1e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    padding: 10px 15px;
    /* Compact padding */
    font-size: 0.9rem;
}

.auth-sidebar .mb-4 {
    margin-bottom: 1rem !important;
    /* Compact margins */
}

.auth-sidebar .form-control:focus,
.auth-sidebar .input-group:focus-within .input-group-text {
    border-color: var(--accent-color) !important;
    background: #242529 !important;
}

.auth-sidebar .input-group-text.cursor-pointer {
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-sidebar .input-group-text.cursor-pointer:hover {
    color: var(--accent-color) !important;
}

.auth-sidebar .form-control::placeholder {
    opacity: 0.4;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-card-glass .form-control:focus,
.auth-card-glass .input-group:focus-within .input-group-text {
    border-color: var(--accent-color) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.auth-card-glass .form-control::placeholder {
    opacity: 0.5;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- LOGO UTILITIES --- */
.site-logo {
    height: 60px;
    /* Navbar logo height */
    width: auto;
    transition: transform 0.3s ease;
}

.auth-logo {
    height: 80px;
    /* Login/Register logo height */
    width: auto;
}

.footer-logo {
    height: 70px;
    /* Footer logo height */
    width: auto;
}

.admin-logo {
    height: 100px;
    /* Admin sidebar logo height */
    width: auto;
    padding: 10px;
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* --- Tablet & Small Desktop (Max 991px) --- */
@media (max-width: 991px) {
    .navbar {
        background-color: #050608 !important;
        /* Dark background for mobile header */
        padding: 10px 0;
        /* Compact padding */
    }

    /* Prevent brand from pushing toggler off screen */
    .navbar-brand {
        max-width: 75%;
        overflow: hidden;
        white-space: nowrap;
    }

    .site-logo {
        height: 50px;
    }

    .brand-name {
        font-size: 1.1rem !important;
        /* Reduce from 1.4rem */
    }

    .brand-tagline {
        font-size: 0.65rem !important;
        /* Slightly smaller to fit */
        letter-spacing: 0.5px !important;
        display: block !important;
        margin-top: 2px;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Navbar styling for mobile menu */
    .navbar-collapse {
        background: rgba(5, 6, 8, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        margin: 10px 0;
        text-align: center;
    }

    .nav-link::before {
        display: none;
        /* Remove underline effect on mobile for cleaner look */
    }

    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0.75rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        border-color: var(--accent-color);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Global Typography Adjustments */
    .section-title {
        font-size: 2rem;
    }

    h1.display-1 {
        font-size: 3.5rem;
    }

    h1.display-3 {
        font-size: 2.5rem;
    }

    /* Layout Adjustments */
    section {
        padding: 60px 0;
    }

    .hero-content {
        width: 90%;
    }

    .about-image-wrapper {
        min-height: auto;
        height: auto;
        padding-bottom: 0;
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-img-mask {
        width: 100%;
        max-width: 400px;
        height: 400px;
        margin: 0 auto;
    }

    .secondary-img-mask {
        position: relative;
        bottom: auto;
        left: auto;
        width: 150px;
        height: 150px;
        margin-top: -60px;
        margin-left: -50px;
        transform: none !important;
    }

    .experience-badge {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: -40px;
        margin-left: 100px;
        max-width: 200px;
    }
}

/* --- Mobile Landscape & Portrait (Max 767px) --- */
@media (max-width: 767px) {

    /* Hero Typography */
    h1.display-1 {
        font-size: 2.2rem !important;
        /* Reduced from 3.5rem/2.5rem to fit screen */
        word-wrap: break-word;
        /* Prevent overflow of long words */
    }

    .hero-content {
        width: 100%;
        padding: 0 15px;
        /* Ensure padding from edges */
    }

    .lead {
        font-size: 1rem !important;
        /* Override fs-3 */
        margin-bottom: 2rem !important;
        /* Reduce bottom margin */
    }

    /* Buttons */
    .btn-lg {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .d-flex.gap-4 {
        gap: 1rem !important;
    }

    /* Hero Slider buttons stacking */
    .hero-content .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 15px !important;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Pricing Cards */
    .feature-card,
    .pricing-card {
        margin-bottom: 15px;
    }

    /* Footer */
    .footer {
        text-align: center;
    }

    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 30px;
    }

    .footer-links a:hover {
        padding-left: 0;
        /* Disable padding shift on mobile center align */
    }

    /* Industrial Card Adjustments */
    .plan-card-industrial {
        min-width: auto;
        /* Allow shrinking below 300px */
    }

    .contact-form-wrapper,
    .contact-card-industrial {
        padding: 1.5rem;
        /* Reduce padding from 2.5rem */
    }

    /* Footer Mobile Adjustments */
    .footer .d-flex {
        justify-content: center !important;
    }

    .footer .align-items-start {
        align-items: center !important;
        /* Center align social/contact items */
    }

    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }

    /* Validated Brand Column Alignment */
    .footer .col-lg-4 .d-flex.flex-column {
        align-items: center !important;
    }

    /* Get In Touch Section Mobile Improvement */
    .footer .col-lg-3 .list-unstyled li {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer .col-lg-3 .list-unstyled li i {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        font-size: 1.2rem;
    }

    .footer .col-lg-3 .list-unstyled li span {
        text-align: center;
    }

    /* Auth Pages (Login/Register) */
    .full-screen-auth {
        flex-direction: column;
        background-position: center;
    }

    .auth-sidebar {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        border-left: none;
        background: rgba(15, 16, 18, 0.95);
        padding: 4rem 1.5rem;
    }

    .about-image-wrapper {
        margin-bottom: 1rem !important;
        /* Reduced from 3rem to reduce gap */
    }

    /* About Section Mobile Adjustments */
    .main-img-mask {
        max-width: 100%;
        width: 300px;
        /* Reduce width */
        height: 300px;
        /* Reduce height */
    }

    .secondary-img-mask {
        width: 120px;
        height: 120px;
        margin-top: -20px;
        /* Adjusted from -40px to give more space */
        margin-left: -40px;
    }

    .experience-badge {
        margin-top: -30px;
        margin-left: 60px;
        padding: 1rem !important;
        min-width: 120px;
    }

    .experience-badge h2 {
        font-size: 2rem;
    }

    /* CTA Section Mobile */
    .cta-section {
        min-height: auto !important;
        /* Allow height to adjust to content */
        padding: 60px 0 !important;
    }

    .cta-section h2.display-3 {
        font-size: 2rem !important;
        /* Reduce from 2.5rem/3.5rem */
    }

    .cta-section p.lead {
        width: 100% !important;
        /* Use full width */
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .cta-section .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }

    .cta-section .btn {
        width: 100%;
        padding: 15px !important;
        font-size: 1rem !important;
    }

    /* About Text Alignment Mobile */
    .col-lg-6[data-aos="fade-left"] {
        text-align: center !important;
    }

    .col-lg-6[data-aos="fade-left"] .section-title {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .col-lg-6[data-aos="fade-left"] .d-flex.flex-wrap {
        justify-content: center;
        gap: 1.5rem !important;
    }

    .col-lg-6[data-aos="fade-left"] .vr {
        display: none;
        /* Hide vertical dividers on mobile if stacking looks better, or keep them */
    }
}

/* --- Small Mobile (Max 400px) --- */
@media (max-width: 400px) {
    .section-title {
        font-size: 1.8rem;
    }

    .main-img-mask {
        height: 300px;
    }
}

/* Typography Refinements */
.trainer-role {
    display: block;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}


/* About Page Specific Mobile Fixes */
@media (max-width: 767px) {

    /* Center align Our Story text container */
    .col-lg-6.ps-lg-5 {
        text-align: center !important;
        padding-left: 15px !important;
        /* Restore padding to avoid cutoff */
        padding-right: 15px !important;
    }



    /* Ensure icons in the text block don't stretch */
    .col-lg-6.ps-lg-5 .icon-box-outline {
        margin-right: 1.5rem !important;
    }

    /* Make outlined text solid on mobile for better visibility */
    .text-stroke {
        color: rgba(255, 255, 255, 0.1) !important;
        -webkit-text-stroke: 1px var(--white) !important;
    }

    /* Plans Page Mobile Fixes */
    .plan-card-industrial {
        margin-bottom: 20px !important;
        min-height: auto !important;
        /* Allow height to fit content */
    }

    .plan-header h3 {
        font-size: 1.5rem !important;
        /* Reduce title size */
    }

    .plan-price .amount {
        font-size: 2.5rem !important;
        /* Reduce price size */
    }

    .plan-body ul li {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }

    .glass-container-premium {
        padding: 1.5rem !important;
        /* Reduce padding for additional info box */
    }

    /* Facilities Grid */
    .facility-card {
        min-height: 250px !important;
        /* Reduce height of large card */
    }

    .facility-text {
        display: block !important;
        /* Ensure text is visible */
    }

    /* Offers Page Mobile Fixes */
    .img-fluid.rounded-4.shadow-lg {
        max-height: 50vh !important;
        /* Prevent offer image from taking full height */
        width: 100% !important;
        object-fit: contain !important;
    }

    .offers-btn-group {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .offers-btn-group .btn {
        width: 100% !important;
    }

    /* Mobile Hero Adjustment: Reduce height to prevent zooming */
    .hero-section {
        height: 70vh !important;
        /* Increased from 60vh for better image display */
        min-height: 450px !important;
    }

    .hero-bg {
        height: 100% !important;
        background-position: center 70px !important;
        /* Adjusted from 80px */
        background-size: cover !important;
        background-color: #000;
        background-repeat: no-repeat !important;
        /* Force High Quality Rendering on Mobile */
        will-change: transform;
        /* Hint browser to optimize */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        /* Additional fallback */
    }
}