/* Font Face Declaration for Kertayasa */
@font-face {
  font-family: 'Kertayasa';
  src: url('fonts/KertayasaFree.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-width: 100vw;
}

.home-page {
  /* Full-screen background with adjustable width */
  background-image: url('images/DM_main.png');
  background-color: #03070c;
  background-position-x: 102px;
  background-size: 100vw auto;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.banner {
  position: relative;
  width: 100%;
  height: 3rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 50%, #1a1a1a 100%);
  padding: 0;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
}

/* Navigation */
.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  /* Remove margin-left for true centering */
  margin-left: 0;
  position: relative;
  height: 90px;
}

.navigation li {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.navigation li:not(:last-child)::after {
  content: '|';
  color: #666;
  margin-left: 20px;
  font-weight: normal;
  text-shadow: none;
}

.navigation a {
  font-family: 'Kertayasa', serif;
  font-size: 18px;
  font-weight: normal;
  font-style: normal;
  color: #ccc;
  text-decoration: none;
  padding: 24px 12px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  height: 100%;
}

.navigation a:hover {
  color: #D4AF37;
  text-shadow: 0 0 2px #D4AF37;
  text-decoration: underline;
  text-decoration-color: #D4AF37;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}



.content {
  width: 100%;
  padding: 0px;
  color: white;
  position: relative; /* Enable absolute positioning for child elements */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content h1 {
  font-family: 'Kertayasa', serif;
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.content h2 {
  font-family: 'Kertayasa', serif;
  font-size: 24px;
  font-weight: normal;
  text-align: center;
  margin-bottom: 30px;
  color: #ccc;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.content h3 {
  font-family: 'Kertayasa', serif;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 18px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section p {
  font-size: 18px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Call to Action Button */
.cta-button {
  background: linear-gradient(135deg, #2d1b69, #4a1c1c);
  color: white;
  border: 2px solid #FFD700;
  padding: 15px 40px;
  font-family: 'Kertayasa', serif;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, #4a1c1c, #2d1b69);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 8px #FFD700;
}

/* Features Grid */
.features-grid {
  display: flex;
  gap: 3em;
  padding-top: 785px;
  padding-bottom: 60px;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  position: relative;
  justify-content: center;
}

.feature-card {
  background: rgba(45, 27, 105, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 40px 35px;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  text-decoration: none;
  width: 20rem;
}

.feature-card:hover {
  background: rgba(45, 27, 105, 0.5);
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.feature-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #ddd;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1400px) {
  .features-grid {
    grid-template-columns: 375px 375px 375px;
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: 350px 350px 350px;
    gap: 30px;
  }
}

@media (max-width: 1000px) {
  .features-grid {
    grid-template-columns: 320px 320px 320px;
    gap: 25px;
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 30px;
  }
}

/* Connection Info */
.connection-info {
  text-align: center;
  padding: 0;
  width: 100%;
  position: relative;
}

.connection-info p {
  font-size: 18px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.connection-info strong {
  color: #FFD700;
  text-shadow: 0 0 8px #FFD700;
}

.connection-note {
  font-style: italic;
  color: #aaa !important;
  font-size: 16px !important;
}

/* Separator */
.separator {
  margin-top: 1em;
  margin-bottom: 1em;
  width: 96rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Additional Content */
.additional-content {
  width: 100%;
  padding: 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
  margin-top: 1em;
}

.content-placeholder {
  background: linear-gradient(135deg, 
    rgba(45, 27, 105, 0.8) 0%, 
    rgba(74, 28, 28, 0.8) 50%, 
    rgba(45, 27, 105, 0.8) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 0;
  padding: 60px 40px;
  min-height: 200px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  margin: 0 -20px;
}

.content-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 215, 0, 0.1) 50%, 
    transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  padding: 40px 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #FFD700;
  text-shadow: 0 0 8px #FFD700;
}

.footer-copyright {
  color: #888;
  font-size: 12px;
}



.feature-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  margin: 0 100px;
  gap: 60px;
}

.custom-card {
  flex: 1 1 0;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  background: none;
  border: none;
}

.custom-card.image-card {
  /* Let the image determine the card size */
  flex: 0 1 auto;
  height: auto;
  width: auto;
}

.custom-card.black-bg {
  background: #000;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.custom-card.white-bg {
  background: #fff;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Background image classes for feature cards */
.custom-card.bg-image-1 {
  background-image: url('images/placehold1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.custom-card.bg-image-2 {
  background-image: url('images/placehold2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.custom-card.bg-image-3 {
  background-image: url('images/placehold3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.custom-card.bg-image-4 {
  background-image: url('images/placehold4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.custom-card.image-card .feature-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 1200px) {
  .feature-row {
    margin: 0 40px;
    gap: 16px;
  }
  .custom-card {
    width: 200px;
    height: 140px;
  }
}

@media (max-width: 900px) {
  .feature-row {
    margin: 0 10px;
    gap: 8px;
  }
  .custom-card {
    width: 120px;
    height: 90px;
  }
}
