/* ════════════════════════════════════════════════════════════
   Vision 576 Optical Studio – White & Blue Premium Theme
   ════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────── */
:root {
    --white: #ffffff;
    --off-white: #f7f9fc;
    --light-gray: #eef2f7;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a5f;
    --blue-950: #0f172a;
    --text-dark: #1a1a2e;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-blue: 0 8px 30px rgba(59,130,246,0.25);
    --radius: 16px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 0.7rem 5%;
    box-shadow: var(--shadow-md);
}

.logo img { height: 42px; }
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-900);
}
.logo-text span { color: var(--blue-500); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--blue-500);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--blue-600); }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
    background: var(--blue-600) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: var(--shadow-blue);
    transition: all 0.3s !important;
}
.nav-btn:hover {
    background: var(--blue-700) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59,130,246,0.35);
}
.nav-btn::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 28px; height: 3px; background: var(--blue-900); border-radius: 3px; transition: 0.3s; }

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--blue-600);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-blue);
    transition: all 0.3s;
}
.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.35);
}
.btn-primary.full-w { width: 100%; justify-content: center; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-500);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: var(--blue-50);
    transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════
   SECTION STYLING
   ══════════════════════════════════════════════════════ */
section { padding: 100px 5%; position: relative; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--blue-50);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--blue-200);
}
.tag-white {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0.5rem;
    color: var(--blue-900);
}
.title-white { color: #fff; }

.section-sub { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.sub-white { color: rgba(255,255,255,0.7); }

/* Theme Sections */
.section-white { background: var(--white); }
.section-light { background: var(--off-white); }
.section-blue {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.shape-1 {
    width: 500px; height: 500px;
    background: var(--blue-400);
    top: -100px; left: -100px;
    animation: float 8s ease-in-out infinite;
}
.shape-2 {
    width: 400px; height: 400px;
    background: var(--blue-200);
    bottom: -50px; right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
    width: 300px; height: 300px;
    background: var(--blue-300, #93bbfd);
    top: 40%; left: 60%;
    animation: float 7s ease-in-out infinite 2s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--blue-600);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border: 1px solid var(--blue-100);
}

.hero-section h1 { margin-bottom: 5px; line-height: 1; }
.hero-line1 {
    display: block;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--blue-900);
    letter-spacing: 5px;
}
.hero-line2 {
    display: block;
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 900;
    letter-spacing: 10px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

/* Auto-Typing */
.typed-wrapper {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    min-height: 38px;
}
.typed-output { color: var(--blue-600); font-weight: 700; }
.typed-cursor { color: var(--blue-500); animation: blink 0.7s infinite; font-weight: 300; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--blue-600);
}
.stat p { color: var(--text-gray); font-size: 0.85rem; margin-top: 2px; }

/* ══════════════════════════════════════════════════════
   FLOATING 3D SUNGLASS CANVAS
   ══════════════════════════════════════════════════════ */
#sunglass3d-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   SERVICES (Blue Section)
   ══════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 35px 28px;
    transition: var(--transition);
}
.service-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.service-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.service-card p { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.7; }

/* ══════════════════════════════════════════════════════
   3D CAROUSEL
   ══════════════════════════════════════════════════════ */
.carouselSwiper { width: 100%; padding: 50px 0; }
.carouselSwiper .swiper-slide {
    width: 360px; height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}
.carouselSwiper .swiper-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.carouselSwiper .swiper-slide:hover img { transform: scale(1.08); }
.slide-label {
    position: absolute;
    bottom: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
}
.swiper-pagination-bullet { background: var(--blue-500) !important; width: 10px !important; height: 10px !important; }

/* ══════════════════════════════════════════════════════
   PRODUCTS – Auto Scroll
   ══════════════════════════════════════════════════════ */
.product-slider-wrapper { overflow: hidden; padding: 20px 0; }
.product-slider {
    display: flex;
    gap: 25px;
    animation: auto-scroll 45s linear infinite;
    width: max-content;
}
.product-slider:hover { animation-play-state: paused; }
@keyframes auto-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.product-card {
    flex-shrink: 0;
    width: 270px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--light-gray);
    transition: transform 0.5s, box-shadow 0.5s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-blue);
}
.product-img { height: 210px; overflow: hidden; }
.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img img { transform: scale(1.12) translateY(-8px); }

.product-body {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-body h3 { font-size: 1rem; color: var(--text-dark); }
.price { color: var(--blue-600); font-weight: 700; font-size: 1.05rem; }

.product-hover-tag {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--blue-600);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.4s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-blue);
}
.product-card:hover .product-hover-tag {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ══════════════════════════════════════════════════════
   IMAGE GALLERY
   ══════════════════════════════════════════════════════ */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.4s;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}
.gallery-hover i { font-size: 1.8rem; }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }

/* ══════════════════════════════════════════════════════
   WHY CHOOSE US (Blue Section)
   ══════════════════════════════════════════════════════ */
.why-content {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    flex-wrap: wrap;
}
.why-paragraph {
    flex: 1.2;
    min-width: 320px;
}
.why-paragraph p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}
.why-paragraph strong { color: #fff; }

.why-cards {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.why-card {
    perspective: 1000px;
    height: 180px;
    cursor: pointer;
}
.flashcard-inner {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}
.why-card:hover .flashcard-inner { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back {
    position: absolute; inset: 0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    padding: 20px;
    text-align: center;
}
.flashcard-front {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.flashcard-front i { font-size: 2.2rem; margin-bottom: 10px; color: #fff; }
.flashcard-front h3 { font-size: 1rem; color: #fff; }
.flashcard-back {
    background: #fff;
    color: var(--blue-800);
    transform: rotateY(180deg);
    box-shadow: var(--shadow-md);
}
.flashcard-back p { font-weight: 600; font-size: 0.9rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   BOOKING
   ══════════════════════════════════════════════════════ */
.booking-wrap {
    display: flex;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
}
.booking-left { flex: 1; min-width: 300px; }
.booking-desc {
    color: var(--text-gray);
    margin: 15px 0 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}
.booking-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.booking-checks div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.95rem;
}
.booking-checks i { color: var(--blue-500); }

.booking-form {
    flex: 1;
    min-width: 350px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    padding: 35px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.booking-form input::placeholder,
.booking-form textarea::placeholder { color: var(--text-light); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.modal-box i { font-size: 4rem; color: #22c55e; margin-bottom: 15px; }
.modal-box h3 { font-size: 1.6rem; margin-bottom: 10px; color: var(--blue-900); }
.modal-box p { color: var(--text-gray); margin-bottom: 25px; }

/* ══════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════ */
.contact-layout {
    max-width: 1100px;
    margin: 0 auto;
}
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.contact-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
    border-color: var(--blue-200);
}
.contact-card i { font-size: 2.2rem; color: var(--blue-500); margin-bottom: 15px; }
.contact-card h3 { margin-bottom: 8px; font-size: 1.2rem; color: var(--blue-900); }
.contact-card p { color: var(--text-gray); line-height: 1.7; font-size: 0.95rem; }
.contact-card a { color: var(--blue-600); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

.contact-form-wrap {
    margin-bottom: 40px;
}
.contact-form {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-light); }

.map-box {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
    background: var(--blue-950);
    color: #fff;
    padding: 60px 5% 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand {
    font-size: 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 12px;
}
.footer-brand span { color: var(--blue-400); }
.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.6);
    display: block;
    line-height: 2;
    font-size: 0.92rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--blue-400); }
.footer-col h4 { margin-bottom: 15px; font-size: 1.05rem; color: #fff; }
.footer-col i { margin-right: 8px; color: var(--blue-400); }

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--blue-500);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(59,130,246,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ── Back to Top ──────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--blue-600);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
    z-index: 999;
    box-shadow: var(--shadow-blue);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px); background: var(--blue-700); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════ */

/* ── TABLET LANDSCAPE (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
    section { padding: 80px 4%; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .carouselSwiper .swiper-slide {
        width: 300px;
        height: 380px;
    }

    .why-content { gap: 35px; }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }
    .footer-grid .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

/* ── TABLET PORTRAIT (≤768px) ───────────────────────── */
@media (max-width: 768px) {
    /* Navbar → Hamburger */
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        padding: 20px 5%;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--light-gray);
    }
    .nav-links.active li { width: 100%; }
    .nav-links.active a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--light-gray);
        font-size: 1.05rem;
    }
    .nav-links.active a::after { display: none; }
    .nav-btn {
        margin-top: 8px;
        text-align: center;
        display: block !important;
    }
    .hamburger { display: flex; }

    /* Section spacing */
    section { padding: 60px 5%; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 2rem; }
    .section-sub { font-size: 0.95rem; }

    /* Hero */
    .hero-section { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
    .hero-line1 { font-size: 3rem; letter-spacing: 3px; }
    .hero-line2 { font-size: 4rem; letter-spacing: 5px; }
    .hero-sub { font-size: 1.2rem; letter-spacing: 2px; }
    .typed-wrapper { font-size: 1.05rem; min-height: 32px; }
    .hero-desc { font-size: 0.95rem; }
    .hero-btns { gap: 12px; }
    .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.9rem; }
    .hero-stats { gap: 25px; }
    .stat-num { font-size: 2rem; }

    /* Hero shapes */
    .shape-1 { width: 300px; height: 300px; }
    .shape-2 { width: 250px; height: 250px; }
    .shape-3 { width: 200px; height: 200px; }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-card { padding: 25px 20px; }
    .service-card h3 { font-size: 1.15rem; }
    .service-card p { font-size: 0.9rem; }

    /* Carousel */
    .carouselSwiper .swiper-slide {
        width: 260px;
        height: 340px;
    }
    .carouselSwiper { padding: 30px 0; }
    .slide-label { font-size: 1rem; padding: 15px; }

    /* Products */
    .product-card { width: 230px; }
    .product-img { height: 170px; }
    .product-body h3 { font-size: 0.9rem; }
    .price { font-size: 0.95rem; }
    .product-hover-tag { font-size: 0.8rem; padding: 8px 16px; }

    /* Gallery */
    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
        gap: 10px;
    }
    .gi-tall { grid-row: span 1; }
    .gi-wide { grid-column: span 1; }

    /* Why Choose Us */
    .why-content {
        flex-direction: column;
        gap: 30px;
    }
    .why-paragraph { min-width: unset; }
    .why-paragraph p { font-size: 0.95rem; }
    .why-cards {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .why-card { height: 160px; }

    /* Booking */
    .booking-wrap {
        flex-direction: column;
        gap: 30px;
    }
    .booking-left, .booking-form { min-width: unset; }
    .booking-checks { grid-template-columns: 1fr; }
    .booking-form { padding: 25px; }

    /* Contact */
    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-card { padding: 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 25px; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand { font-size: 1.5rem; }
    footer { padding: 40px 5% 15px; }

    /* Back to top */
    .back-to-top { width: 44px; height: 44px; bottom: 20px; right: 20px; font-size: 1rem; }

    /* 3D Canvas - slightly smaller */
    #sunglass3d-canvas { opacity: 0.7; }
}

/* ── MOBILE LARGE (≤600px) ──────────────────────────── */
@media (max-width: 600px) {
    section { padding: 50px 4%; }

    .hero-line1 { font-size: 2.5rem; }
    .hero-line2 { font-size: 3.5rem; letter-spacing: 3px; }
    .hero-sub { font-size: 1rem; }
    .typed-wrapper { font-size: 0.95rem; }
    .hero-desc { font-size: 0.9rem; line-height: 1.7; }
    .hero-badge { font-size: 0.8rem; padding: 6px 14px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 1.8rem; }
    .stat p { font-size: 0.75rem; }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-title { font-size: 1.75rem; }
    .section-tag { font-size: 0.75rem; padding: 5px 14px; }

    /* Carousel */
    .carouselSwiper .swiper-slide {
        width: 220px;
        height: 290px;
    }

    /* Products */
    .product-card { width: 200px; }
    .product-img { height: 150px; }
    .product-slider { gap: 15px; }

    /* Gallery */
    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    /* Why Cards */
    .why-cards { grid-template-columns: 1fr; }
    .why-card { height: 150px; }
    .flashcard-front i { font-size: 1.8rem; }
    .flashcard-front h3 { font-size: 0.9rem; }

    /* Booking Modal */
    .modal-box { padding: 30px 20px; margin: 0 20px; }
    .modal-box i { font-size: 3rem; }
    .modal-box h3 { font-size: 1.3rem; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .social-links { justify-content: center; }

    /* 3D Canvas - more transparent on small screens */
    #sunglass3d-canvas { opacity: 0.5; }
}

/* ── MOBILE SMALL (≤480px) ──────────────────────────── */
@media (max-width: 480px) {
    .navbar { padding: 0.8rem 4%; }
    .logo img { height: 34px; }
    .logo-text { font-size: 1.2rem; }

    section { padding: 40px 4%; }

    .hero-section { padding-top: 90px; padding-bottom: 40px; }
    .hero-line1 { font-size: 2rem; letter-spacing: 2px; }
    .hero-line2 { font-size: 2.8rem; letter-spacing: 2px; }
    .hero-sub { font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 10px; }
    .typed-wrapper { font-size: 0.85rem; min-height: 28px; }
    .hero-desc { font-size: 0.85rem; margin-bottom: 20px; }
    .hero-badge { font-size: 0.72rem; margin-bottom: 15px; }
    .hero-btns { margin-bottom: 30px; }
    .hero-stats { gap: 15px; }
    .stat-num { font-size: 1.5rem; }
    .stat p { font-size: 0.7rem; }

    .section-header { margin-bottom: 30px; }
    .section-title { font-size: 1.5rem; }
    .section-sub { font-size: 0.85rem; }

    /* Service */
    .service-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .service-card h3 { font-size: 1.05rem; }
    .service-card p { font-size: 0.85rem; }

    /* Carousel */
    .carouselSwiper .swiper-slide {
        width: 200px;
        height: 260px;
    }
    .slide-label { font-size: 0.85rem; padding: 12px; }

    /* Products */
    .product-card { width: 180px; }
    .product-img { height: 130px; }
    .product-body { padding: 10px 12px; }
    .product-body h3 { font-size: 0.8rem; }
    .price { font-size: 0.85rem; }

    /* Gallery */
    .gallery-masonry { grid-auto-rows: 160px; gap: 8px; }

    /* Booking Form */
    .booking-form { padding: 20px 15px; }
    .booking-form input,
    .booking-form select,
    .booking-form textarea { padding: 12px 14px; font-size: 0.9rem; }
    .booking-desc { font-size: 0.9rem; }

    /* Contact */
    .contact-card { padding: 20px; }
    .contact-card i { font-size: 1.8rem; }
    .contact-card h3 { font-size: 1.05rem; }
    .contact-card p { font-size: 0.85rem; }
    .contact-form { padding: 20px 15px; }
    .contact-form input,
    .contact-form textarea { padding: 12px 14px; font-size: 0.9rem; }

    /* Map */
    .map-box iframe { height: 220px; }

    /* Footer */
    footer { padding: 30px 4% 12px; }
    .footer-brand { font-size: 1.3rem; }
    .footer-col p, .footer-col a { font-size: 0.85rem; }
    .social-links a { width: 38px; height: 38px; font-size: 0.9rem; }
    .footer-bottom { font-size: 0.78rem; }

    /* 3D Canvas - hide on very small phones for performance */
    #sunglass3d-canvas { opacity: 0.35; }
}
