/* ============================================
   D'SIGN — Graphic Design Projects
   style.css
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #0A0702;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === CSS VARIABLES === */
:root {
  --yellow: #F9EB37;
  --yellow-hover: #DCCF2B;
  --black: #0A0702;
  --surface: #141005;
  --border: #2A2515;
  --text-muted: #A19D94;
  --glow: rgba(249, 235, 55, 0.12);
  --section-pad: 6rem 0;
  --radius: 0px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
}

.text-yellow {
  color: var(--yellow);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 600px;
}

.section-sub {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* === UTILITIES === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--yellow);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

/* === ANIMATIONS === */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249, 235, 55, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(249, 235, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 235, 55, 0); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: rgba(10, 7, 2, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 7, 2, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  padding: 0.6rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.85rem !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--yellow-hover) !important;
  color: var(--black) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  background: #0A0702;
  border-top: 1px solid var(--border);
  gap: 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 1rem;
  background: var(--yellow);
  color: var(--black) !important;
  padding: 1rem;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}

.mobile-menu a:hover {
  color: #fff;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: grayscale(30%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, #0A0702 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.1s forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.25s forwards;
}

.hero-title .text-yellow {
  position: relative;
  display: inline-block;
}

.hero-title .text-yellow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  opacity: 0.5;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.4s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.55s forwards;
}

/* === MARQUEE SECTION === */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.25rem 0;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 0 1.5rem;
}

.marquee-track .dot {
  color: var(--border);
  padding: 0 0.25rem;
}

/* === HOOK SECTION === */
.hook-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.hook-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 680px;
  color: #FFFFFF;
}

.hook-emphasis {
  color: var(--text-muted);
}

.hook-sub {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--yellow);
  font-weight: 600;
  max-width: 500px;
}

/* === ABOUT SECTION === */
.about-section {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.about-image-wrap:hover .about-img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 235, 55, 0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-list {
  margin: 1.25rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-list li::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

/* === SERVICES SECTION === */
.services-section {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--border);
  gap: 1px;
  border: 1px solid var(--border);
}

.service-card {
  background: var(--surface);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: width 0.4s ease;
}

.service-card:hover::before {
  width: 100%;
}

.service-card:hover {
  background: #161008;
}

.service-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-number {
  color: var(--yellow);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.25rem;
  color: var(--border);
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-arrow {
  color: var(--yellow);
  transform: translateX(4px);
}

/* === WHY SECTION === */
.why-section {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.why-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.why-card:last-child {
  border-bottom: none;
}

.why-icon {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === PORTFOLIO SECTION === */
.portfolio-section {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.55s ease, filter 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 2, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--yellow);
}

.portfolio-cta {
  text-align: center;
}

/* === FINAL CTA SECTION === */
.cta-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  margin: 1rem 0;
  line-height: 1.1;
}

.cta-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* === FOOTER === */
.footer {
  padding: 3rem 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  height: 40px;
  width: fit-content;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #4a4438;
}

/* === FLOATING WHATSAPP BUTTON === */
.wa-float {
  position: fixed;
  bottom: 110px;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  animation: wa-pulse 2.5s infinite;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.wa-float:hover {
  background: var(--yellow-hover);
  transform: scale(1.1);
  animation: none;
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: var(--black);
}

/* === RESPONSIVE === */

/* Medium: 640px+ */
@media (min-width: 640px) {
  .hero-cta {
    flex-wrap: nowrap;
  }

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

  .why-card {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .why-card:last-child {
    border-right: none;
  }

  .why-card:nth-child(even) {
    border-right: none;
  }

  .why-card:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-links {
    text-align: right;
  }
}

/* Large: 768px+ */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

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

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

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

  .about-img {
    height: 500px;
  }

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

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

  .why-card {
    padding: 2rem;
  }
}

/* XL: 1024px+ */
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-card {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

  .why-card:last-child {
    border-right: none;
  }

  .why-card:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .why-card:nth-child(even) {
    border-right: 1px solid var(--border);
  }
}
