/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0e0e0e;
  --bg2:       #141414;
  --card-bg:   #1a1a1a;
  --orange:    #e8500a;
  --orange-lt: #ff6822;
  --white:     #f0f0f0;
  --grey:      #888;
  --border:    rgba(255,255,255,0.08);
  --radius:    14px;
  --transition: 0.32s cubic-bezier(.4,0,.2,1);
  --font-body:    'Poppins', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
strong { color: var(--white); font-weight: 600; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ─── BUTTONS ─── */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  padding: 11px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-orange:hover {
  background: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,80,10,.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 11px 28px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.section-header p { color: var(--grey); font-size: 14px; max-width: 540px; margin: 0 auto; }

/* ──────────────────────────────────────────────────
   NAVBAR
────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 60px;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
}
#navbar.scrolled { padding: 12px 60px; }

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--orange);
  letter-spacing: 3px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--grey);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

/* ──────────────────────────────────────────────────
   HERO
────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.hero-text { flex: 1; animation: fadeUp .8s ease both; }

.greeting { font-size: 14px; color: var(--grey); display: block; margin-bottom: 2px; }

.name {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--orange);
  letter-spacing: 1px;
  line-height: 1.05;
  margin-bottom: 22px;
}

/* Tech tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tech-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid rgba(232,80,10,0.35);
  border-radius: 20px;
  color: var(--orange);
  background: rgba(232,80,10,0.07);
}

/* Socials */
.socials { display: flex; gap: 10px; margin-bottom: 26px; }
.socials a {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }

.hero-btns { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }

/* Stats */
.stats { display: flex; align-items: center; }
.stat { padding: 0 28px 0 0; }
.stat:first-child { padding-left: 0; }
.stat-num { display: block; font-size: 1.9rem; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--grey); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); margin-right: 28px; }

/* Hero photo */
.hero-photo {
  flex-shrink: 0;
  position: relative;
  width: 380px;
  height: 380px;
  animation: fadeUp .8s .2s ease both;
}
.circle-bg {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #252525 55%, #111 100%);
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: stretch;
  border-radius: 50%;
  /* filter: grayscale(100%) contrast(1.1); */
  z-index: 1;
}

.hero-badge {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(232,80,10,.4);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px #4caf50;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ──────────────────────────────────────────────────
   SERVICES
────────────────────────────────────────────────── */
.services { padding: 100px 60px; background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

.service-icon {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  color: var(--orange);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 10px;
}
.service-card p { font-size: 13px; color: var(--grey); line-height: 1.65; margin-bottom: 16px; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags li {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(232,80,10,0.1);
  color: var(--orange);
  border: 1px solid rgba(232,80,10,0.2);
}

/* ──────────────────────────────────────────────────
   ABOUT
────────────────────────────────────────────────── */
.about { padding: 100px 60px; }

.about-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 72px;
}

.about-photo {
  flex-shrink: 0;
  position: relative;
  width: 300px;
  height: 380px;
}
.about-circle-bg {
  position: absolute;
  bottom: 0; left: 0;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--card-bg);
}
.about-photo img {
  position: absolute;
  bottom: 0; left: 20px;
  width: 260px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  /* filter: grayscale(100%) contrast(1.05); */
  z-index: 1;
}

.about-text { flex: 1; }
.about-text p { font-size: 14px; color: var(--grey); line-height: 1.8; margin-bottom: 16px; }

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 28px;
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--grey);
}
.detail-item svg { flex-shrink: 0; color: var(--orange); }

/* Skill Rings */
.skills-bar-grid {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.skill-ring {
  position: relative;
  width: 100px;
  text-align: center;
}
.skill-ring svg { width: 100px; height: 100px; transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: #222; stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round;
             stroke-dasharray: 314 314; stroke-dashoffset: 314;
             transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1); }

.ring-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
}
.ring-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  font-family: var(--font-body);
}

.ring-pct  { font-size: 13px; font-weight: 700; color: var(--white); margin-top: 8px; }
.ring-label { font-size: 11px; color: var(--grey); }

/* Timeline */
.timeline-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  flex-shrink: 0;
}

.tl-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 22px 24px;
}
.tl-date  { font-size: 12px; color: var(--orange); font-weight: 500; margin-bottom: 6px; }
.tl-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tl-place { font-size: 13px; color: var(--grey); margin-bottom: 12px; }
.tl-list  { padding-left: 16px; list-style: disc; }
.tl-list li { font-size: 13px; color: var(--grey); margin-bottom: 6px; line-height: 1.6; }

/* ──────────────────────────────────────────────────
   PORTFOLIO
────────────────────────────────────────────────── */
.portfolio { padding: 100px 60px; background: var(--bg2); }

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  color: var(--grey);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 8px 22px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(232,80,10,.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.port-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.port-card:hover { transform: translateY(-6px); }
.port-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  filter: brightness(0.65);
}
.port-card:hover img { transform: scale(1.07); }

.port-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.port-card:hover .port-overlay { opacity: 1; }
.port-name { font-weight: 600; font-size: 14px; }
.port-cat  { font-size: 12px; color: var(--orange); margin-top: 3px; }

/* ──────────────────────────────────────────────────
   PROJECT CAROUSEL
────────────────────────────────────────────────── */
.project-carousel .carousel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}
.carousel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 16px;
}
.carousel-card h3 {
  margin: 0;
  color: var(--orange);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.carousel-card p {
  color: var(--grey);
  font-size: 13px;
  margin-bottom: 10px;
}
.carousel-card p a { color: var(--orange); font-weight: 600; }
.project-slider {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
}
.project-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.project-slide.active {
  opacity: 1;
  z-index: 2;
}
.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Phone layout (portrait mobile apps) */
.project-slider.phone-layout {
  width: 140px;
  height: 280px;
  margin: 0 auto;
  border-radius: 20px;
  border: 2px solid rgba(232, 80, 10, 0.3);
}

@media (max-width: 1100px) {
  .project-carousel .carousel-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  .project-carousel .carousel-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────
   CONTACT
────────────────────────────────────────────────── */
.contact { padding: 100px 60px; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Info cards */
.contact-info { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.info-card:hover { border-color: var(--orange); transform: translateX(4px); }

.info-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(232,80,10,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; }
.info-label { font-size: 11px; color: var(--grey); margin-bottom: 3px; }
.info-val   { font-size: 13px; font-weight: 500; word-break: break-all; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row.single { grid-template-columns: 1fr; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #555; }
.contact-form select { color: #555; appearance: none; cursor: pointer; }
.contact-form select option { background: #1a1a1a; color: var(--white); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--orange); }
.contact-form textarea { resize: vertical; }
.form-submit-row { display: flex; justify-content: flex-end; }

/* ──────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────── */
footer {
  background: #0a0a0a;
  padding: 56px 60px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange);
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-nav a { font-size: 13px; color: var(--grey); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
  transition: all var(--transition);
}
.footer-socials a svg { width: 15px; height: 15px; }
.footer-socials a:hover { border-color: var(--orange); color: var(--orange); }

.footer-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-info span { display: flex; align-items: center; gap: 6px; }
.footer-credit { font-size: 11px; color: #444; }

/* ──────────────────────────────────────────────────
   KEYFRAMES
────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .timeline-section { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  #navbar { padding: 16px 24px; gap: 0; }
  #navbar.scrolled { padding: 12px 24px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97);
    align-items: center; justify-content: center;
    gap: 28px; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .nav-hire { display: none; }

  .hero { flex-direction: column; padding: 100px 24px 60px; text-align: center; }
  .hero-photo { width: 260px; height: 260px; }
  .tech-tags, .socials, .hero-btns { justify-content: center; }
  .stats { justify-content: center; }

  .services, .about, .portfolio, .contact { padding: 70px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; text-align: center; }
  .about-details { grid-template-columns: 1fr; }
  .about-photo { margin: 0 auto; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .skills-bar-grid { gap: 20px; }
  footer { padding: 40px 24px 20px; }
  .footer-info { flex-direction: column; gap: 10px; }
}