/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #444;
}

a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #005fa3;
}

/* === Navigation Bar === */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  padding: 1rem 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

nav a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

nav a:hover {
  color: #1a73e8;
}

/* === Sections === */
section {
  padding: 6rem 2rem;
  text-align: center;
  transition: background-color 0.6s ease;
}

section:nth-child(even) {
  background: #f8f9fa;
}

/* === Hero Section === */
.hero {
  background: url('images/hero_surf.jpg') center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem;
  background-attachment: fixed;
  position: relative;
}

/* === Section Headings === */
section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0d47a1;
}

/* === About Section === */
.about {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.about p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
}

/* === Surf Feature Section === */
.surf-feature {
  background: url('images/surf_feature.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.surf-feature .overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 6rem 2rem;
}

.surf-feature h2 {
  color: #fff;
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.surf-feature p {
  max-width: 700px;
  margin: 0 auto;
}

/* === Portfolio Section === */
.portfolio {
  text-align: center;
}

.portfolio-category {
  margin-bottom: 4rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.gallery img {
  width: 300px;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === Contact Section === */
.contact {
  background: #ffffff;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
}

.contact p {
  margin: 0.6rem 0;
  font-size: 1.1rem;
}

/* === Footer === */
footer {
  background: #f0f0f0;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #555;
}

/* === Fade and Slide Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease-out forwards;
}

.fade-delay-1 { animation-delay: 0.3s; }
.fade-delay-2 { animation-delay: 0.6s; }
.fade-delay-3 { animation-delay: 0.9s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive Design === */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .about, .surf-feature p {
    text-align: center;
  }

  .gallery img {
    width: 100%;
    max-width: 340px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section h2 {
    font-size: 1.6rem;
  }
}

