/* ==========================================================================
   The Energy Projekt - Clean Static HTML Stylesheet
   Exact typography, colors, and animations matching theenergyprojekt.org
   ========================================================================== */

@import url('https://fonts.googleapis.com/css?family=Pacifico:regular|Montserrat:700,regular,italic,700italic|Merriweather:300,700,300italic|Varela+Round:regular|NTR:regular|Quattrocento+Sans:700|Roboto:100,100italic,300,300italic|Playfair+Display:regular,italic&subset=latin,greek-ext,latin-ext');

:root {
  --bg-black: #000000;
  --bg-dark: #111111;
  --bg-card: #141414;
  --accent-orange: #ff8400;
  --accent-teal: #2ddeb6;
  --text-white: #ffffff;
  --text-light: #dddddd;
  --text-muted: #999999;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Varela Round', sans-serif;
  --font-roboto: 'Roboto', sans-serif;
  --font-merriweather: 'Merriweather', serif;
  --transition-fast: 0.25s ease;
}

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

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

body {
  background-color: var(--bg-black);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 29px;
  letter-spacing: 0px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-teal);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Animations (Matching animate.css fadeInUp / fadeInLeft + Ken Burns)
   ========================================================================== */

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.anim-hidden {
  opacity: 0;
}

.anim-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fadeInLeft {
  animation: fadeInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 10px 0;
}

.nav-group {
  flex: 1;
}

.nav-left .nav-menu {
  justify-content: flex-end;
  padding-right: 40px;
}

.nav-right .nav-menu {
  justify-content: flex-start;
  padding-left: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 45px;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0px;
  color: var(--text-white);
  padding: 4px 0;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--accent-orange);
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-orange);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
  width: 100%;
  margin-left: -50%;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  max-height: 58px;
  width: auto;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: #0d0d0d;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 20px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a.active {
  color: var(--accent-orange);
}

/* ==========================================================================
   Hero Slider (Home)
   ========================================================================== */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background-color: var(--bg-black);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 20s linear;
}

.hero-slide.active img {
  transform: scale(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 3;
  pointer-events: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: rgba(125, 125, 125, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.slider-dot.active,
.slider-dot:hover {
  background: rgb(125, 125, 125);
}

/* ==========================================================================
   Page Hero Banner (Inner Pages)
   ========================================================================== */

.page-hero {
  position: relative;
  height: 525px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-dark);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 84px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -1px;
  color: var(--text-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Content Sections & Typography
   ========================================================================== */

.section {
  padding: 80px 0;
}

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

.section-white {
  background-color: var(--text-white);
  color: #4e4e4e;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: -1px;
  color: var(--text-white);
  margin-bottom: 24px;
}

.section-heading.centered {
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--accent-orange);
  margin-bottom: 8px;
  display: block;
}

.prose {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 29px;
  color: var(--text-light);
}

.prose p {
  margin-bottom: 18px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 18px;
}

.prose li {
  margin-bottom: 8px;
}

/* Feature Image Link (About Us) */
.feature-image-wrap {
  max-width: 680px;
  margin: 48px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.feature-image-wrap img {
  width: 100%;
  transition: transform 0.4s ease;
}

.feature-image-wrap:hover img {
  transform: scale(1.03);
}

.full-banner-img {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  border-radius: 4px;
}

/* ==========================================================================
   Projects Page
   ========================================================================== */

.project-block {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.project-block:last-child {
  border-bottom: none;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}

.project-grid.reverse .project-media {
  order: -1;
}

.project-media img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 22px;
}

.stats-table th,
.stats-table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-light);
}

.stats-table tr:first-child td {
  background: rgba(255, 132, 0, 0.12);
  color: var(--accent-orange);
  font-weight: 700;
}

/* ==========================================================================
   Gallery Grid & Lightbox
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-card);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  font-size: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-orange);
}

.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Newsletters Grid
   ========================================================================== */

.newsletters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.newsletter-card {
  background: rgba(229, 229, 229, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.newsletter-card:hover {
  border-color: rgba(255, 132, 0, 0.4);
  transform: translateY(-3px);
}

.newsletter-date {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: -1px;
  color: var(--text-white);
  margin-bottom: 20px;
}

.newsletter-preview {
  display: block;
  margin-bottom: 24px;
  overflow: hidden;
  aspect-ratio: 912 / 645;
  background: #0a0a0a;
}

.newsletter-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.newsletter-preview:hover img {
  transform: scale(1.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 40px;
  padding: 0 25px;
  border-radius: 55px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0px;
  text-transform: uppercase;
  border: none;
  background-color: #020202;
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.btn:hover {
  background-color: var(--accent-teal);
  color: var(--text-light);
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--text-white);
  height: 46px;
  padding: 0 32px;
}

.btn-primary:hover {
  background-color: var(--accent-teal);
  color: var(--text-white);
}

/* ==========================================================================
   Contact Page (Matching Exact Original Form & White Address Section)
   ========================================================================== */

.contact-form-section {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto;
}

.contact-form {
  max-width: 820px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 36px;
  color: var(--text-white);
  margin-bottom: 4px;
}

.form-group label sup {
  color: var(--accent-orange);
}

.form-control {
  width: 100%;
  padding: 10px 4px;
  background: none;
  border: 2px solid var(--accent-orange);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  transition: border-color var(--transition-fast);
}

input.form-control {
  border-top: none;
  border-left: none;
  border-right: none;
}

input.form-control::placeholder {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-white);
  opacity: 0.9;
}

textarea.form-control {
  padding: 12px 15px;
  min-height: 160px;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.form-hint {
  font-family: var(--font-roboto);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  line-height: 29px;
  color: #494949;
  margin-top: 8px;
}

.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(45, 222, 182, 0.15);
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
}

.form-status.error {
  display: block;
  background: rgba(255, 92, 92, 0.15);
  border: 1px solid #ff5c5c;
  color: #ff8a8a;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.address-card h3 {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: -1px;
  color: #141414;
  margin-bottom: 6px;
}

.address-card .subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 25px;
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.address-card p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 29px;
  color: #4e4e4e;
}

.address-card a {
  color: #4e4e4e;
}

.address-card a:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-black);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 28px;
  text-align: center;
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-menu a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
}

.footer-menu a:hover {
  color: var(--accent-orange);
}

.copyright {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
  .nav-group {
    display: none;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .header-inner {
    justify-content: space-between;
  }

  .project-grid,
  .newsletters-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-grid.reverse .project-media {
    order: 0;
  }
}

@media (max-width: 767px) {
  .page-hero {
    height: 340px;
  }

  .page-hero h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading {
    font-size: 24px;
    line-height: 30px;
  }

  .newsletter-title {
    font-size: 23px;
    line-height: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-menu {
    flex-direction: column;
    gap: 12px;
  }
}
