:root {
  --bg: #0B0B0B;
  --surface: #141414;
  --border: #1F1F1F;
  --text: #FFFFFF;
  --text-muted: #B3B3B3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

nav a {
  margin-left: 16px;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 96px 0;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.hero p {
  max-width: 600px;
  color: var(--text-muted);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

.button.primary {
  background: #fff;
  color: #000;
}

.button.secondary {
  border: 1px solid var(--border);
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  
}

.hero-buttons {
  margin-top: 24px;
}

/* Sections */
section {
  margin-bottom: 96px;
}

h2 {
  margin-bottom: 24px;
}

/* Grid / Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #2A2A2A;
}

/* Services */
.services {
  list-style: none;
  padding: 0;
}

.services li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* Commission */
.commission {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}

/* Limit card width */
.grid .card {
  max-width: 400px;  /* each card won’t exceed 400px wide */
  margin: 0 auto;
}

/* Make portfolio media scale nicely */
.card img,
.card video {
  width: 100%;       /* fill the card width */
  height: auto;      /* maintain aspect ratio */
  border-radius: 12px; /* match card rounding */
  object-fit: cover; /* crop nicely if needed */
  margin-bottom: 12px;
}

/* Optional: max height for video to avoid huge tall players */
.card video {
  max-height: 300px;
}

/* Hover effect for portfolio media */
.card img,
.card video {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Commission form submit */

#submitBtn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  cursor: pointer;
}

#submitBtn:hover {
  opacity: 0.9;
}

/* Add a subtle zoom and shadow on hover for portfolio media */
.card img:hover,
.card video:hover {
  transform: scale(1.05); /* slight zoom */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* subtle shadow */
}
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

.portfolio-section {
  margin-bottom: 80px;
}

.portfolio-section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--text);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.portfolio-card img,
.portfolio-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}

.tag {
  align-self: flex-start;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

.card, .portfolio-card, section {
  transition: all 0.6s ease-out;
}

#typed-text::after {
  content: "|";
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

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