/* ============================================================
   FisikaHub — Physics-Themed Landing Page
   Cartoon Brutalist style with physics symbols & animations
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --brand: #2fd2ff;
  --brand-dark: #1aa8d1;
  --brand-glow: rgba(47, 210, 255, 0.4);
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.4);
  --bg: #f5f8fc;
  --bg-card: #ffffff;
  --text: #0b0b0b;
  --text-light: #555;
  --border: #0b0b0b;
  --shadow: rgba(0, 0, 0, 0.18);
  --radius: 20px;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   Floating Physics Particles (Background)
   ============================================================ */

.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--s);
  opacity: 0.12;
  color: var(--brand-dark);
  animation: floatParticle var(--dur) ease-in-out infinite;
  animation-delay: var(--d);
  will-change: transform;
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(30px, -40px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translate(-20px, -80px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translate(40px, -40px) rotate(270deg) scale(1.05);
  }
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: rotate(-5deg) scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 12px;
  border: 3px solid var(--border);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--brand);
  transform: scale(1.05);
  box-shadow: 4px 4px 0 var(--border);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--border);
}

.nav-cta:hover {
  background: #e85a2a;
  color: #fff;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  background: linear-gradient(135deg, #f5f8fc 0%, #e8f4fd 50%, #f0f0ff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 100px;
  border: 3px solid var(--border);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--brand);
  color: var(--text);
  box-shadow: 3px 3px 0 var(--border);
}

.badge-secondary {
  background: var(--accent);
  color: #fff;
  box-shadow: 3px 3px 0 var(--border);
}

.hero-text h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text .highlight {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.hero-text .highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--brand);
  opacity: 0.4;
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 14px;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.btn-primary {
  background: var(--brand);
  box-shadow: 4px 4px 0 var(--border);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--border);
  background: var(--brand-dark);
}

.btn-outline {
  background: #fff;
  box-shadow: 4px 4px 0 var(--border);
}

.btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--border);
  background: var(--bg);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 3px;
  height: 40px;
  background: var(--border);
  border-radius: 2px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: min(100%, 420px);
  height: auto;
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--border);
  border: 3px solid var(--border);
  position: relative;
  z-index: 2;
  animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ============================================================
   Atom Animation (3D rotating atom)
   ============================================================ */

.atom {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  z-index: 1;
  opacity: 0.6;
  animation: atomFade 3s ease-in-out infinite alternate;
}

@keyframes atomFade {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.atom-nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.atom-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border: 3px solid var(--border);
  border-radius: 50%;
}

.ring-x {
  transform: rotateX(75deg) rotateY(0deg);
  animation: spinX 3s linear infinite;
}

.ring-y {
  transform: rotateY(75deg) rotateX(0deg);
  animation: spinY 3s linear infinite;
}

.ring-z {
  transform: rotateZ(75deg);
  animation: spinZ 3s linear infinite;
}

.electron {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--brand);
  border-radius: 50%;
  border: 2px solid var(--border);
}

.e-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--brand-glow);
  filter: blur(6px);
  animation: pulseGlow 1.5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    opacity: 0.5;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes spinX {
  from {
    transform: rotateX(75deg) rotateY(0deg);
  }
  to {
    transform: rotateX(75deg) rotateY(360deg);
  }
}

@keyframes spinY {
  from {
    transform: rotateY(75deg) rotateX(0deg);
  }
  to {
    transform: rotateY(75deg) rotateX(360deg);
  }
}

@keyframes spinZ {
  from {
    transform: rotateZ(75deg);
  }
  to {
    transform: rotateZ(435deg);
  }
}

/* Hero Wave Divider */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   Features Section
   ============================================================ */

.features {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 6px 6px 0 var(--border);
  transition: all 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand);
}

.feature-card:nth-child(2)::before {
  background: var(--accent);
}
.feature-card:nth-child(3)::before {
  background: #6c5ce7;
}

.feature-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--border);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.6;
}

.card-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 24px;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.feature-card:hover .card-arrow {
  transform: translateX(8px);
}

/* ============================================================
   About Section
   ============================================================ */

.about {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  background: linear-gradient(135deg, #e8f4fd 0%, #f5f8fc 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-img-frame {
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--border);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.about-img-frame:hover {
  transform: rotate(0deg);
}

.about-img-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-list {
  list-style: none;
  margin-top: 20px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 2px dashed #ddd;
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list li span {
  font-size: 22px;
}

/* ============================================================
   Quote Section
   ============================================================ */

.quote-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.quote-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
}

.quote-text {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--border);
}

.quote-mark {
  font-size: 80px;
  line-height: 1;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: Georgia, serif;
}

.quote-text blockquote {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quote-text cite {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  font-style: normal;
}

.quote-tagline {
  margin-top: 20px;
  font-size: 18px;
  color: var(--accent);
}

/* ============================================================
   CTA Section
   ============================================================ */

.cta-section {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--brand) 0%, #1aa8d1 100%);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  box-shadow: 10px 10px 0 var(--border);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "⚛";
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 120px;
  opacity: 0.1;
  transform: rotate(30deg);
}

.cta-card h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--text);
  box-shadow: 4px 4px 0 var(--border);
}

.cta-card .btn-primary:hover {
  background: #f0f0f0;
  box-shadow: 8px 8px 0 var(--border);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  position: relative;
  z-index: 1;
  background: var(--text);
  color: #fff;
  border-top: 3px solid var(--brand);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(10);
}

.footer-brand p {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--brand);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  padding: 0;
}

.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.1);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.5;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-visual {
    order: -1;
  }

  .atom {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 8px 12px;
  }

  .logo img {
    height: 44px;
  }

  .nav-link {
    font-size: 13px;
    padding: 8px 14px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-divider {
    display: none;
  }

  .cta-card {
    padding: 36px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
