/* Reset and General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  height: auto;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow: visible;
}

/* Header */
header {
  background: linear-gradient(90deg, #f0f0f0, #212020, #676666, #119e34, #167db1);
  color: white;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 01.1rem;
  font-weight: bold;
}

.logo img {
  border-radius: 5%;
  width: 100px;
  height: 55px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  width: 25px;
  height: 3px;
  background: white;
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-menu li a:hover {
  color: #3498db;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  margin-top: 4rem;
  min-height: 400px;
  overflow: hidden;
  color: white;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  color: #030704;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
  background: #e74c3c;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.cta-button:hover {
  background: #c0392b;
}

/* Slideshow Styles */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #235c59, #45b7d1, #57791b);
  overflow: hidden;
  z-index: 0;
}

.slideshow-track {
  display: flex;
  animation: slide 40s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  width: calc((60% + 10px) * 10);
  height:100%;
}
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (33% + 1px) * 5)); }
}
.slideshow-track img {
  width:100%;
  height: 100%;
  aspect-ratio: 16 / 9; /* Maintains 16:9 aspect ratio */
  object-fit: cover;
  margin: 0 1px; /* 5px margin on each side = 10px total per image */
  opacity: 1;
  transform: scale(0.8);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Middle image effect */
.slideshow-track img:nth-child(3),
.slideshow-track img:nth-child(8) {
  transform: scale(1);
  opacity: 1;
}

/* Nearby images */
.slideshow-track img:nth-child(2),
.slideshow-track img:nth-child(4),
.slideshow-track img:nth-child(7),
.slideshow-track img:nth-child(9) {
  transform: scale(0.9);
  opacity: 0.85;
}

/* Animation for sliding */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * (160px + 10px) * 5)); /* Move left by 5 images */
  }
}

/* Intro Section */
.intro {
  max-width: 1200px;
  margin: 45px auto 4rem;
  padding: 0 2rem;
}

.intro h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 2rem;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.intro a {
  color: #3498db;
  text-decoration: none;
}

.intro a:hover {
  text-decoration: underline;
}

/* AdSense Placeholder */
.adsense-placeholder {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.ad-box {
  background: #ddd;
  padding: 2rem;
  border: 1px dashed #999;
  display: inline-block;
  color: #333;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem;
}

footer a {
  color: #3498db;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #2c3e50;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .hero {
    padding: 4rem 1rem;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .slideshow-track {
    width: calc((100px + 6px) * 10); /* 100px wide + 6px total margin */
    animation: slide 20s linear infinite;
  }

  .slideshow-track img {
    width: 100px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 3px; /* 3px each side = 6px total */
  }

  @keyframes slide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-1 * (100px + 6px) * 5));
    }
  }

  .intro {
    margin-top: 350px;
  }
}
/* Add these styles to your existing dthomepage.css file */

/* Updated Navigation for Login Button */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-menu li a,
.login-button {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #3498db;
}

/* Mobile Navigation Updates */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2c3e50;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem 0;
        align-items: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        text-align: center;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .login-button {
        width: 80%;
        margin-top: 0.5rem;
    }
}
