/* ============================================
   M-RED — AI AGENCY LANDING
   Dark theme · Red accent · Minimal
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ACCENT ---------- */
.accent {
  color: #e63946;
}

/* ---------- NAV ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-links {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
}

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

.logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e63946;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-video {
    display: none;
  }
  
  .hero {
    background: #0a0a0a;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    pointer-events: none;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3rem);
  }
}

.hero-desc {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: #e63946;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

/* ---------- SERVICES ---------- */
.services {
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.service-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  transform: translateY(-4px);
}

.service-icon {
  color: #e63946;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.about-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin-bottom: 40px;
  margin-top: -40px;
}

.contact-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e63946;
}

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

.contact-form button {
  align-self: flex-start;
}

.contact-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-link {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.contact-link:hover {
  color: #e63946;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-logo {
  display: block;
  height: 50px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }
  
  .nav-links a {
    font-size: 0.8rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 24px;
  }

  .contact-links {
    flex-direction: column;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- FOOTER ---------- */
.footer-tagline {
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #444;
}

/* ---------- CONTACT CARD ---------- */
.contact-card {
  margin-top: 40px;
  max-width: 600px;
}

.contact-card p {
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-card-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-email-text {
  color: #ccc;
  font-family: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
  font-size: 1rem;
  user-select: all;
  cursor: text;
  padding: 4px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}

.contact-card-btn {
  display: inline-block;
  text-decoration: none;
  padding: 8px 20px;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SERVICE PAGES ---------- */
.service-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 120px);
}

.back-link {
  display: inline-block;
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 30px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--accent);
}

.service-page-subtitle {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.service-page-content {
  max-width: 700px;
}

.service-page-content p {
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.service-page-content h2 {
  color: #eee;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.service-page-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.service-page-content ul li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: #bbb;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.service-page-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service-page-content ul li strong {
  color: #eee;
}

.service-page-cta {
  margin-top: 50px;
  padding: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.service-page-cta p {
  color: #aaa;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

/* make service cards clickable */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link:hover .service-card {
  border-color: var(--accent);
}
