/* ═══════════════════════════════════════════════════════
   Shovelware Studios – Global Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #06060b;
  --bg-secondary:  #0d0d16;
  --bg-card:       #12121e;
  --bg-card-hover: #1a1a2e;
  --border-subtle: rgba(255,255,255,.06);
  --text-primary:  #e8e8f0;
  --text-secondary:#9191a8;
  --text-muted:    #5e5e76;
  --accent:        #6c63ff;
  --accent-light:  #8b83ff;
  --accent-glow:   rgba(108,99,255,.35);
  --teal:          #00d4aa;
  --teal-glow:     rgba(0,212,170,.25);
  --gradient:      linear-gradient(135deg, var(--accent), var(--teal));
  --gradient-text:  linear-gradient(135deg, var(--accent-light), var(--teal));
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-glow:   0 0 40px var(--accent-glow), 0 0 80px var(--teal-glow);
  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --nav-height:    72px;
  --max-width:     1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a  { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }
ul  { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-light);
  margin-bottom: .5rem;
}

.section-title {
  margin-bottom: .75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6,6,11,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px !important;
  background: var(--gradient) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: .85rem !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out 4s infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
  color: var(--text-primary);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(108,99,255,.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px; height: 52px;
  background: rgba(108,99,255,.1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: .95rem;
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Services Section ── */
.services { background: var(--bg-secondary); }

.services .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.services .section-subtitle {
  margin: 0 auto;
}

/* ── Projects Section ── */
.projects .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects .section-subtitle {
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: rgba(108,99,255,.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-thumb {
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: .08;
}

.project-thumb-icon {
  font-size: 3.5rem;
  opacity: .3;
  position: relative;
  z-index: 1;
}

.project-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  background: rgba(6,6,11,.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  border: 1px solid var(--border-subtle);
}

.project-badge.logistics { color: var(--teal); }
.project-badge.saas      { color: var(--accent-light); }
.project-badge.gaming    { color: #ff6b9d; }

.project-body {
  padding: 24px;
}

.project-body h3 {
  margin-bottom: 8px;
}

.project-body p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 16px;
}

.project-link {
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link::after {
  content: '→';
  transition: transform var(--transition);
}

.project-link:hover::after {
  transform: translateX(4px);
}

/* ── Stats ── */
.stats {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 0;
}

.stats .grid-4 {
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-top: 4px;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.cta-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 { margin-bottom: 16px; }
.cta-box p  { color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── About Page ── */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

.about-story {
  background: var(--bg-secondary);
}

.about-story .grid-2 {
  align-items: center;
  gap: 60px;
}

.about-story-text h2 { margin-bottom: 20px; }
.about-story-text p  { color: var(--text-secondary); margin-bottom: 16px; }

.about-image-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  height: 360px;
  display: grid;
  place-items: center;
  font-size: 5rem;
  opacity: .2;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: .06;
}

.values-grid .card-icon { margin-bottom: 16px; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239191a8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(108,99,255,.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: .95rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: .9rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-top: 12px;
  max-width: 300px;
}

.footer h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--text-secondary);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: .85rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--accent-light);
}

/* ── Privacy Page ── */
.legal-content {
  padding: calc(var(--nav-height) + 60px) 0 100px;
}

.legal-content .container {
  max-width: 800px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-content .updated {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
}

/* ── 404 ── */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.page-404 h1 {
  font-size: 8rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404 p {
  color: var(--text-secondary);
  margin: 12px 0 32px;
  font-size: 1.1rem;
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(6,6,11,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 { grid-template-columns: 1fr 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-content h1 { font-size: 2rem; }

  .about-story .grid-2 { gap: 32px; }

  .cta-box { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats .grid-4 { grid-template-columns: 1fr 1fr; }
}