/* ============================================
   VTN AGENCY — Global Stylesheet
   Design System: Reset, Variables, Typography,
   Components, Layout Utilities
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --primary: #FF3CAC;
  --secondary: #784BA0;
  --accent: #2B86C5;
  --dark: #0D0D0D;
  --light: #F5F5F5;
  --card-bg: #1A1A1A;
  --gradient-hero: linear-gradient(135deg, #FF3CAC, #784BA0, #2B86C5);
  --gradient-btn: linear-gradient(135deg, #FF3CAC, #784BA0);
  --gradient-border: linear-gradient(135deg, #FF3CAC, #784BA0, #2B86C5);

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing (8px base grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-section: 100px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 50px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 48px rgba(255, 60, 172, 0.2);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul, ol {
  list-style: none;
}

/* Reset links */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* Reset images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reset buttons */
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--light);
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.8);
}

/* --- Focus Styles (Accessibility) --- */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2.5);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
  padding: 12px 40px;
  background: rgba(13, 13, 13, 0.95);
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.7);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--light);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar__cta:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(255, 60, 172, 0.4);
}

/* Mobile menu toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--light);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.04);
}

.btn--primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 60, 172, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(255, 60, 172, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--light);
  border: 2px solid rgba(245, 245, 245, 0.3);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 1;
}

/* --- Section Padding --- */
.section {
  padding: var(--space-section) 40px;
}

.section--dark {
  background: var(--dark);
}

.section--darker {
  background: #080808;
}

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__desc {
  max-width: 600px;
}

/* --- Gradient Text Utility --- */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  background: rgba(255, 60, 172, 0.15);
  color: var(--primary);
  border: 1px solid rgba(255, 60, 172, 0.3);
}

/* --- Fade-up Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
.footer {
  padding: 64px 40px 32px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.5);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.5);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--primary);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  font-size: 0.85rem;
}

.footer__social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.4);
}

/* Developer credit link */
.footer__dev-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer__dev-link:hover {
  color: var(--accent);
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 100px 40px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--dark);
}

.cta-banner .btn:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Page Transition Overlay --- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .section {
    padding: 60px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right var(--transition-base);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__link {
    font-size: 1.25rem;
  }

  .navbar__toggle {
    display: flex;
  }

  .section {
    padding: 60px 20px;
  }

  .cta-banner {
    padding: 60px 20px;
  }

  .footer {
    padding: 48px 20px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Hide custom cursor on mobile */
  .cursor {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}