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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f4;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-400: #aaaaaa;
  --gray-500: #888888;
  --gray-600: #666666;
  --gray-700: #444444;
  --green: #22c55e;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem max(2.5rem, calc(50% - 550px + 2.5rem));
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  z-index: 100;
}
.nav-logo { font-weight: 600; font-size: 0.95rem; color: var(--black); letter-spacing: -0.2px; text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--gray-600); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-cta {
  background: var(--black); color: var(--white);
  padding: 0.45rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: #333; }
.hamburger { display: none; cursor: pointer; border: none; background: none; font-size: 1.3rem; color: var(--black); }
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 0.5rem 0;
}
.mobile-menu a { padding: 0.8rem 2.5rem; color: var(--gray-600); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid var(--gray-100); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { font-weight: 600; color: var(--black); }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center;
}
.avail-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--gray-200); border-radius: 20px;
  padding: 0.3rem 0.85rem; font-size: 0.75rem; color: var(--gray-500);
  margin-bottom: 1.8rem;
}
.green-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

h1.headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 5.5vw, 4.2rem);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -1.5px; margin-bottom: 1.2rem;
}
h1.headline em { font-style: italic; color: var(--gray-500); }

.hero-desc { color: var(--gray-600); font-size: 0.95rem; line-height: 1.75; max-width: 430px; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.btn-dark { background: var(--black); color: var(--white); padding: 0.6rem 1.3rem; border-radius: var(--radius-sm); font-size: 0.83rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: background 0.15s; }
.btn-dark:hover { background: #333; }
.btn-outline { border: 1px solid var(--gray-300); color: var(--black); padding: 0.6rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.83rem; font-weight: 400; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; transition: border-color 0.15s; }
.btn-outline:hover { border-color: var(--gray-500); }
.btn-icon { border: 1px solid var(--gray-300); color: var(--black); padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.83rem; text-decoration: none; display: inline-flex; align-items: center; transition: border-color 0.15s; }
.btn-icon:hover { border-color: var(--gray-500); }

.hero-right { display: flex; flex-direction: column; gap: 1rem; }
.stat-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 1.4rem; background: var(--gray-50); }
.stat-card.dark { background: var(--black); border-color: var(--black); }
.stat-num { font-family: 'Instrument Serif', serif; font-size: 2.6rem; font-weight: 400; color: var(--black); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.3rem; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.haqikos-name { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem; }
.haqikos-desc { font-size: 0.78rem; color: var(--gray-400); line-height: 1.5; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--gray-200); }

/* ── SECTIONS ── */
.section { padding: 4rem 2.5rem; max-width: 1100px; margin: 0 auto; }
.eyebrow { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-400); font-weight: 500; margin-bottom: 0.5rem; }
.section-title { font-family: 'Instrument Serif', serif; font-size: 2.2rem; font-weight: 400; letter-spacing: -0.5px; margin-bottom: 2.5rem; }
.section-title em { font-style: italic; color: var(--gray-500); }

/* ── ROLES ── */
.roles-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.role-tag { border: 1px solid var(--gray-200); border-radius: 20px; padding: 0.32rem 0.85rem; font-size: 0.77rem; color: var(--gray-600); background: var(--gray-50); }

/* ── ABOUT GRID ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.about-item { border-top: 2px solid var(--black); padding-top: 1.2rem; }
.about-item h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.about-item p { font-size: 0.83rem; color: var(--gray-600); line-height: 1.65; }

/* ── PROJECTS ── */
.project-row {
  display: grid; grid-template-columns: 40px 1fr 24px;
  gap: 1.5rem; align-items: start;
  padding: 1.8rem 0; border-top: 1px solid var(--gray-200);
  cursor: pointer; transition: background 0.15s; border-radius: 4px;
  text-decoration: none; color: inherit;
}
.project-row:last-child { border-bottom: 1px solid var(--gray-200); }
.project-row:hover .proj-arrow { color: var(--black); transform: translateX(3px); }
.proj-num { font-family: 'Instrument Serif', serif; font-size: 1rem; color: var(--gray-300); padding-top: 2px; }
.proj-name { font-size: 0.97rem; font-weight: 600; margin-bottom: 0.35rem; }
.proj-desc { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 0.8rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj-tag { font-size: 0.69rem; background: var(--gray-100); color: var(--gray-500); padding: 0.2rem 0.6rem; border-radius: 4px; }
.proj-arrow { color: var(--gray-300); font-size: 1rem; align-self: center; transition: all 0.2s; }

/* ── SKILLS ── */
.skills-wrap { background: var(--gray-50); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 1100px; margin: 0 auto; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; margin-top: 2rem; }
.skill-cell { background: var(--white); padding: 1.2rem 0.8rem; text-align: center; }
.skill-icon { font-size: 1.3rem; margin-bottom: 0.4rem; }
.skill-name { font-size: 0.77rem; font-weight: 500; color: var(--gray-700); }
.skill-cat { font-size: 0.66rem; color: var(--gray-400); margin-top: 2px; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.service-cell { background: var(--white); padding: 2rem 1.5rem; }
.service-icon { font-size: 1.4rem; margin-bottom: 1rem; }
.service-name { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-desc { font-size: 0.8rem; color: var(--gray-600); line-height: 1.6; }
.service-price { margin-top: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--black); }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 1.5rem; background: var(--gray-50); }
.t-quote { font-size: 0.83rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 1.2rem; font-style: italic; }
.t-author { display: flex; align-items: center; gap: 0.7rem; }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 600; color: var(--white); flex-shrink: 0; }
.t-name { font-size: 0.82rem; font-weight: 600; color: var(--black); }
.t-role { font-size: 0.73rem; color: var(--gray-500); }

/* ── CONTACT ── */
.contact-section {
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 3.5rem; margin: 0 auto; max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.contact-left h2 { font-family: 'Instrument Serif', serif; font-size: 2rem; font-weight: 400; letter-spacing: -0.5px; margin-bottom: 0.6rem; }
.contact-left p { font-size: 0.87rem; color: var(--gray-600); max-width: 380px; line-height: 1.7; }
.contact-right { display: flex; flex-direction: column; gap: 0.6rem; min-width: 240px; }
.contact-link { display: flex; align-items: center; gap: 0.6rem; font-size: 0.83rem; color: var(--gray-500); text-decoration: none; transition: color 0.15s; }
.contact-link:hover { color: var(--black); }
.contact-link i { font-size: 16px; flex-shrink: 0; }
.contact-email-btn { margin-top: 0.5rem; background: var(--black); color: var(--white); padding: 0.7rem 1.4rem; border-radius: var(--radius-sm); font-size: 0.83rem; font-weight: 500; text-decoration: none; text-align: center; transition: background 0.15s; }
.contact-email-btn:hover { background: #333; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: var(--white);
  margin-top: auto;
}
.footer-top {
  max-width: 1100px; margin: 0 auto;
  padding: 3.5rem 2.5rem 2.5rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {}
.footer-logo { font-weight: 600; font-size: 1rem; color: var(--white); margin-bottom: 0.8rem; }
.footer-tagline { font-size: 0.82rem; color: #888; line-height: 1.65; max-width: 220px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 34px; height: 34px; border: 1px solid #333;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #888; text-decoration: none; font-size: 15px;
  transition: all 0.15s;
}
.social-btn:hover { border-color: #666; color: var(--white); }

.footer-col h4 { font-size: 0.78rem; font-weight: 600; color: var(--white); letter-spacing: 0.5px; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.8rem; color: #888; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }

.footer-divider { height: 1px; background: #1a1a1a; margin: 0 auto; max-width: 1100px; }

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.77rem; color: #555; }
.footer-copy span { color: #888; }
.footer-badges { display: flex; gap: 0.5rem; }
.badge {
  font-size: 0.68rem; padding: 0.25rem 0.65rem;
  border: 1px solid #2a2a2a; border-radius: 4px; color: #555;
}
.badge.available { border-color: #1a3a1a; color: #22c55e; background: rgba(34,197,94,0.05); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.75rem; color: #555; text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: #888; }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  background: var(--black); color: var(--white);
  border: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; opacity: 0; transition: opacity 0.3s;
  z-index: 99;
}
.scroll-top.visible { opacity: 1; }
.scroll-top:hover { background: #333; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.2rem 2.5rem; }
  .hero-right { order: -1; }
  h1.headline { font-size: 2.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-row { grid-template-columns: 32px 1fr 20px; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .skills-wrap { margin: 0 1.2rem; padding: 1.5rem; }
  .contact-section { padding: 2rem 1.5rem; margin: 0 1.2rem; flex-direction: column; }
  .section { padding: 3rem 1.2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 1.2rem 2rem; }
  .footer-bottom { padding: 1.2rem 1.2rem; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .footer-divider { margin: 0 1.2rem; }
}
