/**
 * Shrimp & Scan - Futuristic Underwater Laboratory Theme
 * Bioluminescent, sci-fi microscope review site
 */

/* ===== CSS Variables ===== */
:root {
    --deep-ocean: #0a1628;
    --mid-ocean: #0d2137;
    --shallow-ocean: #1a3a52;
    --surface-ocean: #2d5a7b;
    --bioluminescent: #00f5d4;
    --bioluminescent-dim: rgba(0, 245, 212, 0.3);
    --coral: #ff6b6b;
    --coral-glow: rgba(255, 107, 107, 0.4);
    --plankton: #ffd93d;
    --plankton-glow: rgba(255, 217, 61, 0.3);
    --foam: #e8f4f8;
    --text-primary: #e8f4f8;
    --text-secondary: #a0c4d4;
    --text-muted: #6b9aaa;
    --glass-bg: rgba(13, 33, 55, 0.7);
    --glass-border: rgba(0, 245, 212, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 245, 212, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(0, 245, 212, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-sci-fi: 'Rajdhani', sans-serif;
    --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background: linear-gradient(180deg, var(--deep-ocean) 0%, var(--mid-ocean) 50%, var(--shallow-ocean) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== Loading Screen ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--deep-ocean), var(--mid-ocean));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-shrimp {
    font-size: 80px;
    animation: loadingShrimpFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.6));
    margin-bottom: 24px;
}

@keyframes loadingShrimpFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.loading-text {
    font-family: var(--font-sci-fi);
    font-size: 18px;
    color: var(--bioluminescent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: loadingTextPulse 1.5s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(0, 245, 212, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--bioluminescent), var(--coral));
    border-radius: 2px;
    animation: loadingProgress 1.2s ease-out forwards;
    box-shadow: 0 0 10px var(--bioluminescent);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-bubbles {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.loading-bubble {
    width: 8px;
    height: 8px;
    background: rgba(0, 245, 212, 0.3);
    border-radius: 50%;
    animation: loadingBubble 1s ease-in-out infinite;
}

.loading-bubble:nth-child(2) { animation-delay: 0.2s; }
.loading-bubble:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBubble {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-10px); opacity: 1; }
}

/* ===== Ocean Canvas Background ===== */
#ocean-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== Floating Particles ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 245, 212, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 107, 107, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 217, 61, 0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(0, 245, 212, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 107, 107, 0.15), transparent);
    background-size: 200px 200px;
    animation: particleDrift 20s linear infinite;
}

@keyframes particleDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* ===== Sea Creatures ===== */
.sea-creatures {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Floating Shrimp Mascot */
.shrimp-float {
    position: absolute;
    top: 15%;
    right: 5%;
    font-size: 48px;
    animation: shrimpSwim 8s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.6));
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

@keyframes shrimpSwim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(2deg); }
}

/* Jellyfish */
.jellyfish {
    position: absolute;
    opacity: 0.6;
    animation: jellyfishFloat 12s ease-in-out infinite;
}

.jellyfish-body {
    width: 40px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.4), rgba(0, 245, 212, 0.1));
    border-radius: 50% 50% 40% 40%;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.3), inset 0 0 10px rgba(0, 245, 212, 0.2);
    animation: jellyfishPulse 3s ease-in-out infinite;
}

.jellyfish-tentacles {
    width: 40px;
    height: 60px;
    position: relative;
    margin-top: -5px;
}

.jellyfish-tentacles::before,
.jellyfish-tentacles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 245, 212, 0.3), transparent);
    border-radius: 1px;
}

.jellyfish-tentacles::before {
    left: 8px;
    animation: tentacleWave 2s ease-in-out infinite;
}

.jellyfish-tentacles::after {
    right: 8px;
    animation: tentacleWave 2s ease-in-out infinite 0.5s;
}

@keyframes jellyfishFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-30px) translateX(10px); }
    66% { transform: translateY(-15px) translateX(-5px); }
}

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

@keyframes tentacleWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Plankton Blobs */
.plankton-blob {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.2), rgba(255, 217, 61, 0.05));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.2), inset 0 0 20px rgba(255, 217, 61, 0.1);
    animation: planktonDrift 15s ease-in-out infinite;
}

@keyframes planktonDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.1); }
    50% { transform: translate(-10px, -50px) scale(0.9); }
    75% { transform: translate(15px, -20px) scale(1.05); }
}

/* Microscope Icon */
.microscope-icon {
    position: absolute;
    bottom: 20%;
    left: 8%;
    font-size: 36px;
    animation: microscopeBob 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.5));
    z-index: 10;
}

@keyframes microscopeBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Header & Navigation ===== */
.header {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.3), transparent);
    border-radius: 50%;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.logo-icon {
    font-size: 32px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--bioluminescent);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
}

.logo-text .tagline {
    display: block;
    font-family: var(--font-sci-fi);
    font-size: 13px;
    color: var(--coral);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-sci-fi);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bioluminescent);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--bioluminescent);
}

.nav-links a:hover {
    color: var(--bioluminescent);
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 80px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: auto;
    overflow: visible;
}

.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(0, 245, 212, 0.1));
    border-radius: 50%;
    animation: bubbleRise 8s ease-in infinite;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

@keyframes bubbleRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-sci-fi);
    font-size: 13px;
    color: var(--bioluminescent);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--bioluminescent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--bioluminescent);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    max-width: 500px;
}

.hero-locations {
    font-family: var(--font-sci-fi);
    font-size: 14px;
    color: var(--bioluminescent);
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-sci-fi);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bioluminescent), #00c9a7);
    color: var(--deep-ocean);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.6);
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 212, 0.6); }
}

.btn-secondary {
    background: transparent;
    color: var(--bioluminescent);
    border: 2px solid var(--bioluminescent);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 245, 212, 0.1);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--bioluminescent);
    border: 1.5px solid var(--glass-border);
    padding: 10px 20px;
    font-size: 13px;
}

.btn-outline:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: var(--bioluminescent);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

/* Hologram Microscope Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.microscope-hologram {
    width: 100%;
    max-width: 280px;
    height: auto;
    min-height: 200px;
    max-height: 280px;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.hologram-ring {
    position: absolute;
    border: 2px solid rgba(0, 245, 212, 0.3);
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

.ring-1 {
    width: 80%;
    height: 80%;
    max-width: 200px;
    max-height: 200px;
    border-top-color: var(--bioluminescent);
    border-top-width: 3px;
}

.ring-2 {
    width: 90%;
    height: 90%;
    max-width: 240px;
    max-height: 240px;
    border-bottom-color: var(--coral);
    border-bottom-width: 3px;
    animation-direction: reverse;
    animation-duration: 15s;
}

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

.hologram-core {
    font-size: clamp(40px, 12vw, 80px);
    filter: drop-shadow(0 0 30px rgba(0, 245, 212, 0.6));
    animation: corePulse 3s ease-in-out infinite;
    max-width: 100%;
    line-height: 1;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(0, 245, 212, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 50px rgba(0, 245, 212, 0.8)); }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bioluminescent), transparent);
    animation: scanLine 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

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

.section-tag {
    display: inline-block;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-sci-fi);
    font-size: 12px;
    color: var(--bioluminescent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Waves */
.section-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 2px);
    height: 60px;
}

/* ===== Featured Products ===== */
.featured-section {
    background: linear-gradient(180deg, transparent, rgba(0, 168, 150, 0.05) 50%, transparent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.product-card:nth-child(2).animate-in { transition-delay: 0.1s; }
.product-card:nth-child(3).animate-in { transition-delay: 0.2s; }

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 212, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 245, 212, 0.1);
}

.product-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.product-card:hover .product-shine {
    opacity: 1;
}

.product-badge {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
    background: linear-gradient(135deg, var(--coral), #ff8e8e);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-sci-fi);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
    margin-bottom: 12px;
}

.product-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.5));
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: var(--plankton);
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.rating-text {
    font-family: var(--font-sci-fi);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
}

.product-features li {
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
}

.feature-icon {
    position: absolute;
    left: 0;
    font-size: 18px;
}

.product-comparison {
    background: rgba(0, 245, 212, 0.05);
    border-left: 3px solid var(--bioluminescent);
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.product-comparison h4 {
    font-family: var(--font-sci-fi);
    font-size: 14px;
    color: var(--bioluminescent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.win-list {
    list-style: none;
}

.win-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.win-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bioluminescent);
    font-weight: 700;
}

.product-summary {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ===== HCS Section ===== */
.hcs-section {
    background: linear-gradient(180deg, transparent, rgba(255, 107, 107, 0.05) 50%, transparent);
}

.hcs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.info-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.info-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.05), transparent 70%);
    opacity: 0.5;
}

.hcs-info h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hcs-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.hcs-info h4 {
    font-family: var(--font-sci-fi);
    font-size: 16px;
    margin: 24px 0 12px;
    color: var(--bioluminescent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hcs-info ul {
    list-style: none;
}

.hcs-info li {
    padding: 10px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-secondary);
}

.capability-icon {
    position: absolute;
    left: 0;
    font-size: 20px;
}

.hcs-products h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.review-card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.review-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.review-card:nth-child(2).animate-in { transition-delay: 0.1s; }
.review-card:nth-child(3).animate-in { transition-delay: 0.2s; }

.review-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05), transparent 70%);
    opacity: 0.3;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-primary);
}

.review-rating {
    color: var(--plankton);
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.3);
}

.review-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-card ul {
    list-style: none;
    margin-bottom: 16px;
}

.review-card li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
}

.review-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--bioluminescent);
}

.review-card a {
    color: var(--bioluminescent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.review-card a:hover {
    text-decoration: underline;
}

/* ===== Cell Painting Section ===== */
.cell-painting-section {
    background: linear-gradient(180deg, transparent, rgba(147, 112, 219, 0.05) 50%, transparent);
}

.cell-painting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.intro-card, .applications-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.intro-card.animate-in, .applications-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.cell-painting-intro h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cell-painting-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.painting-dyes h4 {
    font-family: var(--font-sci-fi);
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--bioluminescent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dye-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dye-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(13, 33, 55, 0.5);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.dye-item:hover {
    border-color: rgba(0, 245, 212, 0.4);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.1);
}

.dye-colour {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dye-info {
    display: flex;
    flex-direction: column;
}

.dye-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.dye-target {
    font-size: 12px;
    color: var(--text-muted);
}

.cell-painting-applications h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cell-painting-applications ul {
    list-style: none;
    margin-bottom: 32px;
}

.cell-painting-applications li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.app-icon {
    position: absolute;
    left: 0;
    font-size: 24px;
}

.cell-painting-note {
    background: rgba(0, 245, 212, 0.05);
    border-radius: var(--radius);
    padding: 24px;
    border-left: 4px solid var(--bioluminescent);
}

.cell-painting-note h4 {
    font-family: var(--font-sci-fi);
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--bioluminescent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cell-painting-note p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.cell-painting-note ul {
    list-style: none;
}

.cell-painting-note li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
}

.cell-painting-note li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bioluminescent);
}

/* ===== Locations Section ===== */
.locations-section {
    background: linear-gradient(180deg, transparent, rgba(0, 168, 150, 0.05) 50%, transparent);
}

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

.location-card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.location-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.location-card:nth-child(2).animate-in { transition-delay: 0.05s; }
.location-card:nth-child(3).animate-in { transition-delay: 0.1s; }
.location-card:nth-child(4).animate-in { transition-delay: 0.15s; }
.location-card:nth-child(5).animate-in { transition-delay: 0.2s; }
.location-card:nth-child(6).animate-in { transition-delay: 0.25s; }

.location-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 245, 212, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 245, 212, 0.1);
}

.location-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.05), transparent 70%);
    opacity: 0.3;
}

.location-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.location-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.location-link {
    color: var(--bioluminescent);
    text-decoration: none;
    font-family: var(--font-sci-fi);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

.location-link:hover {
    text-decoration: underline;
}

/* ===== Comparison Table ===== */
.comparison-section {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2) 50%, transparent);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    font-size: 14px;
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(0, 168, 150, 0.3));
}

.comparison-table th {
    padding: 16px;
    text-align: left;
    font-family: var(--font-sci-fi);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bioluminescent);
    border-bottom: 2px solid var(--glass-border);
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
    background: rgba(0, 245, 212, 0.05);
}

.comparison-table .featured-row {
    background: rgba(0, 245, 212, 0.08);
}

.comparison-table .featured-row td {
    color: var(--text-primary);
}

.rating {
    background: linear-gradient(135deg, var(--bioluminescent), #00c9a7);
    color: var(--deep-ocean);
    padding: 4px 10px;
    border-radius: 12px;
    font-family: var(--font-sci-fi);
    font-weight: 700;
    font-size: 12px;
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(255, 107, 107, 0.1));
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

.cta-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.6));
    animation: ctaIconPulse 3s ease-in-out infinite;
}

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

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

.cta-section p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 16px;
}

.cta-disclaimer {
    font-size: 13px !important;
    color: var(--text-muted) !important;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    background: var(--deep-ocean);
    color: white;
    padding: 60px 0 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-waves {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 2px);
    height: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.footer-logo-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.2), transparent);
    border-radius: 50%;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    animation: logoGlow 3s ease-in-out infinite;
}

.footer-brand .logo-icon {
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--bioluminescent);
}

.footer-brand .tagline {
    font-size: 12px;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-sci-fi);
    font-size: 13px;
    transition: color 0.2s;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--bioluminescent);
}

.footer-locations {
    text-align: right;
}

.footer-locations p {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-sci-fi);
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 245, 212, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 20px 40px;
        min-height: auto;
        gap: 24px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        margin: 0 auto 12px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        display: flex;
        max-width: 180px;
        margin: 0 auto;
        padding: 0;
        min-height: auto;
        order: -1;
    }
    
    .microscope-hologram {
        max-width: 160px;
        max-height: 160px;
        min-height: auto;
        width: 160px;
        height: 160px;
    }
    
    .hologram-core {
        font-size: 70px;
        line-height: 1;
    }
    
    .hcs-content,
    .cell-painting-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-locations {
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .shrimp-float {
        font-size: 36px;
    }
    
    .jellyfish, .plankton-blob {
        display: none;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .dye-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .hero-visual,
    .btn,
    .sea-creatures,
    #ocean-canvas,
    .particles-container {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        background: white;
        color: black;
    }
    
    section {
        padding: 24px 0;
        page-break-inside: avoid;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .product-card,
    .location-card,
    .review-card,
    .info-card,
    .intro-card,
    .applications-card {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .shrimp-float,
    .jellyfish,
    .plankton-blob,
    .microscope-icon,
    .hologram-ring,
    .scan-line,
    .bubble,
    .pulse-dot,
    .cta-icon {
        animation: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--bioluminescent);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-ocean);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bioluminescent-dim);
}

/* ===== Additional Sea Creatures ===== */

/* Fish School */
.fish-school {
    position: absolute;
    font-size: 24px;
    animation: fishSwim 20s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 217, 61, 0.4));
    z-index: 5;
}

@keyframes fishSwim {
    0% { transform: translateX(-100px) translateY(0) scaleX(1); }
    45% { transform: translateX(calc(100vw + 100px)) translateY(-20px) scaleX(1); }
    50% { transform: translateX(calc(100vw + 100px)) translateY(-20px) scaleX(-1); }
    95% { transform: translateX(-100px) translateY(0) scaleX(-1); }
    100% { transform: translateX(-100px) translateY(0) scaleX(1); }
}

/* Coral Reef */
.coral-reef {
    position: absolute;
    font-size: 40px;
    animation: coralSway 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.3));
    z-index: 3;
}

@keyframes coralSway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* Starfish */
.starfish {
    position: absolute;
    font-size: 30px;
    animation: starfishGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 217, 61, 0.5));
    z-index: 4;
}

@keyframes starfishGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Seaweed */
.seaweed {
    position: absolute;
    font-size: 36px;
    animation: seaweedSway 5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.2));
    z-index: 2;
    transform-origin: bottom center;
}

@keyframes seaweedSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Crab */
.crab {
    position: absolute;
    font-size: 28px;
    animation: crabScuttle 8s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.3));
    z-index: 6;
}

@keyframes crabScuttle {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(30px) rotate(5deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(-20px) rotate(-3deg); }
}

/* Octopus */
.octopus {
    position: absolute;
    font-size: 32px;
    animation: octopusFloat 10s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(147, 112, 219, 0.4));
    z-index: 5;
}

@keyframes octopusFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(10deg); }
    66% { transform: translateY(-15px) rotate(-5deg); }
}

/* Turtle */
.turtle {
    position: absolute;
    font-size: 36px;
    animation: turtleSwim 25s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 200, 150, 0.3));
    z-index: 4;
}

@keyframes turtleSwim {
    0% { transform: translateX(-100px) translateY(0); }
    50% { transform: translateX(calc(100vw + 100px)) translateY(-30px); }
    51% { transform: translateX(calc(100vw + 100px)) translateY(-30px) scaleX(-1); }
    100% { transform: translateX(-100px) translateY(0) scaleX(-1); }
}

/* ===== Enhanced Bubble Effects ===== */
.bubble:nth-child(odd) {
    width: 8px;
    height: 8px;
    animation-duration: 6s;
}

.bubble:nth-child(even) {
    width: 12px;
    height: 12px;
    animation-duration: 10s;
    animation-delay: 2s;
}

/* ===== Caustic Light Effects ===== */
.caustic-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 245, 212, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 200, 255, 0.2) 0%, transparent 40%);
    animation: causticShift 15s ease-in-out infinite;
}

@keyframes causticShift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -10px); }
    66% { transform: translate(-15px, 15px); }
}

/* ===== Floating Dust Particles ===== */
.dust-particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(0, 245, 212, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: dustFloat 20s linear infinite;
}

@keyframes dustFloat {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(100px, -100vh); opacity: 0; }
}

/* ===== Vignette Effect ===== */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 22, 40, 0.5) 100%);
}

/* Selection styling */
::selection {
    background: rgba(0, 245, 212, 0.3);
    color: var(--text-primary);
}
/* ===== Loading Screen Safety ===== */
#loading-screen {
    animation: forceHide 6s forwards !important;
}

@keyframes forceHide {
    0%, 90% { opacity: 1; display: flex; }
    99% { opacity: 0; pointer-events: none; }
    100% { opacity: 0; pointer-events: none; display: none !important; }
}

/* ===== Universal Device Compatibility ===== */

/* iPhone SE, iPhone 8 (375px) */
@media (max-width: 375px) {
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .hero-visual {
        max-width: 150px;
        min-height: 150px;
    }
    
    .microscope-hologram {
        max-width: 140px;
        max-height: 140px;
    }
    
    .hologram-core {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-card {
        padding: 24px;
    }
    
    .product-features li {
        font-size: 14px;
    }
    
    .comparison-table {
        font-size: 11px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }
}

/* iPhone 12/13/14, Pro Max (390px - 430px) */
@media (min-width: 376px) and (max-width: 430px) {
    .hero-content h2 {
        font-size: 26px;
    }
    
    .hero-visual {
        max-width: 160px;
    }
    
    .microscope-hologram {
        max-width: 150px;
        max-height: 150px;
    }
    
    .hologram-core {
        font-size: 52px;
    }
}

/* Tablets (iPad, Android tablets 768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        padding: 80px 40px;
    }
    
    .hero-content h2 {
        font-size: 40px;
    }
    
    .hero-visual {
        max-width: 250px;
    }
    
    .microscope-hologram {
        max-width: 220px;
        max-height: 220px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hcs-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large tablets, small laptops (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .hero {
        padding: 100px 60px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad Pro, large screens (1367px+) */
@media (min-width: 1367px) {
    .container {
        max-width: 1300px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 14px 24px;
    }
    
    .product-card:hover .product-shine {
        opacity: 0;
    }
    
    .product-card:active .product-shine {
        opacity: 1;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-link:hover {
        background: transparent;
    }
    
    .nav-link:active {
        background: rgba(0, 245, 212, 0.1);
    }
}

/* ===== iOS Specific Fixes ===== */
@supports (-webkit-touch-callout: none) {
    .btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    a {
        -webkit-tap-highlight-color: rgba(0, 245, 212, 0.1);
    }
    
    .product-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* ===== Android Specific Fixes ===== */
@supports (not (-webkit-touch-callout: none)) {
    .btn {
        touch-action: manipulation;
    }
    
    a {
        touch-action: manipulation;
    }
}

/* ===== Landscape Mode on Mobile ===== */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 24px;
    }
    
    .hero-visual {
        display: flex !important;
        max-width: 140px;
        margin: 0 auto;
    }
    
    .microscope-hologram {
        width: 120px;
        height: 120px;
        max-width: 120px;
        max-height: 120px;
    }
    
    .hologram-core {
        font-size: 50px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== High DPI / Retina Displays ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hologram-core {
        filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.4));
    }
    
    .product-shine {
        background: radial-gradient(circle, rgba(0, 245, 212, 0.15), transparent 70%);
    }
}

/* ===== Dark Mode Preference ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --deep-ocean: #0a1628;
        --mid-ocean: #0d2137;
    }
}

/* ===== Reduced Motion (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #loading-screen {
        display: none !important;
    }
    
    .hologram-ring {
        animation: none;
    }
    
    .hologram-core {
        animation: none;
    }
}

/* ===== Safari iOS Specific Fixes ===== */

/* Fix 100vh Safari bug with dynamic toolbars */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
        min-height: 100dvh;
    }
    
    body {
        min-height: -webkit-fill-available;
    }
    
    html {
        height: -webkit-fill-available;
    }
}

/* Prevent Safari URL bar from overlapping content */
.hero {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Ensure buttons are clickable on iOS Safari */
@supports (-webkit-touch-callout: none) {
    .btn {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 245, 212, 0.3);
        touch-action: manipulation;
        -webkit-touch-callout: default;
        position: relative;
        z-index: 100;
    }
    
    a {
        -webkit-tap-highlight-color: rgba(0, 245, 212, 0.3);
        touch-action: manipulation;
    }
    
    /* Force links to be clickable */
    a[href] {
        cursor: pointer;
        pointer-events: auto;
    }
    
    .product-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Fix for iOS Safari not opening target="_blank" links */
@supports (-webkit-touch-callout: none) {
    a[target="_blank"] {
        -webkit-touch-callout: default;
        -webkit-user-select: none;
    }
}

/* ===== Hero Microscope Fix ===== */
.hero-visual {
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.microscope-hologram {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hologram-core {
    display: inline-block;
    line-height: 1.2;
    position: relative;
    z-index: 4;
}

/* Ensure content isn't hidden behind Safari bars */
.container {
    position: relative;
    z-index: 1;
}

/* Push hero content below Safari URL bar */
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 10px;
}

/* ===== Hero Image Fix for All Mobile ===== */
@media (max-width: 900px) {
    .hero-content {
        order: 2;
        padding-top: 0;
    }
    
    .hero-visual {
        display: flex !important;
        order: 1;
        margin-bottom: 20px;
        max-width: 180px;
        min-height: auto;
    }
    
    .microscope-hologram {
        width: 160px;
        height: 160px;
        max-width: 160px;
        max-height: 160px;
        min-height: auto;
    }
    
    .hologram-core {
        font-size: 70px;
        line-height: 1;
    }
    
    .hero-content h2 {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 20px;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .hero-visual {
        display: flex !important;
        max-width: 140px;
    }
    
    .microscope-hologram {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .hologram-core {
        font-size: 50px;
    }
    
    .hero {
        padding: 40px 16px 30px;
    }
}

/* Ensure microscope emoji is never cut off */
.hologram-core {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Fix for any absolutely positioned elements overlapping */
.hero-visual {
    position: relative;
    z-index: 5;
    isolation: isolate;
}

/* ===== iPhone Portrait Specific ===== */
@media (max-width: 430px) and (orientation: portrait) {
    .hero-visual {
        display: flex !important;
        max-width: 160px !important;
        margin: 0 auto 20px !important;
        min-height: auto !important;
        padding: 0 !important;
    }
    
    .microscope-hologram {
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        min-height: auto !important;
    }
    
    .hologram-core {
        font-size: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ===== Fix Microscope Visibility ===== */
.hologram-ring {
    z-index: 1;
}

.hologram-core {
    z-index: 10;
    position: relative;
}

.scan-line {
    z-index: 2;
}

.microscope-hologram {
    position: relative;
    z-index: 5;
}

/* ===== Force Microscope Emoji Visibility ===== */
.hologram-core {
    color: var(--bioluminescent) !important;
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.8), 0 0 60px rgba(0, 245, 212, 0.4) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile override */
@media (max-width: 900px) {
    .hologram-core {
        font-size: 60px !important;
    }
}

@media (max-width: 375px) {
    .hologram-core {
        font-size: 50px !important;
    }
}

/* ===== Fix Header Logo Visibility ===== */
.header {
    overflow: visible;
    padding-top: env(safe-area-inset-top, 0);
}

.logo {
    overflow: visible;
    padding: 4px 0;
}

.logo-icon {
    font-size: 36px;
    display: inline-block;
    overflow: visible;
    line-height: 1.2;
}

/* Mobile header fix */
@media (max-width: 600px) {
    .header {
        overflow: visible;
    }
    
    .nav {
        padding: 12px 16px;
        overflow: visible;
    }
    
    .logo {
        gap: 8px;
        overflow: visible;
    }
    
    .logo-icon {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-glow {
        width: 50px;
        height: 50px;
        left: -8px;
    }
}

/* ===== Fix Product Badge Position ===== */
.product-card {
    padding-top: 32px !important;
}

@media (max-width: 600px) {
    .product-card {
        padding-top: 24px !important;
    }
    
    .product-badge {
        margin-bottom: 8px;
        font-size: 11px;
        padding: 4px 12px;
    }
}

/* ===== Fix Featured Product Card ===== */
.product-card.featured-product {
    overflow: visible;
    position: relative;
    padding: 32px;
}

.product-card.featured-product .product-badge {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
    margin-bottom: 16px;
}

.product-card.featured-product .product-icon {
    display: block;
    margin: 0 auto 16px;
    font-size: 48px;
    text-align: center;
}

@media (max-width: 600px) {
    .product-card.featured-product {
        padding: 24px;
    }
    
    .product-card.featured-product .product-badge {
        margin-bottom: 12px;
    }
}
