/* ============================================================
   GQMA Landing Page — Style
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --bg-card:   #12121a;
  --bg-hover:  #1a1a26;
  --surface:   #16161f;
  --border:    #1e1e2e;
  --text:      #e4e4ef;
  --text-dim:  #8888a0;
  --accent:    #c2682e;
  --accent-2:  #e07a3a;
  --accent-glow: rgba(224, 122, 58, 0.15);
  --cyan:      #f5a623;
  --radius:    12px;
  --radius-sm: 8px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: #a5b4fc; }

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

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 15, 0.95);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 800; font-size: 1.25rem; color: var(--text);
  letter-spacing: 0.05em;
}
.nav-logo:hover { color: var(--accent-2); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-dim);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 4px 0; transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
#hero-canvas {
  width: 100%; height: 100%; opacity: 0.3;
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 140px 24px 48px;
  max-width: 800px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim); line-height: 1.8;
  max-width: 580px; margin: 0 auto 44px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2); border-color: var(--accent-2); color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent-2);
  background: var(--accent-glow);
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }
.section-label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-2); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-intro {
  font-size: 1.05rem; color: var(--text-dim); line-height: 1.7;
  max-width: 640px; margin-bottom: 56px;
}
.section-intro em { color: var(--text); font-style: italic; }

/* --- Philosophy / About --- */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start;
}
.about-text h2 {
  font-size: 2rem; font-weight: 800; margin-bottom: 28px;
  letter-spacing: -0.02em; line-height: 1.2;
}
.about-text p {
  color: var(--text-dim); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.75;
}
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.highlight-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all var(--transition);
}
.highlight-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.highlight-icon {
  width: 36px; height: 36px; margin-bottom: 16px;
  color: var(--accent-2);
}
.highlight-icon svg { width: 100%; height: 100%; }
.highlight-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 8px;
}
.highlight-card p {
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.6;
}

/* --- Timeline / Background --- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
  display: flex; gap: 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -32px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: all var(--transition);
}
.timeline-item:hover .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-content { flex: 1; }
.timeline-date {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-2); letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.timeline-content h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 4px;
}
.timeline-company {
  font-size: 0.9rem; color: var(--text-dim); margin-bottom: 10px;
  font-weight: 500;
}
.timeline-content p {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.7;
}

/* --- Work / Projects --- */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.work-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.work-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.work-card.work-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(224, 122, 58, 0.04) 100%);
  border-color: rgba(224, 122, 58, 0.2);
}
.work-category {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  color: var(--accent-2); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
}
.work-card h3 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 12px;
}
.work-card p {
  font-size: 0.925rem; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 20px; flex: 1;
}
.work-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tech span {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 500;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.05); color: var(--text-dim);
}
.work-more {
  margin-top: 40px; font-size: 0.95rem; color: var(--text-dim);
  line-height: 1.7; font-style: italic;
  border-top: 1px solid var(--border); padding-top: 32px;
}

/* --- Approach --- */
.approach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  margin-top: 40px;
}
.approach-card {
  padding: 36px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: all var(--transition);
}
.approach-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.approach-num {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  color: var(--accent-2); margin-bottom: 16px;
  opacity: 0.6;
}
.approach-card h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 12px;
}
.approach-card p {
  font-size: 0.925rem; color: var(--text-dim); line-height: 1.7;
}

/* --- Contact --- */
.contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-text {
  font-size: 1.05rem; color: var(--text-dim); margin-bottom: 40px;
  line-height: 1.7;
}
.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-noscript { color: var(--text-dim); font-style: italic; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border); padding: 24px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-weight: 800; font-size: 1rem; color: var(--text-dim); letter-spacing: 0.05em; }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.work-featured { grid-column: span 1; }
  .approach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .about-highlights { grid-template-columns: 1fr; }
  .highlight-card { padding: 24px 16px; }
}
