/* ============================================
   Gravirotech — Main Stylesheet
   ============================================ */

:root {
  --color-bg: #1a1a2e;
  --color-bg-secondary: #16213e;
  --color-surface: #222240;
  --color-gold: #d4a843;
  --color-gold-hover: #e8c068;
  --color-text: #f0e6d3;
  --color-text-muted: #a0a0b0;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 0.75rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.btn-gold {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-gold);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--color-gold-hover);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
}

.nav-logo span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(26, 26, 46, 0.6), rgba(26, 26, 46, 0.85)),
              url('../images/hero/hero-bg.svg') center/cover no-repeat;
  background-color: var(--color-bg-secondary);
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--color-gold);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

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

/* ============================================
   About Section
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.about-text h2 span {
  color: var(--color-gold);
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  z-index: -1;
}

.trust-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--color-surface);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-5px);
}

.trust-card .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.trust-card .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-gold);
  font-weight: 700;
}

.trust-card .label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 5px;
}

/* ============================================
   Services Section
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--color-bg);
}

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

.service-card {
  background: var(--color-surface);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--color-gold);
}

.service-card .service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--color-gold);
}

.service-card .service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.5;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

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

/* ============================================
   Portfolio Preview Section
   ============================================ */
.portfolio-preview {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 3rem;
}

.portfolio-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--color-surface);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-card:hover .overlay {
  transform: translateY(0);
}

.portfolio-card .overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 4px;
}

.portfolio-card .overlay p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.portfolio-preview .cta {
  text-align: center;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-gold);
}

.contact-item .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2;
}

.contact-item h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  border-radius: 8px;
  filter: grayscale(0.3) brightness(0.85);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: rgba(22, 33, 62, 0.8);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(212, 168, 67, 0.15);
}

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

.footer a {
  color: var(--color-gold);
}

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

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

  .about-grid {
    gap: 40px;
  }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .about-image {
    order: -1;
  }

  .about-image::after {
    display: none;
  }

  .trust-signals {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

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

  .portfolio-card .overlay {
    transform: translateY(0);
  }

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

  .contact-map {
    min-height: 250px;
  }

  .contact-map iframe {
    min-height: 250px;
  }

  section {
    padding: 60px 0;
  }

  .about, .services, .portfolio-preview, .contact {
    padding: 60px 0;
  }
}
