/* ========================================
   FRUTIGER AERO — Glossy, translucent, sky
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Nunito:wght@300;400;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sky-top: #4fc3f7;
  --sky-mid: #81d4fa;
  --sky-bottom: #b3e5fc;
  --sky-white: #e1f5fe;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-strong: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(0, 120, 180, 0.12);
  --glass-shadow-hover: 0 12px 40px rgba(0, 120, 180, 0.2);
  --text-dark: #1a3a4a;
  --text-mid: #3a6a7a;
  --text-light: #6a9aaa;
  --accent-green: #66bb6a;
  --accent-orange: #ffa726;
  --accent-blue: #42a5f5;
  --accent-pink: #ec407a;
  --card-radius: 16px;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(129,212,250,0.3) 0%, transparent 50%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 35%, var(--sky-bottom) 65%, var(--sky-white) 100%);
  background-attachment: fixed;
}

/* Floating cloud/bubble shapes */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.05) 70%, transparent 100%);
  animation: floatBubble 20s ease-in-out infinite;
}

body::after {
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(129,212,250,0.1) 60%, transparent 100%);
  animation: floatBubble 25s ease-in-out infinite reverse;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.2); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.6);
  border-radius: 4px;
  border: 1px solid rgba(0,150,200,0.15);
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0, 100, 160, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s;
  padding: 4px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--sky-top));
  border-radius: 1px;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 70px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text-dark);
  text-shadow: 0 2px 8px rgba(255,255,255,0.5);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,100,160,0.2));
}

.hero .subtitle {
  font-family: var(--font-body);
  color: var(--text-mid);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}

.hero .tagline {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 400;
  max-width: 420px;
  margin: 0 auto 40px;
}

/* Glass orbs decoration */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0.1) 60%, transparent);
  box-shadow: inset 0 -4px 12px rgba(0,150,220,0.08), 0 4px 20px rgba(0,150,220,0.06);
}

.orb-1 { width: 300px; height: 300px; top: 10%; left: -5%; animation: orbFloat 18s ease-in-out infinite; opacity: 0.5; }
.orb-2 { width: 200px; height: 200px; top: 20%; right: 5%; animation: orbFloat 22s ease-in-out infinite reverse; opacity: 0.4; }
.orb-3 { width: 150px; height: 150px; bottom: 15%; left: 15%; animation: orbFloat 15s ease-in-out infinite 3s; opacity: 0.35; }
.orb-4 { width: 100px; height: 100px; bottom: 30%; right: 20%; animation: orbFloat 20s ease-in-out infinite 5s; opacity: 0.3; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-25px) translateX(10px); }
  50% { transform: translateY(10px) translateX(-15px); }
  75% { transform: translateY(-10px) translateX(20px); }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: gentleBounce 2.5s ease-in-out infinite;
}

.scroll-hint svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-light);
  opacity: 0.6;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ---- SECTIONS ---- */
section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-label {
  font-family: var(--font-body);
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  text-shadow: 0 1px 4px rgba(255,255,255,0.5);
}

/* ---- PROJECT CARDS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(255,255,255,0.8);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sky-mid), var(--sky-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb .placeholder {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.7);
  font-size: 32px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,100,160,0.15);
}

.card-body {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.card-body p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.card-tags {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(66, 165, 245, 0.12);
  color: var(--accent-blue);
  border-radius: 20px;
  border: 1px solid rgba(66, 165, 245, 0.2);
}

.tag.status {
  background: rgba(102, 187, 106, 0.12);
  color: var(--accent-green);
  border-color: rgba(102, 187, 106, 0.25);
}

/* ---- PROJECT DETAIL ---- */
.project-detail {
  display: none;
  padding-top: 90px;
}

.project-detail.active {
  display: block;
}

.detail-header {
  margin-bottom: 48px;
}

.back-btn {
  font-family: var(--font-body);
  color: var(--accent-blue);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,100,160,0.06);
}

.back-btn:hover {
  background: var(--glass-bg-strong);
  transform: translateX(-3px);
}

.detail-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-dark);
  text-shadow: 0 2px 6px rgba(255,255,255,0.5);
}

.detail-header .desc {
  color: var(--text-mid);
  font-size: 17px;
  max-width: 650px;
  font-weight: 400;
}

.detail-meta {
  margin-top: 18px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-meta span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--glass-bg);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

/* ---- MEDIA SECTIONS ---- */
.media-section {
  margin-bottom: 48px;
}

.media-section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.media-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.35s;
  cursor: pointer;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}

.media-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 12px 12px 0 0;
}

.media-item:hover {
  border-color: rgba(255,255,255,0.8);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}

.media-item img,
.media-item video {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.media-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
  background: rgba(255,255,255,0.3);
}

/* ---- NOTES ---- */
.notes-section {
  margin-top: 32px;
}

.note-entry {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent-blue);
  padding: 18px 22px;
  margin-bottom: 14px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 16px rgba(0,100,160,0.06);
  position: relative;
}

.note-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 0 12px 0 0;
}

.note-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 4px;
}

.note-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 15px;
  margin-bottom: 4px;
}

.note-content {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 40, 60, 0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.lightbox.active {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.3);
}

.lightbox .close-lb {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.lightbox .close-lb:hover {
  background: rgba(255,255,255,0.35);
}

/* ---- ABOUT ---- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.about-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.about-text p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,100,160,0.06);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.stat-card .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid rgba(255,255,255,0.4);
  padding: 36px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer p {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.empty-state .icon {
  font-size: 52px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 15px;
  font-weight: 500;
}

/* ---- LOADING ---- */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-weight: 500;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
.fade-up:nth-child(5) { animation-delay: 0.4s; }
.fade-up:nth-child(6) { animation-delay: 0.45s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links a {
    display: none;
  }
  .nav-links a:last-child {
    display: inline;
  }
}

@media (max-width: 480px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}