@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@800;900&display=swap');

:root {
  --primary-color: #0A0A0A; /* Pitch black for global theme */
  --brand-color: #37474F; /* The dark slate gray from the logo */
  --secondary-color: #F1BC19; /* Golden Yellow from logo */
  --secondary-gradient: linear-gradient(135deg, #F1BC19 0%, #FFA000 100%);
  --text-color: #F8FAFC; /* Light text for dark mode */
  --text-light: #CBD5E1;
  --bg-color: #050505; /* Pitch black background */
  --bg-light: #111111; /* Slightly lifted dark background */
  --white: #FFFFFF;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 25px -5px rgba(241, 188, 25, 0.15), 0 10px 10px -5px rgba(241, 188, 25, 0.1);
  --border-radius: 40px; /* Heavy maximalist pill rounding */
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
}

h1 {
  font-size: 4.5rem;
  letter-spacing: -2px;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Layout Core */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 14px 0 rgba(55, 71, 79, 0.2);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(55, 71, 79, 0.3);
  color: var(--white);
  background-color: #263238;
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: var(--primary-color);
  box-shadow: 0 4px 14px 0 rgba(241, 188, 25, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-gradient);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(241, 188, 25, 0.4);
  color: var(--primary-color);
}

/* Header & Navigation */
header {
  background-color: var(--white); /* White ensures both dark grey and gold parts of the logo are visible */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: absolute;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: var(--transition);
  border-bottom: none;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: fixed;
  border-bottom: none;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary-color);
}

/* Since logo is attached we can use text fallback for now */
.logo-img {
  height: 40px;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-weight: 800;
  color: var(--brand-color);
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 0; /* Removing padding so items sit flush with borders */
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden; /* Clips the square hover backgrounds to the parent's radius */
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 12px 20px;
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-color);
}

.dropdown-menu li a::after {
  display: none !important;
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--brand-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
  background-image: url('../images/moshi_hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-top: 80px; /* Offset for header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.7); /* Deep dark overlay */
  z-index: 1;
}

.hero .container {
  display: block; /* Removed split grid layout */
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 1000px;
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content h1 span {
  color: var(--secondary-color);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-image {
  display: none; /* Hide the old floating image */
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  background-color: var(--secondary-color);
  padding: 20px 0;
  display: flex;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
}

.marquee-content {
  display: flex;
  animation: marquee 25s linear infinite;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary-color);
  text-transform: uppercase;
}

.marquee-content span {
  padding: 0 50px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.marquee-content span::after {
  content: '✦';
  font-size: 1.5rem;
  color: #000;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Services Overview Maximalist */
.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  font-size: 4rem; /* Giant text */
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 5px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-card {
  background-color: var(--bg-light);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  text-align: left;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05); /* Dark mode border */
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 30px;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--secondary-gradient);
  transition: var(--transition);
  z-index: -1;
  opacity: 0.1;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(241, 188, 25, 0.5);
}

.service-card h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1.1rem;
}

.service-icon {
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.8;
}

/* About Section & Internal Grid Blocks */
.about-grid {
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: center;
  position: relative;
  width: 100%;
  margin-bottom: 120px;
}

.about-grid.reverse {
  flex-direction: row-reverse;
}

.about-grid:last-child {
  margin-bottom: 0;
}

.about-image {
  flex: 1;
  width: 50%;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.9);
  transition: var(--transition);
  width: 100%;
}

.about-text {
  flex: 1;
  width: 50%;
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(20px);
  padding: 60px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 0;
  z-index: 2;
  position: relative;
  box-shadow: var(--shadow);
}

.about-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.about-features {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-icon {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info-item {
  margin-bottom: 30px;
}

.contact-info-item h4 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-item i {
  color: var(--secondary-color);
}

.contact-form {
  background-color: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.contact-form:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.9);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #f1f1f1;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff; /* Explicitly forces text to be white! */
}

.form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(241, 188, 25, 0.15);
  background-color: rgba(0, 0, 0, 0.8);
}

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

/* Page Headers */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 15px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: block;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: block;
  color: var(--white);
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    text-align: center;
    padding: 60px 0;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    transition: var(--transition);
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
