/* =====================
   RESET + GLOBAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

/* =====================
   HEADER
===================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #38bdf8;
}


/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #020617);
}

.hero h1 {
  font-size: 3.5rem;
  animation: fadeUp 1.2s ease forwards;
}

.hero p {
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   SERVICES
===================== */
.services {
  padding: 80px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: #020617;
  padding: 32px;
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.service-card:hover {
  transform: rotateY(12deg) rotateX(8deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(56, 189, 248, 0.3);
}

/* =====================
   PORTFOLIO
===================== */
.portfolio {
  padding: 80px 16px;
}

.portfolio-grid {
  columns: 3 250px;
  column-gap: 16px;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.15);
}

/* =====================
   SWIPER
===================== */
.swiper {
  padding-bottom: 50px;
}

.swiper-slide {
  background: #020617;
  border-radius: 16px;
  padding: 40px;
}

/* =====================
   CONTACT PAGE
===================== */
.contact-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a, #020617);
}
.contact-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  

/* FORM */
.contact-form {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  background: rgba(2, 6, 23, 0.9);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: formFade 1s ease forwards;
}

@keyframes formFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* INPUT */
.field {
  position: relative;
  margin-bottom: 28px;
}

.field input {
  width: 100%;
  padding: 16px 14px;
  font-size: 16px;
  color: #fff;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 10px;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.field input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* FLOATING LABEL */
.field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease;
  background: transparent;
}

.field input:focus + label,
.field input:valid + label {
  top: -8px;
  font-size: 12px;
  padding: 0 6px;
  background: #020617;
  color: #38bdf8;
}

/* BUTTON */
.btn,
.contact-form button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #020617;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover,
.contact-form button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.45);
}

.btn:active,
.contact-form button:active {
  transform: scale(0.97);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 24px;
  background: #22c55e;
  color: #022c22;
  border-radius: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 30px 20px;
  }
}
