:root {
  --bg-color: #0d0d0e;
  --text-color: #f5f5f7;
  --accent-color: #ffffff;
  --secondary-color: #86868b;
  --surface-color: #1c1c1e;
  --font-main: 'Clash Grotesk', sans-serif;
  --font-heading: 'Clash Grotesk', sans-serif;
  --spacing-unit: 1rem;
  --container-width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

/* Hide cursor essentially everywhere */
*:not(iframe), *::before, *::after {
  cursor: none !important;
}

/* Restore for admin and specialized interactions */
body.admin-body, 
body.admin-body *,
body.admin-body *::before,
body.admin-body *::after,
.video-container,
.video-container iframe {
  cursor: auto !important;
}

/* Ensure pointer feedback in admin where custom cursor is off */
body.admin-body a,
body.admin-body button,
body.admin-body input[type="submit"],
body.admin-body input[type="button"],
body.admin-body select,
body.admin-body label,
body.admin-body [role="button"] {
  cursor: pointer !important;
}

/* Custom Cursor */
.cursor-dot {
  width: 12px;
  height: 12px;
  background-color: #bfff00; /* Acid Green */
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000000;
  transition: transform 0.2s ease-out, background-color 0.2s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot.hovering {
  transform: translate(-50%, -50%) scale(4); /* Roughly 3x bigger visually */
  background-color: #bfff00;
  animation: cursorPulse 1.5s infinite ease-in-out;
}

.cursor-dot.hero-hover {
  transform: translate(-50%, -50%) scale(4);
  background-color: #bfff00;
  animation: cursorPulse 1.5s infinite ease-in-out;
}

@keyframes cursorPulse {
  0% { transform: translate(-50%, -50%) scale(4); }
  50% { transform: translate(-50%, -50%) scale(4.8); }
  100% { transform: translate(-50%, -50%) scale(4); }
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* Typography styles */
.text-large {
  font-size: clamp(5.5rem, 19vw, 16rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.05em;
}

/* Custom Selection */
::selection {
  background: #bfff00;
  color: #000;
}
::-moz-selection {
  background: #bfff00;
  color: #000;
}

.text-medium {
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
}

.floating-text {
  display: inline-block;
}

.hover-word {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
  cursor: default;
}

.hover-word:hover {
  transform: translateY(-5px) scale(1.05);
  color: var(--accent-color);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 101;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Sections */
section {
  padding: 10vh 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-sub {
  margin-top: 2rem;
  color: var(--secondary-color);
  max-width: 400px;
}

/* Service Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  border-top: 1px solid var(--surface-color);
  padding-top: 2rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-visual {
  width: 100%;
  height: 200px;
  background: var(--surface-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.motion-visual .motion-dot {
  width: 20px;
  height: 20px;
  background: #bfff00;
  border-radius: 50%;
  margin: 0 10px;
  animation: pulse 1.5s infinite ease-in-out;
}

.motion-visual .motion-dot:nth-child(2) { animation-delay: 0.2s; }
.motion-visual .motion-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.video-visual .video-frame {
  width: 100px;
  height: 60px;
  border: 2px solid var(--secondary-color);
  position: relative;
}

.video-visual .video-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-left: 15px solid #bfff00;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Featured Section */
.featured-grid {
  display: flex;
  gap: 1rem;
  height: 80vh;
}

.featured-main {
  flex: 1;
  height: 100%;
}

.featured-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.featured-side .portfolio-item-link {
  flex: 1;
  height: auto;
  min-height: 0;
}

.featured-side .portfolio-item {
  height: 100%;
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 10;
}

.item-overlay span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-color);
}

.portfolio-item {
  position: relative;
  height: 100%;
  background: var(--surface-color);
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item-link {
  display: block;
  height: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 10vh;
}

/* Supplemental grid for homepage if more than 3 projects */
.featured-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.featured-extra-grid .portfolio-item {
  aspect-ratio: 4 / 3;
}

.portfolio-grid .portfolio-item {
  aspect-ratio: 1 / 1.1;
}

.btn-primary {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: #bfff00; /* Acid Green */
  color: black;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-5px);
  opacity: 1;
}

/* Footer */
footer {
  padding: 4rem 4vw;
  border-top: 1px solid var(--surface-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.location-info {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  transform-origin: left;
}

.back-btn:hover {
  transform: scale(2);
  opacity: 1;
}

.arrow-left {
  width: 40px;
  height: 2px;
  background: var(--text-color);
  position: relative;
}

.arrow-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    gap: 3rem;
    font-size: 2rem;
    border-left: 1px solid var(--surface-color);
  }

  .nav-links.active {
    right: 0;
  }

  .featured-grid {
    flex-direction: column;
    height: auto;
  }

  .featured-main, .featured-side {
    height: 60vh;
  }

  .featured-extra-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item { grid-column: span 12; }
  
  .text-large {
    font-size: clamp(3rem, 15vw, 6rem);
  }
}

@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(200%);
  width: calc(100% - 4rem);
  max-width: 600px;
  background: #1c1c1e;
  padding: 1.2rem 2rem;
  z-index: 99999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  font-size: 0.9rem;
  color: var(--secondary-color);
  max-width: 60%;
}

.cookie-btn {
  background: #bfff00;
  color: black;
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.05em;
}

/* Contact Page Reference-based Design */
.contact-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  margin-top: 5vh;
  margin-bottom: 20vh;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--surface-color);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(191, 255, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(191, 255, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: #bfff00;
}

.card-info span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
}

.card-info h4 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}

.form-wrapper {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-wrapper p {
  color: var(--secondary-color);
  margin-bottom: 2.5rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-full {
  grid-column: span 2;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #bfff00;
  background: rgba(191, 255, 0, 0.05);
}

.submit-btn-wrapper {
  margin-top: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: #bfff00;
  color: black;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(191, 255, 0, 0.2);
}

@media (max-width: 900px) {
  .cursor-dot {
    display: none !important;
  }

  *:not(iframe), *::before, *::after {
    cursor: auto !important;
  }

  .back-btn:hover {
    transform: none;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .form-wrapper {
    padding: 2rem;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-full {
    grid-column: span 1;
  }
}
