/* ============================================
   Two L Studios — twolstudios.com
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: #4b5563;
  font-size: 1.125rem;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

nav.scrolled {
  border-bottom-color: #e5e7eb;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-content {
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: #111827;
}

.hero p {
  font-size: 1.25rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* --- What We Build --- */
.services {
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  max-width: 500px;
  margin: 1rem auto 0;
}

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

.service-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Featured Project --- */
.featured {
  border-bottom: 1px solid #e5e7eb;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-layout + .featured-layout {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid #e5e7eb;
}

.featured-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.featured-content h2 {
  margin-bottom: 1rem;
}

.featured-content p {
  margin-bottom: 1.5rem;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
}

.featured-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-icon-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.app-icon-img {
  width: 200px;
  height: 200px;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.app-store-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.app-store-link:hover {
  text-decoration: underline;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.project-link-sep {
  color: #d1d5db;
}

.app-store-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: #6b7280;
  padding: 0.5rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.app-store-badge:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* --- About --- */
.about {
  background: #f9fafb;
}

.about-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

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

/* --- Contact --- */
.contact {
  background: #111827;
  color: #ffffff;
}

.contact .section-header h2 {
  color: #ffffff;
}

.contact .section-header p {
  color: #9ca3af;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

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

.submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* --- Footer --- */
footer {
  background: #111827;
  border-top: 1px solid #1f2937;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: #6b7280;
  font-size: 0.85rem;
}

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

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

/* --- Form success --- */
.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-success p {
  color: #9ca3af;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

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

  .featured-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .featured-tags {
    justify-content: center;
  }

  .featured-visual {
    order: -1;
  }

  .app-icon-img {
    width: 160px;
    height: 160px;
    border-radius: 32px;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
}
