/* ============================================
   ONLY METRIX — Design System
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #2ABFDB;
  --primary-dark: #1A9DB8;
  --primary-light: #E6F7FB;
  --accent: #6C63FF;
  --bg: #FFFFFF;
  --bg-soft: #F4FBFD;
  --bg-hero: #EAF6FA;
  --text-dark: #1A2533;
  --text-body: #4A5568;
  --text-muted: #8A9BAD;
  --border: #D9EDF4;
  --shadow: 0 4px 24px rgba(42, 191, 219, 0.10);
  --shadow-card: 0 2px 16px rgba(26, 37, 51, 0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-btn: 50px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.22s ease;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--text-body); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header p { margin-top: 12px; font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-btn);
  margin-bottom: 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(42, 191, 219, 0.3); }
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--primary); }
.nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none; border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO (Home)
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-content {}
.hero-content .tag { margin-bottom: 20px; }
.hero-title { margin-bottom: 20px; }
.hero-title .highlight {
  color: var(--primary);
  position: relative;
}
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 500;
}
.hero-badge .badge-icon {
  width: 32px; height: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-blob {
  width: 420px; height: 420px;
  background: var(--bg-hero);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-illustration {
  font-size: 8rem;
  user-select: none;
  filter: drop-shadow(0 8px 24px rgba(42, 191, 219, 0.15));
}
.hero-floating {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow-card);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}
.hero-floating:nth-child(2) { top: 40px; right: -10px; animation-delay: 0.5s; }
.hero-floating:nth-child(3) { bottom: 60px; left: -20px; animation-delay: 1s; }
.hero-floating .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }

/* ============================================
   WHY ME
   ============================================ */
.why-me { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-visual {
  display: flex;
  justify-content: center;
}
.why-blob {
  width: 360px; height: 360px;
  background: var(--bg-hero);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
}
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-item {
  display: flex;
  gap: 16px;
}
.why-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.why-item-text h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item-text p { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1A9DB8 100%);
  padding: 60px 0;
}
.cta-banner-inner {
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; }
.btn-white {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.btn-white:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ============================================
   SERVICES PAGE
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: var(--bg-soft);
  text-align: center;
}
.page-hero p { max-width: 600px; margin: 16px auto 0; font-size: 1.05rem; }

.services-detail { background: var(--bg); }
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail-card:last-child { border-bottom: none; }
.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }
.service-detail-visual {
  display: flex;
  justify-content: center;
}
.service-detail-blob {
  width: 300px; height: 300px;
  background: var(--bg-hero);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}
.service-detail-content .tag { margin-bottom: 12px; }
.service-detail-content h2 { font-size: 1.6rem; margin-bottom: 14px; }
.service-detail-content p { margin-bottom: 20px; }
.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.service-feature-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}
.service-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.service-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.about-blob {
  width: 380px; height: 380px;
  background: var(--bg-hero);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem;
  position: relative;
}
.about-stats {
  position: absolute;
  bottom: 10px; right: -10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.about-stats .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.about-stats .stat-label { font-size: 0.75rem; color: var(--text-muted); }
.about-content h1 { margin-bottom: 6px; }
.about-content .subtitle { font-size: 1.1rem; color: var(--primary); font-weight: 600; margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }

/* Timeline */
.timeline { background: var(--bg-soft); }
.timeline-list {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  padding-left: 60px;
  position: relative;
  margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 11px; top: 4px;
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: 1rem; margin-bottom: 4px; }
.timeline-item p { font-size: 0.88rem; color: var(--text-muted); }

/* Skills */
.skills-section { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.skill-pill {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-pill:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(42, 191, 219, 0.1); }
.skill-pill .skill-emoji { font-size: 1.2rem; }

/* Influences */
.influences { background: var(--bg-soft); }
.influences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.influence-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.influence-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.influence-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}
.influence-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.influence-card p { font-size: 0.83rem; color: var(--text-muted); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: var(--bg-soft);
  text-align: center;
}
.contact-section { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.contact-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-item-text .label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-item-text .value { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

/* Form */
.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.form-title { font-size: 1.3rem; margin-bottom: 6px; }
.form-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 191, 219, 0.15);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BAD' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-submit { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; margin-top: 8px; }
.form-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner, .why-grid, .about-hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual, .why-visual, .about-visual { display: none; }
  .service-detail-card { grid-template-columns: 1fr; }
  .service-detail-card.reverse { direction: ltr; }
  .service-detail-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: #fff;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.mt-8 { margin-top: 8px; }
.text-center { text-align: center; }
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
