/* The Iron Gate - Premium Design System (main.css) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://cdn.web-fonts.ge/fonts/bpg-nino-mtavruli/css/bpg-nino-mtavruli.min.css');

:root {
  /* Color Palette */
  --bg-dark: #0a0b0d;
  --bg-surface: #121418;
  --bg-surface-light: #1c1e24;
  --gold-primary: #d4af37;
  --gold-hover: #f1c40f;
  --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  --text-light: #f8f9fa;
  --text-muted: #a0a5af;
  --border-color: rgba(255, 255, 255, 0.05);
  
  /* Layout */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'BPG Nino Mtavruli', 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Glassmorphism Classes */
.glass {
  background: rgba(18, 20, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(28, 30, 36, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.3); /* Gold tint on hover */
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: padding var(--transition-normal), background var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(10, 11, 13, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5px 0;
}

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

.logo a {
  font-family: 'BPG Nino Mtavruli', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

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

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-family: 'BPG Nino Mtavruli', 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

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

.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

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

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 30px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-normal);
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'BPG Nino Mtavruli', 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
}

.btn.primary {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section.dark {
  background-color: var(--bg-surface);
}

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

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.6) contrast(1.1);
  transform: scale(1.05); /* Slight initial zoom for animation */
  animation: heroZoom 20s infinite alternate linear;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 11, 13, 0.9) 0%, rgba(10, 11, 13, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: 60px; /* Offset for header */
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.9s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--bg-surface-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  transition: var(--transition-normal);
}

.service-card:hover .icon {
  background: var(--gold-gradient);
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

/* Modern Gallery / Portfolio */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery figure, .gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-surface-light);
}

.gallery > img.zoom-img {
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery > img.zoom-img:hover {
  transform: scale(1.05);
}

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

.gallery figure:hover img, .gallery .gallery-item:hover img {
  transform: scale(1.1);
}

.gallery figcaption, .gallery .gallery-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: var(--text-light);
  font-family: 'BPG Nino Mtavruli', 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  margin: 0; /* reset p margin */
}

.gallery figure:hover figcaption, .gallery .gallery-item:hover p {
  transform: translateY(0);
}

/* Lightbox Overlay */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#overlay.active {
  display: flex;
  opacity: 1;
}

#overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#overlay.active img {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: color var(--transition-fast);
}

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

/* About & Contact Layout */
.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.testimonials .testi {
  padding: 2.5rem;
  position: relative;
}

.testimonials .testi::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  font-family: 'BPG Nino Mtavruli', 'Montserrat', sans-serif;
  color: rgba(212, 175, 55, 0.2);
  line-height: 1;
}

.testimonials p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonials strong {
  color: var(--gold-primary);
  font-family: 'BPG Nino Mtavruli', 'Montserrat', sans-serif;
}

/* Contact Info */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-surface-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.info-text p, .info-text a {
  font-size: 1.05rem;
  font-weight: 500;
}

.info-text a:hover {
  color: var(--gold-primary);
}

.social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social a {
  width: 45px;
  height: 45px;
  background: var(--bg-surface-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social a:hover {
  background: var(--gold-primary);
  transform: translateY(-3px);
}

.social img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.social a:hover img {
  filter: brightness(0); /* Make it black on gold background */
}

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(90%) contrast(80%); /* Dark mode map */
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Scroll Animations — only .reveal (added by JS) gets hidden */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
              transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 768px) {
  .burger { display: flex; }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  
  .nav.active { right: 0; }
  
  .nav a {
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav a::after { display: none; }
  
  .hero h1 { font-size: 2.2rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  
  .section { padding: 60px 0; }
}
