/* ============================================================
   FUELO — Main Stylesheet
   Colours: Dark Navy #1a2e3b | Accent Green #2ec47a | Light #f4f8f6
   ============================================================ */

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

:root {
  --navy:   #1a2e3b;
  --navy2:  #243d4f;
  --green:  #2ec47a;
  --green2: #22a362;
  --light:  #f4f8f6;
  --grey:   #6b7c8a;
  --border: #d6e4de;
  --white:  #ffffff;
  --shadow: 0 4px 24px rgba(26,46,59,.10);
  --radius: 12px;
  --font:   'Inter', 'Noto Sans Georgian', sans-serif;
  --transition: .3s ease;
}

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

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* Georgian font override */
:lang(ka), [lang="ka"] * { font-family: 'Noto Sans Georgian', sans-serif; }

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green2); border-color: var(--green2); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  background: rgba(46,196,122,.12);
  color: var(--green2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--grey);
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(26,46,59,.08);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 4px 24px rgba(26,46,59,.14); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo-link { flex-shrink: 0; }
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--green2); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey);
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition);
  font-family: var(--font);
  letter-spacing: .04em;
}
.lang-btn:hover { color: var(--green2); }
.lang-btn.active { color: var(--green2); }
.lang-sep { color: var(--border); font-size: .75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0f2233 50%, #0a1a26 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(46,196,122,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(46,196,122,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 24px;
}

.hero-tagline {
  display: inline-block;
  background: rgba(46,196,122,.15);
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(46,196,122,.3);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- About ---------- */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--grey);
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green2);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Services ---------- */
.services-section { background: var(--light); }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: 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(--green), var(--green2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(46,196,122,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 30px; height: 30px; }

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-desc {
  font-size: .92rem;
  color: var(--grey);
  line-height: 1.75;
}

/* ---------- Projects ---------- */
.projects-section { background: var(--white); }

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

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.project-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* Illustrated project backgrounds using CSS gradients */
.project-img-1 { background: linear-gradient(135deg, #1a2e3b 0%, #243d4f 40%, #1a3a2a 100%); }
.project-img-2 { background: linear-gradient(135deg, #0f2233 0%, #1a4a3a 50%, #0a2a1a 100%); }
.project-img-3 { background: linear-gradient(135deg, #243d4f 0%, #1a2e3b 60%, #0f3020 100%); }
.project-img-4 { background: linear-gradient(135deg, #1a3a2a 0%, #243d4f 50%, #1a2e3b 100%); }
.project-img-5 { background: linear-gradient(135deg, #0a2a1a 0%, #1a2e3b 40%, #243d4f 100%); }
.project-img-6 { background: linear-gradient(135deg, #1a2e3b 0%, #0f3020 50%, #243d4f 100%); }

/* Fuel station silhouette decoration */
.project-img::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Crect x='60' y='20' width='280' height='80' rx='4' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='80' y='60' width='60' height='40' rx='2' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='160' y='50' width='60' height='50' rx='2' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='240' y='60' width='60' height='40' rx='2' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='0' y='100' width='400' height='20' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") center/cover no-repeat;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}
.project-tag {
  background: rgba(46,196,122,.9);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.project-info { padding: 24px; }
.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.project-meta {
  font-size: .8rem;
  color: var(--green2);
  font-weight: 600;
  margin-bottom: 10px;
}
.project-desc {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.contact-section { background: var(--light); }

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,46,59,.08);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  font-size: .95rem;
  color: var(--grey);
}
.contact-item a:hover { color: var(--green2); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-brand .footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--green); }
.footer-contact p {
  font-size: .9rem;
  margin-bottom: 8px;
}
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

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

@media (max-width: 768px) {
  .hamburger { display: flex; }

  #main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
    box-shadow: 0 8px 24px rgba(26,46,59,.12);
  }
  #main-nav.open {
    max-height: 400px;
    padding: 16px 0 24px;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
  }
  .nav-link {
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link::after { display: none; }

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

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

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

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

  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 24px 16px; }
  .stat-num { font-size: 2rem; }
}

/* ---------- Scroll animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
