/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

/* Background slider */
.background-container {
  position: relative;
  height: 660px;
  overflow: hidden;
}

.background-slider {
  display: flex;
  height: 100%;
  width: 220vh;
  transition: transform 0.7s ease;
}

.background-slider > div {
  flex: 1 0 100%;
  background-size: cover;
  background-position: center;
}

/* Slider buttons */
.nav-button.prev,
.nav-button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  z-index: 10;
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #070707;
  color: #fff;
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo a {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 2rem;
  color: rgb(9, 142, 219);
  text-decoration: none;
}

.logo a img {
  height: 80px;
  margin: 0 80px;
  border-radius: 100px;
  object-fit: contain;
  position: fixed;
}

.logo a .logo-text {
  margin-left: 170px;
  margin-top: -2.4px;
}

@media (max-width: 768px) {
  .logo a span {
    display: none;
  }
}

.menu {
  margin-left: 520px;
  display: flex;
  font-size: 20px;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: #38bdf8;
}

.nav-button#darkModeToggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
  margin-left: 1rem;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 1rem;
    background-color: #1e293b;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    flex-direction: column;
    width: 150px;
  }

  .menu.active {
    display: flex;
  }
}

/* Sections */
section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h1,
section h2 {
  margin-bottom: 1rem;
  color: var(--text-black-900);
}

/* About */
.about-section {
  padding: 60px 20px;
  background: var(--bg);
  color: var(--text);
}

.about-container {
  max-width: 1400px;
  margin: auto;
}

.about-right h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.about-right p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0.9;
}

.about-right ul {
  padding-left: 20px;
}

.about-right li {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
  gap: 30px;
}

.stat-item {
  flex: 1 1 200px;
  max-width: 220px;
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.icon-blue {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.icon-green {
  background: linear-gradient(135deg, #00ff87, #00c67f);
}

.icon-purple {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.icon-red {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
}

.stat-item:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(0, 114, 255, 0.6), 0 0 20px rgba(0, 114, 255, 0.4);
}

.stat-item h3 {
  font-size: 1.5rem;
  margin: 10px 0 5px;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 15px;
  }

  .about-right h2 {
    font-size: 1.5rem;
  }

  .about-right p,
  .about-right li {
    font-size: 0.95rem;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
  }
}

/* Projects */
.project-category {
  margin-bottom: 3rem;
}

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

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  text-decoration: none;
  color: #333;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
}

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

.project-card h3 {
  padding: 0.75rem 0;
  font-weight: 700;
}

/* Services */
.service-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 4px 25px var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-summary {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 10px;
  font-weight: 500;
}

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 10px;
}

.service-card.active .service-details {
  max-height: 300px;
  opacity: 1;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  color: #ccc;
}

@media (min-width: 768px) {
  .contact-info {
    flex-direction: row;
    justify-content: space-between;
  }
}

.info-box {
  background-color: #070707;
  padding: 20px;
  border-radius: 20px;
  flex: 1;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 0, 184, 0.2);
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
}

.info-box h3 {
  color: #ff00b8;
  font-size: 18px;
  margin-bottom: 10px;
}

.info-box p {
  font-size: 14px;
  color: #fff;
}

.contact-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-section h1 {
  font-size: 38px;
  font-weight: bold;
  color: #ff00b8;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: transparent;
}

/* ✅ NEW: Fix Name + Email layout */
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: calc(50% - 10px);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .form-row input {
    min-width: 100%;
  }
}

input,
textarea {
  background-color: #ccc8c8;
  color: #090909;
  border: none;
  padding: 15px 20px;
  border-radius: 30px;
  width: 100%;
  transition: border 0.3s ease, outline 0.3s ease;
  font-size: 14px;
}

textarea {
  border-radius: 25px;
  resize: none;
}

input:focus,
textarea:focus {
  outline: 2px solid #ff00b8;
}

.send-btn {
  background-color: #ff00b8;
  color: white;
  padding: 15px 30px;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #e600a6;
}

.form-btn-wrapper {
  text-align: center;
}

/* Footer */
.footer {
  background-color: #1e293b;
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}

.social-media {
  margin-bottom: 0.8rem;
}

.social-media a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s;
  display: inline-block;
}

.social-media a:hover {
  color: #38bdf8;
}

/* Dark mode */
body.dark-mode {
  background-color: #121212;
  color: #ddd;
}

body.dark-mode .navbar {
  background-color: #222;
}

body.dark-mode .menu ul li a {
  color: #ddd;
}

body.dark-mode .menu ul li a:hover {
  color: #4f91f7;
}

body.dark-mode .project-card,
body.dark-mode .service-card {
  background-color: #1e1e1e;
  color: #ccc;
  box-shadow: 0 0 10px rgba(255 255 255 / 0.05);
}

body.dark-mode .footer {
  background-color: #222;
}

body.dark-mode .social-media a:hover {
  color: #4f91f7;
}
