/* =====================================================
   Betsy Fashions House - Cameroonian Seamstress Website
   African-Inspired Professional Design
   ===================================================== */

/* === CSS VARIABLES === */
:root {
    /* Deep African-Inspired Color Palette */
    --primary-color: #A0341F; /* Deep Terracotta */
    --secondary-color: #B8860B; /* Dark Goldenrod */
    --accent-color: #6B3410; /* Rich Dark Brown */
    --highlight-color: #D2691E; /* Chocolate Orange */
    --dark-color: #1A0F08; /* Very Deep Brown */
    --darker-color: #0D0705; /* Almost Black Brown */
    --light-color: #F5E6D3; /* Cream */
    --white: #FFFFFF;
    --text-dark: #1A0F08;
    --text-light: #5A4A3F;
    --border-color: #B8860B;
    --shadow-light: rgba(160, 52, 31, 0.15);
    --shadow-medium: rgba(160, 52, 31, 0.3);
    --shadow-heavy: rgba(26, 15, 8, 0.4);
    
    /* Rich Gradients */
    --gradient-primary: linear-gradient(135deg, #A0341F 0%, #D2691E 50%, #B8860B 100%);
    --gradient-secondary: linear-gradient(135deg, #B8860B 0%, #D4A574 100%);
    --gradient-dark: linear-gradient(135deg, #1A0F08 0%, #6B3410 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(13, 7, 5, 0.85) 0%, rgba(160, 52, 31, 0.7) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(245,230,211,0.95) 100%);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Dancing Script', cursive;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 3D Effects */
    --card-shadow: 0 10px 30px var(--shadow-light), 
                   0 5px 15px var(--shadow-medium);
    --card-shadow-hover: 0 20px 60px var(--shadow-medium), 
                         0 10px 30px var(--shadow-heavy);
}

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove 300ms click delay on mobile */
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden;
}

/* Lock scroll while any modal is open */
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* iOS-specific fixes */
button, input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === CONTAINER === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === UTILITY CLASSES === */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-large,
.btn-login,
.btn-full {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(160, 52, 31, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1rem;
}

.btn-login {
    padding: 8px 20px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    padding: 15px;
}

/* === NAVIGATION === */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-image {
    height: 60px;
    width: auto;
    transition: var(--transition-normal);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.logo .logo-tagline {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    max-width: 350px;
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-normal);
}

.nav-links li a:not(.login-link):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-links li a:not(.login-link):hover {
    color: var(--primary-color);
}

.nav-links li a:not(.login-link):hover:after {
    width: 100%;
}

.login-link {
    padding: 8px 24px !important;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-size: 0.85rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.login-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === HERO SECTION === */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    position: relative;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 4px 20px var(--shadow-heavy);
}

.hero-slogan {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    animation: fadeInUp 1.2s ease, glow 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 20px rgba(184, 134, 11, 0.8),
        0 0 40px rgba(184, 134, 11, 0.6),
        0 3px 15px var(--shadow-heavy);
    letter-spacing: 1px;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(26, 15, 8, 0.6) 0%, rgba(107, 52, 16, 0.4) 100%);
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
    box-shadow: 
        0 10px 40px var(--shadow-heavy),
        inset 0 0 20px rgba(184, 134, 11, 0.1);
}

.hero-slogan::before {
    content: '✨';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.hero-slogan::after {
    content: '✨';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite 0.75s;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 20px rgba(184, 134, 11, 0.8),
            0 0 40px rgba(184, 134, 11, 0.6),
            0 3px 15px var(--shadow-heavy);
    }
    to {
        text-shadow: 
            0 0 30px rgba(184, 134, 11, 1),
            0 0 60px rgba(184, 134, 11, 0.8),
            0 0 80px rgba(160, 52, 31, 0.6),
            0 5px 20px var(--shadow-heavy);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1.4s ease;
    text-shadow: 0 2px 10px var(--shadow-medium);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SECTION STYLES === */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* === ROLLING GALLERY === */
.rolling-gallery {
    background: var(--light-color);
    overflow: hidden;
}

.gallery-wrapper {
    position: relative;
    margin-top: 2rem;
}

.gallery-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-color);
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: var(--light-color);
}

.gallery-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.style-card {
    flex: 0 0 300px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

.style-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(200, 73, 31, 0.2);
}

.style-card-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.style-card-content {
    padding: 1.5rem;
    text-align: center;
}

.style-card-title {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.style-card-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 10;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px var(--shadow);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-loader {
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* === MODAL STYLES === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    animation: slideUp 0.4s ease;
}

.modal-style-viewer {
    max-width: 960px;
    width: 90%;
    background: #111;
    color: #fff;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-style-viewer .close {
    color: rgba(255,255,255,0.75);
}

.modal-style-viewer .close:hover {
    color: #fff;
}

.style-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.style-viewer-title {
    font-size: 1.6rem;
    font-weight: 600;
}

.style-viewer-counter {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
}

.style-viewer-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.style-viewer-body img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    background: #000;
    object-fit: contain;
}

.style-viewer-nav {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.style-viewer-nav:hover {
    background: rgba(255,255,255,0.28);
}

.style-viewer-caption {
    color: rgba(255,255,255,0.85);
    text-align: center;
    min-height: 1.5rem;
    font-size: 1rem;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
}

.close:hover {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Modal */
#password-modal .modal-content {
    text-align: center;
}

#password-modal h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#admin-password {
    width: 100%;
    padding: 12px;
    margin: 1rem 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Photo Viewer */
.viewer-header {
    text-align: center;
    margin-bottom: 2rem;
}

.viewer-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.photo-container {
    flex: 1;
    text-align: center;
}

#viewer-photo {
    max-width: 100%;
    max-height: 600px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

#viewer-caption {
    margin-top: 1rem;
    color: var(--text-light);
    font-style: italic;
}

.photo-counter {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.viewer-nav {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.viewer-nav:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* === ABOUT SECTION === */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
}

.african-pattern {
    background-image: 
        repeating-linear-gradient(45deg, var(--primary-color) 0px, var(--primary-color) 10px, transparent 10px, transparent 20px),
        repeating-linear-gradient(-45deg, var(--secondary-color) 0px, var(--secondary-color) 10px, transparent 10px, transparent 20px),
        var(--gradient-secondary);
    opacity: 0.3;
}

.about-slogan {
    font-family: var(--font-script);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: var(--transition-normal);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
}

.about-services {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
}

.about-services h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.about-services li {
    color: var(--text-dark);
    font-weight: 500;
}

/* === MEASUREMENTS SECTION === */
.measurements {
    background: var(--light-color);
}

.measurement-selector {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
}

.measurement-selector h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.garment-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.garment-btn {
    background: var(--light-color);
    border: 3px solid transparent;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.garment-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.garment-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.garment-icon {
    font-size: 2.5rem;
}

.measurement-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
}

/* Close Form Button */
.close-form-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-normal);
    z-index: 10;
    box-shadow: 0 2px 10px var(--shadow-light);
    touch-action: manipulation;
}

.close-form-btn:hover,
.close-form-btn:active {
    background: var(--highlight-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.close-form-btn span {
    line-height: 1;
}

/* Measurement Instructions */
.measurement-instructions {
    background: var(--light-color);
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.instructions-header {
    padding: 1.5rem 2rem;
    background: var(--gradient-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
    -webkit-tap-highlight-color: rgba(160, 52, 31, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.instructions-header:hover,
.instructions-header:active {
    background: var(--gradient-primary);
}

.instructions-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

.instructions-content {
    padding: 2rem;
    background: var(--white);
}

.instructions-text {
    color: var(--text-dark);
    max-width: 900px;
}

.instructions-text h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.instructions-text h4:first-child {
    margin-top: 0;
}

.instructions-text ol {
    margin-left: 1.2rem;
    line-height: 1.8;
}

.instructions-text li {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.instructions-text li strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.3rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
    font-size: 1.3rem;
}

.measurement-tip {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 73, 31, 0.1);
}

/* === TRAINING SECTION === */
.training {
    background: var(--white);
}

.training-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.training-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.training-courses {
    margin: 2rem 0;
}

.training-courses h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.course-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.training-benefits {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 15px;
}

.training-benefits h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.training-benefits ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.training-benefits li {
    color: var(--text-dark);
    font-weight: 500;
}

.enrollment-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    position: sticky;
    top: 100px;
}

.enrollment-card h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* === CONTACT SECTION === */
.contact {
    background: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

/* === FOOTER === */
.footer {
    background: var(--gradient-dark);
    color: var(--light-color);
    padding: 3rem 0 1rem;
    position: relative;
    box-shadow: 0 -10px 30px var(--shadow-medium);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-slogan {
    font-family: var(--font-script);
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-color);
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
    color: var(--text-light);
}

/* === TOAST NOTIFICATION === */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    transition: var(--transition-slow);
    font-weight: 500;
}

.toast.show {
    bottom: 30px;
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #e74c3c;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translate3d(-100%, 0, 0);
        opacity: 0;
        will-change: transform;
        box-shadow: var(--card-shadow-hover);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .about-grid,
    .training-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-slogan {
        font-size: 1.8rem;
    }
    
    .garment-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-features,
    .about-services ul {
        grid-template-columns: 1fr;
    }
    
    .enrollment-card {
        position: static;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .form-section h3,
    .contact-info h3,
    .enrollment-card h3 {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .style-card {
        flex: 0 0 250px;
    }
    
    .measurement-form-container,
    .enrollment-card {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .garment-buttons {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-slogan {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .viewer-body {
        flex-direction: column;
    }
    
    .viewer-nav {
        position: static;
        margin: 0.5rem 0;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* =====================================================
   3D CARD EFFECTS & DEEP STYLING ENHANCEMENTS
   ===================================================== */

/* === FEATURE CARDS (Training Section) === */
.training-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-slow);
    box-shadow: var(--card-shadow);
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    border: 1px solid rgba(184, 134, 11, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: -1;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-15px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition-slow);
    text-shadow: 0 5px 15px var(--shadow-light);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotateY(360deg);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* === TEMPLATE BUTTONS (Measurements Section) === */
.template-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.template-btn {
    background: var(--gradient-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-slow);
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    -webkit-tap-highlight-color: rgba(160, 52, 31, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.template-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.template-btn:hover::before {
    opacity: 0.95;
}

.template-btn:hover,
.template-btn:active {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Active state for touch devices */
.template-btn:active::before {
    opacity: 0.95;
}

.template-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-slow);
}

.template-btn:hover .template-icon {
    transform: scale(1.2) rotateY(180deg);
}

.template-btn span,
.template-btn {
    position: relative;
    z-index: 1;
}

/* === STYLE GALLERY CARDS === */
.style-gallery-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    background: #0d0d0d;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    cursor: pointer;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.gallery-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 2rem;
    color: var(--white);
    transform: translateY(0);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gallery-slide:hover .gallery-slide-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.gallery-slide-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gallery-slide-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.gallery-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-color, #f5b427);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Slideshow indicators (dots) */
.gallery-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid rgba(255,255,255,0.6);
}

.gallery-indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
    border-color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slide,
    .nav-links {
        transition: none !important;
    }
}

.gallery-indicator:hover {
    background: rgba(255,255,255,0.7);
}



.style-category {
    min-width: 320px;
    background: var(--gradient-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-slow);
    cursor: pointer;
    transform-style: preserve-3d;
    position: relative;
}

.style-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.style-category:hover {
    transform: translateY(-15px) rotateY(-3deg);
    box-shadow: var(--card-shadow-hover);
}

.style-category:hover::after {
    opacity: 0.1;
}

.style-category img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.style-category:hover img {
    transform: scale(1.08);
}

.style-category-info {
    padding: 1.5rem;
    background: var(--white);
}

.style-category h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.style-category p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === TRAINING SECTION === */
.training-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 50%, var(--light-color) 100%);
    position: relative;
}

.training-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.training-content {
    max-width: 1200px;
    margin: 0 auto;
}

.training-enrollment {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--card-shadow-hover);
    margin-top: 3rem;
    border: 2px solid var(--border-color);
    transform-style: preserve-3d;
    transition: var(--transition-slow);
}

.training-enrollment:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px var(--shadow-heavy);
}

.training-enrollment h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* === MEASUREMENTS SECTION === */
.measurements-section {
    padding: var(--section-padding);
    background: var(--white);
}

.measurement-templates {
    margin-bottom: 3rem;
}

.measurement-templates h3 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.measurement-form-container {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--card-shadow-hover);
    margin-top: 2rem;
    border: 2px solid var(--border-color);
}

/* === ABOUT SECTION === */
.about-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-color) 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.specialty-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.specialty-list li {
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-card);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    transform-style: preserve-3d;
}

.specialty-list li:hover {
    transform: translateX(10px) translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-left-width: 6px;
}

.about-motto {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--font-script);
    margin-top: 2rem;
    box-shadow: var(--card-shadow-hover);
    border: 2px solid var(--secondary-color);
}

/* === CONTACT SECTION === */
.contact-section {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    height: fit-content;
    border: 2px solid var(--border-color);
    transform-style: preserve-3d;
    transition: var(--transition-slow);
}

.contact-info:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-item {
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
}

.contact-form-wrapper {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* === FORM STYLING === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-light);
    transform: translateY(-2px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* === STYLES SECTION === */
.styles-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

.style-gallery-wrapper {
    position: relative;
    padding: 0 60px;
}

.gallery-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    z-index: 10;
}

.gallery-scroll-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--card-shadow-hover);
}

.gallery-scroll-left {
    left: 0;
}

.gallery-scroll-right {
    right: 0;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1024px) {
    .logo .logo-tagline {
        font-size: 0.75rem;
        max-width: 300px;
    }
    
    .logo-image {
        height: 55px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .training-features {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .logo .logo-tagline {
        font-size: 0.7rem;
        max-width: 220px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        min-height: 40vh;
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-slogan {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .hero-slogan::before,
    .hero-slogan::after {
        font-size: 1.5rem;
        left: -25px;
        right: -25px;
    }
    
    /* Use the 968px behavior for nav-links to avoid conflicting left/transform animations */
    /* Definitions retained from the 968px breakpoint; do not override with left positioning here */
    
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1000;
    }
    
    .template-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .template-btn {
        padding: 1.2rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .template-icon {
        font-size: 2rem;
    }
    
    .training-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1.2rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .training-enrollment {
        padding: 2rem 1.5rem;
    }
    
    .measurement-form-container {
        padding: 2rem 1.5rem;
    }
    
    .instructions-header {
        padding: 1.2rem 1.5rem;
    }
    
    .instructions-content {
        padding: 1.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .specialty-list li {
        padding: 1rem 1.2rem;
    }
    
    .style-gallery-wrapper {
        padding: 0 50px;
    }
    
    .gallery-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .style-category {
        min-width: 280px;
    }
    
    .style-gallery-container {
        height: 350px;
    }
    
    .gallery-slide-overlay {
        padding: 1.5rem;
    }
    
    .gallery-slide-overlay h3 {
        font-size: 1.4rem;
    }
    
    .gallery-slide-overlay p {
        font-size: 0.9rem;
    }

    .gallery-slide-cta {
        font-size: 0.75rem;
    }

    .modal-style-viewer {
        padding: 1.5rem;
        gap: 1rem;
    }

    .style-viewer-body {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .style-viewer-body img {
        max-height: 50vh;
    }

    .style-viewer-nav {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 0.8rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo .logo-tagline {
        font-size: 0.65rem;
        max-width: 180px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .hero {
        min-height: 35vh;
        padding: 90px 15px 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-slogan {
        font-size: 1.5rem;
        padding: 0.7rem 1.2rem;
        letter-spacing: 0.3px;
    }
    
    .style-gallery-container {
        height: 300px;
    }
    
    .gallery-slide-overlay {
        padding: 1rem;
    }
    
    .gallery-slide-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .gallery-slide-overlay p {
        font-size: 0.85rem;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .gallery-indicators {
        bottom: 0.5rem;
    }
    
    .gallery-indicator {
        width: 10px;
        height: 10px;
    }

    .gallery-slide-cta {
        font-size: 0.7rem;
    }

    .modal-style-viewer {
        padding: 1.2rem;
    }

    .style-viewer-title {
        font-size: 1.3rem;
    }

    .style-viewer-body img {
        max-height: 45vh;
    }

    .style-viewer-body {
        gap: 0.75rem;
    }

    .style-viewer-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .hero-slogan::before,
    .hero-slogan::after {
        font-size: 1.2rem;
        left: -20px;
        right: -20px;
    }
    
    .template-buttons {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .template-btn {
        padding: 1rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .template-icon {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-card {
        padding: 1.2rem 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .training-enrollment {
        padding: 1.5rem 1rem;
    }
    
    .measurement-form-container {
        padding: 1.5rem 1rem;
        padding-top: 3rem; /* Space for close button */
    }
    
    .close-form-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .specialty-list li {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .style-gallery-wrapper {
        padding: 0 45px;
    }
    
    .gallery-scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .style-category {
        min-width: 240px;
    }
}

/* Active state for measurement template buttons */
.template-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.template-btn.active .template-icon {
    transform: scale(1.2);
}

/* Measurement form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-actions .btn {
    min-width: 180px;
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Shake animation for incorrect password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.contact-item-lines {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0;
    border-radius: 0;
    background: none;
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast), text-decoration var(--transition-fast);
    text-decoration: none;
}

.contact-whatsapp:hover,
.contact-whatsapp:focus {
    color: #000;
    text-decoration: underline;
}

.contact-whatsapp:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: none;
}

.style-viewer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.style-viewer-loading[hidden] {
    display: none;
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: var(--secondary-color);
    animation: spin 0.8s linear infinite;
}

.loading-text {
    letter-spacing: 0.03em;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
