/* =============================================
   LYNCH DIGITAL – styles.css
   ============================================= */

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

:root {
  --accent: #2563EB;
  --accent-light: #EFF6FF;
  --accent-hover: #1D4ED8;
  --dark: #0F172A;
  --mid: #334155;
  --soft: #64748B;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 40px rgba(15,23,42,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(15,23,42,0.06);
}
/* Nav links white on dark hero, dark once scrolled */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.8); }
.navbar:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.navbar:not(.scrolled) .nav-cta { background: #fff !important; color: var(--accent) !important; }
.navbar:not(.scrolled) .hamburger span { background: #fff; }
.navbar { background: rgba(15,23,42,0.5); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 44px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--dark); background: var(--bg-alt); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mob-link {
  text-decoration: none;
  color: var(--mid);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.mob-link:hover { background: var(--bg-alt); }
.mob-cta {
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  margin-top: 8px;
}

/* ── HERO ── */
.hero-section {
  background: url('gilbert-han-F22PyXpuPwM-unsplash.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 18, 40, 0.88) 0%,
    rgba(15, 30, 70, 0.78) 50%,
    rgba(29, 78, 216, 0.55) 100%
  );
  pointer-events: none;
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-inner { flex: 1; max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 24px;
}
.accent { color: #93C5FD; }
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}
.full-width { width: 100%; }

/* Hero visual cards */
.hero-visual {
  flex: 1;
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-1 { width: 200px; top: 20px; left: 20px; animation: float1 4s ease-in-out infinite; }
.card-2 { width: 170px; bottom: 20px; right: 40px; animation: float2 4s ease-in-out infinite; }
.card-3 {
  width: 130px; top: 50%; right: 10px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px;
  animation: float3 5s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes float3 { 0%,100%{transform:translateY(-50%) translateX(0)} 50%{transform:translateY(calc(-50% - 8px)) translateX(0)} }

.card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-bottom: 12px;
}
.card-dot.green { background: #22C55E; }
.card-dot.blue { background: var(--accent); }
.card-lines { display: flex; flex-direction: column; gap: 8px; }
.card-lines span {
  height: 8px; border-radius: 4px;
  background: var(--border);
  display: block; width: 100%;
}
.card-lines span.short { width: 60%; }
.card-lines span.mid { width: 80%; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 11px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .5px; }

/* ── SECTION SHARED ── */
section { padding: 96px 0; }
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--soft);
  line-height: 1.7;
}
.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── SERVICES ── */
.services {
  background: url('gilbert-han-F22PyXpuPwM-unsplash.jpg') center center / cover no-repeat;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,18,40,0.92) 0%, rgba(15,30,70,0.88) 60%, rgba(29,78,216,0.7) 100%);
  pointer-events: none;
}
.services .container { position: relative; z-index: 1; }
.services .section-header h2 { color: #fff; }
.services .section-header p { color: rgba(255,255,255,0.65); }
.services .section-tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #0A0F1E;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: box-shadow .3s, transform .3s, background .3s;
}
.service-card:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}
.service-card.featured {
  border-color: rgba(147,197,253,0.6);
  background: #0A0F1E;
  box-shadow: 0 0 0 3px rgba(147,197,253,0.2);
}
.service-card h3 { color: #FFFFFF; font-weight: 800; font-size: 21px; letter-spacing: -0.3px; }
.service-card p { color: #FFFFFF; font-weight: 500; font-size: 15.5px; line-height: 1.75; opacity: 1; filter: brightness(1.2); }
.service-list li { color: #FFFFFF; font-weight: 700; font-size: 14.5px; letter-spacing: 0.1px; }
.service-list li::before { color: #93C5FD; }
.service-icon { background: rgba(255,255,255,0.1); color: #93C5FD; }
.service-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 14px;
  border-radius: 100px;
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  color: var(--soft);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 14px;
  color: var(--mid);
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── WHY ── */
.why { background: var(--dark); }
.why .section-header h2 { color: #fff; }
.why .section-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: background .2s;
}
.why-card:hover { background: rgba(255,255,255,0.07); }
.why-icon { font-size: 28px; margin-bottom: 16px; }
.why-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.why-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ── PORTFOLIO ── */
.portfolio { background: var(--bg-alt); }
.portfolio-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.portfolio-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.portfolio-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.portfolio-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.portfolio-item:hover .portfolio-img img { transform: scale(1.03); }
.placeholder-img {
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.placeholder-content {
  text-align: center;
  color: var(--soft);
  padding: 20px;
}
.placeholder-content svg { width: 60px; height: 60px; margin-bottom: 10px; }
.placeholder-content p { font-size: 13px; }
.portfolio-info { padding: 16px 20px; }
.portfolio-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.portfolio-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.portfolio-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 100px;
}
.portfolio-tag.live {
  color: #16A34A;
  background: #DCFCE7;
}
.portfolio-tag.mock {
  color: #92400E;
  background: #FEF3C7;
}
.portfolio-tag.ai {
  color: #5B21B6;
  background: #EDE9FE;
}
.ai-demo-placeholder {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  border-radius: 8px;
}
.ai-demo-icon {
  color: #a5b4fc;
  width: 52px;
  height: 52px;
}
.ai-demo-icon svg { width: 100%; height: 100%; }
.ai-demo-label {
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.portfolio-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 4px 0 8px;
  line-height: 1.5;
}

/* Preview overlay on mock screenshots */
.preview-overlay { position: relative; }
.preview-overlay img { opacity: 0.85; filter: brightness(0.95); }
.preview-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* ── CONTACT ── */
.contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info .section-tag { margin-bottom: 16px; }
.contact-info h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 16px;
  color: var(--soft);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--mid);
  text-decoration: none;
  transition: color .2s;
}
.contact-item:hover { color: var(--accent); }
.contact-icon { font-size: 20px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; }
.form-note {
  font-size: 13px;
  color: var(--soft);
  text-align: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
}
.footer-logo { height: 36px; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.whatsapp-float svg { width: 60px; height: 60px; }
.whatsapp-tooltip {
  position: absolute;
  left: 70px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; left: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left: none;
  border-right-color: var(--dark);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(6px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform .25s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* Pointer cursor on all portfolio images */
.portfolio-img { cursor: pointer; }

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-inner { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { width: 100%; height: 220px; }
  .services-grid,
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid,
  .why-grid,
  .portfolio-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .hero-visual { display: none; }
  section { padding: 72px 0; }
}
