/* =========================================================
   Portfolio — dark theme with orange accent
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #161616;
  --bg-alt: #1d1d1d;
  --surface: #232323;
  --border: #2f2f2f;
  --text: #ffffff;
  --text-muted: #9a9a9a;
  --accent: #fd6f00;
  --accent-dark: #e46400;
  --accent-glow: rgba(253, 111, 0, 0.18);

  --radius: 6px;
  --radius-lg: 14px;
  --container: 1180px;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keeps section titles visible under sticky nav */
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 0.55rem 1.4rem; font-size: 0.85rem; }

/* ---------- 4. Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle,
.nav-burger { display: none; }

/* ---------- 5. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 80px);
  padding-block: 3rem;
  position: relative;
}

/* soft orange glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 35%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-greet {
  color: var(--text-muted);
  font-size: 1.15rem;
}
.hero-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: #d6d6d6;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.socials {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid #555;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #bdbdbd;
  transition: var(--transition);
}
.socials a:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.stats {
  display: inline-flex;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.4rem 0.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
  padding-inline: 1.6rem;
}
.stat + .stat { border-left: 1.5px solid #4a4a4a; }
.stat-num {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e0e0e0;
}

/* photo with the big dark circle behind it */
.hero-image {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 520px;
}
.hero-circle {
  position: absolute;
  bottom: 0;
  width: min(440px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #262626;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}
.hero-image img {
  position: relative;
  width: min(380px, 80%);
  filter: grayscale(100%);
}

/* ---------- 6. Shared section styles ---------- */
.section { padding-block: 6rem; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.section-sub { color: var(--text-muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

/* ---------- 7. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}
.service h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.link-more {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}
.link-more i { transition: transform var(--transition); }
.link-more:hover i { transform: translateX(5px); }

/* ---------- 8. About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
/* orange corner accent */
.about-image { position: relative; }
.about-image::before {
  content: "";
  position: absolute;
  inset: -14px auto auto -14px;
  width: 45%;
  height: 45%;
  border-top: 4px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg) 0 0 0;
}

.about-text .lead {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-text .lead { color: #e6e6e6; }
.about-text strong { color: var(--accent); font-weight: 600; }

.skills { margin: 2rem 0 2.5rem; display: grid; gap: 1.2rem; }
.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.skill-bar {
  height: 6px;
  background: #333;
  border-radius: 99px;
  overflow: hidden;
}
.skill-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--accent);
  border-radius: inherit;
}

/* ---------- 9. Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.project-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.5s ease;
}
/* placeholder gradients — swap for screenshots with background-image */
.thumb-1 { background: linear-gradient(135deg, #fd6f00, #7a2f00); }
.thumb-2 { background: linear-gradient(135deg, #3a3a3a, #121212); }
.thumb-3 { background: linear-gradient(135deg, #ff9a3c, #b33c00); }
.thumb-4 { background: linear-gradient(135deg, #2b2b2b, #4a2a12); }
.thumb-5 { background: linear-gradient(135deg, #c85400, #3b1a05); }
.thumb-6 { background: linear-gradient(135deg, #454545, #1a1a1a); }

.project-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transform: translateY(30%);
  opacity: 0;
  transition: var(--transition);
}
.project:hover .project-thumb { transform: scale(1.08); }
.project:hover .project-info { transform: translateY(0); opacity: 1; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 99px;
  padding: 0.1rem 0.7rem;
  margin-bottom: 0.4rem;
}
.project-info h3 { font-size: 1.05rem; font-weight: 600; }

/* ---------- 10. Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial .quote {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.testimonial blockquote {
  color: #cfcfcf;
  font-style: italic;
  margin-bottom: 1.6rem;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.testimonial figcaption > span:last-child { display: flex; flex-direction: column; }
.testimonial small { color: var(--text-muted); }
.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
}

/* ---------- 11. Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  word-break: break-word;
}
.contact-list a:hover { color: var(--accent); }
.ci {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
}

.contact-form { display: grid; gap: 1.2rem; }
.contact-form:hover { transform: none; } /* don't lift the form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  resize: vertical;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn { justify-self: start; }

/* ---------- 12. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer .socials { margin-bottom: 0; }
.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 1rem;
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 992px) {
  .nav-links { gap: 1.5rem; }

  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero { text-align: center; padding-top: 2rem; }
  .hero::before { left: 50%; transform: translateX(-50%); }
  .socials,
  .hero-buttons { justify-content: center; }
  .hero-image { min-height: 420px; order: -1; }

  .about-image { max-width: 380px; margin-inline: auto; }
}

@media (max-width: 768px) {
  /* hamburger menu */
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    order: 3;
  }
  .nav-burger span {
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
  }
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    padding: 2rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* burger → X */
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding-block: 4.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  /* show project captions on touch screens */
  .project-info { transform: none; opacity: 1; }
}

@media (max-width: 480px) {
  .stats { padding: 1rem 0; }
  .stat { padding-inline: 0.9rem; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.75rem; }
  .hero-image { min-height: 340px; }
}

/* ---------- Real photo (non-transparent) in the hero circle ---------- */
.hero-image { place-items: center; }
.hero-image img {
  width: min(440px, 90%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent), 0 20px 60px rgba(0, 0, 0, 0.6);
  filter: none;              /* keep the colour photo */
}
.hero-circle { display: none; }
.about-frame img { filter: none; }

/* single featured project, centred */
.portfolio-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
.portfolio-single .project-info { transform: none; opacity: 1; }
