/* ============================================
   PLATO — Creative Digital Agency
   Fresh design: Deep navy + coral/amber accents
   Typography: Syne (headings) + DM Sans (body)
   ============================================ */

/* --- Variables --- */
:root {
  --clr-bg: #0a0e1a;
  --clr-surface: #111827;
  --clr-surface-2: #1a2235;
  --clr-text: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-heading: #ffffff;
  --clr-primary: #f97316;
  --clr-primary-soft: rgba(249, 115, 22, 0.12);
  --clr-accent: #06b6d4;
  --clr-accent-soft: rgba(6, 182, 212, 0.12);
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-hover: rgba(255, 255, 255, 0.12);
  --clr-card: rgba(17, 24, 39, 0.7);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 100px;
  --shadow-glow: 0 0 60px rgba(249, 115, 22, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-gap {
  padding: 100px 0;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* Section intro */
.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-intro.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-intro p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
}

/* --- Header --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 18px 0;
}

#header.sticky {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
}

.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-heading);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-heading);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--clr-heading);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-accent);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-heading);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-filled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--clr-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.btn-filled:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: var(--clr-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

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

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--clr-border-hover);
  border-radius: 50%;
  transition: var(--transition);
}

.btn-ghost:hover .btn-icon {
  border-color: var(--clr-primary);
  background: var(--clr-primary-soft);
}

/* Hero graphic */
.hero-graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: center;
}

.orbit-ring {
  position: absolute;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 20s linear infinite;
}

.ring-1 { width: 65%; height: 65%; }
.ring-2 { width: 82%; height: 82%; animation-duration: 30s; animation-direction: reverse; }
.ring-3 { width: 100%; height: 100%; animation-duration: 40s; }

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.dot-1 {
  background: var(--clr-primary);
  top: 15%;
  right: 20%;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.dot-2 {
  background: var(--clr-accent);
  bottom: 25%;
  left: 10%;
  width: 8px;
  height: 8px;
  animation-delay: -2s;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
}

.dot-3 {
  background: #a78bfa;
  top: 50%;
  right: 5%;
  width: 10px;
  height: 10px;
  animation-delay: -4s;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.5);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-primary), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* --- Stats --- */
.stats {
  padding: 50px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-block {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--clr-heading);
  letter-spacing: -0.02em;
}

.stat-text {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--clr-border);
}

/* --- About --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-left,
.about-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-left.in-view,
.about-right.in-view {
  opacity: 1;
  transform: translateY(0);
}

.about-right {
  transition-delay: 0.15s;
}

.about-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-heading);
  line-height: 1.2;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--clr-text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-right > p {
  color: var(--clr-text-muted);
  margin-bottom: 32px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-20px);
}

.highlight-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.highlight-item:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-soft);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary-soft);
  color: var(--clr-primary);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

.highlight-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

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

.service-tile {
  position: relative;
  padding: 36px 28px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-tile.revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-tile:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-tile:hover::before {
  opacity: 1;
}

.tile-number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  opacity: 0.5;
  margin-bottom: 20px;
}

.tile-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-primary-soft), var(--clr-accent-soft));
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  color: var(--clr-primary);
  margin-bottom: 20px;
}

.service-tile h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 10px;
}

.service-tile p {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* --- Portfolio --- */
.portfolio-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--clr-heading);
  border-color: var(--clr-border-hover);
}

.tab-btn.active {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

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

.folio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  opacity: 0;
  transform: scale(0.95);
}

.folio-card.revealed {
  opacity: 1;
  transform: scale(1);
}

.folio-card.filtered-out {
  display: none;
}

.folio-card.filtered-in {
  display: block;
}

.folio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--clr-border-hover);
}

.folio-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.folio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.4s ease;
}

.folio-card:hover .folio-placeholder {
  transform: scale(1.05);
}

.folio-info {
  padding: 20px 24px;
}

.folio-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 4px;
}

.folio-info span {
  font-size: 0.84rem;
  color: var(--clr-text-muted);
}

/* --- Testimonials --- */
.testimonials {
  background: var(--clr-surface);
}

.testimonial-carousel {
  max-width: 700px;
  margin: 0 auto;
}

.carousel-viewport {
  position: relative;
  min-height: 280px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: all;
}

.quote-mark {
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 16px;
  opacity: 0.6;
}

.carousel-slide blockquote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 28px;
  font-style: italic;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.review-author strong {
  display: block;
  color: var(--clr-heading);
  font-size: 0.95rem;
}

.review-author span {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.ctrl-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-soft);
}

.carousel-pips {
  display: flex;
  gap: 8px;
}

.pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border-hover);
  cursor: pointer;
  transition: var(--transition);
}

.pip.active {
  background: var(--clr-primary);
  width: 24px;
  border-radius: 4px;
}

/* --- Team --- */
.team-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.member-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.member-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.member-card:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
}

.member-photo {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.member-socials {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: var(--transition);
}

.member-card:hover .member-socials {
  opacity: 1;
  bottom: -6px;
}

.member-socials a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.member-socials a:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.member-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 4px;
}

.member-card > span {
  font-size: 0.84rem;
  color: var(--clr-text-muted);
}


/* --- FAQ --- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.faq-left,
.faq-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.faq-left.in-view,
.faq-right.in-view {
  opacity: 1;
  transform: translateY(0);
}

.faq-right {
  transition-delay: 0.15s;
}

.faq-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--clr-heading);
  line-height: 1.2;
  margin-bottom: 16px;
}

.faq-left p {
  color: var(--clr-text-muted);
  margin-bottom: 28px;
}

.accordion-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--clr-border-hover);
}

.accordion-item.open {
  border-color: var(--clr-primary);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  text-align: left;
  color: var(--clr-heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.accordion-trigger i {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--clr-text-muted);
}

.accordion-item.open .accordion-trigger i {
  transform: rotate(180deg);
  color: var(--clr-primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 200px;
  padding: 0 22px 18px;
}

.accordion-body p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* --- Contact --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

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

.detail-card {
  padding: 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-20px);
}

.detail-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

.detail-card:hover {
  border-color: var(--clr-primary);
}

.detail-card i {
  font-size: 1.4rem;
  color: var(--clr-primary);
  margin-bottom: 12px;
  display: block;
}

.detail-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 6px;
}

.detail-card p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.contact-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-heading);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-filled {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* --- Footer --- */
#footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 70px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-soft);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--clr-primary);
  padding-left: 4px;
}

.footer-col > p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--transition);
}

.subscribe-form:focus-within {
  border-color: var(--clr-primary);
}

.subscribe-form input {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  color: var(--clr-text);
  font-size: 0.88rem;
}

.subscribe-form input::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.6;
}

.subscribe-form button {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: #fff;
  font-size: 1.2rem;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: var(--transition);
}

.subscribe-form button:hover {
  background: #ea580c;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--clr-border);
}

.footer-bottom p {
  font-size: 0.84rem;
  color: var(--clr-text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.84rem;
  color: var(--clr-text-muted);
}

.footer-legal a:hover {
  color: var(--clr-primary);
}

/* --- Scroll to Top --- */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  z-index: 999;
}

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

#scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

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

/* --- Tablet landscape (max 1024px) --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }

  .hero-graphic {
    max-width: 360px;
  }

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

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

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

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



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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .detail-card {
    flex: 1;
    min-width: 200px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* --- Tablet portrait (max 768px) --- */
@media (max-width: 768px) {
  .section-gap {
    padding: 70px 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--clr-border);
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--clr-border);
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-graphic {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-scroll {
    display: none;
  }

  .stats-row {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .stat-block {
    min-width: 120px;
  }

  .services-mosaic {
    grid-template-columns: 1fr;
  }

  .portfolio-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .team-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }



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

  .contact-details {
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-intro {
    margin-bottom: 40px;
  }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --container: 100%;
  }

  .container {
    padding: 0 16px;
  }

  .section-gap {
    padding: 56px 0;
  }

  .hero {
    padding: 100px 0 40px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }

  .btn-filled,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-graphic {
    max-width: 220px;
  }

  .stats {
    padding: 30px 0;
  }

  .stats-row {
    flex-direction: column;
    gap: 24px;
  }

  .stat-num {
    font-size: 2rem;
  }

  .about-left h2,
  .faq-left h2 {
    font-size: 1.6rem;
  }

  .portfolio-tabs {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .portfolio-masonry {
    grid-template-columns: 1fr;
  }

  .team-cards {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .carousel-slide blockquote {
    font-size: 1rem;
  }

  .carousel-viewport {
    min-height: 320px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .service-tile {
    padding: 28px 22px;
  }



  #scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
