/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.7);
  z-index: 1000;
}

.nav-left,
.nav-center,
.nav-right {
  flex: 1;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.nav-center {
  text-align: center;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 25px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.name {
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 36px;
  color: #38bdf8;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: #38bdf8;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  background: url("content/nedev.png") center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero span {
  color: #38bdf8;
}

.hero p {
  max-width: 600px;
  margin: auto;
  opacity: 0.8;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  background: #38bdf8;
  border-radius: 30px;
  color: #0f172a;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: white;
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 32px;
}

/* ===== SERVICES ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(56,189,248,0.1);
}

/* ===== PORTFOLIO ===== */
.filter-buttons {
  text-align: center;
  margin-bottom: 40px;
}

.filter-buttons button {
  margin: 5px;
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: #1e293b;
  color: white;
  transition: 0.3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: #38bdf8;
  color: #0f172a;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-item {
  flex: 1 1 250px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  background: #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.gallery-item:hover {
  transform: scale(1.05);
}

@media (min-width: 1100px) {
  .gallery-item {
    flex-basis: calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
  }
}

/* ===== CONTACT ===== */
#contact form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#contact input,
#contact textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#contact textarea {
  min-height: 140px;
  resize: vertical;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#contact input:focus,
#contact textarea:focus {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

#contact form .btn {
  margin-top: 6px;
  border: none;
  cursor: pointer;
}

#contact-status {
  min-height: 20px;
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.9;
}

footer {
  text-align: center;
  padding: 30px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    padding: 8px 5%;
    align-items: center;
  }

  .nav-left {
    flex: 1;
    min-width: 0;
  }

  .nav-left h1 {
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-logo {
    width: 48px;
    height: 48px;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 5% 18px;
    background: rgba(15, 23, 42, 0.95);
  }

  .nav-right.open {
    display: flex;
  }
}
