
:root {
  --bg-light: #E8EDF2;
  --mystic-green: #0A696D;
  --dark-bg: #1C2430;
  --gold: #C79B3B;
  --red: #C23E45;
  --glass: rgba(28, 36, 48, 0.72);
  --glass-strong: rgba(10, 105, 109, 0.2);
  --border: rgba(199, 155, 59, 0.32);
  --shadow: 0 20px 45px rgba(28, 36, 48, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, rgba(10, 105, 109, 0.16), transparent 34%), var(--bg-light);
  color: var(--dark-bg);
  overflow-x: hidden;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(232, 237, 242, 0.86), rgba(10, 105, 109, 0.16));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(199, 155, 59, 0.24);
  box-shadow: var(--shadow);
}

.section {
  padding: 110px 8vw 70px;
  position: relative;
}

.section-head {
  margin-bottom: 36px;
  max-width: 760px;
}

.eyebrow {
  font-family: 'Cinzel', serif;
  color: var(--mystic-green);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: 'Cinzel', serif;
  color: var(--dark-bg);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 2.8rem);
  margin-bottom: 18px;
}

p {
  color: rgba(28, 36, 48, 0.86);
  line-height: 1.8;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--dark-bg), var(--mystic-green));
  color: var(--bg-light);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 90px;
  height: 90px;
  border: 3px solid rgba(231, 237, 242, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 18px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 5000;
  background: linear-gradient(90deg, var(--gold), var(--mystic-green));
  box-shadow: 0 0 12px rgba(199, 155, 59, 0.6);
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mystic-green);
  opacity: 0.8;
  animation: drift 8s linear infinite;
  box-shadow: 0 0 12px var(--mystic-green);
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.2; }
  100% { transform: translate3d(0, -140px, 0) scale(1.6); opacity: 0.8; }
}

.background-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.fog-layer {
  position: absolute;
  inset: auto;
  opacity: 0.5;
  filter: blur(20px);
  animation: floatLayer 18s ease-in-out infinite alternate;
}

.fog-one { top: -4%; left: -10%; width: 36vw; height: 36vw; }
.fog-two { bottom: 8%; right: -10%; width: 30vw; height: 30vw; animation-duration: 22s; }
.fog-three { top: 30%; left: 22%; width: 18vw; height: 18vw; animation-duration: 16s; }
.fog-four { bottom: 16%; left: 46%; width: 20vw; height: 20vw; animation-duration: 24s; }

@keyframes floatLayer {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(30px, -30px, 0) scale(1.08); }
}

.fog-layer .img-slot {
  border-radius: 50%;
  min-height: 100%;
  background: radial-gradient(circle, rgba(10, 105, 109, 0.42), transparent 70%);
  border: none;
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4000;
  padding: 18px 8vw 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-radius: 999px;
  transition: all 0.35s ease;
}

.nav.scrolled {
  background: rgba(232, 237, 242, 0.82);
  border-color: rgba(10, 105, 109, 0.3);
}

.logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--mystic-green);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--dark-bg);
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mystic-green), var(--gold));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-bg);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 100vh;
  gap: 38px;
  padding-top: 70px;
}

.hero-copy {
  max-width: 680px;
}

.typing-line {
  min-height: 48px;
  margin-bottom: 20px;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--mystic-green);
  font-weight: 600;
}

.typing-cursor {
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-intro {
  margin-bottom: 28px;
  font-size: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.info-card {
  padding: 16px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mystic-green);
}

.info-card strong {
  font-size: 0.96rem;
  color: var(--dark-bg);
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(10, 105, 109, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--mystic-green), var(--gold));
  color: var(--bg-light);
}

.btn-secondary {
  background: rgba(28, 36, 48, 0.92);
  color: var(--bg-light);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(10, 105, 109, 0.3);
  color: var(--mystic-green);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hex-wrap {
  width: min(430px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.hex-frame {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  position: relative;
  padding: 20px;
  background: linear-gradient(135deg, rgba(10, 105, 109, 0.18), rgba(199, 155, 59, 0.16));
  clip-path: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hex-frame::before,
.skill-card::before,
.highlight-card::before,
.project-card::before,
.stat-card::before,
.timeline-card::before,
.contact-form::before,
.social-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(199, 155, 59, 0.18);
  pointer-events: none;
  animation: rotateBorder 10s linear infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(10, 105, 109, 0.1), inset 0 0 34px rgba(10, 105, 109, 0.16); }
  50% { box-shadow: 0 0 28px rgba(10, 105, 109, 0.28), inset 0 0 40px rgba(199, 155, 59, 0.22); }
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

.hero-image {
  min-height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(28, 36, 48, 0.14), rgba(199, 155, 59, 0.12));
}

.hero-image img {
  object-position: center;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.about-copy,
.contact-form,
.social-panel,
.skill-card,
.highlight-card,
.project-card,
.stat-card,
.timeline-card {
  border-radius: 28px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-copy:hover,
.skill-card:hover,
.highlight-card:hover,
.project-card:hover,
.stat-card:hover,
.timeline-card:hover,
.contact-form:hover,
.social-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(10, 105, 109, 0.16);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  background: rgba(10, 105, 109, 0.14);
  color: var(--mystic-green);
  border: 1px solid rgba(10, 105, 109, 0.24);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.about-image,
.social-panel .img-slot,
.skill-card .img-slot,
.highlight-card .img-slot,
.project-card .img-slot {
  min-height: 180px;
  margin-bottom: 16px;
  border-radius: 22px;
}

.skill-grid,
.gallery-grid,
.project-grid,
.stats-grid {
  display: grid;
  gap: 20px;
}

.skill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-card h3,
.highlight-card h3,
.project-card h3,
.stat-card h3,
.timeline-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.play-btn {
  margin-top: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: var(--bg-light);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.stats-grid .stat-card {
  text-align: center;
}

.counter {
  font-size: 2.1rem;
  margin-bottom: 8px;
  color: var(--mystic-green);
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--mystic-green), rgba(199, 155, 59, 0.4));
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
}

.timeline-year {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--mystic-green);
  position: relative;
}

.timeline-year::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

form input,
form textarea {
  width: 100%;
  border: 1px solid rgba(10, 105, 109, 0.25);
  background: rgba(232, 237, 242, 0.7);
  color: var(--dark-bg);
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--mystic-green);
}

.social-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8vw 40px;
  color: rgba(28, 36, 48, 0.75);
}

.back-top {
  color: var(--mystic-green);
  font-weight: 600;
}

.img-slot {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 120px;
  background: linear-gradient(135deg, rgba(10, 105, 109, 0.15), rgba(199, 155, 59, 0.16));
  border: 1px solid rgba(199, 155, 59, 0.22);
  display: grid;
  place-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 36, 48, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 7000;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(860px, 100%);
  border-radius: 28px;
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 36, 48, 0.12);
  font-size: 1.4rem;
  cursor: pointer;
}

.video-shell {
  margin-top: 16px;
  min-height: 420px;
  background: rgba(28, 36, 48, 0.14);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  place-items: center;
}

.video-shell video {
  width: 100%;
  height: 100%;
  max-height: 420px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--dark-bg);
}

.video-fallback {
  text-align: center;
  color: var(--mystic-green);
  font-weight: 600;
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  transform: translate(-50%, -50%);
  animation: rippleExpand 0.55s linear forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}

.ripple::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.ripple:active::after {
  width: 220px;
  height: 220px;
}

@media (max-width: 1100px) {
  .skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(232, 237, 242, 0.94);
    width: min(240px, 88vw);
  }

  .nav-links.open {
    display: flex;
  }

  .skill-grid,
  .gallery-grid,
  .project-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.project-card .img-slot {
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--mystic-green);
  padding: 0;
}

.project-card .img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.project-card:hover .img-slot {
  transform: scale(1.02);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form .project-actions {
  margin-top: 6px;
}

.social-panel .info-card {
  min-height: 120px;
  justify-content: center;
}

.social-panel .info-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 620px) {
  .section {
    padding: 90px 5vw 50px;
  }

  .site-header {
    padding: 14px 5vw 0;
  }

  .nav {
    padding: 14px 16px;
  }

  .info-grid,
  .form-row,
  .skill-grid,
  .gallery-grid,
  .project-grid,
  .stats-grid,
  .social-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-list::before {
    left: 12px;
  }

  .timeline-year::after {
    left: -2px;
    right: auto;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}
