/* CSS Design System - Today Construction GYE */

/* 1. Global Reset & Theme Tokens */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Font Families */
  --font-title: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Color Palette - HSL (Dark Theme default) */
  --primary-hue: 24;    /* Amber/Orange premium construction */
  --primary-sat: 95%;
  --primary-light: 55%;
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), 45%);
  --primary-soft: rgba(249, 115, 22, 0.12);

  --secondary-hue: 217; /* Blue Steel industrial */
  --secondary-sat: 91%;
  --secondary-light: 60%;
  --secondary: hsl(var(--secondary-hue), var(--secondary-sat), var(--secondary-light));
  --secondary-hover: hsl(var(--secondary-hue), var(--secondary-sat), 50%);
  --secondary-soft: rgba(59, 130, 246, 0.12);

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --info: #06b6d4;
  --info-soft: rgba(6, 182, 212, 0.12);
  
  /* Theme-dependent tokens (Dark Mode) */
  --bg-base: #06090f;
  --bg-offset: #0c121e;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-nav: rgba(6, 9, 15, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --glass-blur: 14px;
  
  /* Layout */
  --header-height: 85px;
  --header-height-scroll: 70px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables override */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-offset: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-nav: rgba(248, 250, 252, 0.8);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --primary-soft: rgba(249, 115, 22, 0.08);
  --secondary-soft: rgba(59, 130, 246, 0.08);
}

/* 2. Base & Typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-scroll) + 20px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base Layout Container */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.bg-slate-900-offset {
  background-color: var(--bg-offset);
}

/* 3. Ambient Glow Effects */
.ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-medium);
}

.glow-1 {
  top: 15%;
  right: -10%;
  background: var(--primary);
}

.glow-2 {
  top: 60%;
  left: -20%;
  background: var(--secondary);
}

[data-theme="light"] .ambient-glow {
  opacity: 0.05;
}

/* 4. Common Design Blocks & Utilities */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), transform var(--transition-medium), box-shadow var(--transition-medium);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.title-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
  margin: 15px auto 25px auto;
}

.title-divider.align-left {
  margin-left: 0;
}

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

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

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  padding: 5px 0;
}

.btn-text:hover {
  color: var(--primary-hover);
}

.btn-text .chevron {
  transition: transform var(--transition-fast);
}

.btn-text.active .chevron {
  transform: rotate(180deg);
}

/* Icon backgrounds */
.card-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bg-primary-soft {
  background: var(--primary-soft);
}

.bg-secondary-soft {
  background: var(--secondary-soft);
}

.bg-success-soft {
  background: var(--success-soft);
}

.bg-info-soft {
  background: var(--info-soft);
}

.stroke-primary {
  stroke: var(--primary);
}

.stroke-secondary {
  stroke: var(--secondary);
}

/* 6. Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  transition: height var(--transition-medium), background var(--transition-medium), border var(--transition-medium);
}

.main-header.scrolled {
  height: var(--header-height-scroll);
  background: var(--bg-base);
  box-shadow: var(--shadow-sm);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  transition: height var(--transition-medium), width var(--transition-medium);
}

.main-header.scrolled .logo-img {
  height: 42px;
  width: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.18em;
  line-height: 1;
  margin-top: 2px;
}

.nav-menu ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .action-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Light / Dark Toggles */
.sun-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.moon-icon {
  display: none;
  width: 20px;
  height: 20px;
}

[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}

.menu-toggle {
  display: none; /* Desktop hidden */
}

/* 7. Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: slowZoom 20s ease-out forwards;
  z-index: -2;
}

@keyframes slowZoom {
  to {
    transform: scale(1);
  }
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(6, 9, 15, 0.6) 0%,
    rgba(6, 9, 15, 0.8) 50%,
    var(--bg-base) 100%
  );
  z-index: -1;
  transition: background var(--transition-medium);
}

[data-theme="light"] .hero-gradient {
  background: linear-gradient(to bottom, 
    rgba(248, 250, 252, 0.65) 0%,
    rgba(248, 250, 252, 0.85) 60%,
    var(--bg-base) 100%
  );
}

.hero-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 720px;
  margin-top: 50px;
}

.hero-tagline {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: inline-block;
  margin-bottom: 20px;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  color: var(--text-muted);
  cursor: pointer;
}

.mouse-scroll {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  display: block;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseMove 1.6s infinite ease-in-out;
}

@keyframes mouseMove {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    top: 22px;
    opacity: 0;
  }
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* 8. About Us (Mision, Vision, Valores) */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.about-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.values-area {
  margin-top: 60px;
}

.values-title {
  font-size: 2rem;
  margin-bottom: 45px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.value-item {
  transition: transform var(--transition-medium);
}

.value-item:hover {
  transform: translateY(-8px);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.value-item:hover .value-icon {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.value-item h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 9. Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-icon {
  color: var(--primary);
  margin-bottom: 20px;
}

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

.service-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Accordion Inside Cards */
.service-accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium) ease, opacity var(--transition-medium) ease;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
}

.service-accordion-content.active {
  max-height: 500px;
  opacity: 1;
}

.service-accordion-content ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-accordion-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
}

.service-accordion-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* 10. Crew (Specialists) & Software Used */
.crew-split {
  display: grid;
  grid-template-columns: 55% 40%;
  gap: 5%;
  align-items: center;
}

.crew-intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.crew-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.crew-tag {
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.crew-tag:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* Software Sidebar */
.crew-right h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  border-left: 4px solid var(--secondary);
  padding-left: 12px;
}

.crew-right p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.software-carousel {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
}

.software-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.software-item:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.software-item img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  margin-bottom: 10px;
}

.software-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.software-item:hover span {
  color: var(--text-main);
}

/* 11. Projects (Portfolio) */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.portfolio-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-offset);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.08);
}

.portfolio-category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.portfolio-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-info .btn {
  margin-top: auto;
}

/* 12. Contact Us Form & Direct Panel */
.contact-grid {
  display: grid;
  grid-template-columns: 42% 55%;
  gap: 3%;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-info-panel h3,
.contact-form-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.panel-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 35px;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.contact-item.link-item:hover {
  background: var(--bg-offset);
  border-color: var(--border-color);
  transform: translateX(5px);
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.contact-item.link-item:hover .contact-item-icon {
  background: var(--primary);
  color: var(--text-inverse);
}

.contact-item-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-value {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.social-links-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  padding-left: 5px;
}

.social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  background: var(--primary-soft);
}

/* Contact Form Grid / Float Labels */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.textarea-control {
  resize: vertical;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-base);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-label {
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all var(--transition-fast);
}

/* Float label trigger */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-base);
  padding: 0 8px;
  color: var(--primary);
  border-radius: 4px;
}

/* Active Validations using CSS */
.form-control:user-invalid {
  border-color: #ef4444;
}

.form-control:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 5px;
  display: none;
  padding-left: 5px;
}

.form-control:user-invalid ~ .error-msg {
  display: block;
}

.form-feedback {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* 13. Dialog / Lightbox Modal */
.project-dialog {
  border: none;
  background: transparent;
  max-width: 90vw;
  width: 1040px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin: auto;
  outline: none;
}

.project-dialog::backdrop {
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity var(--transition-medium);
}

.dialog-wrapper {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.dialog-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
}

.dialog-close-btn:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 58% 42%;
}

/* Gallery inside Lightbox */
.dialog-gallery-area {
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  aspect-ratio: 4/3;
}

.main-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
  transition: opacity var(--transition-fast) ease-in-out;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.nav-arrow:hover {
  background: var(--primary);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

.thumbnails-container {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(6, 9, 15, 0.95);
  overflow-x: auto;
  border-top: 1px solid var(--border-color);
}

.thumb-img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.thumb-img:hover,
.thumb-img.active {
  opacity: 1;
  border-color: var(--primary);
}

/* Info Box inside Lightbox */
.dialog-info-area {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 520px;
}

.dialog-tag {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.dialog-info-area h2 {
  font-size: 1.8rem;
  line-height: 1.25;
}

.dialog-body-text {
  margin-top: 20px;
}

.dialog-body-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.dialog-meta-specs {
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
}

.dialog-meta-specs h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.dialog-meta-specs p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* 14. Footer */
.footer-section {
  position: relative;
  background-color: #06090f;
  color: #ffffff;
  padding: 80px 0 30px 0;
  overflow: hidden;
  z-index: 1;
}

.footer-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: -2;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, 
    #06090f 0%,
    rgba(6, 9, 15, 0.92) 100%
  );
  z-index: -1;
}

.footer-container {
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: grid;
  grid-template-columns: 45% 25% 30%;
  gap: 5%;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 56px;
  width: 56px;
  margin-bottom: 15px;
  object-fit: contain;
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: #ffffff;
  line-height: 1.1;
}

.footer-brand .subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 400px;
}

.footer-top h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 8px;
}

.footer-top h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul,
.footer-specialties ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-specialties li {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
}

/* 15. Responsive Styling (Media Queries) */

/* Up to 1024px (Tablets & Landscape) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .crew-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .project-dialog {
    width: 95vw;
  }
  
  .dialog-grid {
    grid-template-columns: 1fr;
  }
  
  .dialog-gallery-area {
    aspect-ratio: 16/9;
  }
  
  .dialog-info-area {
    max-height: 380px;
    padding: 30px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: span 2;
    margin-bottom: 20px;
  }
}

/* Mobile responsive menu */
@media (max-width: 768px) {
  :root {
    --header-height: 75px;
    --header-height-scroll: 65px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-desc {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
  }
  
  .menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all var(--transition-fast);
  }
  
  /* Hamburguer animation */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-base);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 30px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    overflow-y: auto;
    z-index: 99;
  }
  
  .main-header.scrolled .nav-menu {
    top: var(--header-height-scroll);
    height: calc(100vh - var(--header-height-scroll));
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .nav-link {
    font-size: 1.3rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .software-track {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}
