/* ── Variables ── */
:root {
  --teal:        #00695C;
  --teal-dark:   #004D40;
  --teal-light:  #E0F2F1;
  --accent:      #FFB300;
  --accent-light:#FFF8E1;
  --black:       #0A0A0A;
  --grey-dark:   #1C1C1C;
  --grey-mid:    #6B6B6B;
  --grey-light:  #F5F5F5;
  --border:      #E8E8E8;
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 56px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul a {
  color: var(--grey-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--black); }

.btn-nav {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.btn-nav:hover { opacity: 0.8; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.8; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  color: var(--black);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--black);
  background: var(--grey-light);
}

/* ── Pill ── */
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.hero-content h1 .accent {
  color: var(--teal);
  position: relative;
  display: inline-block;
}

.hero-content h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--grey-mid);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Hero Visual ── */
.hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 320px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card:nth-child(2) { margin-left: 3rem; }
.service-card:nth-child(3) { margin-left: 1.5rem; }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.icon-apps    { background: var(--teal-light); }
.icon-web     { background: var(--accent-light); }
.icon-service { background: #F3E5F5; }

.card-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
}

.card-sub {
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-top: 0.15rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.service-card:nth-child(1) { animation: float 4s ease-in-out infinite; }
.service-card:nth-child(2) { animation: float 4s ease-in-out 0.8s infinite; }
.service-card:nth-child(3) { animation: float 4s ease-in-out 1.6s infinite; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Sections ── */
.work, .contact {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.section-header p {
  color: var(--grey-mid);
  font-size: 1.05rem;
  max-width: 480px;
}

/* ── Projects Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.project-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.project-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.img-mazing      { background: linear-gradient(135deg, #0A0A0A 0%, #1C1C1C 100%); }
.img-foodpassport { background: linear-gradient(135deg, #004D40 0%, #00695C 100%); display: flex; align-items: center; justify-content: center; }

.project-logo { width: 200px; height: auto; border-radius: 0; }
.project-emoji { font-size: 4rem; }

.project-info { padding: 1.5rem; }

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.project-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.project-info p {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-link {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.7; }

.project-card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  min-height: 300px;
  background: var(--grey-light);
}

.project-cta-inner { text-align: center; padding: 2rem; }

.cta-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.project-cta-inner h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.project-cta-inner p {
  color: var(--grey-mid);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── Contact ── */
.contact { background: var(--grey-light); }

.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form input,
.contact-form textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #BDBDBD; }

.contact-form input:disabled,
.contact-form textarea:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,105,92,0.08);
}

.contact-form .btn-primary { align-self: flex-start; }

.form-feedback { font-size: 0.9rem; min-height: 1.2em; }
.feedback-success { color: var(--teal); }
.feedback-error   { color: #C62828; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .logo-img { height: 28px; }

footer p {
  color: var(--grey-mid);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1rem; }
  nav ul { gap: 1rem; }
  nav ul a { font-size: 0.85rem; }

  .hero {
    flex-direction: column;
    padding-top: 7rem;
    gap: 3rem;
  }

  .hero-visual { width: 100%; }

  .service-card:nth-child(2),
  .service-card:nth-child(3) { margin-left: 0; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
