/* ===== CSS VARIABLES ===== */
:root {
  --blue: #0a2d6e;
  --blue-mid: #1246b5;
  --blue-light: #2563eb;
  --blue-bright: #3b82f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --dark: #050d1f;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-condensed: 'Roboto Condensed', sans-serif;
  --shadow: 0 4px 24px rgba(10,45,110,0.12);
  --shadow-lg: 0 12px 48px rgba(10,45,110,0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); overflow-x: hidden; width: 100%; max-width: 100vw; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ===== CONTAINER ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.section { padding: 90px 0; }
.section-label { font-family: var(--font-condensed); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; display: inline-block; width: 30px; height: 2px; background: var(--accent); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--blue); line-height: 1.1; margin-bottom: 16px; }
.section-header.centered { text-align: center; margin-bottom: 60px; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-label::before { display: none; }
.section-cta { text-align: center; margin-top: 48px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: var(--radius); font-family: var(--font-condensed); font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; transition: all var(--transition); cursor: pointer; }
.btn-primary { background: var(--blue-light); color: var(--white); border: 2px solid var(--blue-light); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn.full-width { width: 100%; justify-content: center; }

/* ===== TOP BAR ===== */
.topbar { background: var(--blue); padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contacts a { color: rgba(255,255,255,0.85); font-size: 13px; display: flex; align-items: center; gap: 6px; transition: color var(--transition); font-family: var(--font-condensed); }
.topbar-contacts a:hover { color: var(--accent); }
.topbar-contacts i { color: var(--accent); font-size: 11px; }
.topbar-socials { display: flex; gap: 12px; }
.topbar-socials a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color var(--transition); }
.topbar-socials a:hover { color: var(--accent); }

/* ===== HEADER ===== */
.header { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 16px rgba(10,45,110,0.1); transition: all var(--transition); }
.header.scrolled { box-shadow: 0 4px 30px rgba(10,45,110,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon { background: var(--blue); color: var(--white); padding: 8px 12px; border-radius: var(--radius); text-align: center; line-height: 1; min-width: 56px; }
.logo-icon span { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; display: block; }
.logo-icon small { font-family: var(--font-condensed); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; display: block; }
.logo-icon.small { min-width: 44px; padding: 6px 8px; }
.logo-icon.small span { font-size: 20px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-display); font-size: 22px; color: var(--blue); letter-spacing: 1px; line-height: 1; }
.logo-sub { font-size: 10px; color: var(--gray-600); letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-condensed); }
/* Desktop nav */
/* ===== DESKTOP NAV ===== */
.nav-desktop ul { display: flex; gap: 4px; list-style: none; }
.nav-desktop a { font-family: var(--font-condensed); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-600); padding: 8px 14px; border-radius: var(--radius); transition: all var(--transition); text-decoration: none; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--blue-light); background: rgba(37,99,235,0.07); }

/* Mobile nav — hidden on desktop */
.nav-mobile { display: none; }
.nav-overlay { display: none; }
.nav-close  { display: none; }
.nav-brand  { display: none; }
.nav-divider { display: none; }
.nav-socials { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; padding: 6px; border-radius: var(--radius); transition: background var(--transition); }
.burger:hover { background: var(--gray-100); }
.burger span { display: block; height: 2px; width: 22px; background: var(--blue); border-radius: 2px; transition: all 0.3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SLIDER ===== */
.hero { min-height: 100vh; position: relative; overflow: hidden; background: var(--dark); }

/* Slider wrapper */
.hero-slides { position: absolute; inset: 0; display: flex; transition: transform 0.9s cubic-bezier(0.77,0,0.175,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
/* Fallback gradient якщо немає фото */
.hero-slide:nth-child(1) { background-image: linear-gradient(135deg, #050d1f 0%, #0a2d6e 100%); }
.hero-slide:nth-child(2) { background-image: linear-gradient(135deg, #0a2d6e 0%, #050d1f 60%, #1246b5 100%); }
.hero-slide:nth-child(3) { background-image: linear-gradient(135deg, #050d1f 0%, #1246b5 50%, #050d1f 100%); }
/* Якщо є фото — темний overlay поверх */
.hero-slide::before { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(5,13,31,0.88) 0%, rgba(10,45,110,0.7) 60%, rgba(5,13,31,0.65) 100%); z-index:1; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px); background-size: 60px 60px; z-index: 2; pointer-events:none; }

/* Content */
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 10; overflow: hidden; }
.hero-content .container { padding-top: 80px; padding-bottom: 120px; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4); color: var(--accent); font-family: var(--font-condensed); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 20px; max-width: 100%; white-space: normal; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 9vw, 8rem); color: var(--white); line-height: 0.9; margin-bottom: 20px; }
.hero-title .line1 { display: block; color: rgba(255,255,255,0.55); font-size: 0.55em; letter-spacing: 6px; font-family: var(--font-condensed); font-weight: 300; text-transform: uppercase; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-title .line2, .hero-title .line3 { display: block; }
.hero-title .line3 { color: var(--accent); }
.hero-desc { color: rgba(255,255,255,0.65); font-size: 16px; max-width: 560px; line-height: 1.7; margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--white); line-height: 1; }
.stat-plus { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-condensed); margin-top: 4px; }

/* Slider controls — внизу по центру */
.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.hero-prev, .hero-next {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.hero-prev:hover, .hero-next:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: scale(1.1);
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
  padding: 0;
}
.hero-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

.hero-scroll { position: absolute; bottom: 28px; right: 28px; z-index: 20; opacity: 0.45; }
.hero-scroll span { display: block; width: 20px; height: 32px; border: 2px solid rgba(255,255,255,0.5); border-radius: 10px; position: relative; }
.hero-scroll span::after { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; background: var(--accent); border-radius: 2px; animation: scrollAnim 1.8s infinite; }
@keyframes scrollAnim { 0%,100%{opacity:1;top:5px} 60%{opacity:0;top:16px} }

/* ===== ABOUT PREVIEW ===== */
.about-preview { background: var(--gray-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-card-main { background: linear-gradient(145deg, #0a2d6e 0%, #050d1f 100%); border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; position: relative; overflow: hidden; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.about-card-main::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.03); }
.about-card-main::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(37,99,235,0.1); }

/* Decorative inner visual */
.about-decorative { position: relative; width: 200px; height: 200px; z-index: 2; }
.about-deco-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.1); animation: spinRing 24s linear infinite; }
.about-deco-ring::before { content:''; position:absolute; inset:18px; border-radius:50%; border:1px solid rgba(255,255,255,0.06); }
@keyframes spinRing { to { transform: rotate(360deg); } }
.about-deco-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 60px; color: rgba(255,255,255,0.1); }
.about-deco-dots { position: absolute; inset: -10px; }
.about-deco-dots span { position: absolute; width: 38px; height: 38px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 13px; }
.about-deco-dots span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.about-deco-dots span:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); }
.about-deco-dots span:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.about-deco-dots span:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); }

.about-icon-big { display: none; }
.about-card-stats { display: none; }
.about-badge-float { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--dark); font-family: var(--font-condensed); font-weight: 700; font-size: 13px; letter-spacing: 1px; padding: 10px 20px; border-radius: 100px; white-space: nowrap; margin-top: 16px; box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.about-card-side { display: none; }
.about-info { padding-top: 20px; }
.about-info p { color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.about-features { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.about-features li { display: flex; align-items: center; gap: 10px; font-family: var(--font-condensed); font-size: 15px; }
.about-features i { color: var(--blue-light); }

/* ===== SERVICES ===== */
.services { position: relative; }
.services-bg { position: absolute; inset: 0; background: var(--dark); }
.services .container { position: relative; z-index: 1; }
.services .section-header .section-title { color: var(--white); }
.services .section-header p { color: rgba(255,255,255,0.55); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 36px 28px; position: relative; overflow: hidden; transition: all var(--transition); }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,99,235,0.12), transparent); opacity: 0; transition: opacity var(--transition); pointer-events: none; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(37,99,235,0.4); box-shadow: 0 20px 60px rgba(37,99,235,0.2); }
.service-card:hover::before { opacity: 1; }
.service-num { font-family: var(--font-display); font-size: 4rem; color: rgba(255,255,255,0.04); position: absolute; top: 10px; right: 20px; line-height: 1; }
.service-icon { font-size: 36px; color: var(--blue-bright); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-condensed); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: 0.5px; }
.service-card p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.service-link { color: var(--accent); font-family: var(--font-condensed); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; transition: all var(--transition); cursor: pointer; position: relative; z-index: 2; }
.service-link:hover { gap: 12px; color: #fbbf24; }

/* ===== WHY US ===== */
.why-us { background: var(--gray-50); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item { background: var(--white); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; border: 1px solid var(--gray-200); transition: all var(--transition); }
.why-item:hover { transform: translateY(-4px); border-color: var(--blue-light); box-shadow: 0 8px 24px rgba(37,99,235,0.1); }
.why-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--blue), var(--blue-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 26px; color: var(--white); }
.why-item h4 { font-family: var(--font-condensed); font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 10px; letter-spacing: 0.5px; }
.why-item p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ===== PORTFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-item { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.portfolio-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue), var(--blue-mid)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,0.4); transition: all var(--transition); }
.portfolio-placeholder i { font-size: 36px; }
.portfolio-placeholder span { font-family: var(--font-condensed); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(37,99,235,0.9); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.portfolio-overlay span { color: var(--white); font-family: var(--font-condensed); font-size: 15px; font-weight: 700; letter-spacing: 1px; text-align: center; padding: 16px; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-placeholder { transform: scale(1.05); }

/* ===== REVIEWS ===== */
.reviews { position: relative; }
.reviews-bg { position: absolute; inset: 0; background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); }
.reviews .container { position: relative; z-index: 1; }
.reviews-carousel { position: relative; overflow: hidden; }
.reviews-track { display: flex; gap: 24px; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.review-card { flex: 0 0 calc(33.33% - 16px); background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.review-stars { color: var(--accent); margin-bottom: 16px; font-size: 14px; display: flex; gap: 2px; }
.review-card p { color: var(--gray-600); line-height: 1.7; font-style: italic; margin-bottom: 24px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; color: var(--white); flex-shrink: 0; }
.review-author strong { display: block; font-size: 14px; color: var(--blue); }
.review-author span { font-size: 12px; color: var(--gray-400); }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.carousel-btn:hover { background: var(--blue-light); transform: scale(1.1); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); cursor: pointer; transition: all var(--transition); }
.carousel-dot.active { background: var(--blue-light); width: 24px; border-radius: 4px; }

/* ===== CONTACT ===== */
.contact { background: var(--dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .section-title { color: var(--white); }
.contact-info > p { color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item > i { width: 40px; height: 40px; background: rgba(255,255,255,0.06); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; font-size: 16px; }
.contact-item div { display: flex; flex-direction: column; gap: 2px; }
.contact-item strong { font-family: var(--font-condensed); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 400; }
.contact-item span { color: rgba(255,255,255,0.8); font-size: 15px; }
.contact-socials { display: flex; gap: 12px; }
.contact-socials a { width: 40px; height: 40px; background: rgba(255,255,255,0.06); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all var(--transition); }
.contact-socials a:hover { background: var(--blue-light); color: var(--white); }

/* FORM */
.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px; box-sizing: border-box; width: 100%; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--blue); margin-bottom: 28px; }
.form-group { display: flex; align-items: stretch; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; transition: border-color var(--transition); width: 100%; box-sizing: border-box; }
.form-group:focus-within { border-color: var(--blue-light); }
.form-group label { width: 44px; display: flex; align-items: center; justify-content: center; color: var(--gray-400); background: var(--gray-50); flex-shrink: 0; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { flex: 1; border: none; outline: none; padding: 13px 16px; font-family: var(--font-body); font-size: 14px; color: var(--gray-800); background: transparent; min-width: 0; box-sizing: border-box; }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-success { display: none; align-items: center; gap: 12px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); border-radius: var(--radius); padding: 14px 16px; margin-top: 16px; color: #16a34a; font-family: var(--font-condensed); font-size: 14px; }
.form-success.show { display: flex; }

/* ===== FOOTER ===== */
.footer { background: var(--blue); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 48px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.7; margin: 16px 0 24px; }
.footer-brand .logo-icon { margin-bottom: 0; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.footer-logo .logo-text { display: flex; flex-direction: column; }
.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255,255,255,0.45); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 14px; transition: all var(--transition); }
.footer-socials a:hover { background: var(--accent); color: var(--dark); }
.footer h4 { font-family: var(--font-condensed); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-nav ul, .footer-services ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-services a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color var(--transition); }
.footer-nav a:hover, .footer-services a:hover { color: var(--accent); }
.footer-contacts p { color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-contacts i { color: var(--accent); width: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 48px; padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: center; }
.footer-bottom span { color: rgba(255,255,255,0.35); font-size: 13px; font-family: var(--font-condensed); }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(5,13,31,0.85); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition); backdrop-filter: blur(4px); padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 44px 36px 36px; max-width: 460px; width: 100%; position: relative; transform: translateY(20px); transition: transform var(--transition); }
.modal-overlay.active .modal { transform: translateY(0); }
.modal h3 { font-family: var(--font-condensed); font-size: 15px; font-weight: 700; color: var(--blue); text-align: center; margin-bottom: 24px; letter-spacing: 0.5px; padding: 0 36px; line-height: 1.4; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: 14px; transition: all var(--transition); z-index: 10; }
.modal-close:hover { background: var(--blue); color: var(--white); }

/* ===== FLOATING CTA ===== */
.float-cta { position: fixed; bottom: 32px; right: 32px; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-light); color: var(--white); font-size: 22px; box-shadow: 0 8px 24px rgba(37,99,235,0.4); z-index: 90; transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.float-cta:hover { background: var(--blue); transform: scale(1.1); }

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .topbar-contacts a:not(:first-child) { display: none; }

  /* ---- SHOW BURGER, HIDE DESKTOP NAV ---- */
  .nav-desktop { display: none; }
  .burger { display: flex; }

  /* ---- OVERLAY ---- */
  .nav-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(5,13,31,0.65);
    z-index: 300;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(4px);
    pointer-events: none;
  }
  .nav-overlay.open {
    opacity: 1; visibility: visible;
    pointer-events: auto;
  }

  /* ---- DRAWER ---- */
  .nav-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: -320px;
    height: 100%;
    width: 300px;
    background: linear-gradient(160deg, #0a2d6e 0%, #050d1f 100%);
    z-index: 400;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -12px 0 48px rgba(0,0,0,0.5);
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
  }
  .nav-mobile.open { right: 0; }

  /* ---- CLOSE BUTTON ---- */
  .nav-close {
    display: flex;
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
  }
  .nav-close:hover { background: rgba(255,255,255,0.18); color: var(--white); }

  /* ---- BRAND HEADER ---- */
  .nav-brand {
    display: flex;
    align-items: center; gap: 10px;
    padding: 28px 28px 0;
    margin-bottom: 32px;
  }
  .nav-brand-icon {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 20px; color: var(--white);
    letter-spacing: 1px;
    flex-shrink: 0;
  }
  .nav-brand-text { display: flex; flex-direction: column; }
  .nav-brand-text strong {
    font-family: var(--font-display);
    font-size: 18px; color: var(--white);
    letter-spacing: 2px; line-height: 1;
  }
  .nav-brand-text span {
    font-family: var(--font-condensed);
    font-size: 9px; color: rgba(255,255,255,0.4);
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-top: 3px;
  }

  /* ---- LINKS ---- */
  .nav-mobile ul {
    flex-direction: column;
    gap: 2px;
    padding: 0 16px;
    flex: 1;
    list-style: none;
  }
  .nav-mobile ul li { width: 100%; }
  .nav-mobile a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.65);
    padding: 13px 16px;
    font-size: 13px;
    letter-spacing: 2px;
    border-radius: 10px;
    transition: all var(--transition);
    font-family: var(--font-condensed);
    font-weight: 700;
    text-decoration: none;
  }
  .nav-mobile a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
  }
  .nav-mobile a.active {
    color: var(--accent);
    background: rgba(245,158,11,0.1);
    border-left: 2px solid var(--accent);
  }

  /* ---- DIVIDER ---- */
  .nav-divider {
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 20px 28px;
  }

  /* ---- SOCIALS ---- */
  .nav-socials {
    display: flex;
    gap: 10px;
    padding: 0 28px 32px;
    justify-content: flex-start;
  }
  .nav-socials a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 14px;
    transition: all var(--transition);
  }
  .nav-socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }

  /* ---- BURGER ---- */
  .burger { display: flex; }

  /* ---- OTHER RESPONSIVE ---- */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card-side { right: 0; top: auto; bottom: -10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex: 0 0 100%; }
  .hero-stats { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 24px 18px; }
  .modal { padding: 28px 20px; }
  .hero-scroll { display: none; }

  /* Hero mobile fixes */
  .hero-content .container { padding-top: 60px; padding-bottom: 100px; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 4rem); margin-bottom: 14px; }
  .hero-title .line1 { font-size: 0.45em; letter-spacing: 4px; }
  .hero-desc { font-size: 14px; margin-bottom: 20px; }
  .hero-buttons { gap: 10px; margin-bottom: 24px; }
  .hero-buttons .btn { padding: 12px 20px; font-size: 13px; }
  .hero-stats { gap: 14px; padding-top: 20px; }
  .stat-num { font-size: 2.2rem; }
  .hero-badge { font-size: 10px; letter-spacing: 1.5px; padding: 5px 12px; }

  /* Hero controls on mobile */
  .hero-controls { bottom: 20px; gap: 10px; }
  .hero-prev, .hero-next { width: 34px; height: 34px; font-size: 12px; }

  /* Form fixes on mobile */
  .contact-form-wrap { padding: 20px 14px; border-radius: 12px; }
  .contact-grid { gap: 32px; }

  /* Footer logo on mobile */
  .footer-logo .logo-text { display: flex; }
  .footer-logo .logo-name { font-size: 18px; }
  .footer-logo .logo-sub { font-size: 9px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .topbar-contacts { gap: 10px; }
  .logo-text { display: none; }
  .float-cta { bottom: 20px; right: 20px; }
  .hero-title { font-size: clamp(2.2rem, 15vw, 3.5rem); }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 10px; letter-spacing: 1px; }
}


/* === NEW LOGO IMAGE === */
.logo-img-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.logo-img-icon.nav-brand-logo {
  width: 44px;
  height: 44px;
}
.footer-brand .logo-img-icon {
  width: 44px;
  height: 44px;
}
@media (max-width: 480px) {
  .logo-img-icon { width: 44px; height: 44px; }
}

/* === PORTFOLIO LIGHTBOX === */
.portfolio-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.portfolio-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
}
.portfolio-placeholder img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-item .portfolio-zoom-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background 0.25s;
  z-index: 3;
  pointer-events: none;
}
.portfolio-item:hover .portfolio-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Gallery item zoom icon (already exists but ensure hover works) */
.gallery-item {
  cursor: pointer;
}

/* === LIGHTBOX MODAL === */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  display: block;
}
.lightbox-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Gallery item: show overlay / zoom icon on hover */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,30,80,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { color: #fff; font-size: 28px; }

/* Gallery filter styles */
.gallery-filter { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:36px; }
.filter-btn { font-family:var(--font-condensed); font-weight:700; font-size:13px; letter-spacing:1px; text-transform:uppercase; padding:9px 20px; border-radius:100px; border:1.5px solid var(--gray-200); color:var(--gray-600); transition:all var(--transition); cursor:pointer; background:var(--white); }
.filter-btn:hover, .filter-btn.active { background:var(--blue-light); color:var(--white); border-color:var(--blue-light); }

/* Lightbox placeholder (for gallery items without real photos) */
.lightbox-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 340px;
  min-height: 260px;
  max-width: 80vw;
  border-radius: 12px;
  padding: 48px 40px;
}
.lightbox-placeholder-content .gallery-ph {
  margin: 0;
  width: 100%;
  border-radius: 10px;
  font-size: 1.1rem;
}
