/* cache-bust: 1779141362 */
/* ============================================================
   iChem Theme — Main Stylesheet
   Colors: #ed233d (Red) | #194172 (Navy)
   Font: Zen Maru Gothic
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --red:        #ed233d;
  --navy:       #194172;
  --navy-dark:  #0f2a4a;
  --navy-light: #1e508a;
  --white:      #ffffff;
  --off-white:  #f5f6f8;
  --light-gray: #e8eaed;
  --mid-gray:   #8a9ab0;
  --text-dark:  #0d1b2e;
  --font:       'Roboto', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 2px 12px rgba(25, 65, 114, 0.08);
  --shadow-md:  0 8px 32px rgba(25, 65, 114, 0.14);
  --shadow-lg:  0 20px 60px rgba(25, 65, 114, 0.18);
}

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

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

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Anchor offset for fixed navbar --- */
section[id] {
  scroll-margin-top: 80px;
}

/* Active nav link — underline only, no color change */



/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 540px;
  font-weight: 300;
}

/* ============================================================
   NAVBAR — boxed floating white
============================================================ */
#navbar {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
}

.nav-box {
  background: var(--white);
  box-shadow: 0 4px 28px rgba(25,65,114,0.13);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
  border-bottom: 3px solid var(--red);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  display: block;
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.22s;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav hover/active: underline only, no color change */
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
  color: var(--navy) !important;
}
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  color: var(--white) !important;
  text-decoration: none !important;
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  font-size: 0.72rem !important;
  box-shadow: 3px 3px 0 rgba(150,10,24,0.45);
  transition: all 0.18s !important;
}

.nav-cta:hover {
  box-shadow: 1px 1px 0 rgba(150,10,24,0.45) !important;
  transform: translate(2px,2px) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* ============================================================
   HERO
============================================================ */
#home {
  min-height: 100vh;
  background: var(--navy-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Geometric background pattern */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(25,65,114,0.6) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(237,35,61,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  opacity: 0.6;
}

/* Hero shapes */
.hero-shape-1 {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  animation: spin-slow 25s linear infinite;
}

.hero-shape-2 {
  position: absolute;
  top: 20%;
  right: 12%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(237,35,61,0.15);
  border-radius: 50%;
  animation: spin-slow 18s linear infinite reverse;
}

.hero-molecule { display: none; }

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 150px 25px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(237,35,61,0.15);
  border: 1px solid rgba(237,35,61,0.3);
  color: #ff6b7d;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

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

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  animation: fadeInUp 0.7s 0.15s ease both;
}

.hero-title .highlight {
  color: var(--red);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  opacity: 0.4;
  border-radius: 2px;
}

.hero-moto {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 20px;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.04em;
  animation: fadeInUp 0.7s 0.25s ease both;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeInUp 0.7s 0.3s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeInUp 0.7s 0.4s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(237,35,61,0.4);
}

.btn-primary:hover {
  background: #c41830;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(237,35,61,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-secondary:hover { color: var(--white); gap: 14px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeInUp 0.7s 0.5s ease both;
}

.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-item .stat-num span { color: var(--red); }

.stat-item .stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

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

/* ============================================================
   SERVICES
============================================================ */
#services {
  padding: 120px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red));
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}

.services-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.services-count {
  font-size: 7rem;
  font-weight: 900;
  color: rgba(25,65,114,0.06);
  line-height: 1;
  letter-spacing: -0.04em;
  position: absolute;
  right: 32px;
  top: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--light-gray);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(25,65,114,0.08), rgba(237,35,61,0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy), var(--red));
}

.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon svg path { stroke: white; }

.service-num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--light-gray);
  letter-spacing: 0.1em;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--mid-gray);
  font-weight: 300;
  line-height: 1.75;
}

/* ============================================================
   ABOUT
============================================================ */
#about {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(237,35,61,0.2));
}

/* Decorative shapes */
.about-deco-1 { display: none; }

.about-deco-2 {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: var(--navy);
  border-radius: 14px;
  opacity: 0.15;
}

.about-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 2;
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
}

.about-badge .badge-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.about-badge .badge-num span { color: var(--red); }

.about-badge .badge-label {
  font-size: 0.78rem;
  color: var(--mid-gray);
  margin-top: 4px;
  font-weight: 400;
}

/* About image placeholder graphic */
.about-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.about-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.3;
}

/* About Content */
.about-content .section-subtitle {
  margin-bottom: 36px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, rgba(25,65,114,0.08), rgba(237,35,61,0.06));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.86rem;
  color: var(--mid-gray);
  font-weight: 300;
}



/* ============================================================
   CONTACT
============================================================ */
#contact {
  padding: 120px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237,35,61,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(25,65,114,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-info .section-label { color: rgba(237,35,61,0.9); }

.contact-info .section-title { color: var(--white); }

.contact-info .section-subtitle {
  color: rgba(255,255,255,0.45);
  margin-bottom: 52px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-item:hover .contact-item-icon {
  background: var(--red);
  border-color: var(--red);
}

.contact-item-icon svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.6); }
.contact-item:hover .contact-item-icon svg { stroke: white; }

.contact-item-text h4 {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 400;
}

.contact-item-text p, .contact-item-text a {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  transition: var(--transition);
}

.contact-item-text a:hover { color: var(--red); }

/* Contact Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 48px 44px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(237,35,61,0.5);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(237,35,61,0.08);
}

.form-group select option { background: var(--navy-dark); color: var(--white); }

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

.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 18px 36px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(237,35,61,0.3);
}

.btn-submit:hover {
  background: #c41830;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(237,35,61,0.45);
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: #080f1a;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
}

.footer-logo img { display: block; width: auto; height: auto; max-height: 60px; }

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
}

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

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  transition: var(--transition);
}

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

/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 500px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-box { padding: 0 20px; }
  .nav-inner { height: 60px; }
  .nav-logo img { height: 36px !important; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--navy-dark);
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.3rem; color: var(--white) !important; text-decoration: none !important; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links.open a.active { color: var(--white) !important; text-decoration: underline !important; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--red) !important; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--white) !important; }
.nav-toggle.active span:nth-child(2) { opacity: 0 !important; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--white) !important; }

  /* Hero */
  .hero-content { padding: 120px 25px 60px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats > div { flex: 1 1 40%; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  #mol-canvas { display: none !important; }

  /* Services */
  .services-header { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 10px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 100px 16px 50px; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem) !important; }
  .stat-num { font-size: 1.5rem; }
  #services { padding: 70px 0; }
  .service-card { padding: 24px 20px; }
  #about { padding: 70px 0; }
  #contact { padding: 70px 0; }
  #footer, footer { padding: 24px 16px; }
}

@media (hover: none) {
  #mol-canvas { display: none !important; }
}

/* === FORCED OVERRIDES === */
/* Hero content left-aligned with room for molecule */
#home .container.hero-content {
  max-width: 60% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 135px !important;
  margin-right: auto !important;
}

.container { padding: 0 25px !important; }

/* Mobile X close button via CSS */
.nav-links.open { position: fixed; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px) !important; background: #ffffff !important; }
.nav-toggle.active span:nth-child(2) { opacity: 0 !important; width: 0 !important; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px) !important; background: #ffffff !important; }
.nav-toggle span { transition: all 0.3s ease !important; }

/* Hide X close button on desktop */
@media (min-width: 769px) {
  .nav-links button { display: none !important; }
}

/* Hero container padding - final override */
#home .container {
  padding-top: 150px !important;
  padding-bottom: 160px !important;
}
