@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.icon { display: inline-flex; line-height: 0; }
.icon svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon svg,
.lightbox__close .icon svg,
.icon-badge .icon svg { width: 24px; height: 24px; }
.social-icons .icon svg { width: 18px; height: 18px; }
.admin-sidebar__link .icon svg,
.btn .icon svg { width: 18px; height: 18px; }
.icon-badge { display: grid; place-items: center; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #0a0a0a;
  box-shadow: 0 8px 30px -8px rgba(var(--accent-1-rgb), 0.6);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(var(--accent-1-rgb), 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--accent-1); color: var(--accent-1); }

.btn-danger { background: #ef4444; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.brand { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; }
.brand span { color: var(--accent-1); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); transition: color 0.2s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 64px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.social-icons a:hover { color: var(--accent-1); border-color: var(--accent-1); transform: translateY(-2px); }
.footer-copy { color: var(--text-secondary); font-size: 0.85rem; margin-top: 24px; text-align: center; }

/* ---- Hero ---- */
.hero { padding-top: 72px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero__photo-frame {
  position: relative;
  border-radius: 28px;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}
.hero__photo-frame img { border-radius: 24px; width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-elevated); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero .tagline { font-size: 1.15rem; color: var(--text-secondary); max-width: 480px; }
.hero .title-pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--accent-2); margin-bottom: 18px;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo-frame { max-width: 320px; margin: 0 auto; }
}

/* ---- Stats ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 20px; text-align: center;
}
.stat-value { font-family: "Sora", sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 6px; }

@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Card grids (services teaser, services, portfolio, awards) ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.icon-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.icon-card:hover { transform: translateY(-6px); border-color: var(--accent-1); box-shadow: 0 20px 40px -20px rgba(var(--accent-1-rgb), 0.4); }
.icon-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.18), rgba(var(--accent-2-rgb), 0.18));
  color: var(--accent-1); margin-bottom: 16px;
}
.icon-card h3 { font-size: 1.1rem; }
.icon-card .price { color: var(--accent-2); font-weight: 600; margin-top: 12px; display: block; }

/* ---- Featured work / Portfolio grid ---- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.work-card {
  border-radius: 18px; overflow: hidden; background: var(--bg-elevated);
  border: 1px solid var(--border); cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(var(--accent-2-rgb), 0.45); }
.work-card__thumb { overflow: hidden; aspect-ratio: 16/9; }
.work-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-card__thumb img { transform: scale(1.08); }
.work-card__body { padding: 18px 20px; }
.work-card__body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.work-card__body .category-tag { color: var(--accent-1); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.filter-tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s ease;
}
.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active {
  color: #0a0a0a; border-color: transparent;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; background: rgba(5, 4, 3, 0.88);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox__content {
  max-width: 720px; width: 100%; background: var(--bg-elevated); border-radius: 20px;
  overflow: hidden; border: 1px solid var(--border);
}
.lightbox__content img { width: 100%; }
.lightbox__body { padding: 24px; }
.lightbox__close {
  position: absolute; top: 24px; right: 24px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 50%; width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--text-primary);
}

/* ---- Testimonials ---- */
.testimonial-slider { position: relative; max-width: 720px; margin: 0 auto; min-height: 200px; }
.testimonial-card {
  position: absolute; inset: 0; opacity: 0; transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px; padding: 36px;
  text-align: center;
}
.testimonial-card.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.testimonial-card p.quote { font-size: 1.15rem; color: var(--text-primary); font-style: italic; }
.testimonial-card .author { color: var(--accent-2); font-weight: 600; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.testimonial-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border); }
.testimonial-dots button.active { background: var(--accent-1); }

/* ---- Marquee logos ---- */
.marquee__track img { height: 32px; opacity: 0.6; filter: grayscale(1); transition: opacity 0.3s ease, filter 0.3s ease; }
.marquee__track img:hover { opacity: 1; filter: grayscale(0); }

/* ---- Closing CTA ---- */
.cta-banner {
  text-align: center; padding: 72px 32px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.15), rgba(var(--accent-2-rgb), 0.15));
  border: 1px solid var(--border);
}
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ---- About: timeline ---- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 32px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -39px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item .year { color: var(--accent-2); font-weight: 700; font-size: 0.85rem; }
.timeline-item h4 { margin: 4px 0 0; }

/* ---- Skill meters ---- */
.skill-row { margin-bottom: 22px; }
.skill-row__label { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.skill-bar { height: 10px; border-radius: 999px; background: var(--bg-elevated-2); overflow: hidden; }
.skill-bar__fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Awards ---- */
.award-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  display: flex; gap: 20px; align-items: flex-start;
}
.award-card .icon-badge { flex-shrink: 0; }
.award-card .year-tag { color: var(--accent-1); font-weight: 700; font-size: 0.85rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  height: fit-content;
}
.contact-info-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--text-secondary); }
.contact-info-row .icon-badge { width: 40px; height: 40px; border-radius: 10px; }

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(var(--accent-1-rgb), 0.18);
}
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 12px; display: none; }
.form-status.success { display: block; background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.form-status.error { display: block; background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Admin ---- */
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card {
  width: 100%; max-width: 380px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px;
}
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg-elevated); border-right: 1px solid var(--border); padding: 28px 18px; }
.admin-sidebar__link {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  color: var(--text-secondary); font-weight: 600; font-size: 0.92rem; margin-bottom: 4px;
}
.admin-sidebar__link:hover { background: var(--bg-elevated-2); color: var(--text-primary); }
.admin-sidebar__link.active { background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.2), rgba(var(--accent-2-rgb), 0.2)); color: var(--text-primary); }
.admin-main { padding: 36px 40px; max-width: 960px; }
.admin-panel-section { display: none; }
.admin-panel-section.active { display: block; }
.admin-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.admin-card h3 { margin-top: 0; }
.admin-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.admin-list-item:last-child { border-bottom: none; }
.admin-actions { display: flex; gap: 8px; }
.theme-swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.theme-swatch {
  border-radius: 14px; padding: 18px; border: 2px solid var(--border); cursor: pointer; text-align: center;
  font-weight: 600; font-size: 0.85rem;
}
.theme-swatch.selected { border-color: var(--accent-1); }
.theme-swatch .swatch-dot { width: 100%; height: 40px; border-radius: 8px; margin-bottom: 10px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.upload-row { display: flex; align-items: center; gap: 16px; }
.upload-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.badge-credential {
  background: var(--bg-elevated-2); border: 1px dashed var(--accent-2); border-radius: 10px;
  padding: 12px 16px; font-family: monospace; font-size: 0.9rem; margin: 8px 0;
}
.alert-warn {
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.9rem;
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; gap: 6px; padding: 14px; }
  .admin-main { padding: 24px; }
}
