:root {
  --orange: #f59e0b;
  --bg: #0b0e13;
  --bg-soft: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: rgba(11, 14, 19, 0.95);
  backdrop-filter: blur(6px);
}

.logo {
  height: 48px;
}

.nav a {
  margin-left: 28px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  padding: 140px 8% 120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245,158,11,0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(245,158,11,0.05), transparent 40%);
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
}

.hero p {
  max-width: 620px;
  margin-bottom: 35px;
  color: var(--muted);
}

.btn {
  background: var(--orange);
  color: #000;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245,158,11,0.35);
}

/* SECTIONS */
.section {
  padding: 90px 8%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 25px;
  color: var(--orange);
}

.note {
  margin-top: 20px;
  color: var(--muted);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  padding: 28px;
  background: linear-gradient(145deg, var(--bg-soft), #0d1117);
  border-left: 4px solid var(--orange);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* SERVICES WITH IMAGES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.service-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.5);
}

.service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.1)
  );
}

.service-overlay h3 {
  color: var(--orange);
  font-size: 1.3rem;
  font-weight: 700;
}


/* LIST */
.list {
  list-style: none;
}

.list li {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

/* LOGO SPLASH */
.logo-splash {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.3s ease;
}

.logo-splash img {
  max-width: 400px;
  width: 60vw;
  height: auto;
}

/* CONTACT */
.contact {
  text-align: left;
}

.contact h2 {
  text-align: center;
}

.contact-wrapper {
  display: flex;
  gap: 48px;
  margin-top: 30px;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid #1f2937;
  border-radius: 6px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.contact-info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* FOOTER */
footer {
  background: #05070a;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .nav nav {
    display: none;
  }

  .logo-splash img {
    max-width: 280px;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .contact-info {
    text-align: center;
  }
}

/* MODERN I/O LOGO GLOW */
#modernio-logo {
  width: 160px;
  height: auto;
  overflow: visible;
}

/* Only glow the ORANGE parts */
#modernio-logo path[fill="#f49516"] {
  animation: logoGlow 2.4s ease-out forwards;
  filter: drop-shadow(0 0 0 rgba(244,149,22,0));
}

/* GLOW KEYFRAMES */
@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 0 rgba(244,149,22,0));
  }
  40% {
    filter: drop-shadow(0 0 6px rgba(244,149,22,0.5));
  }
  70% {
    filter:
      drop-shadow(0 0 12px rgba(244,149,22,0.9))
      drop-shadow(0 0 28px rgba(244,149,22,0.6));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(244,149,22,0.7));
  }
}

