/* Color Palette Variables (refactored) */
:root {
  /* Main (Blues) */
  --main-900: #191e29;
  --main-600: #001933;
  --main-500: #001f3f;
  --main-400: #003266;
  --main-300: #004b99;

  /* Brand (Teals) */
  --brand-700: #004d40;
  --brand-600: #00806b;
  --brand-500: #00b195;
  --brand-400: #00e5c1;
  --brand-300: #1affdb;

  /* Accents */
  --accent-lime: #d8e64c;
  --accent-yellow: #fbd900;
  --accent-orange: #f05a28;
  --accent-purple: #4b2e83;

  /* Neutrals */
  --neutral-800: #2f343c;
  --neutral-700: #444a5a;
  --neutral-600: #696e79;
  --neutral-500: #8a909c;
  --neutral-400: #c7ccd4;
  --neutral-300: #eef1f4;

  /* Black / White */
  --black: #000000;
  --white: #ffffff;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-primary:
    "Sofia Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Backwards-compatible aliases */
  --dark-bg: var(--main-900);
  --dark-navy: var(--main-600);
  --cyan: var(--brand-400);
  --light-gray: var(--neutral-400);
  --medium-gray: var(--neutral-500);
  --yellow: var(--accent-yellow);
  --orange: var(--accent-orange);
}

/* Load local Sofia Sans from fonts folder */
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/Sofia_Sans/static/SofiaSans-ExtraLight.ttf")
    format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/Sofia_Sans/static/SofiaSans-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/Sofia_Sans/static/SofiaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--dark-bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: 1.1;
  color: var(--brand-400);
  margin-bottom: var(--spacing-md);
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 31, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(0, 217, 192, 0.2);
}

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

.logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a:not(.btn-contact):hover {
  color: var(--brand-500);
}

.nav-menu a:not(.btn-contact)::after {
  content: "";
  position: absolute;
  background: var(--brand-500);
  color: var(--main-500);
  width: 0;
  height: 2px;
  background: var(--brand-500);
  background: var(--brand-400);
}

.nav-menu a:not(.btn-contact):hover::after {
  width: 100%;
}

.btn-contact:hover {
  background: var(--brand-400);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 217, 192, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--brand-500);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: var(--font-size-base);
}

.btn-primary {
  background: var(--cyan);
  color: var(--dark-navy);
}

.btn-primary:hover {
  background: var(--bright-cyan);
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 217, 192, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-secondary:hover {
  background: var(--cyan);
  color: var(--dark-navy);
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 217, 192, 0.3);
}

/* Section Titles */
.section-title {
  font-size: var(--font-size-2xl);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand-500),
    var(--accent-yellow),
    var(--accent-orange),
    var(--accent-purple)
  );
  border-radius: 2px;
}

/* Services Section */
.services {
  padding: var(--spacing-xl) 0;
  background: var(--main-900);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--spacing-md);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-500);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card[data-color="cyan"]::before {
  background: var(--brand-500);
}

.service-card[data-color="yellow"]::before {
  background: var(--accent-yellow);
}

.service-card[data-color="orange"]::before {
  background: var(--accent-orange);
}

.service-card[data-color="purple"]::before {
  background: var(--accent-purple);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 192, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 192, 0.1);
  border-radius: 12px;
  color: var(--brand-500);
  transition: all var(--transition-base);
}

.service-card[data-color="cyan"] .service-icon {
  background: rgba(0, 217, 192, 0.1);
  color: var(--brand-500);
}

/* --- Styles moved from index.html <style> block --- */

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

body {
  font-family: var(--font-primary);
  background: var(--main-900);
  color: var(--white);
  padding: 0;
  margin: 0;
}

button {
  border: none;
}

.hero {
  width: 100%;
  height: 100vh;
  background: url("../images/hero-banner.jpg") top/cover no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero .container {
  padding: 2rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-section {
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--white);
  font-size: var(--font-size-2xl);
  text-align: center;
}

/* footer */
.footer-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  background: url("../images/end-banner.jpg") top/cover no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.footer-hero .footer-section {
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--white);
  font-size: var(--font-size-3xl);
  text-align: center;
}

/* Hero logo positioning */
.hero-logo {
  max-width: 630px;
  width: 100%;
  height: auto;
  margin-top: 10%;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 1rem;
  text-align: left;
  color: var(--white) fff;
  -webkit-text-fill-color: var(--white) fff;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-wrapper {
  padding: 3rem 2rem;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

.content-wrapper h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white) 0%, #00d9c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  text-align: center;
  color: #b0b8c1;
  margin-bottom: 4rem;
  font-size: 1.2rem;
}

.logo-showcase {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.logo-showcase img {
  max-width: 400px;
  height: auto;
}

.palette-section {
  margin-bottom: 4rem;
}

.palette-section h3,
.sheets-section h3,
.typography-styles-guide h3,
.digital-assets-section h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  border-left: 4px solid #00d9c0;
  padding-left: 1rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.1;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.color-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.color-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.color-preview {
  height: 150px;
  width: 100%;
  position: relative;
}

.color-info {
  padding: 1rem;
  text-align: left;
}

.color-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.color-values {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  text-align: left;
}

.color-value {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #b0b8c1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  text-align: left;
}

.color-value span {
  flex-shrink: 0;
}

.usage-examples {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
}

.usage-examples h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.example-card h4 {
  margin-bottom: 1rem;
  color: #00d9c0;
}

.example-preview {
  background: var(--main-900);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.example-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-cyan {
  background: #00d9c0;
  color: var(--main-900);
}

.btn-yellow {
  background: #fdd835;
  color: var(--main-900);
}

.btn-orange {
  background: #ff7043;
  color: var(--main-900);
}

.btn-purple {
  background: #5e35b1;
  color: var(--white);
}

.example-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.gradient-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gradient-card {
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-intro {
  margin-bottom: var(--spacing-lg);
  max-width: 70%;
}

/* Font showcase */
.font-showcase {
  margin: 10rem 0;
}
.font-showcase h3 {
  margin-bottom: var(--spacing-lg);
}
.font-showcase .subtitle {
  margin: 0 0 1rem;
  color: #b0b8c1;
}
.font-samples {
  display: block;
}
.font-sample {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.font-sample .label {
  width: 110px;
  color: #b0b8c1;
  font-size: 0.95rem;
}
.font-sample .text {
  color: var(--white);
  line-height: 1.1;
}

/* Typography styles & weights guide */
.typography-styles-guide {
  margin: var(--spacing-lg) 0;
  padding-top: var(--spacing-lg);
}

.typography-styles-guide h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  color: var(--white);
}

.typography-styles-guide h4 {
  font-size: var(--font-size-lg);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  color: var(--medium-gray);
}

.typography-styles-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
}

.typography-style-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
}

.typography-sample {
  flex-shrink: 0;
  color: var(--white);
  line-height: 1.2;
}

.typography-headline-xl {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  overflow-wrap: break-word;
  word-break: break-word;
}

.typography-headline {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  overflow-wrap: break-word;
  word-break: break-word;
}

.typography-subheadline-semibold {
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.typography-subheadline-medium {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.typography-body {
  font-weight: 400;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
}

.typography-accent {
  font-weight: 600;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.typography-connector {
  flex: 1;
  min-width: 1rem;
  height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  align-self: center;
  margin: 0 0.25rem;
}

.typography-desc {
  flex-shrink: 1;
  font-size: var(--font-size-sm);
  color: var(--medium-gray);
  font-weight: 400;
}

.typography-stack {
  display: flex;
  flex-direction: column;
}

.typography-stack .t-accent {
  font-weight: 600;
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.typography-stack .t-headline {
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.1;
}

.typography-stack .t-subheadline {
  font-weight: 600;
  font-size: var(--font-size-xl);
  color: var(--white);
  padding-bottom: 1rem;
}

.typography-stack .t-body {
  font-weight: 400;
  font-size: var(--font-size-base);
  color: var(--light-gray);
  line-height: 1.5;
}

/* Logos gallery */
.logo-section {
  margin: 3rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}
.logo-section h2 {
  margin: 0 0 0.5rem;
  color: var(--brand-500);
}
.logo-section .subtitle {
  margin: 0 0 1rem;
  color: #b0b8c1;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
}
.logo-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

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

/* explicit sizing for horizontal vs square logos */
.logo-item img.logo-horizontal {
  height: 300px;
  width: auto;
  object-fit: contain;
}
.logo-item img.logo-square {
  height: 360px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .logo-item img.logo-horizontal,
  .logo-item img.logo-square {
    height: auto;
    max-height: 45vh;
    width: 100%;
  }

  .logo-item img.logo-square {
    max-height: 180px;
  }
}

/* Logo Do & Don't (top-level styles to ensure single-row layout) */
.logo-dos-section {
  margin-top: 3.5rem;
}
.logo-dos-section h3 {
  margin-bottom: 0.5rem;
}
.logo-dos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.logo-do-item figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}
.logo-do-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.logo-do-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #cfd6e3;
}

.logo-do-item {
  background: var(--white);
  border-radius: 8px;
}

@media (max-width: 600px) {
  .logo-dos-grid {
    grid-template-columns: 1fr;
  }
  .logo-do-item figure {
    height: 180px;
  }
}

/* Sheets 1x3 gallery */
.sheets-section {
  margin: 6rem 0;
}

.sheets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.sheet-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 6.5rem;
  border-radius: 8px;
  display: block;
  overflow: hidden;
}
.sheet-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

  .section-intro {
    max-width: 100%;
  }
}

/* Additional mobile refinements */
@media (max-width: 800px) {
  .hero {
    min-height: 60vh;
    padding-top: 60px;
    background-position: center;
  }

  .hero .container {
    padding: 1.5rem;
    max-width: 100%;
    margin-left: 0;
  }

  .hero-section {
    text-align: center;
    align-items: center;
  }

  .hero-logo {
    max-width: 260px;
    margin: 0 auto 1rem;
  }

  @media (max-width: 480px) {
  }
  .content-wrapper {
    padding: 1.5rem 1rem;
  }

  .sheet-item {
    padding: 1rem 5rem;
  }

  .app-item {
    height: auto;
  }

  .app-item img,
  .sheet-item img {
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .font-showcase {
    margin: 4rem 0;
  }

  .section-intro {
    max-width: 100%;
  }
}

/* Applications (stationary) grid */
.applications-section {
  margin: 3rem 0;
}
.applications-section h2 {
  margin: 0 0 0.5rem;
  color: var(--brand-500);
}
.applications-section .subtitle {
  margin: 0 0 1rem;
  color: #b0b8c1;
}
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.app-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  display: block;
  overflow: hidden;
  height: 380px;
}
.app-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

/* Favicon & Email signature section */
.digital-assets-section {
  margin: var(--spacing-xl) 0;
  padding-top: var(--spacing-lg);
}

.digital-assets-section h2 {
  margin-bottom: var(--spacing-md);
  color: var(--brand-400);
}

.asset-block {
  margin-bottom: var(--spacing-xl);
}

.asset-block:last-child {
  margin-bottom: 0;
}

.asset-block h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

.asset-block .section-intro {
  margin-bottom: var(--spacing-md);
}

.asset-image-wrap {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.asset-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.favicon-sizes {
  margin-top: var(--spacing-md);
}

.favicon-sizes h4 {
  color: var(--white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-md);
}

.size-example {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--neutral-700);
  border-radius: 8px;
  padding: var(--spacing-sm);
  text-align: center;
}

.size-icon {
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-xs);
}

.size-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.size-example p {
  font-size: var(--font-size-xs);
  color: var(--neutral-300);
  margin: 0;
  line-height: 1.4;
}

/* Signature Preview Styles */
.signature-preview-container {
  background: rgba(255, 255, 255, 0.02);
}

.signature-preview-wrapper {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.signature-iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.signature-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .color-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .color-card {
    border-radius: 8px;
    border-width: 1px;
  }

  .color-preview {
    height: 72px;
  }

  .color-info {
    padding: 0.5rem 0.6rem;
  }

  .color-name {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .color-values {
    gap: 0.15rem;
  }

  .color-value {
    font-size: 0.7rem;
    gap: 0.2rem;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes rotateBlocks {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

.color-block {
  border-radius: 16px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.color-block:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
  padding: var(--spacing-xl) 0;
  background: var(--dark-bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item[data-color="cyan"]:hover {
  border-color: var(--cyan);
  box-shadow: 0 5px 20px rgba(0, 217, 192, 0.2);
}

.contact-item[data-color="yellow"]:hover {
  border-color: var(--yellow);
  box-shadow: 0 5px 20px rgba(253, 216, 53, 0.2);
}

.contact-item[data-color="orange"]:hover {
  border-color: var(--orange);
  box-shadow: 0 5px 20px rgba(255, 112, 67, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 192, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-item[data-color="cyan"] .contact-icon {
  background: rgba(0, 217, 192, 0.1);
  color: var(--cyan);
}

.contact-item[data-color="yellow"] .contact-icon {
  background: rgba(253, 216, 53, 0.1);
  color: var(--yellow);
}

.contact-item[data-color="orange"] .contact-icon {
  background: rgba(255, 112, 67, 0.1);
  color: var(--orange);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item h4 {
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.contact-item p {
  color: var(--light-gray);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 217, 192, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 217, 192, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--medium-gray);
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  background: var(--main-900);
  border-top: 1px solid rgba(0, 217, 192, 0.2);
}

.footer-hero-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: var(--spacing-md);
}

.footer p {
  color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .color-blocks {
    grid-template-columns: repeat(2, 100px);
    grid-template-rows: repeat(2, 100px);
    gap: var(--spacing-sm);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-3xl: 32px;
    --font-size-2xl: 24px;
    --font-size-xl: 20px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .color-grid {
    gap: 0.5rem;
  }

  .color-preview {
    height: 56px;
  }

  .color-info {
    padding: 0.4rem 0.5rem;
  }

  .color-name {
    font-size: 0.8rem;
  }

  .color-value {
    font-size: 0.65rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
