/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #111;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url('../img/1.png') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  width: 0; /* animated with JS */
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  color: #ccc;
}

.scroll-down {
  margin-top: 3rem;
  font-size: 3rem;
  animation: bounce 2s infinite;
  color: #4fc3f7;
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 60px 30px;
  background: #181818;
  flex-grow: 1;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px #f50000;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.email-display {
  background: #1c1c1c;
  padding: 50px 20px;
  text-align: center;
  border-top: 2px solid #333;
}

.email-display h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.email-display p {
  font-size: 1.2rem;
  color: #bbb;
}

.email-display a {
  color: #f50000;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-display a:hover {
  color: #000;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #000;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #777;
  user-select: none;
}

#typed-text {
      font-size: 2.5rem;
      border-right: 3px solid #eee;
      white-space: nowrap;
      overflow: hidden;
      width: max-content;
      animation: blink 0.7s step-end infinite;
    }

/* Responsive for iPhone & small phones (up to 480px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
    white-space: normal;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .scroll-down {
    font-size: 2rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 30px 10px;
    gap: 15px;
  }
  .email-display {
    padding: 30px 10px;
  }
}

/* Responsive for iPad & tablets (481px to 1023px) */
@media (min-width: 481px) and (max-width: 1023px) {
  .hero-content h1 {
    font-size: 2.5rem;
    white-space: normal;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .scroll-down {
    font-size: 2.5rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 40px 20px;
    gap: 18px;
  }
  .email-display {
    padding: 40px 20px;
  }
}

/* Responsive for laptops and desktops (1024px and up) */
@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
    white-space: nowrap;
  }
  .hero-content p {
    font-size: 1.5rem;
  }
  .scroll-down {
    font-size: 3rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 60px 30px;
    gap: 20px;
  }
  .email-display {
    padding: 50px 20px;
  }
}
