@import url('hover-effects.css');
@import url('mouse-effects.css');
@import url('hero-upgrade.css');
@import url('services-accordion.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

/* =========================================
   Hairport Salon - Modern Masterpiece Theme
   Palette: Black (#171717), Orange (#F25623), White (#FFFFFF)
   Aesthetic: Bold, Grid-based, High Contrast
   Typography: Playfair Display (Headers), Inter (Body), Poppins (Accents)
   ========================================= */

:root {
    /* Colors */
    --primary-black: #171717;
    --primary-white: #FFFFFF;
    --accent-orange: #F25623;
    --secondary-gray: #4D4D4D;
    --light-gray: #E5E5E5;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-dark: rgba(0, 0, 0, 0.1);

    /* Typography System */
    --font-display: 'Playfair Display', serif;
    /* Tier 1: Headlines */
    --font-body: 'Inter', sans-serif;
    /* Tier 2: Body */
    --font-accent: 'Poppins', sans-serif;
    /* Tier 3: UI/Accents */

    /* Spacing */
    --header-height: 80px;
    --section-spacing: 100px;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    background-color: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.6;
    letter-spacing: 0.3px;
    overflow-x: hidden;
}

/* Typography Tiers */
h1,
h2,
.hero-title,
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h3,
h4,
h5,
h6,
.nav-link,
.btn,
.card-title,
.stat-label,
.team-role {
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-orange {
    color: var(--accent-orange);
}

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

.bg-white {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.bg-black {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    /* Hardware accel */
    z-index: 1;
}

/* Tactile Press Effect */
.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--primary-white);
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(242, 86, 35, 0.3);
    /* Pulse requires display inline-block/block which .btn has */
    animation: pulse-glow-orange 3s infinite ease-in-out;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-orange);
    animation: none;
    /* Stop pulse on hover to avoid conflict */
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-white);
    color: var(--primary-white);
}

/* Luxury Sheen Effect - More visible */
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    /* Wider to ensure full sweep */
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 60%,
            transparent 100%);
    transform: skewX(-20deg);
    animation: sheen-sweep 4s infinite linear;
    /* Faster for visibility */
    pointer-events: none;
    z-index: -1;
    /* Behind text */
}

.btn-secondary:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.btn-secondary:hover::after {
    animation: none;
    /* consistent behavior */
}

.btn-secondary:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

/* "Brick Line" Divider Style */
.brick-line-top {
    border-top: 1px solid var(--border-color);
}

.brick-line-bottom {
    border-bottom: 1px solid var(--border-color);
}

.bg-white .brick-line-top {
    border-color: var(--border-color-dark);
}

.bg-white .brick-line-bottom {
    border-color: var(--border-color-dark);
}


/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-white);
}

.logo span {
    color: var(--accent-orange);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.stats-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    /* Ensure above menu */
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--primary-white);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    /* Cover full screen */
    left: 0;
    width: 75%;
    /* Slide out drawer style */
    height: 100vh;
    background: #111;
    /* Darker bg */
    border-right: 1px solid var(--accent-orange);
    /* Right border instead of bottom */
    padding: 100px 40px;
    /* Top padding for breathing room */
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
    /* Standard mobile menu alignment */
    z-index: 1001;
    transform: translateX(-100%);
    /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth slide */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu a {
    font-size: 20px;
    font-family: var(--font-display);
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.mobile-menu.active {
    display: flex;
    /* Keep flex */
    transform: translateX(0);
    /* Slide in */
}

/* Overlay for outside click */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(23, 23, 23, 0.9) 0%, rgba(23, 23, 23, 0.7) 50%, rgba(23, 23, 23, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 64px;
    /* Updated per Typography Guideline */
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

/* =========================================
   Stats Section (Brick Grid)
   ========================================= */
.stats-section {
    background-color: var(--primary-black);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    padding: 60px 20px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stat-number {
    display: block;
    font-size: 64px;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
}

/* =========================================
   Services Loop (Marquee)
   ========================================= */
.services-loop-section {
    padding: 60px 0;
    background: var(--accent-orange);
    color: var(--primary-black);
    overflow: hidden;
    white-space: nowrap;
}

.loop-container {
    display: inline-flex;
    gap: 60px;
    animation: marquee 20s linear infinite;
}

.loop-item {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    -webkit-text-stroke: 1px var(--primary-black);
    color: transparent;
    transition: all 0.3s;
}

.loop-item:hover {
    color: var(--primary-black);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   Grid Layouts (Services & Gallery)
   ========================================= */
.section-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color-dark);
}

.bg-black .section-header {
    border-bottom-color: var(--border-color);
}

.section-title {
    font-size: 48px;
    text-transform: uppercase;
}

.section-title span {
    color: var(--accent-orange);
}

/* BENTO GRID Style for Services */
.services-grid-section {
    padding: var(--section-spacing) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    /* Corrected to auto for better content fit */
    gap: 24px;
}

.grid-card {
    position: relative;
    border: 1px solid var(--border-color-dark);
    overflow: hidden;
    background: #f4f4f4;
    transition: transform 0.3s ease;
    aspect-ratio: 4/5;
}

.bg-black .grid-card {
    border-color: var(--border-color);
    background: #222;
}

.grid-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.grid-card:hover .grid-card-bg {
    transform: scale(1.1);
}

.grid-card:hover .grid-overlay {
    transform: translateY(0);
}

.grid-card-title {
    font-family: var(--font-accent);
    font-size: 24px;
    margin-bottom: 8px;
}

.grid-card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
}

/* =========================================
   Testimonials
   ========================================= */
/* .testimonials-section: Background handled inline or default black */

.testimonials-scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 40px;
}

/* Moving Track */
.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    /* Force Hardware Acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

/* Keyframes for Endless Loop */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonials-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.testimonial-card {
    min-width: 350px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
    border-radius: 0;
    /* Sharp edges for "Masterpiece" feel */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Creative Touch: Gradient Border on Hover */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    /* Start invisible */
    background: linear-gradient(45deg, var(--accent-orange), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: #222;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: var(--accent-orange);
    opacity: 0.1;
    font-family: serif;
    /* Classic quote look */
}

.stars {
    color: var(--accent-orange);
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.review-text {
    font-family: var(--font-display);
    /* Using display font for "Voice" feel */
    font-size: 18px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 20px;
}

.reviewer-details h4 {
    color: var(--primary-white);
    font-size: 16px;
    margin-bottom: 4px;
}

.reviewer-details span {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 300px;
        /* Reduced from desktop, ensuring readability */
        max-width: 85vw;
        /* Critical fix: Prevent overflow on small screens */
        padding: 24px;
        /* Tighter padding */
    }

    .review-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .quote-icon {
        font-size: 40px;
        top: 15px;
        right: 15px;
    }

    .testimonial-track {
        gap: 15px;
        /* Tighter gap for mobile */
    }
}

.team-section {
    padding: var(--section-spacing) 0;
    background: var(--primary-black);
}

.team-carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
}

.team-carousel-container::-webkit-scrollbar {
    display: none;
}

.team-card {
    min-width: 300px;
    background: #222;
    border: 1px solid var(--border-color);
    padding: 0;
}

.team-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.3s;
}

.team-card:hover .team-img {
    filter: grayscale(0);
}

.team-info {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.team-name {
    font-size: 20px;
    color: var(--primary-white);
}

.team-role {
    color: var(--accent-orange);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #111;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: var(--primary-white);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-orange);
}

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

.footer-links a {
    color: #888;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: #666;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   About Page Styles
   ========================================= */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
        /* Responsive sizing */
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-cta-group .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    /* Expertise Section Fixes */
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .section-header .btn {
        /* "VIEW ALL SERVICES" button */
        width: 100%;
        text-align: center;
        order: 2;
        /* Ensure it's below text */
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Vertical stack */
        gap: 20px;
    }

    .grid-card {
        aspect-ratio: auto;
        /* Remove fixed ratio */
        height: auto;
    }

    /* Removed .grid-overlay static override - now handled in bottom block */

    .grid-card:hover .grid-card-bg {
        transform: none;
        /* Disable zoom on mobile */
    }

    /* Stats Section */
    /* Stats Section - Asymmetric Grid (T-Shape) */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        /* Removing gap for border consistency */
    }

    .stat-card {
        padding: 40px 20px;
        /* More breathing room */
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* First card: Full width top */
    .stat-card:nth-child(1) {
        grid-column: span 2;
        border-right: none;
        /* Full width doesn't need right border */
        background: linear-gradient(rgba(255, 255, 255, 0.03), transparent);
        /* Subtle highlight */
    }

    /* Second card: Bottom Left */
    .stat-card:nth-child(2) {
        border-right: 1px solid var(--border-color);
    }

    /* Third card: Bottom Right */
    .stat-card:nth-child(3) {
        border-right: none;
    }


    .services-grid {
        grid-template-columns: 1fr;
    }



    /* Team Section */
    .team-carousel-container {
        display: flex;
        flex-direction: column;
        /* Vertical stack */
        gap: 20px;
        padding-bottom: 0;
        overflow-x: visible;
        /* Remove horizontal scroll */
    }

    .team-card {
        min-width: 0;
        /* Allow full width */
        width: 100%;
    }

    .team-img {
        height: auto;
        aspect-ratio: 1/1;
        /* Square images */
    }

    /* Orange Band (Services Loop) */
    .services-loop-section {
        overflow: hidden;
        /* Prevent horizontal scroll */
    }

    .loop-item {
        font-size: 24px;
        /* Smaller text */
    }

    /* Footer Fixes */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        /* Center align all text */
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center underline */
    }

    .footer-links a:hover {
        padding-left: 0;
        /* Disable shift on hover for mobile */
        color: var(--accent-orange);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* === MOBILE OPTIMIZATION UPDATES === */

    /* 1. Fix Story Section (Stacking & Order) */
    .about-story-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    /* Image Container (2nd child) on top */
    .about-story-grid>div:nth-child(2) {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Text Container (1st child) */
    .about-story-grid>div:nth-child(1) {
        text-align: center;
        width: 100%;
    }

    .about-story-grid .section-title {
        justify-content: center;
    }

    .about-stats-container {
        justify-content: center;
        flex-direction: column;
        /* Stack vertically on mobile */
        gap: 50px;
        /* Increased padding between cards */
        align-items: center;
        margin-top: 60px;
        /* Increased breathing space from content */
    }

    .stats-divider {
        display: none;
        /* Hide vertical divider on mobile */
    }

    /* 2. Fix Card Aspect Ratios & Overlay (Team & Services) */
    .grid-card {
        aspect-ratio: 3/4;
        /* Taller portrait ratio for mobile */
        height: auto;
        position: relative;
        /* Ensure absolute overlay stays inside */
        display: block;
        /* Reset flex if set previously */
    }

    .team-grid .grid-card {
        aspect-ratio: 3/4;
    }

    .team-img {
        height: 100%;
        object-fit: cover;
    }

    /* Overlay Ribbon Position (Mobile Only) */
    .grid-overlay {
        position: absolute !important;
        /* Force absolute */
        bottom: 0 !important;
        left: 0 !important;
        width: 100%;
        transform: none !important;
        /* No hover transform */
        background: rgba(0, 0, 0, 0.85);
        /* Solid dark overlay */
        text-align: center;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .grid-card:hover .grid-card-bg {
        transform: none;
        /* Disable zoom on mobile */
    }
}

/* End of file */

/* =========================================
   Inner Page & Tab Components
   ========================================= */
.inner-page-header {
    height: auto;
    /* Allow growth */
    min-height: 45vh;
    /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
    padding-top: 240px;
    /* Force content deep down below navbar */
    padding-bottom: 100px;
    border-bottom: 4px solid var(--accent-orange);
}

/* Tabs: Fixed Logic */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-btn {
    border: 1px solid var(--border-color-dark);
    background: transparent;
    border-radius: 0;
    font-family: var(--font-accent);
    padding: 12px 24px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

/* =========================================
   Real Results Slider (Responsive)
   ========================================= */
.ba-slider-container {
    height: 600px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--accent-orange);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 20;
    cursor: ew-resize;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    pointer-events: none;
    /* Let clicks pass through to slider logic */
}

@media (max-width: 768px) {
    .ba-slider-container {
        height: 350px !important;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        margin: 0 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* =========================================
   Premium Button Animations
   ========================================= */
@keyframes pulse-glow-orange {
    0% {
        box-shadow: 0 4px 15px rgba(242, 86, 35, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 4px 25px rgba(242, 86, 35, 0.5);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 4px 15px rgba(242, 86, 35, 0.3);
        transform: scale(1);
    }
}

@keyframes sheen-sweep {
    0% {
        left: -150%;
    }

    10% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* =========================================
   Desktop Layout Restorations (About Page)
   ========================================= */
@media (min-width: 769px) {

    /* Restore 2-column layout for Story text + image */
    .about-story-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        text-align: left;
        /* Align text left on desktop */
    }

    .about-story-grid .section-title {
        justify-content: flex-start;
        /* Title aligns left */
    }

    /* Restore Horizontal Stats (Side-by-Side) */
    .about-stats-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        /* Align stats to start */
        align-items: center;
        gap: 40px;
        margin-top: 40px;
    }

    .stats-divider {
        display: block;
        /* Show divider on desktop */
        width: 1px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
    }

    /* Ensure image container fits */
    .about-story-grid>div:nth-child(2) {
        order: 0;
        /* Reset order */
    }
}