/* ============================================
   APEX AUTOMATIONS — Global Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@400;500;700&display=swap');

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Color System */
  --color-bg:           #0a0a0a;
  --color-gold:         #d4a843;
  --color-gold-light:   #e8c86a;
  --color-gold-dim:     #8b7335;
  --color-gold-glow:    rgba(212, 168, 67, 0.3);
  --color-purple:       #7c3aed;
  --color-purple-dim:   #4c1d95;
  --color-blue:         #2563eb;
  --color-text:         #f5f5f5;
  --color-text-gray:    #a0a0a0;
  --color-text-dark:    #555555;
  --color-border:       #222222;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --nav-height: 80px;
}

/* Per-page background color shifts */
.page-home    { --color-bg: #0a0a0a; }
.page-work    { --color-bg: #0c0a1a; }
.page-contact { --color-bg: #0a0c1e; }

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

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

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

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

ul,
ol {
  list-style: none;
}

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

/* ============================================
   Typography
   ============================================ */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-gray);
}

small,
.text-small {
  font-size: 14px;
  color: var(--color-text-gray);
}

/* ============================================
   Selection & Scrollbar
   ============================================ */
::selection {
  background-color: var(--color-gold-dim);
  color: var(--color-text);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-dim) #111111;
}

/* ============================================
   Links
   ============================================ */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  min-height: 100vh;
  padding: 120px 0;
  position: relative;
}

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

.glow {
  text-shadow:
    0 0 20px var(--color-gold-glow),
    0 0 40px var(--color-gold-glow),
    0 0 80px rgba(212, 168, 67, 0.15);
}

/* ============================================
   Placeholder Sections (Task 1)
   ============================================ */
.placeholder-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}

.placeholder-section p {
  font-size: 14px;
  color: var(--color-text-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  font-size: 14px;
  color: var(--color-text-dark);
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 22px; }

  .section { padding: 100px 0; }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  .section { padding: 80px 0; }

  .container { padding: 0 20px; }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .container { padding: 0 16px; }
}
