/* ============================================================
   home.css — Muted dark blue theme
   ============================================================ */

:root {
  /* Blues — desaturated, slate-leaning */
  --primary:           #6b8cba;
  --primary-light:     #88a8d0;
  --primary-dark:      #4f6e96;
  --primary-subtle:    rgba(107,140,186,.1);
  --accent:            #a8c0df;

  /* Backgrounds — clearly different layers, not too dark */
  --bg:                #16202e;   /* base page */
  --bg-alt:            #1c2a3a;   /* slightly lifted (screenshots bg) */
  --surface:           #1f3045;   /* card surface */
  --surface-raised:    #243651;   /* raised elements */

  /* Text */
  --text-primary:      #dce8f5;
  --text-secondary:    #8aaac8;
  --text-muted:        #4e6a88;

  /* Borders */
  --border:            rgba(107,140,186,.16);
  --border-focus:      #6b8cba;

  /* Header */
  --header-bg:         rgba(22,32,46,0.92);
  --header-border:     rgba(107,140,186,.13);
  --logo-color:        #88a8d0;
  --nav-color:         #8aaac8;
  --nav-hover-bg:      rgba(107,140,186,.1);
  --nav-hover-color:   #a8c0df;

  /* Lang switcher */
  --lang-switcher-bg:      rgba(107,140,186,.1);
  --lang-btn-color:        #8aaac8;
  --lang-btn-hover-bg:     rgba(107,140,186,.18);
  --lang-btn-active-bg:    #6b8cba;
  --lang-btn-active-color: #eef4fc;

  /* Footer */
  --footer-bg:         #111825;
  --footer-border:     rgba(107,140,186,.1);
  --footer-color:      #4e6a88;
}

body {
  background: var(--bg);
  color: var(--text-primary);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 6rem;
  background:
    radial-gradient(ellipse 75% 55% at 75% -5%, rgba(107,140,186,.18) 0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at -5% 95%, rgba(79,110,150,.12) 0%, transparent 60%),
    linear-gradient(180deg, #1a2840 0%, #16202e 100%);
  color: #fff;
}

/* subtle grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,140,186,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,140,186,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* glow orb */
.hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  top: -200px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,140,186,.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-greeting {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.hero-name {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #eaf2ff 0%, #a8c0df 50%, #6b8cba 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 300;
  color: rgba(220,232,245,.75);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Hero app icon / logo */
.app-hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(97, 128, 201, 0.4);
  flex-shrink: 0;
  display: block;
}

/* ── About cards ────────────────────────────────────────────── */
.hero-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 860px;
}

.about-card {
  background: rgba(107,140,186,.07);
  border: 1px solid rgba(107,140,186,.18);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.about-card:hover {
  background: rgba(107,140,186,.12);
  border-color: rgba(107,140,186,.32);
}

.about-card-icon {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.about-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.4rem;
}

.about-card-text {
  font-size: 0.875rem;
  color: rgba(220,232,245,.62);
  line-height: 1.65;
}

.about-card-text strong {
  color: rgba(220,232,245,.88);
  font-weight: 500;
}

/* ── CTA button ─────────────────────────────────────────────── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #eef4fc;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(107,140,186,.28);
}

.hero-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,140,186,.4);
}

.hero-cta svg { transition: transform 0.2s ease; }
.hero-cta:hover svg { transform: translateX(3px); }

/* ── LinkedIn button ────────────────────────────────────────── */
.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(107,140,186,.1);
  border: 1px solid rgba(107,140,186,.25);
  color: #eef4fc;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.linkedin-cta:hover {
  background: rgba(107,140,186,.2);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.linkedin-cta svg {
  color: var(--primary-light);
}

/* ── Apps section ───────────────────────────────────────────── */
.section-apps {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #22344e 0%, #2a3f5e 100%);
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ── App Card ───────────────────────────────────────────────── */
.apps-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(107,140,186,.28);
  border-color: rgba(107,140,186,.28);
}

.app-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(107,140,186,.22), rgba(79,110,150,.38));
  border: 1px solid rgba(107,140,186,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.app-card-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.app-card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.app-card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #eef4fc;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-card-link:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.app-card-screenshots {
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 1rem;
  overflow: hidden;
}

.app-card-screenshots .screenshot-thumb {
  width: 90px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 9/19;
}

.app-card-screenshots .screenshot-thumb:first-child {
  transform: rotate(-4deg) translateX(8px);
}

.app-card-screenshots .screenshot-thumb:last-child {
  transform: rotate(4deg) translateX(-8px);
}

.screenshot-placeholder {
  width: 90px;
  aspect-ratio: 9/19;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(107,140,186,.14), rgba(79,110,150,.07));
  border: 1px solid rgba(107,140,186,.14);
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 5rem 1.5rem 4rem; }
  .hero-about { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; }
  .app-card-screenshots {
    padding: 1.5rem;
    order: -1;
    min-height: 180px;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
  .app-card-content { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem 1rem 3rem; }
  .section-apps { padding: 3rem 1rem; }
}

/* ── Contact section ────────────────────────────────────────── */
.section-contact {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #16202e 0%, #1a2840 100%);
}

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

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-field input,
.contact-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(107,140,186,.15);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-muted);
}

/* CAPTCHA row */
.contact-captcha-row {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.contact-captcha-images {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.captcha-img {
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  cursor: pointer;
  height: 52px;
  width: 160px;
}

.captcha-refresh {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 0.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.captcha-refresh:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.contact-captcha-field {
  flex: 1;
  margin-bottom: 0;
}

/* Messages */
.contact-msg {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-msg--ok {
  background: rgba(80, 180, 120, .12);
  border: 1px solid rgba(80, 180, 120, .3);
  color: #7dd9a8;
}

.contact-msg--err {
  background: rgba(220, 80, 80, .1);
  border: 1px solid rgba(220, 80, 80, .28);
  color: #f09090;
}

/* Submit button */
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #eef4fc;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(107,140,186,.28);
}

.contact-submit:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,140,186,.4);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-submit-loading {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(238,244,252,.3);
  border-top-color: #eef4fc;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact-submit[data-loading] .contact-submit-label { display: none; }
.contact-submit[data-loading] .contact-submit-loading { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; }
  .contact-captcha-row { flex-direction: column; align-items: flex-start; }
  .contact-captcha-field { width: 100%; }
  .section-contact { padding: 3rem 1rem; }
}
