/* Phomi Complete Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f7fafc;
  --gray-400: #cbd5e0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.5s ease;
}

header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: #2c0204;
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
  transform: translateX(-50%);
}

nav a:hover::after { width: 80%; }

.cta-button {
  padding: 0.625rem 1.5rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-button:hover {
  background: var(--gray-800);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  nav { display: none; }
  .mobile-menu-btn { display: block; }
  .cta-button { display: none; }
  #mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1.5rem 1.25rem;
    background: #fff;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
  }
  #mobile-menu.active { display: flex; }
  /* Give the header a solid backdrop while the mobile menu is open */
  #header:has(#mobile-menu.active) {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  }
  #mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: white;
  padding: 8rem 1.5rem 5rem;
}

.hero-content {
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: black;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-title .gray { color: var(--gray-400); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.hero-image-container {
  position: relative;
  background: linear-gradient(to right, white, white, black);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  margin-bottom: 3rem;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-gradient-right {
  position: absolute;
  inset: 0 0 0 auto;
  width: 33.333%;
  background: linear-gradient(to left, black, rgba(0,0,0,0.7), transparent);
}

.hero-gradient-bottom {
  position: absolute;
  inset: auto 0 0;
  height: 6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
}

.hero-label {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  background: black;
  color: white;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.btn-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}

.btn-primary {
  background: black;
  color: white;
}

.btn-primary:hover {
  background: var(--gray-900);
  transform: scale(1.05);
}

.btn-secondary {
  border: 2px solid black;
  background: white;
  color: black;
}

.btn-secondary:hover {
  background: black;
  color: white;
}

.download-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-download {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--gray-400);
  color: black;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-download:hover { border-color: black; }

/* Gallery */
.gallery-section {
  max-width: 1400px;
  margin: 0 auto 5rem;
}

.gallery-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}

.gallery-subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 2px solid var(--gray-400);
  transition: all 0.5s;
}

.gallery-item:hover { border-color: black; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: white;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 2rem;
  border: 2px solid black;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Sections */
section { padding: 5rem 1.5rem; }

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Card */
.card {
  background: white;
  border: 2px solid var(--gray-400);
  transition: all 0.5s;
  overflow: hidden;
}

.card:hover {
  border-color: black;
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.card-image {
  overflow: hidden;
  background: var(--gray-100);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.card:hover .card-image img { transform: scale(1.1); }

/* Footer */
footer {
  background: black;
  color: white;
  padding: 5rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-contact {
  border-top: 1px solid var(--gray-800);
  padding-top: 3rem;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover { color: var(--gray-400); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

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

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

.card:hover .app-overlay { transform: translateY(0); }

@media (max-width: 768px) {
  section { padding: 3rem 1rem; }
  
  /* Contact page mobile responsiveness */
  .section-container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Stack form fields on mobile */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Product Cards */
.product-card {
  background: white;
  border: 2px solid #e5e7eb;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: black;
  transform: scale(1.05);
}


/* Phomi logo images */
.logo img { height: 48px; width: auto; display: block; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; display: block; }
