/* 
  Blaith Green - Premium Redesign 2025
  Theme: Dark, Professional, Nature/Industrial Fusion
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary-green: #018001;
  --dark-green: #1e8c3a;
  --accent-gold: #ffd700;
  --dark-bg: #050510;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #cccccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #f5e6d3;
  color: #000000;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 5px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 80px;
  width: auto;
}

.nav-logo:hover {
  opacity: 1;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.brand-text span {
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #6c757d;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #2c3e50;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 150vh;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d4b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 0;
}

.hero-content {
  position: relative;
  max-width: 800px;
  width: 100%;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: url('images/eagle.png') center/contain no-repeat;
  opacity: 0.3;
  filter: brightness(0.3) contrast(1.5);
  z-index: 0;
  pointer-events: none;
}

.logo-with-eagle {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  z-index: 1;
}

.hero-logo {
  position: relative;
  z-index: 1;
  max-width: 300px;
  width: 100%;
  height: auto;
}

.hero-content h1 {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #4a4a4a;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-green);
  color: #fffefc;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: #018001;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d4b8 100%);
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #6c757d;
  margin-bottom: 20px;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 100px 20px;
  background: #ffffff;
}

.services h2,
.gallery-section h2,
.contact h2,
.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-green);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 0;
}

.service-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.service-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-card p {
  color: #6c757d;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* ===== GALLERY SECTION (Index Page) ===== */
.gallery-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d4b8 100%);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-green);
}

.gallery-card video,
.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #e9ecef;
}

.gallery-card h3 {
  padding: 20px 20px 10px;
  color: #2c3e50;
  font-size: 1.3rem;
}

.gallery-card p {
  padding: 0 20px;
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Maintenance List */
.maintenance-list {
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.maintenance-list li {
  background: rgba(46, 204, 113, 0.1);
  color: var(--primary-green);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Carousels */
.recovery-carousel,
.car-carousel {
  overflow: hidden;
  width: 100%;
  height: 250px;
  position: relative;
}

.recovery-track,
.car-track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.recovery-track img,
.car-track video {
  width: 350px;
  height: 250px;
  object-fit: cover;
}

.gallery-card:hover .car-track,
.gallery-card:hover .recovery-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== GALLERY SECTION (Gallery Page) ===== */
.gallery-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d4b8 100%);
}

/* Filter Buttons */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 25px;
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-green);
  color: #ffffff;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 5px solid #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.hide {
  display: none;
}

.gallery-item.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

/* Overlay */
.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .icon {
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

/* Gallery Button Wrapper */
.gallery-btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: var(--primary-green);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: #f8f9fa;
  padding: 100px 20px;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 0 1 auto;
  background: transparent;
  padding: 0;
  border: none;
}

.contact-form {
  flex: 1 1 400px;
  background: #f5e6d3;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info p {
  margin-bottom: 25px;
  font-size: 1.3rem;
  color: #2c3e50;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info a {
  color: #2c3e50;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--primary-green);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #2c3e50;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--dark-green);
}

/* Form Messages */
.success-msg {
  color: #00cc66;
  margin-top: 10px;
}

.error-msg {
  color: #ff6666;
  margin-top: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: #e9ecef;
  padding: 30px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

footer p {
  color: #666;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    width: 100%;
    background: #f8f9fa;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* ===== SERVICE PAGES SPECIFIC ===== */
.service-hero {
  padding: 160px 20px 100px;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.service-page-oil .service-hero {
  background-image: url('images/oil-bg.png');
}

body.service-page-marine .service-hero {
  background-image: url('images/marine-bg.png');
}

body.service-page-eco .service-hero {
  background-image: url('images/eco-bg.png');
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.service-hero h1,
.service-hero p {
  position: relative;
  z-index: 2;
}

.service-hero h1 {
  font-size: 3rem;
  color: #f5e6d3;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

.service-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #f5e6d3;
}

.service-content {
  max-width: 1000px;
  margin: -50px auto 100px;
  position: relative;
  z-index: 2;
  background: #ffffff;
  backdrop-filter: blur(15px);
  border: 1px solid #e0e0e0;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.service-content h2 {
  color: #2c3e50;
  text-align: left;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

.service-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #6c757d;
  margin-bottom: 30px;
}

.service-content ul {
  list-style: none;
  margin-bottom: 40px;
}

.service-content ul li {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 3px solid var(--primary-green);
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.service-content ul li:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08);
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary-green);
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: #2c3e50;
  text-decoration: underline;
}