/* Material Design Blue Color Palette */
:root {
  --blue-50: #e3f2fd;
  --blue-100: #bbdefb;
  --blue-200: #90caf9;
  --blue-300: #64b5f6;
  --blue-400: #42a5f5;
  --blue-500: #2196f3;
  --blue-600: #1e88e5;
  --blue-700: #1976d2;
  --blue-800: #1565c0;
  --blue-900: #0d47a1;
  --blue-A100: #82b1ff;
  --blue-A200: #448aff;
  --blue-A400: #2979ff;
  --blue-A700: #2962ff;

  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  --shadow-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  --shadow-4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  --shadow-5: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2);
  z-index: 1000;
  border-bottom: 2px solid #e0e0e0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 100%;
  width: auto;
  max-width: 400px;
  object-fit: contain;
}

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

.nav-link {
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #34495e;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #34495e;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #1a1a2e;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-flame {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.flame-bg {
  height: 100%;
  width: auto;
  max-width: 100vw;
  opacity: 0.15;
  object-fit: contain;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section {
  padding: 5rem 2rem;
  position: relative;
  background: #ffffff;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2c3e50, #34495e, #1a1a2e);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.section-title {
  font-size: 2.5rem;
  color: #1a1a2e;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Content Cards with Layering */
.content-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  border: 1px solid #e0e0e0;
  position: relative;
  margin-bottom: 2rem;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Apps Section */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.app-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.app-item:hover {
  transform: translateY(-2px);
}

.app-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.ihbmr-logo {
  max-width: 220px;
}

.app-name {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.app-partnership {
  font-size: 0.9rem;
  color: #34495e;
  font-style: italic;
  margin-top: 0.5rem;
}

.app-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Books Section */
.coming-soon-text {
  text-align: center;
  font-size: 1.2rem;
  color: #34495e;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.books-placeholder {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem 0;
}

.book-silhouette {
  width: 80px;
  height: 120px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 4px;
  position: relative;
  box-shadow: var(--shadow-2);
}

.book-silhouette:nth-child(1) {
  height: 110px;
  transform: rotate(-2deg);
}

.book-silhouette:nth-child(2) {
  height: 120px;
  transform: rotate(1deg);
}

.book-silhouette:nth-child(3) {
  height: 115px;
  transform: rotate(-1deg);
}

.book-silhouette::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, transparent 20%);
  border-radius: 4px;
}

/* Contact Form */
.contact-form {
  margin-top: 2rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #34495e;
  box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1);
}

/* Honeypot field - completely hidden */
.form-group.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.form-group.honeypot label,
.form-group.honeypot input {
  display: none !important;
}

.submit-btn {
  background: linear-gradient(135deg, #2c3e50, #1a1a2e);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-2);
  border: 2px solid #1a1a2e;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 2px solid #ef5350;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e, #0f1419);
  color: white;
  padding: 2rem;
  text-align: center;
  border-top: 3px solid #2c3e50;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
  margin: 0;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-3);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .content-card {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .nav-logo {
    height: 60px;
  }

  .nav-logo img {
    max-width: 250px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .app-logo {
    max-width: 150px;
  }

  .books-placeholder {
    gap: 1rem;
  }

  .book-silhouette {
    width: 60px;
    height: 90px;
  }

  .book-silhouette:nth-child(1) {
    height: 85px;
  }

  .book-silhouette:nth-child(2) {
    height: 90px;
  }

  .book-silhouette:nth-child(3) {
    height: 88px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .content-card {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* Additional layering effects for depth */
.about .content-card {
  background: #ffffff;
}

.apps .content-card {
  background: #ffffff;
}

.books .content-card {
  background: #ffffff;
}

.contact .content-card {
  background: #ffffff;
}
