:root {
  /* Colors */
  --color-primary: #272727;
  --color-secondary: #dda14e;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-muted: #9a8c79;
  --color-background: #fff;
  --color-background-alt: #fff5ed;
  --color-border: #ccc;
  --color-border-dark: #333;
  --color-success: #d4edda;
  --color-success-text: #155724;
  --color-success-border: #c3e6cb;
  --color-error: #f8d7da;
  --color-error-text: #721c24;
  --color-error-border: #f5c6cb;
  --color-tag-bg: #ecebe6;
  --color-tag-border: #444;

  /* Typography */
  --font-family-primary: 'Inter', sans-serif;
  --font-family-display: 'Wooow', sans-serif;
  --font-size-base: 14px;
  --font-size-large: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 28px;
  --font-size-5xl: 32px;
  --font-size-6xl: 36px;
  --font-size-7xl: 96px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 15px;
  --spacing-base: 20px;
  --spacing-sm-md: 16px;
  --spacing-lg: 25px;
  --spacing-xl: 30px;
  --spacing-2xl: 40px;
  --spacing-3xl: 60px;
  --spacing-4xl: 80px;
  --spacing-5xl: 32px;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 20px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-transform: transform 0.3s ease;
  --transition-border: border-color 0.3s ease;
  --transition-button: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-hover: 0 8px 25px rgba(39, 39, 39, 0.2);
}

/* Font Faces */
@font-face {
  font-family: 'Wooow';
  src: url('/fonts/wooow/wooow.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Wooow';
  src: url('/fonts/wooow/wooow-heavy.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Wooow';
  src: url('/fonts/wooow/wooow-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

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

/* Base Styles */
body {
  font-family: var(--font-family-primary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

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

/* Navigation */
nav {
  padding: var(--spacing-base) 0;
  background-color: var(--color-background-alt);
}

.logo {
  font-size: var(--font-size-4xl);
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  width: fit-content;
}

.logo .stack {
  font-weight: 300;
}

.logo .noir {
  font-weight: bold;
}

.logo svg {
  margin-right: var(--spacing-sm);
  height: 32px;
  width: 32px;
  transition: var(--transition-transform);
}

.logo:hover svg {
  transform: rotate(-10deg);
}

/* Font Utilities */
.font-wooow {
  font-family: var(--font-family-display), sans-serif;
}

.font-wooow-light {
  font-family: var(--font-family-display), sans-serif;
  font-weight: 300;
}

.font-wooow-normal {
  font-family: var(--font-family-display), sans-serif;
  font-weight: normal;
}

.font-wooow-bold {
  font-family: var(--font-family-display), sans-serif;
  font-weight: bold;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-3xl) 0;
  background: var(--color-background-alt);
}

.hero-content h1 {
  font-family: var(--font-family-display), sans-serif;
  font-size: var(--font-size-7xl);
  margin-bottom: var(--spacing-base);
  letter-spacing: 1px;
  font-weight: normal;
  color: var(--color-text);
  position: relative;
  z-index: 2;
}

.hero-content p {
  font-size: var(--font-size-xl);
  color: rgb(44, 44, 44);
  max-width: 600px;
  margin: 0 auto var(--spacing-2xl);
}

/* Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-background);
  padding: var(--spacing-sm-md) var(--spacing-5xl);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: var(--font-size-xl);
  font-weight: 600;
  transition: var(--transition-button);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  user-select: none;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
  transition: var(--transition-button);
}

.cta-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 39, 39, 0.3);
}

.submit-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-background);
  padding: var(--spacing-sm-md) var(--spacing-5xl);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xl);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-button);
  border: 2px solid var(--color-primary);
  user-select: none;
}

.submit-btn:hover {
  background-color: transparent;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.submit-btn:active {
  transform: translateY(0) scale(0.98);
  transition: var(--transition-button);
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 39, 39, 0.3);
}

/* Parallax Shapes */
.parallax-shape {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.75;
  z-index: 5;
  pointer-events: none;
}

.shape-1 {
  top: 60%;
  left: 10%;
  width: 360px;
  height: 360px;
  background-image: url('/img/shapes/9.png');
}

.shape-2 {
  bottom: 15%;
  left: 2%;
  width: 280px;
  height: 280px;
  background-image: url('/img/shapes/10.png');
}

.shape-3 {
  top: 50%;
  left: 3%;
  width: 200px;
  height: 200px;
  background-image: url('/img/shapes/18.png');
}

.shape-4 {
  top: 15%;
  right: 2%;
  width: 320px;
  height: 320px;
  background-image: url('/img/shapes/12.png');
}

.shape-5 {
  bottom: 25%;
  right: 3%;
  width: 240px;
  height: 240px;
  background-image: url('/img/shapes/21.png');
}

/* Services Section */
.services {
  position: relative;
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-background);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.service-card {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-base);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  transition: var(--transition-transform), var(--transition-border);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}

.service-card h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 svg {
  margin-right: var(--spacing-sm);
  height: 24px;
  width: 24px;
  color: var(--color-primary);
}

.service-card p {
  font-size: var(--font-size-large);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: var(--spacing-4xl) 0;
  position: relative;
}

.contact h2 {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.contact-info h3,
.contact-form h3 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-base);
  color: var(--color-text);
  font-weight: bold;
}

.contact-info {
  color: var(--color-text);
  line-height: 2;
}

.contact-info a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text-light);
  transition: var(--transition-border);
}

.contact-info a:hover {
  border-color: var(--color-secondary);
}

.contact-form {
  background-color: var(--color-background-alt);
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--spacing-base);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition: var(--transition-border);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* Form Messages */
.form-message {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-base);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
}

.form-message.success {
  background-color: var(--color-success);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
}

.form-message.error {
  background-color: var(--color-error);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
}

/* Checkbox */
.checkbox-group {
  margin-bottom: var(--spacing-lg);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: var(--font-size-base);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: var(--spacing-sm);
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Hidden Fields */
.field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.field input {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* Utility Classes */
.accent {
  color: var(--color-secondary);
}

.accent-bg {
  background-color: var(--color-background-alt);
}

.section-title {
  font-family: var(--font-family-display), sans-serif;
  font-size: var(--font-size-6xl);
  text-align: center;
  margin-bottom: var(--spacing-base);
  font-weight: bold;
  color: var(--color-text);
}

/* Portfolio Section */
.portfolio {
  position: relative;
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-background-alt);
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: center;
  padding: var(--spacing-lg);
  background-color: var(--color-background);
  border: 1px solid var(--color-border-dark);
  transition: var(--transition-transform), var(--transition-border);
  position: relative;
  z-index: 2;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}

.portfolio-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.portfolio-img {
  width: 300px;
  height: 533px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--spacing-sm);
  border: 2px solid var(--color-border-dark);
  transition: var(--transition-border), var(--transition-transform);
  position: relative;
  z-index: 3;
}

.portfolio-item:hover .portfolio-img {
  border-color: var(--color-secondary);
  transform: scale(1.02);
}

.portfolio-content {
  text-align: left;
}

.portfolio-content h3 {
  font-family: var(--font-family-display), sans-serif;
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-base);
  color: var(--color-text);
  font-weight: bold;
}

.portfolio-content p {
  color: var(--color-text-light);
  font-size: var(--font-size-xl);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.tech-details {
  color: var(--color-text-muted) !important;
  font-size: var(--font-size-base) !important;
  font-weight: 500;
  margin-bottom: var(--spacing-base) !important;
}

.portfolio-tags {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.tag {
  background-color: var(--color-tag-bg);
  color: var(--color-primary);
  padding: var(--spacing-xs) var(--spacing-base);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  border: 1px solid var(--color-tag-border);
}

/* What We Do Section */
.what-we-do {
  position: relative;
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-background);
}

.what-we-do .section-title {
  margin-bottom: var(--spacing-2xl);
}

.wwd-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border-dark);
  transition: var(--transition-transform), var(--transition-border);
}

.wwd-item+.wwd-item {
  margin-top: var(--spacing-3xl);
}

.wwd-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}

.wwd-image img {
  width: 80%;
  height: auto;
  display: block;
  transition: var(--transition-transform), var(--transition-border);
  opacity: 0.8;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wwd-item:hover .wwd-image img {
  transform: scale(1.01);
  border-color: var(--color-secondary);
}

.wwd-content h3 {
  font-family: var(--font-family-display), sans-serif;
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-base);
  color: var(--color-text);
  font-weight: bold;
}

.wwd-content p {
  color: var(--color-text-light);
  font-size: var(--font-size-xl);
  line-height: 1.8;
  margin-bottom: var(--spacing-base);
}

.email {
  font-size: var(--font-size-5xl);
  font-weight: bold;
  font-family: var(--font-family-display), sans-serif;
  color: var(--color-text);
}

@media (max-width: 1200px) {
  .email {
    font-size: var(--font-size-2xl);
  }
}

/* Footer */
footer {
  padding: var(--spacing-base) 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  font-weight: 300;
  border-top: 1px solid var(--color-text);
}

/* Additional Utility Classes */
.hidden {
  display: none;
}

.inline {
  display: inline;
}

.ms-1 {
  margin-inline-start: .25rem;
}

.select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.contact-info .protected {
  unicode-bidi: bidi-override;
  direction: rtl;
  text-align: left;
}

.decoy {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

@media print {
  .protected {
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .portfolio-content {
    text-align: center;
  }

  .portfolio-img {
    width: 240px;
    height: 427px;
  }

  .wwd-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wwd-content {
    text-align: center;
  }

  .wwd-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: var(--font-size-6xl);
  }

  .hero-content p {
    font-size: var(--font-size-large);
  }

  .contact h2 {
    font-size: var(--font-size-4xl);
  }

  .contact-info {
    font-size: var(--font-size-large);
  }

  .section-title {
    font-size: var(--font-size-4xl);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  /* Mobile shape adjustments */
  .shape-1 {
    left: 0;
    top: 75%;
    width: 150px;
    height: 150px;
  }

  .shape-2 {
    left: 0;
    top: 20%;
    width: 150px;
    height: 150px;
  }

  .shape-3 {
    right: 0;
    top: 50%;
    width: 100px;
    height: 100px;
  }

  .shape-4 {
    right: 0;
    bottom: 10%;
    width: 150px;
    height: 150px;
  }

  .shape-5 {
    right: 0;
    bottom: 10%;
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--spacing-xl) var(--spacing-base);
  }

  .portfolio-item {
    padding: var(--spacing-base) var(--spacing-md);
  }

  .portfolio-img {
    width: 200px;
    height: 356px;
  }

  .wwd-item {
    padding: var(--spacing-base);
  }
}

.logo-slider {
  padding: var(--spacing-2xl) 0;
  background: var(--color-background);
}

.logo-slider .slider {
  height: 100px;
  margin: 0 auto;
  overflow: hidden;
  max-width: 1280px;
  mask: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.logo-slider .slide-track {
  display: flex;
  animation: scroll 40s linear infinite;
  width: calc(250px * 18);
}

.logo-slider .slide-item {
  height: 100px;
  width: 250px;
  flex-shrink: 0;
}

.logo-slider .slide-image {
  object-fit: contain;
  height: 100px;
  width: 250px;
  padding: 24px;
  filter: grayscale(100%) brightness(0.2);
  transition: filter 0.3s ease;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 9));
  }
}

@media (max-width: 768px) {
  .logo-slider .slider {
    max-width: 100%;
  }

  .logo-slider .slide-track {
    width: calc(200px * 18);
  }

  .logo-slider .slide-item {
    width: 200px;
  }

  .logo-slider .slide-image {
    width: 200px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-200px * 9));
    }
  }
}

@media (max-width: 576px) {
  .logo-slider .slide-track {
    width: calc(150px * 18);
  }

  .logo-slider .slide-item {
    width: 150px;
  }

  .logo-slider .slide-image {
    width: 150px;
    padding: 16px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-150px * 9));
    }
  }
}