/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ---- DESIGN TOKENS ---- */
:root {
/* From DESIGN.md */
--color-primary: #8e8f8f;
--color-surface: #ffffff;
--color-surface-2: #f0f0f0;
--color-text: #333333;
--color-text-2: #0088cc;
--color-text-3: #000000;
--color-text-4: #222222;
--color-accent: #4580c4;
--color-accent-2: #003399;
--color-accent-3: #eeeeee;
--font-segoe: 'Segoe UI', SegoeUI, 'Noto Sans', sans-serif;
--font-helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;
--radius-1: 6px;
--radius-2: 3px;
/* Frutiger Aero additions */
--aero-green: #7ec850;
--aero-green-dark: #4a9e2d;
--aero-sky: #4fc3f7;
--aero-sky-light: #b3e5fc;
--aero-sky-deep: #0288d1;
--aero-glass-bg: rgba(255, 255, 255, 0.25);
--aero-glass-border: rgba(255, 255, 255, 0.45);
--aero-glass-bg-hover: rgba(255, 255, 255, 0.40);
--aero-glow-blue: 0 0 20px rgba(79, 195, 247, 0.4), 0 0 60px rgba(79, 195, 247, 0.15);
--aero-glow-green: 0 0 20px rgba(126, 200, 80, 0.35), 0 0 50px rgba(126, 200, 80, 0.12);
--aero-card-radius: 18px;
--aero-btn-radius: 50px;
}
html { scroll-behavior: smooth; }
body {
font-family: var(--font-segoe);
color: var(--color-text);
background: linear-gradient(170deg, #d4eefc 0%, #b8e3f8 15%, #a0d8ef 30%, #c5e8d0 55%, #b8dfc0 70%, #a8d8b5 85%, #90c9a0 100%);
background-attachment: fixed;
min-height: 100vh;
line-height: 1.6;
position: relative;
overflow-x: hidden;
}
/* ---- FLOATING BUBBLES (LIQUID GLASS) ---- */
.bubble {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.5),
    inset 0 0 6px rgba(255, 255, 255, 0.12),
    0 0 1px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.06),
    0 0 0 0.5px rgba(0, 0, 0, 0.04);
  will-change: transform;
}
.bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow:
    inset -4px 4px 8px rgba(69, 128, 196, 0.12),
    inset 2px -2px 6px rgba(255, 255, 255, 0.45),
    inset 8px -8px 12px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.bubble::after {
  content: "";
  position: absolute;
  height: 20%;
  width: 20%;
  background: rgba(230, 253, 251, 0.55);
  border-radius: 44% 56% 46% 54% / 36% 50% 50% 64%;
  top: 20%;
  right: 22%;
  box-shadow: 6px 16px 0 -4px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.bubble:nth-child(1) { width: 90px; height: 90px; top: 12%; left: 8%; border-radius: 48% 52% 44% 56% / 50% 42% 58% 50%; }
.bubble:nth-child(2) { width: 55px; height: 55px; top: 25%; right: 12%; border-radius: 42% 58% 50% 50% / 44% 50% 50% 56%; }
.bubble:nth-child(3) { width: 120px; height: 120px; top: 55%; left: 6%; border-radius: 46% 54% 40% 60% / 46% 41% 59% 54%; }
.bubble:nth-child(4) { width: 70px; height: 70px; top: 70%; right: 8%; border-radius: 52% 48% 56% 44% / 50% 55% 45% 50%; }
.bubble:nth-child(5) { width: 40px; height: 40px; top: 40%; left: 85%; border-radius: 45% 55% 50% 50% / 52% 46% 54% 48%; }
.bubble:nth-child(6) { width: 100px; height: 100px; top: 80%; left: 45%; border-radius: 50% 50% 42% 58% / 48% 52% 48% 52%; }

/* ---- RISING BUBBLES (DYNAMIC) ---- */
.bubble-riser {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  bottom: -60px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.5),
    inset 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 3px rgba(255, 255, 255, 0.12);
  animation: riseBubble linear forwards;
}

@keyframes riseBubble {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  8% {
    opacity: 0.65;
  }
  75% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(calc(-100vh - 160px)) scale(1.2);
    opacity: 0;
  }
}

/* ---- NAV ---- */
nav {
position: fixed;
top: 0;
width: 100%;
z-index: 100;
background: var(--aero-glass-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--aero-glass-border);
box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
nav .inner {
max-width: 1100px;
margin: 0 auto;
padding: 14px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
nav .logo {
font-family: var(--font-helvetica);
font-size: 15px;
font-weight: 600;
color: var(--color-accent-2);
letter-spacing: 0.3px;
text-shadow: 0 0 8px rgba(0,51,153,0.12);
}
nav ul { display: flex; gap: 10px; list-style: none; }
nav a {
text-decoration: none;
color: var(--color-text);
font-size: 13px;
padding: 7px 16px;
border-radius: var(--aero-btn-radius);
transition: all 0.25s ease;
position: relative;
}
nav a:hover {
background: rgba(255,255,255,0.5);
box-shadow: 0 0 10px rgba(79,195,247,0.25);
color: var(--color-accent-2);
}
/* ---- SECTIONS ---- */
section {
position: relative;
z-index: 1;
max-width: 900px;
margin: 0 auto;
padding: 50px 24px;
}
/* ---- HERO ---- */
.hero {
padding-top: 140px;
padding-bottom: 70px;
text-align: center;
position: relative;
z-index: 1;
}
.hero h1 {
font-family: var(--font-helvetica);
font-size: 44px;
font-weight: 700;
color: var(--color-text-4);
text-shadow: 0 0 20px rgba(79,195,247,0.3), 0 2px 4px rgba(255,255,255,0.6);
margin-bottom: 6px;
}
.hero .subtitle {
font-size: 16px;
color: var(--color-accent);
letter-spacing: 0.5px;
margin-bottom: 10px;
}
.hero .tagline {
font-size: 13px;
color: var(--color-primary);
max-width: 500px;
margin: 0 auto;
}
/* ---- WINDOWS 7 AERO WINDOW ---- */
.win7-window {
background: rgba(220, 235, 250, 0.30);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
border: 1px solid rgba(255, 255, 255, 0.55);
border-radius: 8px 8px 0 0;
box-shadow:
0 8px 30px rgba(0,0,0,0.17),
0 0 0 1px rgba(0,0,0,0.06),
inset 0 0 0 1px rgba(255,255,255,0.25);
margin-bottom: 28px;
overflow: hidden;
transition: box-shadow 0.3s ease;
}
.win7-window:hover {
box-shadow:
0 12px 38px rgba(0,0,0,0.22),
0 0 0 1px rgba(0,0,0,0.08),
0 0 24px rgba(79,195,247,0.2),
inset 0 0 0 1px rgba(255,255,255,0.25);
}
.win7-titlebar {
background: linear-gradient(180deg,
rgba(235,244,253,0.92) 0%,
rgba(220,234,248,0.85) 30%,
rgba(200,222,242,0.78) 60%,
rgba(180,210,235,0.70) 100%);
padding: 6px 8px 6px 12px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(255,255,255,0.45);
user-select: none;
}
.win7-title-left {
display: flex;
align-items: center;
gap: 6px;
}
.win7-title-icon {
font-size: 14px;
opacity: 0.75;
}
.win7-title-text {
font-family: var(--font-segoe);
font-size: 12px;
font-weight: 400;
color: #1a3b5c;
letter-spacing: 0.2px;
text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.win7-controls {
display: flex;
gap: 2px;
}
.win7-btn {
width: 26px;
height: 20px;
border-radius: 1px;
border: 1px solid rgba(0,0,0,0.12);
background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(220,230,240,0.4));
cursor: default;
position: relative;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.12s ease;
}
.win7-btn::after {
content: '';
position: absolute;
inset: 1px 1px 2px 1px;
background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent 60%);
border-radius: 1px;
}
.win7-btn-min span, .win7-btn-max span, .win7-btn-close span {
position: relative;
z-index: 1;
font-size: 11px;
font-weight: 700;
line-height: 1;
color: #4a4a4a;
}
.win7-btn-min:hover, .win7-btn-max:hover {
background: linear-gradient(180deg, #e0ecf7, #bfd8f0);
border-color: rgba(0,51,153,0.25);
box-shadow: 0 0 4px rgba(69,128,196,0.3);
}
.win7-btn-min:hover span, .win7-btn-max:hover span { color: #1a3b5c; }
.win7-btn-close:hover {
background: linear-gradient(180deg, #e68b8b, #cc4a4a);
border-color: #a03030;
box-shadow: 0 0 4px rgba(200,60,60,0.5);
}
.win7-btn-close:hover span { color: #fff; }
.win7-body {
padding: 24px 28px 28px;
background: rgba(240, 244, 250, 0.15);
}
.win7-body p, .win7-body li {
font-size: 13px;
color: var(--color-text);
line-height: 1.7;
}
/* ---- SKILL ITEMS INSIDE WINDOW ---- */
.win7-body .skill-item {
background: rgba(255,255,255,0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.5);
border-radius: 6px;
padding: 18px;
box-shadow: 0 1px 6px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.6);
transition: all 0.3s ease;
}
.win7-body .skill-item:hover {
box-shadow: 0 3px 14px rgba(0,0,0,0.1), var(--aero-glow-green), inset 0 1px 1px rgba(255,255,255,0.6);
transform: translateY(-2px);
}
/* ---- SKILLS ---- */
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 10px;
}
.skill-item h3 {
font-family: var(--font-helvetica);
font-size: 14px;
font-weight: 600;
color: var(--color-text-4);
margin-bottom: 10px;
}
.skill-bar-bg {
height: 8px;
background: rgba(255,255,255,0.5);
border-radius: 4px;
overflow: hidden;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
margin-top: 6px;
}
.skill-bar-fill {
height: 100%;
border-radius: 4px;
background: linear-gradient(90deg, var(--color-accent), var(--aero-sky));
box-shadow: 0 0 8px rgba(79,195,247,0.35);
transition: width 1s ease;
}
.skill-tags {
display: flex;
flex-wrap: wrap;
gap: 7px;
margin-top: 10px;
}
.skill-tags span {
font-size: 11px;
padding: 4px 11px;
border-radius: var(--aero-btn-radius);
background: rgba(255,255,255,0.5);
border: 1px solid rgba(69,128,196,0.2);
color: var(--color-accent);
box-shadow: 0 0 6px rgba(79,195,247,0.1);
}
/* ---- BUTTONS ---- */
.btn {
display: inline-block;
font-family: var(--font-segoe);
font-size: 13px;
font-weight: 600;
padding: 10px 26px;
border-radius: var(--aero-btn-radius);
border: none;
cursor: pointer;
text-decoration: none;
transition: all 0.25s ease;
position: relative;
overflow: hidden;
}
.btn-primary {
background: linear-gradient(180deg, #5ba3e0 0%, var(--color-accent) 50%, var(--color-accent-2) 100%);
color: #fff;
box-shadow: 0 3px 14px rgba(69,128,196,0.4), 0 0 0 1px rgba(255,255,255,0.2) inset, 0 -2px 4px rgba(0,0,0,0.08) inset;
text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
border-radius: var(--aero-btn-radius) var(--aero-btn-radius) 0 0;
pointer-events: none;
}
.btn-primary:hover {
box-shadow: 0 6px 22px rgba(69,128,196,0.55), 0 0 30px rgba(79,195,247,0.25), 0 0 0 1px rgba(255,255,255,0.2) inset, 0 -2px 4px rgba(0,0,0,0.08) inset;
transform: translateY(-1px);
}
.btn-secondary {
background: rgba(255,255,255,0.4);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.5);
color: var(--color-accent-2);
box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
background: rgba(255,255,255,0.6);
box-shadow: 0 4px 16px rgba(79,195,247,0.2);
}
/* ---- PROJECTS ---- */
.project-card {
display: flex;
align-items: center;
gap: 20px;
padding: 20px;
margin-bottom: 10px;
border-radius: 6px;
transition: background 0.2s ease;
}
a.project-card:hover {
background: rgba(255, 255, 255, 0.3);
}
.project-icon {
width: 56px;
height: 56px;
border-radius: 14px;
background: linear-gradient(135deg, var(--aero-sky-light), rgba(69,128,196,0.2));
display: flex;
align-items: center;
justify-content: center;
font-size: 26px;
flex-shrink: 0;
box-shadow: 0 0 12px rgba(79,195,247,0.2);
}
.project-info h3 {
font-family: var(--font-helvetica);
font-size: 15px;
font-weight: 600;
color: var(--color-text-4);
}
.project-info p {
font-size: 12px;
color: var(--color-primary);
}
/* ---- CONTACT ---- */
.contact-links {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 10px;
}
.contact-link {
display: flex;
align-items: center;
gap: 8px;
padding: 9px 18px;
border-radius: var(--aero-btn-radius);
background: rgba(255,255,255,0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.45);
text-decoration: none;
color: var(--color-text);
font-size: 13px;
transition: all 0.25s ease;
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.contact-link:hover {
background: rgba(255,255,255,0.55);
box-shadow: var(--aero-glow-blue);
color: var(--color-accent-2);
}
.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/* ---- FOOTER ---- */
footer {
position: relative;
z-index: 1;
text-align: center;
padding: 30px 24px;
font-size: 11px;
color: var(--color-primary);
}
/* ---- GRASS DECORATION ---- */
.grass-strip {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 60px;
z-index: 0;
pointer-events: none;
background: linear-gradient(0deg, rgba(126,200,80,0.22) 0%, rgba(126,200,80,0.08) 40%, transparent 100%);
}
.grass-strip::before {
content: '';
position: absolute;
bottom: 0;
width: 100%;
height: 30px;
background: linear-gradient(0deg, rgba(126,200,80,0.3) 0%, transparent 100%);
}
/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
.hero h1 { font-size: 30px; }
.win7-body { padding: 16px; }
nav ul { gap: 2px; }
nav a { font-size: 11px; padding: 6px 10px; }
.project-card { flex-direction: column; align-items: flex-start; }
.skills-grid { grid-template-columns: 1fr; }
}
/* ---- SCROLL ANIMATION ---- */
.fade-in {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- ACCESSIBILITY: REDUCE TRANSPARENCY ---- */
@media (prefers-reduced-transparency: reduce) {
  .bubble {
    background: rgba(240, 244, 250, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  .bubble::before,
  .bubble::after {
    display: none;
  }
}

/* ---- ACCESSIBILITY: REDUCE MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
  }
  .bubble-riser {
    display: none;
  }
  .fade-in {
    transition: none;
  }
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-segoe);
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 20px;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
