/* --- Global --- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 20% 20%, #00111f, #000814, #020a15);
  color: #e0e5ec;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 95vh;
  background: linear-gradient(135deg, #00111f, #011f3f, #002a5a);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #00f0ff, #ff00ff, #00ff85, #00f0ff);
  animation: rotate 12s linear infinite;
  filter: blur(80px);
  opacity: 0.2;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 3rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 80px;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 0 8px #00e0ff);
}

.hero-title h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  color: #00d4ff;
}

.hero-title p {
  color: #9eeaf9;
  margin-top: 0.3rem;
  font-weight: 500;
}

.scroll-down {
  text-align: center;
  margin-top: 2rem;
  animation: fadeInUp 2s ease infinite alternate;
}

.scroll-down span {
  display: block;
  color: #9eeaf9;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.scroll-down .arrow {
  font-size: 2rem;
  color: #00f0ff;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Button --- */
.btn-neon {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border: 2px solid #00f0ff;
  color: #00f0ff;
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
  text-transform: uppercase;
  box-shadow: 0 0 10px #00f0ff;
  transition: all 0.3s ease-in-out;
}
.btn-neon:hover {
  background: #00f0ff;
  color: #00111f;
  box-shadow: 0 0 25px #00f0ff, 0 0 50px #00ff99;
}

/* --- Sections --- */
section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: auto;
  position: relative;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  color: #00f0ff;
  margin-bottom: 2rem;
}

/* --- Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px #00f0ff55, 0 0 35px #ff00ff33;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* --- Projects --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.project-tile {
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(255,0,255,0.1));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 15px;
  padding: 2rem;
  color: #cce7f0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(0,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: 0.8s;
}
.project-tile:hover::before {
  transform: translateX(100%);
}
.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,255,255,0.2);
}

/* --- Contact --- */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00f0ff;
}

/* --- Softer contact link color --- */
.soft-link {
  color: #89d6f5;
  text-decoration: none;
}
.soft-link:hover {
  color: #00f0ff;
  text-decoration: underline;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #00111f;
  border-top: 1px solid #00f0ff33;
  color: #00f0ff;
  font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
  animation: fadeInUp 1.5s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .hero-header {
    flex-direction: column;
    align-items: center;
  }
  .logo { width: 70px; }
  .hero-title h1 { font-size: 1.8rem; text-align: center; }
}