/* =========================================
   Dream App Maker — Main Stylesheet
   ========================================= */

:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --primary-light: #e0e7ff;
  --secondary:     #8b5cf6;
  --accent:        #06b6d4;
  --success:       #10b981;
  --warning:       #f59e0b;

  --bg:        #f8fafc;
  --surface:   #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;

  --text-1: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;

  --border: #e2e8f0;

  --sh-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --sh:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --sh-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --sh-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.06);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --ease: 200ms ease;
  --ease-slow: 350ms ease;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-1); line-height: 1.2; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ---- Bootstrap overrides ---- */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  font-weight: 600;
}

/* =========================================
   NAVBAR
   ========================================= */
.dam-navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
  padding: .75rem 0;
}
.dam-navbar.scrolled { box-shadow: var(--sh); }

.dam-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-1) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dam-logo img { border-radius: 6px; }

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2) !important;
  padding: .45rem .9rem !important;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.nav-link.active { color: var(--primary) !important; background: var(--primary-light); }

.lang-btn {
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
  border-radius: var(--r-full);
  padding: .35rem .85rem;
  transition: border-color var(--ease);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* =========================================
   HERO
   ========================================= */
.hero-section {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #06b6d4 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='3' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 500px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; }

.hero-actions .btn-light {
  font-weight: 700;
  padding: .75rem 1.75rem;
  border-radius: var(--r-full);
  color: var(--primary-dark);
  border: none;
  box-shadow: var(--sh-lg);
  transition: transform var(--ease), box-shadow var(--ease);
}
.hero-actions .btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-xl); }

.hero-actions .btn-outline-light {
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: var(--r-full);
  border: 2px solid rgba(255,255,255,.45);
  color: white;
  background: transparent;
  transition: background var(--ease), border-color var(--ease);
}
.hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  border-color: white;
  color: white;
}

/* Floating app cards in hero */
.hero-visual { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }

.hero-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 380px;
}

.hero-app-tile {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  padding: 1.1rem .875rem;
  text-align: center;
  color: white;
  animation: heroFloat 3s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  cursor: default;
  transition: transform var(--ease), background var(--ease);
}
.hero-app-tile:hover { background: rgba(255,255,255,.25); transform: translateY(-4px) scale(1.05); }
.hero-app-tile .tile-emoji { font-size: 2rem; display: block; margin-bottom: .4rem; }
.hero-app-tile .tile-name { font-size: .7rem; font-weight: 600; opacity: .9; line-height: 1.2; }

@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: .78rem;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  border-right: 1px solid var(--border);
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }

.section-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .4rem;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .6rem;
}

.section-subtitle {
  font-size: .975rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0;
}

.view-all-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap var(--ease), color var(--ease);
}
.view-all-link:hover { color: var(--primary-dark); gap: 8px; }

/* =========================================
   APP CARDS
   ========================================= */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease-slow), box-shadow var(--ease-slow), border-color var(--ease-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-xl);
  border-color: transparent;
}

.app-card-cover {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.app-card-cover-placeholder {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ddd6fe 100%);
}

.app-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card-category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  display: inline-block;
  margin-bottom: .6rem;
}

.app-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.app-card-desc {
  font-size: .845rem;
  color: var(--text-2);
  margin-bottom: 1.1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-actions { display: flex; gap: .5rem; }

.app-card-actions .btn {
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .875rem;
  border-radius: var(--r-full);
}

/* =========================================
   GAME CARDS
   ========================================= */
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease-slow), box-shadow var(--ease-slow), border-color var(--ease-slow);
  height: 100%;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--sh-xl); border-color: transparent; }

.game-thumb { position: relative; overflow: hidden; }

.game-thumb img,
.game-thumb-placeholder {
  width: 100%;
  height: 195px;
  object-fit: cover;
}

.game-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.game-thumb-placeholder.sports  { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.game-thumb-placeholder.strategy{ background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.game-thumb-placeholder.puzzle  { background: linear-gradient(135deg, #ecfdf5, #bbf7d0); }
.game-thumb-placeholder.adventure{background: linear-gradient(135deg, #eff6ff, #bfdbfe); }

.game-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}
.game-card:hover .game-play-overlay { opacity: 1; }

.play-circle {
  width: 62px; height: 62px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  box-shadow: var(--sh-xl);
  transition: transform var(--ease);
}
.game-card:hover .play-circle { transform: scale(1.12); }

.game-card-body { padding: 1.25rem; }

.game-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }

.game-card-desc {
  font-size: .845rem;
  color: var(--text-2);
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coming-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--warning);
  background: #fef3c7;
  padding: 4px 11px;
  border-radius: var(--r-full);
}

/* =========================================
   CATEGORY BADGES
   ========================================= */
.badge-business        { background: #dbeafe; color: #1d4ed8; }
.badge-personalization { background: #fce7f3; color: #be185d; }
.badge-finance         { background: #dcfce7; color: #15803d; }
.badge-education       { background: #fef9c3; color: #854d0e; }
.badge-food            { background: #ffedd5; color: #c2410c; }
.badge-marketing       { background: #f3e8ff; color: #7e22ce; }
.badge-transport       { background: #e0f2fe; color: #075985; }
.badge-puzzle          { background: #f0fdf4; color: #166534; }
.badge-sports          { background: #fff7ed; color: #9a3412; }
.badge-strategy        { background: #faf5ff; color: #6b21a8; }
.badge-adventure       { background: #eff6ff; color: #1e40af; }

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-visual {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='3' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
}
.about-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 12px;
  margin-bottom: 1.5rem;
  position: relative;
}
.about-icon-item {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--sh-lg);
}
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .7rem 1rem;
  font-size: .9rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-label { font-size: .845rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 4rem 0 3rem;
  color: white;
}
.page-hero h1 { color: white; font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: .975rem; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-item a:hover { color: white; }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }

/* =========================================
   APP / GAME DETAIL PAGES
   ========================================= */
.app-detail-icon {
  width: 90px; height: 90px;
  border-radius: var(--r-lg);
  font-size: 3rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-lg);
  flex-shrink: 0;
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a2e;
  color: white;
  padding: .7rem 1.4rem;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.play-store-btn:hover { background: #0f0f1a; color: white; transform: translateY(-2px); box-shadow: var(--sh-lg); }
.play-store-btn .ps-label  { font-size: .62rem; display: block; opacity: .65; text-transform: uppercase; letter-spacing: .06em; }
.play-store-btn .ps-store  { font-size: .975rem; font-weight: 700; display: block; }

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: .75rem;
}
.feature-icon-box {
  width: 42px; height: 42px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.feature-row h6 { font-size: .9rem; font-weight: 700; margin-bottom: 0; }

.policy-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.policy-links a {
  font-size: .84rem;
  color: var(--text-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--ease);
}
.policy-links a:hover { color: var(--primary); }

/* Game frame */
.game-frame-container {
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.game-frame-container iframe {
  width: 100%; border: none; display: block;
}
.game-coming-soon-box {
  min-height: 420px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 2px dashed var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem;
}

/* =========================================
   LEGAL PAGES (privacy/terms)
   ========================================= */
.legal-content h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: .5rem; }
.legal-content p  { color: var(--text-2); font-size: .94rem; margin-bottom: .9rem; }
.legal-content ul { color: var(--text-2); font-size: .94rem; padding-left: 1.5rem; margin-bottom: .9rem; }

/* =========================================
   FILTER TABS
   ========================================= */
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }

.filter-btn {
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.filter-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.65);
  padding: 4rem 0 2rem;
}
.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .9rem;
}
.footer-logo img { border-radius: 6px; }
.footer-tagline { font-size: .87rem; color: rgba(255,255,255,.45); margin-bottom: 1.4rem; }
.footer-social a {
  color: rgba(255,255,255,.45);
  font-size: 1.15rem;
  margin-right: 1rem;
  text-decoration: none;
  transition: color var(--ease);
}
.footer-social a:hover { color: white; }
.footer-heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: .875rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .875rem; transition: color var(--ease); }
.footer-links a:hover { color: white; }
.footer-divider { border-top: 1px solid rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }
.footer-copyright { font-size: .78rem; color: rgba(255,255,255,.3); }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991.98px) {
  .hero-section { min-height: 72vh; }
  .section { padding: 3.5rem 0; }
  .stat-divider { border-right: none; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 65vh; }
  .section { padding: 3rem 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .contact-form-wrap { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
  .hero-app-grid { grid-template-columns: repeat(2, 1fr); max-width: 260px; }
}
