/* Section-level hover animations */
.section { position: relative; transition: background 200ms ease; }
.section:hover { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); }
.section:hover .section-title { text-shadow: 0 2px 12px rgba(0,209,178,0.25), 0 2px 22px rgba(106,90,205,0.25); }
.section:hover .card { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }

@media (prefers-reduced-motion: reduce) {
  .section, .card, .section-title { transition: none !important; }
  .section:hover .card { transform: none; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
  .section:hover { background: none; }
  .section:hover .section-title { text-shadow: none; }
}
/* Theme */
:root {
  --bg: #0b0d10;
  --card: #12161b;
  --text: #e6edf3;
  --muted: #a9b6c3;
  --primary: #00d1b2;
  --accent: #6a5acd;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(106,90,205,0.15), transparent),
              radial-gradient(900px 500px at -10% 10%, rgba(0,209,178,0.12), transparent),
              var(--bg);
  line-height: 1.6;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

main { position: relative; z-index: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(11,13,16,0.5); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.5px; position: relative; }
.logo .pulse { position: absolute; right: -10px; top: -2px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 0 rgba(0,209,178, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,209,178, 0.6);} 70% { box-shadow: 0 0 0 12px rgba(0,209,178, 0);} 100% { box-shadow: 0 0 0 0 rgba(0,209,178, 0);} }

.nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 96px 0 48px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 6px; }
.role { color: var(--muted); margin: 0 0 14px; font-weight: 600; letter-spacing: 0.3px; }
.tagline { color: var(--text); opacity: 0.9; max-width: 52ch; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 10s linear infinite;
}
@keyframes hue { 0% { filter: hue-rotate(0deg);} 100% { filter: hue-rotate(360deg);} }

.cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn { border: 1px solid rgba(255,255,255,0.12); color: var(--text); background: rgba(255,255,255,0.03); padding: 10px 14px; border-radius: 10px; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.06); }
.btn.primary { border: none; background: var(--gradient); color: white; box-shadow: var(--shadow); }
.btn.primary:hover { transform: translateY(-3px) scale(1.01); }
.btn .icon { display: inline-flex; }

.hero-visual { justify-self: center; }
.avatar-wrap { width: 200px; height: 200px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)); border: 1px solid rgba(255,255,255,0.12); box-shadow: var(--shadow); display: grid; place-items: center; position: relative; overflow: hidden; }
.avatar-wrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(200px 120px at 20% 0%, rgba(255,255,255,0.08), transparent); pointer-events: none; }
.avatar { width: 70%; height: 70%; border-radius: 16px; object-fit: cover; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }

/* Sections */
.section { padding: 56px 0; }
.section-title { font-size: 22px; margin-bottom: 12px; color: var(--text); }
.card { background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.grid { display: grid; gap: 18px; }

/* Skills icons grid */
.skills-grid { 
  display: grid; 
  gap: 12px; 
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.skill { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  background: var(--card); 
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 12px; 
  padding: 10px 12px; 
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.skill:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.skill .icon { font-size: 18px; width: 22px; display: grid; place-items: center; }
.skill .label { font-weight: 600; color: var(--text); }
/* Normalize brand icon images */
.skill .icon img.brand { width: 18px; height: 18px; display: block; object-fit: contain; }

/* Experience */
.timeline { display: grid; gap: 14px; }
.exp { display: grid; gap: 6px; }
.exp .top { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.exp .role { color: var(--text); font-weight: 600; }
.exp .company { color: var(--muted); }
.exp .date { color: var(--muted); font-size: 14px; }
.exp ul { margin: 6px 0 0 18px; padding: 0; }
.exp li { margin: 4px 0; }

/* Company logos */
.logo-wrap { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; margin-bottom: 8px; overflow: hidden; }
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.company-logo { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: uppercase; }

/* Skills */
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--text); padding: 8px 10px; border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: transform .2s ease, background .2s ease; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(0,209,178, 0.5); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0,209,178, 0.5);} 70% { box-shadow: 0 0 0 10px rgba(0,209,178, 0);} 100% { box-shadow: 0 0 0 0 rgba(0,209,178, 0);} }
.badge:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }

/* Projects */
.projects { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.project { display: grid; gap: 10px; }
.project h3 { margin: 0; font-size: 18px; }
.project p { margin: 0; color: var(--muted); }
.project-link { color: var(--text); text-decoration: none; }
.project-link:hover { text-decoration: underline; }
.project-preview { margin-top: 10px; display: grid; gap: 8px; }
.project-preview iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(255,255,255,0.02); }
.project-preview .open { justify-self: start; font-size: 14px; color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }
.project-preview .open:hover { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.08); }

/* Contact */
.footer { padding: 36px 0 64px; color: var(--muted); text-align: center; }
.site-footer { padding: 36px 0 64px; color: var(--muted); text-align: center; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; }
.site-footer .socials { margin-top: 20px; }
.site-footer .socials a { margin: 10px; }
.site-footer .contact-list { margin-top: 20px; }
.site-footer .contact-list .contact-item { margin: 10px; }
.site-footer .contact-list .contact-item .icon { width: 22px; display: inline-grid; place-items: center; color: var(--muted); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); display: inline-flex; gap: 8px; align-items: center; }
.socials a:hover { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.08); }

/* About travel */
.flags { font-size: 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 10px; }
.photo-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.02); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.lightbox-close { position: absolute; top: 18px; right: 18px; font-size: 28px; line-height: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: 8px; cursor: pointer; padding: 6px 10px; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px; line-height: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: 10px; cursor: pointer; padding: 8px 12px; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-nav:hover { background: rgba(0,0,0,0.45); }

/* Contact */
.contact-list { display: grid; gap: 10px; margin-bottom: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; }
.contact-item .icon { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
