/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0D0D0D;
  color: #F5F5F0;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: #C0C0B8; }

/* === LAYOUT === */
.container { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
section { padding-top: 96px; padding-bottom: 96px; }

/* === NAVIGATION === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #1E1E1E;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px; color: #C8F135; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: 'Inter', sans-serif; font-size: 15px; color: #888880; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: #C8F135;
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: #F5F5F0; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,13,0.78); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-tag {
  font-family: 'Syne', sans-serif;
  font-size: 12px; letter-spacing: 0.25em;
  text-transform: uppercase; color: #C8F135;
  margin-bottom: 20px; display: block;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: #888880; margin-bottom: 40px; max-width: 480px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn-primary {
  background: #C8F135; color: #0D0D0D;
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 15px; padding: 14px 32px;
  border: none; border-radius: 4px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(200,241,53,0.3); }
.btn-outline {
  background: transparent; color: #C8F135;
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 15px; padding: 13px 32px;
  border: 1px solid #C8F135; border-radius: 4px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: #C8F135; color: #0D0D0D; }

/* === CARDS === */
.card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: #333;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* === GRID === */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; align-items: center; }
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding-top: 48px; padding-bottom: 48px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* === SOCIAL LINKS === */
.social-tile {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #333; border-radius: 8px;
  padding: 12px 20px; font-size: 14px; color: #888880;
  transition: border-color 0.2s, color 0.2s;
}
.social-tile:hover { border-color: #C8F135; color: #F5F5F0; }

/* === FORM === */
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px;
  background: #161616; border: 1px solid #333;
  border-radius: 6px; color: #F5F5F0;
  font-family: 'Inter', sans-serif; font-size: 15px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #C8F135;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #555; }
.form-success { color: #C8F135; font-size: 15px; margin-top: 16px; display: none; }
.form-success.show { display: block; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #161616; border-top: 1px solid #333;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 14px; color: #888880; }
.cookie-banner a { color: #C8F135; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; }

/* === AI WIDGET === */
.ai-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 64px; height: 64px; border-radius: 50%;
  background: #C8F135; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(200,241,53,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ai-fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(200,241,53,0.5); }
.ai-modal {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(0,0,0,0.6); display: none; align-items: flex-end; justify-content: flex-end;
  padding: 24px;
}
.ai-modal.open { display: flex; }
.ai-window {
  width: 380px; max-width: 100%; height: 520px;
  background: #161616; border: 1px solid #333; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
}
.ai-header {
  padding: 16px 20px; border-bottom: 1px solid #222;
  font-family: 'Syne', sans-serif; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.ai-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg-user { align-self: flex-end; background: #C8F135; color: #0D0D0D; padding: 10px 14px; border-radius: 12px 12px 2px 12px; font-size: 14px; max-width: 80%; }
.msg-ai { align-self: flex-start; background: #222; color: #F5F5F0; padding: 10px 14px; border-radius: 12px 12px 12px 2px; font-size: 14px; max-width: 80%; }
.ai-input-row { padding: 12px 16px; border-top: 1px solid #222; display: flex; gap: 8px; }
.ai-input-row input {
  flex: 1; padding: 10px 14px; background: #0D0D0D;
  border: 1px solid #333; border-radius: 6px; color: #F5F5F0; font-size: 14px;
}
.ai-input-row input:focus { outline: none; border-color: #C8F135; }
.typing-indicator { display: flex; gap: 4px; padding: 10px 14px; }
.typing-dot { width: 7px; height: 7px; background: #555; border-radius: 50%; animation: typingBounce 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* === SCROLL ANIMATION === */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* === FOOTER === */
footer {
  background: #0A0A0A; border-top: 1px solid #1A1A1A;
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: #C8F135; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: #555; margin-bottom: 8px; }
.footer-copy { font-size: 13px; color: #444; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 14px; color: #F5F5F0; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: #555; transition: color 0.2s; }
.footer-col ul a:hover { color: #C8F135; }
.footer-bottom { border-top: 1px solid #1A1A1A; padding-top: 24px; text-align: center; font-size: 13px; color: #333; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* === CURSOR DOT (desktop) === */
.cursor-dot {
  width: 12px; height: 12px; background: #C8F135;
  border-radius: 50%; position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: opacity 0.2s;
}
@media (hover: none) { .cursor-dot { display: none; } }

/* === KEYFRAMES === */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* === ABOUT PAGE === */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #222; }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -37px; top: 4px;
  width: 10px; height: 10px; background: #C8F135; border-radius: 50%;
}
.timeline-year { font-family: 'Syne', sans-serif; font-size: 13px; color: #C8F135; margin-bottom: 4px; }
.skill-bar-wrap { margin-bottom: 20px; }
.skill-bar-label { display: flex; justify-content: space-between; font-size: 14px; color: #888880; margin-bottom: 8px; }
.skill-bar-track { background: #1E1E1E; border-radius: 4px; height: 6px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: #C8F135; border-radius: 4px; width: 0; transition: width 1s ease; }

.qeq {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.qeq iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
