@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

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

body {
  background: #fdfdfd;
  color: #222;
  overflow-x: hidden;
}

/* Splash */
#splash {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10;
  animation: fadeOut 2s ease 4s forwards;
}

#splash video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.splash-text {
  position: relative;
  text-align: center;
  color: white;
}

.splash-text .logo {
  width: 100px;
  animation: pop 1.5s ease infinite alternate;
}

@keyframes pop {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 9;
}

header .nav-logo {
  width: 50px;
}

nav a {
  margin: 0 15px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #2ecc71;
}

/* Hero */
#hero {
  height: 90vh;
  background: linear-gradient(120deg, #ffeb3b, #2ecc71);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

#hero .hero-content {
  max-width: 900px;
}

.gradient {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #ffeb3b, #2ecc71);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#hero p {
  font-size: 1.3rem;
  margin: 20px 0;
  opacity: 0.95;
}

/* Hero Buttons Container */
.hero-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

#hero button,
.tool-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
}

/* Main Explore Button */
#hero button {
  background: #fff;
  color: #2ecc71;
}

#hero button:hover {
  background: #222;
  color: #ffeb3b;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Json Validator Button */
.tool-btn:nth-child(1) {
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  color: #000;
}

.tool-btn:nth-child(2) {
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: #fff;
}

.tool-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Services */
#services {
  padding: 100px 20px;
  text-align: center;
  background: #fff;
}

#services h2 {
  margin-bottom: 60px;
  font-size: 2.8rem;
  color: #333;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background: white;
  padding: 40px 30px;
  width: 320px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-15px) scale(1.04);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* About */
#about {
  padding: 100px 20px;
  background: #f8f9fa;
  text-align: center;
}

#about p {
  max-width: 700px;
  margin: 20px auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
}

/* Contact */
#contact {
  padding: 100px 20px;
  text-align: center;
  background: #222;
  color: #fff;
}

/* Footer */
footer {
  background: #111;
  color: #ddd;
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .gradient {
    font-size: 3.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  nav a {
    margin: 0 8px;
    font-size: 0.95rem;
  }
}