* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a;
  color: white;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #38bdf8;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: white;
  opacity: 0.8;
  transition: 0.3s;
}

.menu a:hover {
  opacity: 1;
  color: #38bdf8;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
  background:
    linear-gradient(rgba(15,23,42,0.7), rgba(15,23,42,0.9)),
    url('https://raw.githubusercontent.com/tehtawarkurangmanis/fatsa/refs/heads/main/photos/css.png?q=80&w=1600&auto=format&fit=crop') center/cover;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero p {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  background: #38bdf8;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.hero-btn:hover {
  background: white;
}

.section {
  padding: 90px 8%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 50px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
  color: white;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #38bdf8;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: white;
  opacity: 0.75;
  transition: 0.3s;
}

.menu a:hover {
  opacity: 1;
  color: #38bdf8;
}

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;

  background:
    linear-gradient(rgba(15,23,42,0.65), rgba(15,23,42,0.95)),
    url('https://raw.githubusercontent.com/tehtawarkurangmanis/enskrip/refs/heads/main/css.png?q=80&w=1600&auto=format&fit=crop')
    center/cover;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero p {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.hero-btn:hover {
  transform: scale(1.05);
  background: white;
}

/* ================= SECTION ================= */

.section {
  padding: 90px 8%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 50px;
}

/* ================= GALLERY ================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);

  transition: 0.5s;
  transform: translateY(40px) scale(0.98);
  opacity: 0;
}

/* Hover 3D effect */
.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.card-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* ================= ABOUT ================= */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 24px;
  height: 420px;
  object-fit: cover;
  transition: 0.4s;
}

.about img:hover {
  transform: scale(1.03);
}

.about-text p {
  color: #cbd5e1;
  line-height: 1.8;
  margin: 20px 0;
}

/* ================= FOOTER ================= */

.footer {
  text-align: center;
  padding: 30px;
  background: #020617;
  color: #94a3b8;
}

/* ================= ANIMATION SYSTEM ================= */

/* default state (hidden) */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* active state (visible) */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* delay system */
.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .menu {
    gap: 12px;
  }

  .menu a {
    font-size: 0.85rem;
  }
}

  .menu {
    gap: 12px;
  }

  .menu a {
    font-size: 0.85rem;
  }
}
