/* ═══════════════════════════════════════════════
   SECTIONS.CSS — Page Section Layouts
═══════════════════════════════════════════════ */

/* ══════════════════════
   HERO
══════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 64px 80px;
  overflow: hidden;
}

/* Ocean background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.clouds-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  animation: cloudFloat ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: forwards;
}
.cloud-1 { width:520px; height:210px; background:radial-gradient(ellipse,rgba(42,100,165,0.22)0%,transparent 70%); top:8%;  left:-5%;   animation-duration:18s; animation-delay:0s; }
.cloud-2 { width:720px; height:260px; background:radial-gradient(ellipse,rgba(200,184,162,0.1)0%,transparent 70%); top:28%; right:-10%; animation-duration:26s; animation-delay:3s;  animation-direction:reverse; }
.cloud-3 { width:420px; height:190px; background:radial-gradient(ellipse,rgba(14,78,150,0.18)0%,transparent 70%); top:55%; left:20%;   animation-duration:21s; animation-delay:6s; }
.cloud-4 { width:620px; height:230px; background:radial-gradient(ellipse,rgba(96,91,90,0.12)0%,transparent 70%);  top:4%;  right:18%;  animation-duration:30s; animation-delay:1s;  animation-direction:reverse; }
.cloud-5 { width:370px; height:160px; background:radial-gradient(ellipse,rgba(30,115,180,0.15)0%,transparent 70%); bottom:12%; left:5%; animation-duration:23s; animation-delay:9s; }

.wave-layer {
  position: absolute;
  bottom: 0; left: -10%;
  width: 120%; height: 100%;
  pointer-events: none;
}
.wave-svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  animation: waveScroll linear infinite;
}
.wave-svg:nth-child(1) { bottom: 0;    opacity: 0.17; animation-duration: 14s; fill: #1a6fa8; }
.wave-svg:nth-child(2) { bottom: 28px; opacity: 0.11; animation-duration: 20s; fill: #0e4f80; animation-direction: reverse; }
.wave-svg:nth-child(3) { bottom: 58px; opacity: 0.07; animation-duration: 28s; fill: #C8B8A2; }

.foam-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 220, 255, 0.15);
  animation: foamRise linear infinite;
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,184,162,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,184,162,0.025) 1px, transparent 1px);
  background-size: 62px 62px;
  animation: gridDrift 22s linear infinite;
  opacity: 0.6;
}

/* Hero content */
.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 184, 162, 0.1);
  border: 1px solid rgba(200, 184, 162, 0.2);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 .line2 {
  color: var(--accent);
  display: block;
}

.hero-sub {
  margin-top: 22px;
  font-size: 1rem;
  color: rgba(245, 240, 236, 0.65);
  max-width: 460px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual / avatar */
.hero-visual {
  position: relative; z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-frame {
  position: relative;
  width: 320px; height: 390px;
}
.avatar-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(96,91,90,0.3) 0%, rgba(0,27,56,0.85) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(200, 184, 162, 0.15);
  overflow: hidden;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  filter: grayscale(15%) contrast(1.06);
}
.avatar-glow {
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, rgba(200,184,162,0.28), transparent 40%, rgba(42,80,128,0.28));
  border-radius: calc(var(--radius-xl) + 2px);
  z-index: -1;
  animation: rotateBorder 5s linear infinite;
}

/* ══════════════════════
   ABOUT
══════════════════════ */
#about {
  background: rgba(96, 91, 90, 0.04);
  border-top: 1px solid rgba(200,184,162,0.06);
  border-bottom: 1px solid rgba(200,184,162,0.06);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245, 240, 236, 0.7);
  margin-bottom: 18px;
}
.about-text p strong { color: var(--cream); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

/* ══════════════════════
   SKILLS
══════════════════════ */
#skills {
  padding: var(--section-pad);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

/* ══════════════════════
   PROJECTS
══════════════════════ */
#projects {
  background: rgba(96, 91, 90, 0.04);
  border-top: 1px solid rgba(200,184,162,0.06);
  border-bottom: 1px solid rgba(200,184,162,0.06);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.project-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-spring),
    transform var(--dur-slow) var(--ease-spring);
}
.project-card.visible { opacity: 1; transform: translateY(0); }

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.project-visual {
  background: rgba(96,91,90,0.14);
  border-radius: var(--radius-md);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  border: 1px solid var(--accent-line);
}

/* ══════════════════════
   CONTACT
══════════════════════ */
#contact {
  text-align: center;
  padding: 120px 64px;
  overflow: hidden;
}
.contact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(42,80,128,0.18) 0%, transparent 70%);
  pointer-events: none;
}
#contact .section-label { justify-content: center; }
#contact .section-title { margin-bottom: 14px; }
.contact-sub {
  font-size: 1rem;
  color: rgba(245, 240, 236, 0.5);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.contact-links {
  position: relative; z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ══════════════════════
   FOOTER
══════════════════════ */
footer {
  padding: 28px 64px;
  border-top: 1px solid rgba(200,184,162,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(245, 240, 236, 0.28);
}
footer a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--dur-fast);
}
footer a:hover { opacity: 0.7; }

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 900px) {
  :root { --section-pad: 80px 28px; }
  nav    { padding: 0 28px; }
  #hero  { grid-template-columns: 1fr; padding: 100px 28px 60px; text-align: center; }
  .hero-visual { display: none; }
  .about-grid,
  .project-card.featured { grid-template-columns: 1fr; gap: 40px; }
  .project-card.featured { grid-column: span 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3,1fr); gap: 10px; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
  .scroll-hint { left: 28px; }
}
