/* ============================================
   DGcom — Digital Agency / Web Design Studio
   Bespoke Design System
   ============================================ */

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

:root {
  /* Palette */
  --deep-purple: #1A0A3E;
  --violet: #7C3AED;
  --neon-pink: #EC4899;
  --surface: #0F0A1A;
  --light: #F8F5FF;
  --white: #FFFFFF;
  --gray-100: #F3F0FF;
  --gray-200: #E5DEFF;
  --gray-400: #A094B5;
  --gray-600: #6B5F7B;
  --gray-800: #2D2240;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1A0A3E 0%, #0F0A1A 30%, #2D1066 60%, #1A0A3E 100%);
  --gradient-accent: linear-gradient(135deg, #7C3AED, #EC4899);
  --gradient-card: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, rgba(15,10,26,0) 100%);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing */
  --section-py: clamp(60px, 8vw, 120px);
  --container-max: 1200px;
  --container-px: clamp(16px, 4vw, 40px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--gray-200);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-pink);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-400);
  max-width: 600px;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--violet);
  background: rgba(124,58,237,0.1);
}

.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* --- Nav --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.site-nav.scrolled {
  background: rgba(15,10,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-200);
  transition: color var(--transition-base);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15,10,26,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }
  .mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition-base);
  }
  .mobile-menu a:hover { color: var(--neon-pink); }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(124,58,237,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(236,72,153,0.15) 0%, transparent 70%);
  animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2%, 3%); }
  100% { transform: scale(1) translate(2%, -2%); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

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

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--neon-pink);
  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 h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero floating cards */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: transform 0.6s var(--ease-out);
  border: 1px solid rgba(124,58,237,0.2);
}
.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card.card-1 {
  width: 320px;
  height: 220px;
  transform: rotate(-6deg) translate(-20px, -30px);
  z-index: 2;
  animation: float1 6s ease-in-out infinite;
}
.floating-card.card-2 {
  width: 280px;
  height: 200px;
  transform: rotate(4deg) translate(40px, 60px);
  z-index: 3;
  animation: float2 7s ease-in-out infinite;
}
.floating-card.card-3 {
  width: 200px;
  height: 140px;
  transform: rotate(-2deg) translate(-80px, 120px);
  z-index: 1;
  animation: float3 8s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: rotate(-6deg) translate(-20px, -30px); }
  50% { transform: rotate(-4deg) translate(-10px, -40px); }
}
@keyframes float2 {
  0%, 100% { transform: rotate(4deg) translate(40px, 60px); }
  50% { transform: rotate(6deg) translate(30px, 50px); }
}
@keyframes float3 {
  0%, 100% { transform: rotate(-2deg) translate(-80px, 120px); }
  50% { transform: rotate(0deg) translate(-70px, 110px); }
}

/* --- Section: Stats --- */
.stats-section {
  padding: 80px 0;
  background: var(--deep-purple);
  border-top: 1px solid rgba(124,58,237,0.15);
  border-bottom: 1px solid rgba(124,58,237,0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 24px 16px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* --- Section: Projects --- */
.projects-section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26,10,62,0.9) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .overlay h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform var(--transition-base);
}

.project-card:hover .overlay h4 {
  transform: translateY(0);
}

.project-card .overlay span {
  font-size: 0.75rem;
  color: var(--neon-pink);
  font-family: var(--font-mono);
  transform: translateY(10px);
  transition: transform var(--transition-base) 0.05s;
}

.project-card:hover .overlay span {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* --- Section: About Band --- */
.about-band {
  padding: var(--section-py) 0;
  background: var(--deep-purple);
  border-top: 1px solid rgba(124,58,237,0.1);
  border-bottom: 1px solid rgba(124,58,237,0.1);
}

.about-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  pointer-events: none;
}

.about-content .section-title { margin-bottom: 20px; }
.about-content p {
  color: var(--gray-400);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(124,58,237,0.15);
}

.about-stat h3 {
  font-size: 1.8rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: 0;
}

@media (max-width: 768px) {
  .about-band .container { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Section: Services --- */
.services-section {
  padding: var(--section-py) 0;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.service-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border-radius: 16px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.1);
  transition: all var(--transition-base);
  cursor: pointer;
}

.service-item:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.25);
  transform: translateX(8px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.service-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.services-image {
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.services-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-image { position: static; }
}

/* --- Section: Testimonials --- */
.testimonials-section {
  padding: var(--section-py) 0;
  background: var(--deep-purple);
  border-top: 1px solid rgba(124,58,237,0.1);
  border-bottom: 1px solid rgba(124,58,237,0.1);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scrollTrack 30s linear infinite;
}

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 380px;
  background: rgba(26,10,62,0.6);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,58,237,0.3);
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--neon-pink);
  font-family: var(--font-mono);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray-200);
  line-height: 1.7;
  font-style: italic;
}

@media (max-width: 640px) {
  .testimonial-card { flex: 0 0 300px; }
}

/* --- Section: Contact CTA --- */
.contact-cta {
  padding: var(--section-py) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-cta .section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.contact-cta .section-subtitle {
  margin: 0 auto 40px;
  max-width: 500px;
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(124,58,237,0.1);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}
.footer-social a:hover {
  background: var(--violet);
  border-color: var(--violet);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition-base);
}
.footer-col ul a:hover { color: var(--neon-pink); }

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(124,58,237,0.2);
  background: rgba(124,58,237,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-base);
}
.newsletter-form input::placeholder { color: var(--gray-600); }
.newsletter-form input:focus { border-color: var(--violet); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(124,58,237,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.6);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
  position: relative;
}
.page-header p {
  color: var(--gray-400);
  font-size: 1.1rem;
  position: relative;
}

/* Breadcrumb */
.breadcrumb-nav {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  position: relative;
}
.breadcrumb-nav a { color: var(--neon-pink); }
.breadcrumb-nav a:hover { text-decoration: underline; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
