/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ===== GRID CONTAINER ===== */
.grid-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 62px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo-light {
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4a90d9;
}

/* Dropdown */
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  vertical-align: middle;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 190px;
  padding: 0.4rem 0;
  border-radius: 4px;
  border-top: 3px solid #4a90d9;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown.open .nav-submenu {
  display: block;
}

.nav-submenu li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-submenu li a:hover {
  background: #f5f7fa;
  color: #4a90d9;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 75vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 62px;
  padding-bottom: 180px;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 0.2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 1.8rem;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  background: #4a90d9;
  color: #fff;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.hero-button:hover {
  background: #357abd;
  transform: translateY(-1px);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.wave-fill {
  fill: #fff;
}

/* Inner page hero (smaller, for sub-pages) */
.hero-inner {
  min-height: 32vh;
  padding-bottom: 70px;
}

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

/* ===== SKILLS / FEATURES SECTION ===== */
.skills-section {
  position: relative;
  z-index: 10;
  margin-top: -120px;
  padding: 0 24px 3.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-item {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid #f0f0f0;
}

.skill-item:last-child {
  border-right: none;
}

.skill-icon {
  width: 68px;
  height: 68px;
  background: #4a90d9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: #fff;
  font-size: 1.7rem;
}

.skill-item:nth-child(2) .skill-icon { background: #2ecc71; }
.skill-item:nth-child(3) .skill-icon { background: #f39c12; }
.skill-item:nth-child(4) .skill-icon { background: #9b59b6; }

.skill-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #222;
}

.skill-item p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.55;
  margin: 0;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
  padding: 3.5rem 0;
  background: #fff;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.section-header p {
  color: #777;
  font-size: 1rem;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.portfolio-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.portfolio-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-card-image {
  position: relative;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.06);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
  font-size: 1.8rem;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-info {
  padding: 0.8rem;
}

.portfolio-card-info p {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  line-height: 1.45;
  margin: 0;
}


/* ===== LAVAJAM: CONTENT SPLIT SECTION ===== */
.content-split {
  display: flex;
  min-height: 420px;
}

.content-split-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.content-split-text {
  flex: 1;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-split-text h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.content-split-text > p {
  color: #555;
  margin-bottom: 2rem;
  font-size: 0.97rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.feature-item h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #222;
  margin-bottom: 0.3rem;
}

.feature-item p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.55;
  margin: 0;
}

/* ===== LAVAJAM: GALLERY SECTION ===== */
.gallery-section {
  background: #f4f4f4;
  padding: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.gallery-grid img:hover {
  opacity: 0.82;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5082 100%);
  color: #fff;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-section p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  padding: 0.65rem 1.8rem;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 1.3rem 0;
  background: #14202e;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.85rem;
}

/* ===== INNER PAGE CONTENT (lavajam sub-pages) ===== */
.inner-content {
  padding: 3.5rem 0 5rem;
  background: #fff;
}

.inner-content .grid-container {
  max-width: 780px;
}

.inner-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  color: #222;
}

.inner-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  color: #333;
}

.inner-content p {
  font-size: 0.96rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.inner-content b {
  font-weight: 700;
  color: #222;
}

.inner-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.inner-content ul li {
  margin-bottom: 0.3rem;
  font-size: 0.96rem;
  color: #444;
  line-height: 1.7;
}

.inner-content a {
  color: #4a90d9;
  text-decoration: underline;
}

.resources-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resources-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a90d9;
  text-decoration: none;
  transition: color 0.2s;
}

.resources-links a:hover {
  color: #357abd;
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-item {
    border-bottom: 1px solid #f0f0f0;
  }

  .skill-item:nth-child(even) {
    border-right: none;
  }

  .skill-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-split {
    flex-direction: column;
  }

  .content-split-image {
    min-height: 220px;
    flex: none;
  }

  .content-split-text {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 600px) {
  .hero {
    background-attachment: scroll;
    padding-bottom: 140px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

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

  .hero-inner .hero-content h1 {
    font-size: 2rem;
  }

  .skills-section {
    margin-top: -80px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skill-item {
    padding: 1.5rem 1rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .contact-section h2 {
    font-size: 1.9rem;
  }
}
