/* Reset */
* {margin: 0; padding: 0; box-sizing: border-box;}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #003366;
  padding: 0.8rem 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo img {
  height: 100px; /* Bigger logo */
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 3px solid #fff;
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

nav ul li a:hover {
  color: #ffcc00;
  border-color: #ffcc00;
}

/* Sections */
section {
  position: relative;
  min-height: 100vh;
  padding: 100px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

section img.bg {
  position: absolute;
  top: 10mm; left: 10mm;
  right: 10mm; bottom: 10mm;
  width: calc(100% - 20mm);
  height: calc(100% - 20mm);
  object-fit: cover;
  border-radius: 12px;
  z-index: -2;
}

section::after {
  content: "";
  position: absolute;
  top: 10mm; left: 10mm;
  right: 10mm; bottom: 10mm;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  z-index: -1;
}

.content {
  max-width: 1000px;
  margin: auto;
  background: rgba(0,0,0,0.4);
  padding: 20px;
  border-radius: 10px;
}

h1, h2 {
  margin-bottom: 1rem;
}

h2 {
  color: #ffcc00;
}

footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Grid layout for services & portfolio */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

/* Card style */
.card {
  background: rgba(0,0,0,0.4);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
}
/* Logo bounce on page load */
nav .logo img {
  height: 100px;
  width: auto;
  animation: bounceLogo 1.5s ease-out forwards;
}

@keyframes bounceLogo {
  0% { transform: translateY(-100px) scale(0.5); opacity: 0; }
  60% { transform: translateY(20px) scale(1.1); opacity: 1; }
  80% { transform: translateY(-10px) scale(0.95); }
  100% { transform: translateY(0) scale(1); }
}

/* Section fade-in on scroll */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Background zoom effect */
section img.bg {
  transition: transform 20s ease-in-out;
}

section:hover img.bg {
  transform: scale(1.05);
}

/* Services & Portfolio hover animation */
.grid .card, .portfolio-grid img {
  transition: transform 0.5s, box-shadow 0.5s;
}

.grid .card:hover, .portfolio-grid img:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 10px;
}
