/* ========================================
   FibaGroup Yazılım - Premium Website
   ======================================== */

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

/* --- CSS Variables --- */
:root {
  --bg-primary: #050816;
  --bg-secondary: #0a0e27;
  --bg-card: rgba(15, 20, 50, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #ffffff;
  --text-secondary: #b0b8d4;
  --text-muted: #6b7394;

  --accent-gold: #d4a574;
  --accent-gold-light: #e8c9a0;
  --accent-blue: #4f7cff;
  --accent-blue-light: #7b9fff;
  --accent-purple: #8b5cf6;
  --accent-cyan: #22d3ee;

  --gradient-gold: linear-gradient(135deg, #d4a574, #c9956b, #e8c9a0);
  --gradient-blue: linear-gradient(135deg, #4f7cff, #8b5cf6);
  --gradient-hero: linear-gradient(135deg, #050816 0%, #0a0e27 50%, #0d1333 100%);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 165, 116, 0.3);

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow-gold: 0 0 40px rgba(212, 165, 116, 0.15);
  --shadow-glow-blue: 0 0 40px rgba(79, 124, 255, 0.15);

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #b0b8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.nav-logo .logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

.nav-logo span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 28px !important;
  background: var(--gradient-gold) !important;
  color: var(--bg-primary) !important;
  -webkit-text-fill-color: var(--bg-primary) !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.9rem;
  transition: all var(--transition-normal) !important;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.35) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 1;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.hero-glow-1 {
  background: var(--accent-blue);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  background: var(--accent-gold);
  bottom: -200px;
  left: -100px;
  animation-delay: 4s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-gold-light);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 1s ease 0.2s backwards;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-title .gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-companies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.7s backwards;
}

.hero-company-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-gold-light);
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.hero-company-tag:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.hero-company-tag .flag {
  font-size: 1.1rem;
}

.hero-slogan {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.8s backwards;
}

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

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1s backwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 25px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(212, 165, 116, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1.2s backwards;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--border-glass);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 3px;
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

.scroll-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- About Section --- */
.about {
  background: var(--bg-primary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.about-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
  backdrop-filter: blur(10px);
}

.about-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-glass-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-gold);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-flag {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
  line-height: 1.4;
}

.about-card-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-card .card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-gold);
  filter: blur(80px);
  opacity: 0;
  top: -50px;
  right: -50px;
  transition: opacity var(--transition-slow);
}

.about-card:hover .card-glow {
  opacity: 0.06;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Services Section --- */
.services {
  background: var(--bg-secondary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card:hover {
  border-color: rgba(212, 165, 116, 0.2);
  background: var(--bg-glass-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 165, 116, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-icon.icon-blue {
  background: rgba(79, 124, 255, 0.12);
  color: var(--accent-blue-light);
}

.service-icon.icon-gold {
  background: rgba(212, 165, 116, 0.12);
  color: var(--accent-gold-light);
}

.service-icon.icon-purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
}

.service-icon.icon-cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* --- Technologies Section --- */
.technologies {
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.tech-marquee-wrapper {
  margin-top: 60px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-marquee {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.tech-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.tech-item:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.tech-item .tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-item .tech-dot.dot-blue { background: var(--accent-blue); }
.tech-item .tech-dot.dot-gold { background: var(--accent-gold); }
.tech-item .tech-dot.dot-purple { background: var(--accent-purple); }
.tech-item .tech-dot.dot-cyan { background: var(--accent-cyan); }
.tech-item .tech-dot.dot-green { background: #4ade80; }
.tech-item .tech-dot.dot-red { background: #f87171; }
.tech-item .tech-dot.dot-orange { background: #fb923c; }

.tech-marquee-wrapper + .tech-marquee-wrapper {
  margin-top: 16px;
}

.tech-marquee.reverse {
  animation-direction: reverse;
}

/* --- Projects Section --- */
.projects {
  background: var(--bg-secondary);
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: default;
}

.project-card:hover {
  border-color: rgba(212, 165, 116, 0.2);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.project-image {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-image-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image-bg {
  transform: scale(1.05);
}

.project-image-bg.bg-1 { background: linear-gradient(135deg, #1a1a4e, #2d1b69); }
.project-image-bg.bg-2 { background: linear-gradient(135deg, #1b2a4e, #1a3a5c); }
.project-image-bg.bg-3 { background: linear-gradient(135deg, #2a1b1b, #4e1b1b); }

.project-info {
  padding: 28px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-tag {
  padding: 4px 12px;
  background: rgba(79, 124, 255, 0.1);
  color: var(--accent-blue-light);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact {
  background: var(--bg-primary);
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}

.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-gold);
  background: rgba(212, 165, 116, 0.04);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.08);
}

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

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: 0.5px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.35);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-office {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition-normal);
}

.contact-office:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.office-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.office-flag {
  font-size: 1.8rem;
}

.office-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.office-company {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.office-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.office-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.office-detail .detail-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(212, 165, 116, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-normal);
  padding: 0;
}

.footer-social a:hover {
  background: rgba(212, 165, 116, 0.12);
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

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

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

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(5, 8, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--border-glass);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-companies {
    flex-direction: column;
    align-items: center;
  }
}

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

  .hero-title {
    font-size: 2.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-card {
    padding: 32px 24px;
  }

  .contact-form {
    padding: 32px 24px;
  }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 116, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 116, 0.5);
}

/* --- Selection --- */
::selection {
  background: rgba(212, 165, 116, 0.3);
  color: var(--text-primary);
}

/* --- Loading Animation --- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Loader Logo Container */
.loader-center {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

/* Outer rotating ring */
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(212, 165, 116, 0.08);
}

.loader-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-gold);
  animation: loaderSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--accent-blue);
  animation: loaderSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
  animation-delay: 0.2s;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Inner second ring */
.loader-ring-inner {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 116, 0.06);
}

.loader-ring-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-left-color: rgba(212, 165, 116, 0.4);
  animation: loaderSpin 2s linear infinite;
}

/* Glow behind logo */
.loader-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.2) 0%, transparent 70%);
  animation: loaderGlowPulse 2s ease-in-out infinite;
}

@keyframes loaderGlowPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* FG Logo */
.loader-logo-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  animation: loaderLogoReveal 1s ease 0.3s backwards;
}

@keyframes loaderLogoReveal {
  from {
    opacity: 0;
    transform: scale(0.5);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Orbiting dots */
.loader-orbit-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.6);
}

.loader-orbit-dot:nth-child(1) {
  animation: orbitDot1 2.8s linear infinite;
}

.loader-orbit-dot:nth-child(2) {
  width: 3px;
  height: 3px;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(79, 124, 255, 0.6);
  animation: orbitDot2 3.5s linear infinite;
}

@keyframes orbitDot1 {
  0% { transform: rotate(0deg) translateX(70px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
}

@keyframes orbitDot2 {
  0% { transform: rotate(180deg) translateX(56px) rotate(-180deg); }
  100% { transform: rotate(540deg) translateX(56px) rotate(-540deg); }
}

/* Company Name */
.loader-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}

.loader-company-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  animation: loaderTextIn 0.8s ease 0.6s forwards;
}

.loader-company-sub {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: loaderTextIn 0.8s ease 0.9s forwards;
}

@keyframes loaderTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Progress Bar */
.loader-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  animation: loaderTextIn 0.5s ease 1s forwards;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: 4px;
  animation: loaderProgress 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
  position: relative;
}

.loader-progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px rgba(212, 165, 116, 0.8);
}

@keyframes loaderProgress {
  0% { width: 0%; }
  30% { width: 45%; }
  60% { width: 70%; }
  100% { width: 100%; }
}
