:root {
    --bg-dark: #070F1A;
    --bg-surface: #0B192C;
    --bg-card: #0F223A;
    --bg-card-hover: #152C4A;
    --primary: #0D9488;
    --primary-glow: #14B8A6;
    --accent: #38BDF8;
    --gold: #F59E0B;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #1E3A5F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(11, 25, 44, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}
.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 38px; }
.brand-name { font-size: 22px; font-weight: 800; color: #FFF; letter-spacing: 1px; }
.tm { font-size: 12px; color: var(--primary-glow); vertical-align: super; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.btn-nav { background: var(--primary); color: #FFF !important; padding: 8px 18px; border-radius: 8px; font-weight: 700; }
.btn-nav:hover { background: var(--primary-glow); }

/* Language Selector */
.lang-selector-wrapper {
    display: inline-flex;
    align-items: center;
}
.lang-select {
    background: rgba(15, 34, 58, 0.85);
    color: #38BDF8;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}
.lang-select:hover, .lang-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.lang-select option {
    background: #0B192C;
    color: #FFF;
}
.arrow-ico {
    color: var(--accent);
    font-size: 16px;
    transition: transform 0.2s;
}

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: #FFF; cursor: pointer; }

/* Hero */
.hero-section {
    position: relative;
    padding: 100px 0 80px 0;
    text-align: center;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, rgba(7, 15, 26, 0) 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary-glow);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.hero-brand-claim {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.claim-glow {
    color: #38BDF8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}
.claim-sub {
    color: var(--gold);
    font-weight: 800;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.6; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0.6; transform: scale(0.9); } }

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.gradient-text {
    background: linear-gradient(135deg, #38BDF8 0%, #14B8A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    max-width: 820px;
    margin: 0 auto 36px auto;
    font-size: 19px;
    color: #CBD5E1;
    line-height: 1.6;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 60px; }

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--primary); color: #FFF; box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35); }
.btn-primary:hover { background: var(--primary-glow); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(13, 148, 136, 0.5); }
.btn-secondary { background: var(--bg-card); color: #FFF; border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent); }

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
}
.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 20px 16px;
    border-radius: 12px;
}
.metric-val { font-size: 32px; font-weight: 800; color: var(--gold); }
.metric-lbl { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }

/* Sections */
.section { padding: 90px 0; }
.section-dark { background: var(--bg-surface); }
.section-header { text-align: center; max-width: 1050px; margin: 0 auto 50px auto; }
.section-tag { display: inline-block; color: var(--primary-glow); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 8px; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--text-muted); }
.single-line-desktop { white-space: nowrap; }

/* Product Layout */
.product-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.visual-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.cutaway-img { width: 100%; border-radius: 10px; cursor: zoom-in; transition: transform 0.3s; }
.cutaway-img:hover { transform: scale(1.02); }
.zoom-badge { font-size: 12px; color: var(--accent); margin-top: 8px; font-weight: 600; }

.product-specs { display: flex; flex-direction: column; gap: 16px; }
.spec-card {
    display: flex;
    gap: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-glow);
}
.spec-icon { font-size: 28px; }
.spec-card h4 { font-size: 16px; font-weight: 700; color: #FFF; margin-bottom: 4px; }
.spec-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }

/* Patents Grid */
.patents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.patent-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.patent-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 35px rgba(56, 189, 248, 0.25); }
.featured-patent { background: linear-gradient(180deg, #0F223A 0%, #0B192C 100%); border: 1.5px solid var(--primary); }

.patent-thumb-box {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    background: #000;
}
.patent-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.patent-card:hover .patent-mini-img { transform: scale(1.06); }
.thumb-overlay-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(11, 25, 44, 0.85);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}

.patent-num { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: 1px; margin-bottom: 6px; }
.patent-click-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}
.patent-click-title span { color: var(--accent); font-size: 16px; transition: transform 0.2s; }
.patent-card:hover .patent-click-title { color: var(--accent); }
.patent-card:hover .patent-click-title span { transform: translate(3px, -3px); }
.patent-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* Video Player */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}
.video-player { width: 100%; display: block; border-radius: 14px; }

/* Business Grid */
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}
.highlight-biz { border: 2px solid var(--primary); background: linear-gradient(180deg, #0F2942 0%, #0F223A 100%); }
.biz-tag { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: 1px; margin-bottom: 12px; }
.biz-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.biz-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.biz-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #CBD5E1; margin-top: auto; }

/* Contact */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-details { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #CBD5E1; }
.c-item strong { color: var(--primary-glow); }
.mail-link { color: var(--accent); text-decoration: none; font-weight: 600; }

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.contact-form-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.c-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.form-group label { font-size: 12.5px; font-weight: 700; color: #CBD5E1; }
.form-group input, .form-group select {
    background: #070F1A;
    border: 1px solid var(--border);
    color: #FFF;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }

/* Footer */
footer { background: #050B14; border-top: 1px solid var(--border); padding: 30px 0; font-size: 13px; color: var(--text-muted); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.f-brand { display: flex; align-items: center; gap: 15px; }
.f-logo { height: 28px; }

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox-modal.active { display: flex; }
.lightbox-modal img { max-width: 95vw; max-height: 95vh; border-radius: 8px; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 38px; }
    .product-layout, .contact-container, .business-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .single-line-desktop { white-space: normal; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
}


/* 3D Axial Vertical Spinning Animation & Plasma Glow */
@keyframes spin3DVertical {
  0% { transform: perspective(1000px) rotateY(0deg) rotateX(2deg); filter: drop-shadow(0 0 15px rgba(56,189,248,0.5)); }
  50% { transform: perspective(1000px) rotateY(180deg) rotateX(-2deg); filter: drop-shadow(0 0 30px rgba(13,148,136,0.8)); }
  100% { transform: perspective(1000px) rotateY(360deg) rotateX(2deg); filter: drop-shadow(0 0 15px rgba(56,189,248,0.5)); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.75; transform: scale(1.04); }
}
.hero-3d-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-3d-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.rhydra-hero-3d-card {
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.95), rgba(7, 15, 26, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(14, 165, 233, 0.25);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-col;
  align-items: center;
  justify-content: center;
}
.rhydra-hero-3d-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}
.spin-3d-logo-rhydra {
  animation: spin3DVertical 9s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
.spin-3d-logo-rhydra:hover {
  animation-play-state: paused;
}
