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

:root {
    --primary-text: #1d1d1f;
    --secondary-text: #6e6e73;
    --accent-blue: #FF8C69;
    --accent-blue-hover: #FF7355;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-dark: #000000;
    --border-light: #d2d2d7;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ultra smooth scrolling */
* {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background: var(--bg-white);
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

/* Hardware acceleration for smooth animations */
.product-visual,
.visual-placeholder,
.product-text,
.stat-item,
.why-item,
.contact-card,
.cta-button {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth image rendering */
.product-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform-origin: center center;
}

/* Prevent jitter on animations */
.visual-placeholder,
.product-image {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Navigation - Apple Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #FFB399);
    width: 0%;
    transition: width 0.1s ease;
    z-index: 10000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-text);
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 18px;
    height: 1.5px;
    background: var(--primary-text);
    transition: all 0.3s ease;
}

/* Hero Section - Apple Style */
.hero-apple {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-apple::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
    z-index: 2;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content-apple {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 980px;
}

.hero-title-apple {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-subtitle-apple {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.125rem;
}

.link-primary {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.link-primary:hover {
    opacity: 0.8;
}

.link-separator {
    color: rgba(255, 255, 255, 0.7);
}

.link-secondary {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.link-secondary:hover {
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

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

/* Fade in animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.2s; }
.fade-in-up:nth-child(2) { animation-delay: 0.4s; }
.fade-in-up:nth-child(3) { animation-delay: 0.6s; }

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

/* Product Sections - Apple Style */
.product-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

.dark-section {
    background: var(--bg-dark);
    color: white;
}

.light-section {
    background: var(--bg-white);
    color: var(--primary-text);
}

.product-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.product-content.reverse {
    direction: rtl;
}

.product-content.reverse > * {
    direction: ltr;
}

.product-text {
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.product-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.product-tagline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.dark-section .product-tagline {
    color: white;
}

.light-section .product-tagline {
    color: var(--primary-text);
}

.product-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.light-section .feature {
    background: var(--bg-light);
    color: var(--primary-text);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::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 ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-8px) scale(1.12);
    box-shadow: 0 20px 50px rgba(255, 140, 105, 0.6);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.05);
}

.cta-button.dark {
    background: var(--primary-text);
    color: white;
}

.cta-button.dark:hover {
    background: #2d2d2f;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Visual Placeholders */
.product-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.visual-placeholder:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

/* Product Images */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                filter 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.95);
}

.visual-placeholder:hover .product-image {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* TV Visual */
.tv-visual {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.tv-frame {
    width: 80%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    border: 8px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
}

.mounting-detail {
    position: absolute;
    bottom: 10%;
    width: 60%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Furniture Visual */
.furniture-visual {
    background: var(--bg-light);
    padding: 40px;
}

.furniture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.furniture-item {
    aspect-ratio: 1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.desk {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.chair {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.shelf {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cabinet {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Office Visual */
.office-visual {
    background: linear-gradient(145deg, #f5f5f7, #e8e8ed);
    padding: 40px;
}

.desk-setup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.monitor-stand {
    width: 70%;
    height: 40%;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.laptop {
    width: 50%;
    height: 25%;
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.accessories {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Art Visual */
.art-visual {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    padding: 40px;
}

.gallery-wall {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.frame {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.frame-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.frame-2 {
    grid-column: 3;
    grid-row: 1 / 2;
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.frame-3 {
    grid-column: 3;
    grid-row: 2;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.floating-shelf {
    grid-column: 1 / 4;
    grid-row: 3;
    background: linear-gradient(145deg, #8b7355, #6d5942);
    border-radius: 4px;
}

/* Stats Section */
.stats-section {
    padding: 80px 40px;
    background: var(--bg-light);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
}

.stat-item:hover {
    transform: scale(1.15) translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--accent-blue);
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary-text);
    font-weight: 400;
}

/* Why Section */
.why-section {
    padding: 120px 40px;
    background: var(--bg-white);
}

.why-content {
    max-width: 1200px;
    margin: 0 auto;
}

.why-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -0.03em;
}

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

.why-item {
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateY(-3px);
}

.why-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.why-item:hover h3 {
    color: var(--accent-blue);
}

.why-item p {
    font-size: 1.125rem;
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 120px 40px;
    background: var(--bg-light);
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.contact-info-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-hours-inline {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* Main Contact Form */
.main-contact-form {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-large {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(255, 140, 105, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Conditional fields with smooth animation */
#wallTypeGroup,
#ladderGroup {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin: -10px 0;
}

#wallTypeGroup[style*="display: block"],
#ladderGroup[style*="display: block"] {
    max-height: 100px;
    opacity: 1;
    margin: 0;
}

.checkbox-group {
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.submit-button-large {
    padding: 18px 40px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-top: 10px;
}

.submit-button-large:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 105, 0.3);
}

.submit-button-large:active {
    transform: translateY(-1px);
}

/* Quick Form - Old styles kept for compatibility */
.quick-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.quick-form input::placeholder,
.quick-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.quick-form select {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.quick-form select option {
    background: var(--primary-text);
    color: white;
}

.submit-button {
    padding: 14px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

/* Footer - Apple Style */
.footer-apple {
    background: var(--bg-light);
    padding: 40px 40px 20px;
    font-size: 0.75rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.footer-column a {
    display: block;
    color: var(--secondary-text);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-text);
}

.footer-bottom {
    padding-top: 20px;
}

.footer-info {
    color: var(--secondary-text);
    margin-bottom: 15px;
    font-size: 0.75rem;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--secondary-text);
    font-size: 0.75rem;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-text);
}

/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced scroll animations with different directions */
.scroll-fade-left {
    opacity: 0;
    transform: translateX(-120px) scale(0.9);
    transition: opacity 1s cubic-bezier(0.4, 0.0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(120px) scale(0.9);
    transition: opacity 1s cubic-bezier(0.4, 0.0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.7) rotateX(15deg);
    transition: opacity 1.2s cubic-bezier(0.4, 0.0, 0.2, 1), 
                transform 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
}

/* Stagger animations for children */
.scroll-fade-in.visible:nth-child(1) {
    transition-delay: 0s;
}

.scroll-fade-in.visible:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-fade-in.visible:nth-child(3) {
    transition-delay: 0.2s;
}

.scroll-fade-in.visible:nth-child(4) {
    transition-delay: 0.3s;
}

.scroll-fade-in.visible:nth-child(5) {
    transition-delay: 0.4s;
}

.scroll-fade-in.visible:nth-child(6) {
    transition-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .product-text {
        max-width: 100%;
        text-align: center;
    }
    
    .product-features {
        justify-content: center;
    }
    
    .product-content.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 44px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 44px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        transition: left 0.3s ease;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .product-section {
        padding: 80px 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-apple {
        padding: 80px 20px 40px;
    }
    
    .product-section {
        padding: 60px 20px;
    }
    
    .why-section,
    .contact-section {
        padding: 80px 20px;
    }
    
    .main-contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-info-row {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #FFB399);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 140, 105, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 140, 105, 0.5);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chat-icon,
.close-icon {
    width: 28px;
    height: 28px;
    color: white;
    transition: all 0.3s ease;
}

.close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.chatbot-toggle.active .chat-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.chatbot-toggle.active .close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chatbot-badge.hidden {
    display: none;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--accent-blue), #FFB399);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chatbot-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #34C759;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-close svg {
    width: 18px;
    height: 18px;
    color: white;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9fafb;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageSlideIn 0.3s ease;
}

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

.message-bot {
    align-self: flex-start;
    background: white;
    color: var(--primary-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-bot em {
    font-style: italic;
    color: var(--secondary-text);
    font-size: 0.9em;
}

.message-user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-typing {
    display: flex;
    gap: 6px;
    padding: 16px;
    background: white;
    align-self: flex-start;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.chatbot-quick-replies {
    padding: 0 20px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f9fafb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.chatbot-quick-replies.active {
    max-height: 200px;
    padding: 10px 20px;
}

.quick-reply-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

.chatbot-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e5e7eb;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.1);
}

.chatbot-send {
    width: 45px;
    height: 45px;
    background: var(--accent-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    background: var(--accent-blue-hover);
    transform: scale(1.1);
}

.chatbot-send:active {
    transform: scale(0.95);
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
    color: white;
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message-summary {
    background: #FFF5F2;
    border-left: 4px solid var(--accent-blue);
    padding: 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
}

.message-summary h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.message-summary p {
    margin: 6px 0;
    color: var(--primary-text);
}

.message-summary strong {
    color: var(--primary-text);
    font-weight: 600;
}

.reset-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    animation: fadeInUp 0.5s ease;
}

.reset-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 140, 105, 0.3);
}

.reset-chat-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 105, 0.4);
}

.reset-chat-btn:active {
    transform: translateY(0);
}

.reset-chat-btn svg {
    animation: rotateIcon 2s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.reset-chat-btn:hover svg {
    animation: spinIcon 0.6s ease;
}

@keyframes spinIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }

    .chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        bottom: 70px;
        right: -10px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .chat-icon,
    .close-icon {
        width: 24px;
        height: 24px;
    }
}
