:root {
  --primary: #6b0016;
  --dark: #1e1f23;
  --white: #ffffff;
  --gray: #bdbdbd;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  background: #5c0114;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(87deg, #5c0114 0%, #5c0114 50%, #040706 100%);
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: auto;
  will-change: scroll-position;
}

/* Desktop Layout */
@media (min-width: 768px) {
  body {
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* HERO */
.hero {
  height: 220px;
  background: url('../images/firstimages.gif') center/cover no-repeat;
  position: relative;
  contain: paint;
}

@media (min-width: 768px) {
  .hero {
    height: 350px;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #f5deb3;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  z-index: 1;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
  width: 100%;
  margin-bottom: 75px;
}

@media (min-width: 768px) {
  .hero-text {
    font-size: 28px;
    margin-bottom: 90px;
  }
}

/* BRAND */
.brand {
  text-align: center;
  color: white;
  padding: 30px 20px;
  position: relative;
}

@media (min-width: 768px) {
  .brand {
    padding: 50px 40px;
  }
}

.logo-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: white;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -100px auto 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

@media (min-width: 768px) {
  .logo-circle {
    width: 180px;
    height: 180px;
    margin: -120px auto 40px;
  }
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.brand h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .brand h1 {
    font-size: 48px;
  }
}

.brand p {
  font-size: 14px;
  opacity: .9;
}

@media (min-width: 768px) {
  .brand p {
    font-size: 18px;
  }
}

/* SOCIAL */
.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 15px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .social {
    gap: 25px;
    margin-top: 25px;
  }
}

.social a {
  color: white;
  text-decoration: none;
}

.social i {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

@media (min-width: 768px) {
  .social i {
    font-size: 26px;
  }
  
  .social a:hover i {
    transform: scale(1.2);
  }
}

/* CARD */
.card {
  background: var(--dark);
  border-radius: 18px;
  margin: 15px;
  padding: 18px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

@media (min-width: 768px) {
  .card {
    margin: 20px 40px;
    padding: 22px 30px;
    border-radius: 20px;
  }
  
  .card:hover {
    background: #2a2b30;
  }
}

.card-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: flex-start;
}

.card h3 {
  font-size: 18px;
  flex: 1;
  text-align: center;
  margin-right: 50px;
}

.card-image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .card-image {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 768px) {
  .card h3 {
    font-size: 22px;
    margin-right: 60px;
  }
}

.card i {
  transition: transform .3s;
  flex-shrink: 0;
}

.card.active i {
  transform: rotate(180deg);
}

/* ACCORDION */
.panel {
  display: none;
  padding: 0 25px 15px;
  color: var(--gray);
  font-size: 14px;
}

@media (min-width: 768px) {
  .panel {
    padding: 0 50px 25px;
    font-size: 16px;
  }
}

.panel ul {
  margin-top: 10px;
}

.panel li {
  list-style: none;
  padding: 6px 0;
  border-bottom: 1px dashed #444;
}

@media (min-width: 768px) {
  .panel li {
    padding: 10px 0;
  }
}

/* PDF VIEWER */
.pdf-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pdf-viewer {
  width: 100%;
  min-height: 500px;
  height: 70vh;
  border: 2px solid #444;
  border-radius: 8px;
  background: white;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  align-self: center;
}

.pdf-download-btn:hover {
  background: #8b0020;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 0, 22, 0.3);
}

.pdf-download-btn i {
  font-size: 16px;
}

@media (min-width: 768px) {
  .pdf-viewer {
    min-height: 600px;
  }
}

/* SECTION TITLE */
.section-title {
  text-align: center;
  color: white;
  font-size: 20px;
  margin: 30px 0 15px;
  position: relative;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 26px;
    margin: 50px 0 25px;
  }
}

/* LOADING DOTS */
.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
}

@media (min-width: 768px) {
  .loading-dots {
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .loading-dots span {
    width: 15px;
    height: 15px;
  }
}

/* ACTION BUTTON */
.action {
  background: white;
  margin: 12px 15px;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  gap: 15px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
  .action {
    margin: 15px 40px;
    padding: 20px 25px;
    border-radius: 18px;
    gap: 20px;
  }
  
  .action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
}

.action img {
  width: 40px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .action img {
    width: 50px;
  }
}

.action h4 {
  color: var(--primary);
  font-size: 16px;
}

@media (min-width: 768px) {
  .action h4 {
    font-size: 20px;
  }
}

.action p {
  font-size: 13px;
  color: #444;
}

@media (min-width: 768px) {
  .action p {
    font-size: 15px;
  }
}

/* FOOTER SPACE */
.footer-space {
  height: 30px;
}

@media (min-width: 768px) {
  .footer-space {
    height: 50px;
  }
}

/* FOOTER SIGNATURE */
.footer-signature {
  text-align: center;
  padding: 20px 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

@media (min-width: 768px) {
  .footer-signature {
    padding: 25px 20px;
    font-size: 14px;
  }
}

.footer-signature p {
  margin: 0;
}

.footer-signature a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease-out;
  font-weight: 500;
}

.footer-signature a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 15px;
  margin-bottom: 20px;
  content-visibility: auto;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px;
    margin-bottom: 30px;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

@media (min-width: 768px) {
  .gallery-item {
    border-radius: 16px;
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}
