/* ============================================================
   НОВЫЙ ДОМ — Premium Architecture Studio
   styles.css — Master Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-bg:           #d2d2d2;
  --color-bg-secondary: #c8c8c8;
  --color-bg-tertiary:  #bfbfbf;
  --color-bg-card:      rgba(240, 240, 240, 0.75);
  --color-accent:       #c8a45c;
  --color-accent-light: #ddc07a;
  --color-accent-dark:  #a68640;
  --color-text:         #1a1a1a;
  --color-text-muted:   #4a4a4a;
  --color-text-dim:     #777777;
  --color-border:       rgba(200, 164, 92, 0.25);
  --color-border-light: rgba(0, 0, 0, 0.08);
  --color-white:        #ffffff;
  --color-overlay:      rgba(180, 180, 180, 0.65);
  --color-overlay-dark: rgba(0, 0, 0, 0.75);

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', 'Georgia', serif;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --container-max:   1280px;
  --nav-height:      80px;
  --border-radius:   12px;
  --border-radius-sm: 8px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(200, 164, 92, 0.15);

  --transition-fast: 0.2s ease;
  --transition:      0.35s ease;
  --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   2. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes barFill {
  0%   { width: 0; }
  50%  { width: 70%; }
  100% { width: 100%; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,164,92,0.4); }
  50%      { box-shadow: 0 0 20px 10px rgba(200,164,92,0); }
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent-light);
}

/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }

/* Icon sizing */
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.icon-feature {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.icon-info {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.icon-bounce {
  width: 28px;
  height: 28px;
  animation: bounce 2s infinite;
  color: var(--color-white);
}

/* ============================================================
   5. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   6. TYPOGRAPHY
   ============================================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.section-label-light {
  color: var(--color-white);
}
.section-label-light::before {
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}
.section-title-light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}
.section-header .section-label {
  justify-content: center;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(200, 164, 92, 0.08);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ============================================================
   8. PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  text-align: center;
}
.preloader-logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
  letter-spacing: 4px;
}
.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--color-bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 3px;
  animation: barFill 1.5s ease-in-out infinite;
}

/* ============================================================
   9. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition);
  background: transparent;
}
.nav.scrolled,
.nav.nav-solid {
  background: rgba(50, 50, 55, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) 0;
  box-shadow: 0 1px 0 var(--color-border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-phone:hover {
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   10. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s linear;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,15,20,0.55) 0%,
    rgba(15,15,20,0.75) 50%,
    rgba(15,15,20,0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(200, 164, 92, 0.1);
  border: 1px solid rgba(200, 164, 92, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.hero-scroll a:hover {
  color: var(--color-accent);
}

/* ============================================================
   11. SECTIONS COMMON
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

/* ============================================================
   12. ABOUT SECTION
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}
.about-description strong {
  color: var(--color-text);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.about-feature:hover {
  border-color: var(--color-border);
  transform: translateX(4px);
}
.about-feature strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2px;
}
.about-feature span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.about-image {
  position: relative;
}
.about-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.about-image-wrapper:hover img {
  transform: scale(1.03);
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.3;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(240, 240, 240, 0.9);
  backdrop-filter: blur(15px);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
  text-align: center;
}
.badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.badge-text {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ============================================================
   13. SERVICES SECTION
   ============================================================ */
.services {
  background: var(--color-bg);
}

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

.service-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(200, 164, 92, 0.1);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all var(--transition);
}
.service-icon svg,
.service-icon i {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
.service-card:hover .service-icon {
  background: var(--color-accent);
  transform: scale(1.1);
}
.service-card:hover .service-icon svg,
.service-card:hover .service-icon i {
  color: #fff;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.service-description {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   14. ADVANTAGES SECTION
   ============================================================ */
.advantages {
  position: relative;
  overflow: hidden;
}
.advantages-bg {
  position: absolute;
  inset: 0;
}
.advantages-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.advantages-overlay {
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 55, 0.88);
}
.advantages .container {
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(200, 164, 92, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-md);
}
.stat-number::after {
  content: '+';
  font-size: 0.6em;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ============================================================
   15. CONTACT SECTION
   ============================================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-form-wrapper {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: rgba(200, 164, 92, 0.04);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.1);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-group select option {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Contact Info */
.info-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
}

.info-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.info-item:last-child {
  margin-bottom: 0;
}
.info-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 2px;
}
.info-item span,
.info-item a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.info-item a:hover {
  color: var(--color-accent);
}

.info-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: var(--space-lg) 0;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-tertiary);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-lg);
}

.footer-description {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.social-link svg {
  width: 18px;
  height: 18px;
}
.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-nav h4,
.footer-contact h4 {
  margin-bottom: var(--space-lg);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}
.footer-contact-item a {
  color: var(--color-text-muted);
}
.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

/* ============================================================
   17. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   18. MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-overlay-dark);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-3xl);
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: fadeInUp 0.4s ease;
}

.modal-icon {
  margin-bottom: var(--space-lg);
}
.modal-icon svg {
  width: 64px;
  height: 64px;
  color: var(--color-accent);
}

.modal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}
.modal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* ============================================================
   19. PAGE HEADER (Projects page)
   ============================================================ */
.page-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
}
.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,15,20,0.65) 0%,
    rgba(15,15,20,0.88) 100%
  );
}
.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--nav-height);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.6);
}
.breadcrumbs a:hover {
  color: var(--color-accent);
}
.breadcrumbs span {
  color: var(--color-accent);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   20. PROJECTS
   ============================================================ */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.project-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.project-image {
  width: 100%;
  height: 100%;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(50,50,55,0.9) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay {
  opacity: 1;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.project-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.projects-note {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(200, 164, 92, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  margin-top: var(--space-3xl);
}
.note-icon {
  flex-shrink: 0;
}
.note-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}
.projects-note p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ============================================================
   21. CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--color-bg-tertiary);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   22. LIGHTBOX (generated by JS)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-overlay-dark);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.4s ease;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lightbox-close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(50, 50, 55, 0.97);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-2xl) var(--space-2xl);
    transition: right var(--transition-slow);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    gap: var(--space-sm);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
  }
  .nav-phone {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .about-image-wrapper img {
    height: 350px;
  }
  .about-image-wrapper::before {
    display: none;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .stat-item::after {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-md);
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-filter {
    gap: var(--space-xs);
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   24. ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
