:root {
  --bg-main: #050509;
  --bg-alt: #0b0b12;
  --card-bg: #11111b;
  --card-bg-soft: #151523;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent: #f4b122;
  --accent-soft: rgba(244, 177, 34, 0.15);
  --accent-strong: #ffcf50;
  --text-main: #f7f7ff;
  --text-muted: #a5a5c3;
  --danger: #ff4b6b;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.45);
  --container-width: 1120px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease;
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #15152b 0, #050509 50%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

/* ============ LAYOUT ============ */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #181827 0, #050509 55%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: start;
}

.section-header {
  max-width: 520px;
}

.section-header.center {
  text-align: center;
  margin: 0 auto 3rem;
}

/* ============ TYPOGRAPHY ============ */

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(1.9rem, 2.5vw, 2.3rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.section-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

/* ============ HEADER / NAV ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 9, 0.95),
    rgba(5, 5, 9, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.2rem;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, var(--accent-strong), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1b1200;
  box-shadow: 0 0 18px rgba(244, 177, 34, 0.55);
  font-size: 1.1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  font-size: 1rem;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width var(--transition-med);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 1, 0.85);
  box-shadow: 0 0 20px rgba(244, 177, 34, 0.25);
  transition: background var(--transition-med), transform var(--transition-fast),
    box-shadow var(--transition-med);
}

.nav-cta:hover {
  background: var(--accent);
  color: #1b1200;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(244, 177, 34, 0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* ============ HERO ============ */

.hero {
  padding: 4.2rem 0 4.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent-strong), #fff4ce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 520px;
  margin-bottom: 1.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(244, 177, 34, 0.2);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1b1200;
  box-shadow: 0 12px 35px rgba(244, 177, 34, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-med),
    filter var(--transition-med);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(244, 177, 34, 0.55);
  filter: brightness(1.03);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 16, 0.8);
  color: var(--text-main);
  transition: background var(--transition-med), border-color var(--transition-med),
    transform var(--transition-fast);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(25, 19, 5, 0.95);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.hero-meta > div {
  min-width: 90px;
}

.hero-meta-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Right visual */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(244, 177, 34, 0.25);
  filter: blur(1px);
  transform: scale(1.05);
  opacity: 0.7;
}

.hero-card {
  position: relative;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(244, 177, 34, 0.18),
    rgba(10, 10, 17, 0.98)
  );
  border: 1px solid rgba(244, 177, 34, 0.3);
  box-shadow: var(--shadow-soft);
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.hero-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  margin: 0 auto 1rem;
  background: radial-gradient(circle at 30% 10%, var(--accent-strong), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: #1b1200;
  box-shadow: 0 0 30px rgba(244, 177, 34, 0.7);
}

.hero-card h3 {
  font-size: 1.1rem;
}

.hero-card p {
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(10, 18, 8, 0.85);
  border: 1px solid rgba(125, 221, 148, 0.5);
  color: #a8ffb3;
  margin-bottom: 1rem;
}

.hero-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}

.hero-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.hero-mini-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 11, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============ ABOUT ============ */

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.4rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.about-highlights .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

.about-cards {
  display: grid;
  gap: 1rem;
}

.about-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.about-card i {
  font-size: 1.4rem;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}

/* ============ SKILLS ============ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.skill-group h3 {
  margin-bottom: 0.7rem;
}

.skill-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-group li {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0.18rem 0;
}

/* ============ CARDS (generic) ============ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--card-bg-soft);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.7rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(244, 177, 34, 0.6);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.86rem;
  margin-bottom: 0.8rem;
}

.card-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tags li {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.card-icon {
  font-size: 1.6rem;
  color: var(--accent-strong);
  margin-bottom: 0.8rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ============ PROJECTS GRID (with screenshots) ============ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  border-color: var(--accent-strong);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
  padding: 1.1rem 1.25rem 1.2rem;
}

.project-info h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.project-info p {
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.project-btn {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
  border: 1px solid rgba(255, 185, 0, 0.4);
  transition: 0.3s;
}

.project-btn:hover {
  background: var(--accent-strong);
  color: #1a1a1a;
  box-shadow: 0 8px 25px rgba(255, 185, 0, 0.4);
}

/* ============ TESTIMONIALS ============ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(244, 177, 34, 0.15), #0e0e16);
  box-shadow: var(--shadow-subtle);
}

.quote {
  font-size: 0.92rem;
  color: var(--text-main);
  position: relative;
  padding-left: 1.4rem;
}

.quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-size: 2rem;
  color: rgba(244, 177, 34, 0.5);
}

.author {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ CONTACT ============ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: start;
}

.contact-highlights p {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-highlights i {
  color: var(--accent-strong);
}

.contact-highlights a {
  color: var(--text-main);
  text-decoration: none;
}

.contact-highlights a:hover {
  text-decoration: underline;
}

.contact-cta {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-form-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  background: rgba(7, 7, 14, 0.95);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-med), box-shadow var(--transition-med),
    background var(--transition-med);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(244, 177, 34, 0.5);
  background: #050509;
}

.full-width {
  width: 100%;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============ FOOTER ============ */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 0 1.4rem;
  background: #050509;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.footer-copy {
  color: var(--text-muted);
}

.footer-designed a {
  color: var(--accent-strong);
  text-decoration: none;
}

.footer-designed a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  transition: background var(--transition-med), color var(--transition-med),
    transform var(--transition-fast), border-color var(--transition-med);
}

.footer-social a:hover {
  background: var(--accent);
  color: #1b1200;
  border-color: transparent;
  transform: translateY(-1px);
}

/* ============ SCROLL TOP ============ */

.scroll-top {
  position: fixed;
  bottom: 1.6rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(11, 11, 18, 0.95);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-med), transform var(--transition-med),
    visibility var(--transition-med);
  z-index: 90;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============ ANIMATIONS (on scroll) ============ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.delay-1 {
  transition-delay: 0.15s;
}
.reveal-on-scroll.delay-2 {
  transition-delay: 0.3s;
}
.reveal-on-scroll.delay-3 {
  transition-delay: 0.45s;
}

/* ============ RESPONSIVE ============ */

.d-none-mobile {
  display: inline-flex;
}

@media (max-width: 992px) {
  .hero-grid,
  .about-body,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero {
    padding-top: 3.3rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0.6rem 0.1rem;
  }

  .nav-links {
    position: absolute;
    inset: 56px 0 auto 0;
    margin: 0;
    padding: 0.8rem 1.5rem 1rem;
    background: rgba(5, 5, 12, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    gap: 0.7rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav-links.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .d-none-mobile {
    display: none !important;
  }

  .section {
    padding: 4.2rem 0;
  }

  .cards-grid,
  .skills-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-tags {
    gap: 0.45rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-meta {
    gap: 1rem;
  }

  .section-header.center {
    margin-bottom: 2.3rem;
  }

  .contact-form-wrapper {
    padding: 1.3rem 1.1rem;
  }

  .scroll-top {
    right: 1.1rem;
    bottom: 1.3rem;
  }
  .form-alert {
  margin-bottom: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
}

.form-alert-success {
  background: rgba(56, 142, 60, 0.15);
  border: 1px solid rgba(129, 199, 132, 0.7);
  color: #c8e6c9;
}

.form-alert-error {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(239, 154, 154, 0.8);
  color: #ffcdd2;
}

}
