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

/* TUFF Floating Notification Banner */
.tuff-notification {
    position: fixed;
    top: -400px;
    left: 20px;
    right: auto;
    z-index: 10000;
    width: 100%;
    max-width: 210px;
    margin: 0;
    padding: 7px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    display: block;
    opacity: 0;
    visibility: hidden;
}

.tuff-notification.show {
    top: 80px !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 10000 !important;
}

.tuff-notification.hide {
    top: -400px;
    transform: translateY(-100%);
}

.tuff-notification-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 215, 0, 0.3);
    padding: 0.75rem;
    position: relative;
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    animation: slideDownBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideDownBounce {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    60% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.tuff-notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.tuff-notification-close:hover {
    background: rgba(234, 8, 136, 0.2);
    transform: rotate(90deg);
}

.tuff-notification-close svg {
    width: 10px;
    height: 10px;
    stroke: var(--text-dark);
}

.tuff-notification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1e293b;
    padding: 0.25rem 0.5rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.45rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.5);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 3px 20px rgba(255, 215, 0, 0.7), 0 0 15px rgba(255, 215, 0, 0.3);
    }
}

.tuff-notification-badge svg {
    width: 9px;
    height: 9px;
    stroke: #1e293b;
    fill: #1e293b;
}

.tuff-notification-main {
    text-align: left;
}

.tuff-notification-main h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    text-align: left;
}

.tuff-notification-subtitle {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-style: italic;
    text-align: left;
}

.tuff-notification-text {
    font-size: 0.55rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-align: left;
}

.tuff-notification-actions {
    display: flex;
    gap: 0.375rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-tuff-notification {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c9066f 100%);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.55rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(234, 8, 136, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-tuff-notification:hover {
    background: linear-gradient(135deg, #c9066f 0%, var(--accent-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(234, 8, 136, 0.5);
}

.btn-tuff-notification svg {
    width: 10px;
    height: 10px;
}

.btn-tuff-close {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.75rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.55rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-tuff-close:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

:root {
    --primary-color: #28ade3;
    --primary-dark: #1e8fc4;
    --accent-color: #ea0888;
    --accent-dark: #c9066f;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
    width: 100%;
    position: relative;
}

.nav-wrapper .logo {
    flex-shrink: 0;
}

.nav-wrapper .nav-menu {
    flex: 1;
    justify-content: center;
}

/* On mobile, nav-menu should not take up flex space */
@media (max-width: 968px) {
    .nav-wrapper .nav-menu {
        flex: none !important;
        /* Don't set width to 0 - it prevents menu from showing */
    }
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: none; /* Hidden by default, shown if image doesn't load */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo:hover .logo-text {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}

/* On mobile screens, hide nav-menu from normal flow - it will be shown via hamburger */
@media (max-width: 968px) {
    .nav-menu:not(.active) {
        left: -100vw !important;
        /* Use viewport width instead of percentage */
    }
    
    /* CRITICAL: Ensure list items are visible when menu is active */
    .nav-menu.active li {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .nav-menu.active li a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        position: relative !important;
        z-index: 11 !important;
    }
}

/* Ensure nav-menu is visible on desktop */
@media (min-width: 969px) {
    .nav-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        min-width: auto !important;
        overflow: visible !important;
        flex: 1 !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.5rem !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        pointer-events: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }
    
    .nav-wrapper .nav-menu {
        flex: 1 !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        position: static !important;
    }
    
    .nav-menu li {
        position: static !important;
        width: auto !important;
        display: list-item !important;
    }
    
    .nav-link {
        display: inline-block !important;
        width: auto !important;
        padding: 0.5rem 0.5rem !important;
        text-align: center !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }
    
    /* Hide hamburger menu on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Position auth buttons to the far right on desktop */
    .nav-auth-buttons {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    .nav-auth-buttons .nav-link {
        margin-left: 0 !important;
    }
    
    /* Hide auth buttons in nav-menu on desktop (they're in nav-auth-buttons) */
    .nav-menu .nav-menu-auth-mobile {
        display: none !important;
    }
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
}

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

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

.nav-link:hover {
    color: var(--accent-color);
}

/* Register and Login Navigation Buttons */
.nav-btn-register {
    background: var(--accent-color) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 0.5rem !important;
}

.nav-btn-register::after {
    display: none !important;
}

.nav-btn-register:hover {
    background: var(--accent-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 8, 136, 0.3);
}

.nav-btn-login {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 0.5rem !important;
}

.nav-btn-login::after {
    display: none !important;
}

.nav-btn-login:hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 173, 227, 0.3);
}

.nav-btn-schedule {
    background: #10b981 !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 0.5rem !important;
}

.nav-btn-schedule::after {
    display: none !important;
}

.nav-btn-schedule:hover {
    background: #059669 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop, shown on mobile */
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
}

.mobile-menu-toggle:hover span {
    background: var(--accent-color);
}

/* Hamburger icon animation when active (transforms to X) */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28ade3 0%, #1e8fc4 50%, #ea0888 100%);
    color: white;
    overflow: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
    position: relative;
    display: inline-block;
    padding: 2.5rem 3rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-logo:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-logo-img {
    height: 140px;
    width: auto;
    max-width: 450px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo:hover .hero-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
}

.hero-logo-text {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: block;
    line-height: 1;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Focus Cards */
.hero-focus {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Make 3D Scanning card full width */
.focus-horizontal {
    grid-column: 1 / -1;
}

.focus-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease backwards;
}

.focus-card:nth-child(1) { animation-delay: 0.2s; }
.focus-card:nth-child(2) { animation-delay: 0.4s; }
.focus-card:nth-child(3) { animation-delay: 0.6s; }

.focus-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.focus-pink {
    border-color: rgba(234, 8, 136, 0.5);
}

.focus-pink:hover {
    background: rgba(234, 8, 136, 0.2);
    border-color: rgba(234, 8, 136, 0.8);
}

/* Horizontal Layout for 3D Scanning Card */
.focus-horizontal {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    text-align: left;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.focus-horizontal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

.focus-iphone-image {
    width: 100%;
    max-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.focus-iphone-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.focus-iphone-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.focus-iphone-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.focus-iphone-placeholder span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.focus-horizontal .focus-icon {
    margin: 0;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.focus-horizontal .focus-icon svg {
    width: 50px;
    height: 50px;
}

.focus-horizontal-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.focus-horizontal h3 {
    text-align: left;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.focus-horizontal p {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.focus-horizontal .focus-tagline {
    text-align: left !important;
    word-wrap: break-word;
}

.focus-blue {
    border-color: rgba(40, 173, 227, 0.5);
}

.focus-blue:hover {
    background: rgba(40, 173, 227, 0.2);
    border-color: rgba(40, 173, 227, 0.8);
}

.focus-blue-alt {
    border-color: rgba(40, 173, 227, 0.5);
}

.focus-blue-alt:hover {
    background: rgba(40, 173, 227, 0.2);
    border-color: rgba(40, 173, 227, 0.8);
}

.focus-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.focus-card:hover .focus-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.focus-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.focus-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.focus-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
    margin-bottom: 1rem;
}

.focus-card p:last-of-type {
    margin-bottom: 0;
}

.focus-detail {
    font-size: 0.9rem !important;
    opacity: 0.85 !important;
    text-align: left !important;
    margin-top: 1rem !important;
}

.focus-compatible {
    margin: 1.5rem 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.focus-compatible h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    text-align: left;
}

.focus-compatible ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-compatible ul li {
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.focus-compatible ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.focus-tagline {
    margin-top: 1.5rem !important;
    font-size: 0.95rem !important;
    font-style: italic !important;
    text-align: center !important;
    opacity: 0.95 !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 3;
    opacity: 1;
    visibility: visible;
}

.hero-buttons .btn {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: white;
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    pointer-events: none;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 10px auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 8, 136, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header > * {
    width: 100%;
    box-sizing: border-box;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content > * {
    width: 100%;
    box-sizing: border-box;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background: #000;
    position: relative;
    z-index: 2;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    z-index: 1;
    border-radius: 12px;
}

.video-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Mobile-specific video styles */
@media (max-width: 968px) {
    .video-container {
        height: 300px;
    }
    
    .about-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #000;
        position: relative !important;
        z-index: 2 !important;
    }
}

@media (max-width: 640px) {
    .video-container {
        height: 250px;
    }
    
    .about-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #000;
    }
}

/* Services Section */
.services {
    background: var(--bg-light);
}

/* Orthotic Types with Images */
.orthotic-types {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.orthotic-types > * {
    width: 100%;
}

.orthotic-type-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
}

.orthotic-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.orthotic-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.orthotic-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.orthotic-features {
    margin-bottom: 1.5rem;
}

.orthotic-features h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.orthotic-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orthotic-features ul li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-left: 0;
}

.orthotic-features ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
    line-height: inherit;
}

/* Ensure bullets don't appear on images */
.orthotic-image-section *::before,
.orthotic-image *::before,
.orthotic-image img::before {
    display: none !important;
    content: none !important;
}

.orthotic-description {
    margin-top: auto;
}

.orthotic-description p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.orthotic-image-section {
    padding: 2.5rem;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.orthotic-image-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.orthotic-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: white;
    position: relative;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orthotic-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.orthotic-type-card:hover .orthotic-image img {
    transform: scale(1.02);
}

/* Dual Image Layout for Diabetic Gait Plates */
.orthotic-image-dual {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0;
}

.orthotic-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.orthotic-image-item h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
}

.orthotic-image-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.orthotic-image-item:hover img {
    transform: scale(1.05);
}

/* When image section has dual images, remove the title */
.orthotic-image-section:has(.orthotic-image-dual) h3 {
    margin-bottom: 1rem;
}

/* Alternative layout: Image on left, content on right (for alternating) */
.orthotic-type-card.alternate {
    grid-template-columns: 1fr 1fr;
}

.orthotic-type-card.alternate .orthotic-image-section {
    order: -1;
}

/* Footwear Section */
.footwear {
    background: var(--bg-white);
}

/* Additions and Modifications Section */
.additions {
    background: var(--bg-light);
}

.additions > * {
    width: 100%;
    box-sizing: border-box;
}

/* Cork Tree Sandals Section */
.cork-tree {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.additions .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.additions .service-card {
    padding: 1.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
}

.service-card:nth-child(odd) .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.service-card:nth-child(even) .service-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Process Section */
.process {
    background: var(--bg-white);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.process-step:nth-child(odd) .step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.process-step:nth-child(even) .step-number {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-content > * {
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:nth-child(odd) .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.contact-item:nth-child(even) .contact-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-widget-callout {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-callout-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: var(--text-dark);
}

.contact-widget-callout p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.contact-widget-callout p:last-child {
    margin-bottom: 0;
}

.contact-callout-muted {
    font-size: 0.95rem;
    color: var(--text-light, #666);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 173, 227, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Social Media Icons */
.social-media {
    margin-top: 1.5rem;
}

.social-media h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.125rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Social Icon Brand Colors on Hover */
.social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: transparent;
}

.social-icon[aria-label="YouTube"]:hover {
    background: #ff0000;
    border-color: transparent;
}

/* TUFF Notification Mobile */
@media (max-width: 768px) {
    .tuff-notification {
        max-width: 42.5%;
        padding: 5px;
        left: 10px;
        right: auto;
    }

    .tuff-notification.show {
        top: 70px !important;
        transform: translateY(0) !important;
        pointer-events: all !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        z-index: 10000 !important;
    }

    .tuff-notification-content {
        padding: 0.4375rem;
        border-radius: 6px;
    }

    .tuff-notification-close {
        top: 0.25rem;
        right: 0.25rem;
        width: 11px;
        height: 11px;
    }

    .tuff-notification-close svg {
        width: 6px;
        height: 6px;
    }

    .tuff-notification-content {
        text-align: left;
    }

    .tuff-notification-badge {
        padding: 0.15rem 0.325rem;
        font-size: 0.275rem;
        margin-bottom: 0.25rem;
        letter-spacing: 0.5px;
        display: inline-flex;
    }

    .tuff-notification-badge svg {
        width: 5px;
        height: 5px;
    }

    .tuff-notification-main {
        text-align: left;
    }

    .tuff-notification-main h3 {
        font-size: 0.5rem;
        margin-bottom: 0.125rem;
        line-height: 1.2;
        text-align: left;
    }

    .tuff-notification-subtitle {
        font-size: 0.375rem;
        margin-bottom: 0.25rem;
        text-align: left;
    }

    .tuff-notification-text {
        font-size: 0.375rem;
        margin-bottom: 0.375rem;
        line-height: 1.4;
        text-align: left;
    }

    .tuff-notification-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
        justify-content: flex-start;
        align-items: stretch;
    }

    .btn-tuff-notification,
    .btn-tuff-close {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.375rem;
        padding: 0.275rem 0.5rem;
    }

    .btn-tuff-notification svg {
        width: 6px;
        height: 6px;
    }
}

/* TUFF Notification Small Mobile */
@media (max-width: 480px) {
    .tuff-notification {
        max-width: 45%;
        padding: 4px;
        left: 5px;
        right: 5px;
    }

    .tuff-notification.show {
        top: 60px !important;
    }

    .tuff-notification-content {
        padding: 0.375rem;
        border-radius: 5px;
    }

    .tuff-notification-main {
        text-align: left;
    }

    .tuff-notification-main h3 {
        font-size: 0.475rem;
        text-align: left;
    }

    .tuff-notification-subtitle {
        font-size: 0.35rem;
        text-align: left;
    }

    .tuff-notification-text {
        font-size: 0.35rem;
        text-align: left;
    }

    .tuff-notification-actions {
        justify-content: flex-start;
        align-items: stretch;
    }

    .btn-tuff-notification,
    .btn-tuff-close {
        font-size: 0.35rem;
        padding: 0.25rem 0.4375rem;
        text-align: center;
    }
}

}

/* Responsive Design - Mobile Styles */
@media (max-width: 968px) {
    /* Prevent horizontal overflow on mobile */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    /* Ensure container doesn't overflow on mobile */
    .container {
        padding: 0 1rem !important;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure sections don't overflow */
    section {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Override container padding for mobile menu */
    .navbar .container {
        padding: 0 !important;
    }

    /* Navigation mobile styles */
    .nav-wrapper {
        padding: 0.75rem 0;
        justify-content: space-between !important;
        position: relative;
        align-items: center !important;
        display: flex !important;
        width: 100% !important;
    }
    
    .nav-wrapper .logo {
        flex-shrink: 0 !important;
        margin-right: auto !important;
        order: 1 !important;
    }
    
    .nav-wrapper .nav-menu {
        order: 2 !important;
    }
    
    .nav-wrapper .mobile-menu-toggle {
        order: 999 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    .nav-wrapper .nav-auth-buttons {
        order: 3 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure navbar, logo, and hamburger are visible on mobile */
    .navbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #000000 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    .logo {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }
    
    .logo-img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 50px !important;
    }
    
    .logo-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
    }

    /* Hide regular nav menu on mobile by default, show hamburger */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: -100vw !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
        background: #000000 !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        transition: left 0.3s ease !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 9999 !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }
    
    /* Force white text color for all links in active menu */
    .nav-menu.active a,
    .nav-menu.active .nav-link {
        color: #ffffff !important;
    }

    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0;
        padding: 0;
        list-style: none;
        position: relative;
        flex-shrink: 0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        padding: 1.25rem 1.5rem;
        text-align: left;
        white-space: normal;
        font-size: 1.1rem;
        color: #ffffff;
        text-decoration: none;
        background: transparent;
        border: none;
        margin: 0;
        line-height: 1.4;
        box-sizing: border-box;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Ensure all nav links in mobile menu are white */
    .nav-menu .nav-link {
        color: #ffffff !important;
    }
    
    .nav-menu.active .nav-link {
        color: #ffffff !important;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    /* Show auth buttons container on mobile - positioned to the left of hamburger */
    .nav-wrapper .nav-auth-buttons,
    .nav-auth-buttons {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        gap: 0.08rem !important;
        order: 3 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        margin-right: 0.15rem !important;
        position: relative !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        z-index: 10 !important;
    }
    
    /* Make auth buttons very compact on mobile */
    .nav-auth-buttons .nav-link {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0.25rem 0.35rem !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
        border-radius: 3px !important;
        font-weight: 600 !important;
    }
    
    /* Reduce gap between buttons on mobile */
    .nav-auth-buttons {
        gap: 0.08rem !important;
        margin-right: 0.15rem !important;
    }
    
    /* Ensure button background colors are visible on mobile */
    .nav-auth-buttons .nav-btn-register {
        background: var(--accent-color) !important;
        color: white !important;
    }
    
    .nav-auth-buttons .nav-btn-login {
        background: var(--primary-color) !important;
        color: white !important;
    }
    
    .nav-auth-buttons .nav-btn-schedule {
        background: #10b981 !important;
        color: white !important;
    }
    
    /* Show auth buttons in mobile menu */
    .nav-menu .nav-menu-auth-mobile {
        display: block !important;
    }
    
    /* Style Register and Login buttons in mobile menu */
    .nav-menu .nav-btn-register,
    .nav-menu .nav-btn-login,
    .nav-menu .nav-btn-schedule {
        display: block !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        text-align: center !important;
        margin: 0.25rem 0 !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
    }
    
    .nav-menu .nav-btn-register {
        background: var(--accent-color) !important;
        color: #ffffff !important;
    }
    
    .nav-menu .nav-btn-login {
        background: var(--primary-color) !important;
        color: #ffffff !important;
    }

    /* Show hamburger menu (3 lines) on mobile only */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001 !important;
        order: 999 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        position: relative !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 2px solid #ffffff !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        cursor: pointer !important;
    }
    
    /* Ensure hamburger menu works in landscape too */
    @media (orientation: landscape) and (max-width: 968px) {
        .mobile-menu-toggle {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        .nav-menu:not(.active) {
            left: -100vw !important;
        }
    }
    
    
    .mobile-menu-toggle span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #ffffff !important;
        width: 26px !important;
        height: 3px !important;
        min-width: 26px !important;
        min-height: 3px !important;
        max-width: 26px !important;
        max-height: 3px !important;
        border-radius: 2px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    /* Ensure hamburger is always visible and clickable on mobile */
    .mobile-menu-toggle:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }

    /* Hide logo text on very small screens if needed */
    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .nav-btn-register,
    .nav-btn-login {
        margin-left: 0 !important;
        margin-top: 0;
        display: inline-block !important;
        width: auto;
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        text-align: center;
        white-space: nowrap;
    }

    .hero-logo-img {
        height: 90px;
        max-width: 300px;
    }

    .hero-logo-text {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-focus {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .focus-card {
        padding: 1.5rem;
    }

    .focus-horizontal {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }

    .focus-iphone-image {
        max-width: 180px;
    }

    .focus-iphone-placeholder {
        min-height: 300px;
        padding: 1.5rem;
    }

    .focus-iphone-placeholder svg {
        width: 60px;
        height: 60px;
    }

    .focus-horizontal .focus-icon {
        width: 60px;
        height: 60px;
    }

    .focus-horizontal .focus-icon svg {
        width: 30px;
        height: 30px;
    }

    .focus-icon {
        width: 60px;
        height: 60px;
    }

    .focus-icon svg {
        width: 30px;
        height: 30px;
    }

    .focus-card h3 {
        font-size: 1.25rem;
    }

    .focus-card p {
        font-size: 0.9rem;
    }

    .focus-detail {
        font-size: 0.85rem !important;
    }

    .focus-compatible {
        padding: 0.75rem;
        margin: 1rem 0;
    }

    .focus-compatible h4 {
        font-size: 0.9rem;
    }

    .focus-compatible ul li {
        font-size: 0.85rem;
    }

    .focus-tagline {
        font-size: 0.85rem !important;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .about-content > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure video container is visible on mobile (portrait and landscape) */
    .about-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .about-text {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .about-text h3,
    .about-text p {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .section-header {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .section-header > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .section-header h2 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .section-subtitle {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .contact-content > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .contact-form,
    .contact-widget-callout,
    .contact-info,
    .contact-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .contact-item p,
    .contact-item a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .additions {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .additions > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .additions .services-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .video-container {
        height: 300px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .about-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .orthotic-types {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .orthotic-type-card {
        min-height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .orthotic-image-section {
        padding: 2rem;
    }

    .orthotic-image {
        height: 300px;
        min-height: 300px;
    }

    .orthotic-content h3 {
        font-size: 1.5rem;
    }

    .orthotic-image-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    html {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Hero mobile styles */
    .hero {
        min-height: auto;
        padding: 100px 0 80px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero-content {
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
    }

    .hero-logo {
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100%;
        max-width: 100%;
    }

    .hero-logo-img {
        height: 70px;
        max-width: 250px;
        width: auto;
    }

    .hero-logo-text {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .hero-focus {
        gap: 1rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .focus-card {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .focus-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .focus-horizontal-left {
        justify-content: center;
    }

    .focus-iphone-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .focus-iphone-placeholder {
        min-height: 250px;
        padding: 1rem;
    }

    .focus-iphone-placeholder svg {
        width: 50px;
        height: 50px;
    }

    .focus-horizontal .focus-icon {
        width: 50px;
        height: 50px;
    }

    .focus-horizontal .focus-icon svg {
        width: 25px;
        height: 25px;
    }

    .focus-horizontal h3 {
        text-align: center;
    }

    .focus-horizontal .focus-tagline {
        text-align: center !important;
    }

    .focus-card h3 {
        font-size: 1.125rem;
    }

    .focus-card p {
        font-size: 0.875rem;
    }

    .focus-detail {
        font-size: 0.8rem !important;
    }

    .focus-compatible {
        padding: 0.65rem;
        margin: 0.85rem 0;
    }

    .focus-compatible h4 {
        font-size: 0.85rem;
    }

    .focus-compatible ul li {
        font-size: 0.8rem;
        padding-left: 1.25rem;
    }

    .focus-tagline {
        font-size: 0.8rem !important;
        margin-top: 1rem !important;
    }

    .section-header h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    .video-container {
        height: 250px;
        width: 100%;
        max-width: 100%;
    }

    .about-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block !important;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .orthotic-types {
        gap: 1.5rem;
    }

    /* Keep horizontal layout on mobile - only stack on very small screens */
    .orthotic-type-card {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }

    .orthotic-image-section {
        padding: 1.5rem;
    }

    .orthotic-image {
        height: 250px;
        min-height: 250px;
        position: relative;
        z-index: 0;
    }

    /* Ensure no bullets appear on images on mobile */
    .orthotic-image-section *::before,
    .orthotic-image *::before,
    .orthotic-image img::before {
        display: none !important;
        content: none !important;
    }

    .orthotic-content {
        padding: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .orthotic-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .orthotic-image-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .orthotic-features h4 {
        font-size: 0.95rem;
    }

    .orthotic-features ul li {
        font-size: 0.875rem;
        padding: 0.5rem 0;
        padding-left: 1.8rem !important;
        margin-left: 0;
        position: relative;
    }

    .orthotic-features ul li::before {
        content: '•';
        position: absolute;
        left: 0.5rem !important;
        color: var(--primary-color);
        font-weight: bold;
        font-size: 1.1rem;
        line-height: 1.6;
        z-index: 1;
    }

    /* Dual image layout on mobile */
    .orthotic-image-dual {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .orthotic-image-item {
        gap: 0.5rem;
    }

    .orthotic-image-item h5 {
        font-size: 0.8rem;
    }

    .orthotic-image-item img {
        height: 150px;
    }

    /* Stack vertically only on very small screens */
    @media (max-width: 480px) {
        .orthotic-type-card {
            grid-template-columns: 1fr;
        }

        .orthotic-image-section {
            order: -1;
        }

        .orthotic-features ul li {
            padding-left: 1.8rem !important;
        }

        .orthotic-features ul li::before {
            left: 0.5rem !important;
            font-size: 1.1rem;
            line-height: 1.6;
        }
    }

    section {
        padding: 3rem 0;
    }

}

/* Mobile responsive styles for brand logos - portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    .footer-section div[style*="flex-direction: row"] {
        flex-wrap: wrap !important;
        gap: 1rem !important;
        justify-content: center !important;
    }
    
    .footer-section div[style*="flex-direction: row"] a,
    .footer-section div[style*="flex-direction: row"] div {
        flex-shrink: 1 !important;
        max-width: calc(50% - 0.5rem) !important;
    }
    
    .footer-section div[style*="flex-direction: row"] img {
        height: 40px !important;
        max-width: 120px !important;
        width: 100% !important;
    }
}

/* Mobile responsive styles for brand logos - smaller screens in portrait */
@media (max-width: 480px) and (orientation: portrait) {
    .footer-section div[style*="flex-direction: row"] {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        justify-content: center !important;
    }
    
    .footer-section div[style*="flex-direction: row"] a,
    .footer-section div[style*="flex-direction: row"] div {
        flex-shrink: 1 !important;
        max-width: calc(50% - 0.375rem) !important;
    }
    
    .footer-section div[style*="flex-direction: row"] img {
        height: 35px !important;
        max-width: 100px !important;
        width: 100% !important;
    }
}

/* Fix contact section for landscape mobile - must be outside nested media query */
/* Mobile Portrait - Ensure video is visible */
@media (max-width: 968px) and (orientation: portrait) {
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2 !important;
    }
    
    .about-text {
        order: 1 !important;
    }
    
    .video-container {
        height: 300px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .about-video {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Mobile Landscape - Stack video below text for better visibility */

@media (max-width: 768px) and (orientation: landscape) and (max-height: 600px) {
    .contact-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-form,
    .contact-widget-callout {
        padding: 1.5rem !important;
    }
    
    .contact-info {
        gap: 1rem !important;
    }
    
    .contact-item {
        gap: 1rem !important;
    }
    
    .contact-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .contact-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .process-step {
        animation: fadeInUp 0.6s ease backwards;
    }

    .process-step:nth-child(1) { animation-delay: 0.1s; }
    .process-step:nth-child(2) { animation-delay: 0.2s; }
    .process-step:nth-child(3) { animation-delay: 0.3s; }
    .process-step:nth-child(4) { animation-delay: 0.4s; }
    .process-step:nth-child(5) { animation-delay: 0.5s; }
}