/* =========================================
   DESIGN SYSTEM — Developer Portfolio
   ========================================= */

:root {
  /* Colors */
  --orange: #f5a623;
  --orange-hover: #e09515;
  --orange-light: rgba(245, 166, 35, 0.1);
  --orange-glow: rgba(245, 166, 35, 0.25);
  --white: #ffffff;
  --bg: #f9f8f6;
  --bg-alt: #f2f0ec;
  --text: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-light: #8a8a8a;
  --border: #e8e6e1;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Sizing */
  --container: 1200px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* ===== UTILITY ===== */
.text-orange {
  color: var(--orange);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

.btn--primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.45);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  padding: 12px 8px;
}

.btn--ghost:hover {
  color: var(--orange);
}

.btn--ghost i {
  transition: transform var(--transition);
}

.btn--ghost:hover i {
  transform: translateX(4px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  gap: 1px;
}

.logo-a {
  color: var(--text);
  background: var(--text);
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
}

.logo-m {
  color: var(--orange);
  font-size: 26px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  position: relative;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: calc(100% - 32px);
}

.navbar__cta {
  margin-left: 16px;
}

/* Mobile toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg);
}

.hero__geo-pattern {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 650px;
  height: 650px;
  pointer-events: none;
  z-index: 1;
}

.hero__social {
  position: absolute;
  left: 32px;
  bottom: 140px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
}

.hero__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.hero__social a:hover {
  color: var(--orange);
  background: var(--orange-light);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 3;
}

.hero__greeting {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero__description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__contact-bar {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__contact-item {
  display: flex;
  flex-direction: column;
}

.hero__contact-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.hero__contact-value {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero image */
.hero__image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero__image-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 85%;
  background: linear-gradient(
    135deg,
    var(--orange-light) 0%,
    rgba(245, 166, 35, 0.05) 100%
  );
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

.hero__image-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: contain;
  border-radius: 0 0 16px 16px;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.about__stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 100px 0;
  background: var(--bg);
}

.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio__filter {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio__filter:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.portfolio__filter.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

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

.portfolio__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
}

.portfolio__card.hidden {
  display: none;
}

.portfolio__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio__card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.portfolio__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio__card:hover .portfolio__card-image img {
  transform: scale(1.05);
}

.portfolio__card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio__card:hover .portfolio__card-overlay {
  opacity: 1;
}

.portfolio__card-content {
  padding: 24px;
}

.portfolio__card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.portfolio__card-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.portfolio__card:hover .portfolio__card-title::after {
  width: 100%;
}

.portfolio__card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio__card-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--orange-light);
  color: var(--orange);
  font-family: var(--font-heading);
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

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

.services__card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid transparent;
}

.services__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-light);
  background: var(--white);
}

.services__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 24px;
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.services__card:hover .services__icon {
  background: var(--orange);
  color: var(--white);
}

.services__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.services__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.services__accent {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: var(--transition);
}

.services__card:hover .services__accent {
  width: 60%;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg);
}

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

.testimonials__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid transparent;
}

.testimonials__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-light);
}

.testimonials__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 14px;
}

.testimonials__quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonials__author-info h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.testimonials__author-info span {
  font-size: 13px;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.contact__geo-pattern {
  position: absolute;
  top: 0;
  right: -40px;
  width: 450px;
  height: 450px;
  pointer-events: none;
  z-index: 0;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: var(--radius-md);
  font-size: 18px;
  flex-shrink: 0;
}

.contact__info-item h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.contact__info-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact__socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.contact__socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: var(--transition);
}

.contact__socials a:hover {
  background: var(--orange);
  color: var(--white);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--text-light);
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--orange-light);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
}

.footer__container {
  text-align: center;
}

.footer__brand {
  margin-bottom: 24px;
}

.footer__brand .navbar__logo {
  display: inline-flex;
  margin-bottom: 12px;
}

.footer__brand .logo-a {
  background: var(--orange);
  color: var(--white);
}

.footer__brand .logo-m {
  color: rgba(255, 255, 255, 0.8);
}

.footer__brand p {
  font-size: 15px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__bottom p {
  font-size: 14px;
}

/* ===== SCROLL REVEAL ===== */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__container {
    gap: 36px;
  }

  .hero__title {
    font-size: clamp(40px, 5vw, 60px);
  }
}

@media (max-width: 768px) {
  .navbar__menu,
  .navbar__cta {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  /* Mobile menu */
  .navbar__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 999;
  }

  .navbar__menu.open .navbar__link {
    font-size: 22px;
    font-weight: 600;
  }

  .navbar__toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .navbar__toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__description {
    margin: 0 auto 32px;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__contact-bar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero__social {
    display: none;
  }

  .hero__geo-pattern {
    width: 300px;
    right: -80px;
    top: 0;
  }

  .about__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__stats {
    gap: 24px;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

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

  .portfolio__filters {
    gap: 6px;
  }

  .portfolio__filter {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero__contact-bar {
    flex-direction: column;
    align-items: center;
  }
}
