/* ------------------------------------------------ */
/* GLOBAL STYLES */
/* ------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: transparent;   /* IMPORTANT for tech animation */
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ------------------------------------------------ */
/* NAVIGATION */
/* ------------------------------------------------ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  font-size: 18px;
  color: #2c3e50;
  transition: 0.3s ease;
}

nav ul li a:hover {
  color: #3498db;
}

/* ------------------------------------------------ */
/* HERO SECTION */
/* ------------------------------------------------ */
.hero {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Semi-dark overlay with actual background image */
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../images/hero-bg.jpg') center/cover;

  color: white;
  animation: fadeIn 1.5s ease;
}

.hero h2 {
  font-size: 55px;
  font-weight: 700;
}

.hero p {
  margin-top: 15px;
  font-size: 22px;
  opacity: 0.9;
}

.hero .btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  background: #3498db;
  color: white;
  font-size: 20px;
  border-radius: 8px;
  transition: 0.3s ease;
}

.hero .btn:hover {
  background: #1d6fa5;
}

/* ------------------------------------------------ */
/* SECTIONS */
/* ------------------------------------------------ */
section {
  padding: 80px 8%;
  background: transparent !important;   /* REQUIRED for animated background */
  position: relative;
  z-index: 2;   /* Keeps text ABOVE animation */
}

.section-title {
  text-align: center;
  font-size: 38px;
  margin-bottom: 40px;
  font-weight: 600;
}

/* ------------------------------------------------ */
/* SERVICES */
/* ------------------------------------------------ */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-box {
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.10);
  transition: 0.3s ease;
}

.service-box:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-box h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #3498db;
}

/* ------------------------------------------------ */
/* PORTFOLIO */
/* ------------------------------------------------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.project {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.10);
  transition: 0.3s ease;
}

.project:hover {
  transform: scale(1.03);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h4 {
  font-size: 22px;
  color: #2c3e50;
}

/* ------------------------------------------------ */
/* CONTACT FORM */
/* ------------------------------------------------ */
.contact-form {
  max-width: 600px;
  margin: auto;
  z-index: 10;
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  background: #ecf0f1;
  border-radius: 8px;
  font-size: 18px;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background: #3498db;
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #2474a7;
}

/* ------------------------------------------------ */
/* ANIMATIONS */
/* ------------------------------------------------ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------------------------ */
/* MOVING TECH BACKGROUND */
/* ------------------------------------------------ */
.tech-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;

  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);

  background-size: 50px 50px;
  animation: moveGrid 30s linear infinite;
  opacity: 0.20;
  z-index: 1;   /* BELOW all content, ABOVE body */
}

@keyframes moveGrid {
  from { transform: translate(0,0); }
  to { transform: translate(-300px, -300px); }
}

/* ------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------ */
footer {
  text-align: center;
  padding: 20px;
  background: #2c3e50;
  color: white;
  z-index: 10;
  position: relative;
}
