/* ============================================================
   ALIYAN PORTFOLIO — MAIN STYLESHEET
   Inspired by briceclain.com layout & design
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --color-bg:        #f5f4f0;
  --color-bg-dark:   #1a1a1a;
  --color-surface:   #ffffff;
  --color-text:      #1a1a1a;
  --color-text-muted:#6b6b6b;
  --color-accent:    #e94560;
  --color-accent-2:  #ffd700;
  --color-border:    rgba(0,0,0,0.1);
  --color-sidebar:   #1a1a1a;
  --color-sidebar-text: #ffffff;

  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body:       'DM Sans', sans-serif;
  

  /* Layout */
  --sidebar-w:       220px;
  --sidebar-w-mobile: 60px;

  /* Transitions */
  --ease:            cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 2px; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid var(--color-border);
  transform: translateY(0);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-icon { width: 40px; height: 40px; margin-bottom: 12px; }
.cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-banner p { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 16px; line-height: 1.5; }
.cookie-btns { display: flex; gap: 8px; }
.btn-accept, .btn-decline {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-accept {
  background: var(--color-text);
  color: white;
}
.btn-accept:hover { background: var(--color-accent); }
.btn-decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-decline:hover { border-color: var(--color-text); color: var(--color-text); }

/* ============================================================
   CONTACT PANEL
   ============================================================ */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(4px);
}
.contact-overlay.active { opacity: 1; pointer-events: all; }

.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 90vw);
  height: 100vh;
  background: var(--color-surface);
  z-index: 8001;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}
.contact-panel.active { transform: translateX(0); }

.contact-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text);
  transition: all 0.2s;
}
.contact-close:hover { background: var(--color-accent); color: white; }

.contact-panel-inner {
  padding: 72px 40px 40px;
}
.contact-panel-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
}
.contact-email, .contact-phone {
  display: block;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.contact-email:hover, .contact-phone:hover { color: var(--color-accent); }
.contact-email h3, .contact-phone h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--color-text); }
.contact-form textarea { height: 120px; }
.btn-send {
  background: var(--color-text);
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: all 0.2s var(--ease);
  letter-spacing: 0.05em;
}
.btn-send:hover { background: var(--color-accent); transform: translateY(-1px); }

.contact-socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.contact-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.contact-socials a svg { width: 18px; height: 18px; }
.contact-socials a:hover { background: var(--color-text); color: white; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--color-sidebar);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  z-index: 100;
  transition: width 0.3s var(--ease);
}

.sidebar-logo {
  margin-bottom: 40px;
}
.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  background: #333;
}

/* Fallback avatar placeholder */
.sidebar-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  border: 3px solid rgba(255,255,255,0.15);
}

.sidebar-nav {
  list-style: none;
  width: 100%;
  flex: 1;
}
.sidebar-nav li { margin-bottom: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  cursor: pointer;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-link.active { color: white; background: rgba(255,255,255,0.12); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-lang {
  margin-top: auto;
  margin-bottom: 16px;
}
.lang-active {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

.sidebar-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.sidebar-socials a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: rgba(255,255,255,0.5);
}
.sidebar-socials a svg { width: 14px; height: 14px; }
.sidebar-socials a:hover { background: rgba(255,255,255,0.15); color: white; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ============================================================
   SECTIONS SHARED
   ============================================================ */
.section {
  min-height: 100vh;
  padding: 80px 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 60px;
}

.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bounce 2s infinite;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.scroll-arrow:hover { opacity: 1; }
.scroll-arrow svg { width: 24px; height: 24px; color: var(--color-text); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--color-bg);
  padding-top: 100px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
}

.hero-profile-wrap {
  flex-shrink: 0;
}
.hero-profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-text);
  background: #333;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Fallback for missing profile image */
.hero-profile-img[src="img/profile.png"] {
  background: linear-gradient(135deg, #1a1a1a, #333);
}

.hero-text-wrap { flex: 1; }

.hero-line {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 4px;
}
.hero-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 28px;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-heading--accent { color: var(--color-accent); }

.hero-heading {
  font-family: 'Poppins', sans-serif;
}

.hero-sub {
  font-family: 'Poppins', sans-serif;
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 20px;
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-projects-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-project-thumb {
  width: 100px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s var(--ease);
}
.hero-project-thumb:hover { transform: translateY(-4px) scale(1.03); }
.hero-project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-project-placeholder span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.hero-learn-more {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.hero-learn-more:hover { color: var(--color-accent); }

/* Hero animation */
.hero-line { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s var(--ease) forwards; }
.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }
.hero-sub { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s var(--ease) 0.4s forwards; }
.hero-projects-preview { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s var(--ease) 0.5s forwards; }
.hero-profile-wrap { opacity: 0; transform: scale(0.9); animation: fadeScale 0.7s var(--ease-bounce) 0.1s forwards; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section {
  background: var(--color-bg-dark);
  color: white;
  gap: 80px;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 600px;
}
.process-step {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s var(--ease);
}
.process-step.visible { opacity: 1; transform: translateX(0); }
.process-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  min-width: 24px;
}
.process-step p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* Chat demo */
.chat-demo {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease);
}
.chat-bubble.visible { opacity: 1; transform: translateY(0); }
.chat-bubble--me { flex-direction: row-reverse; }

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.chat-avatar svg { width: 22px; height: 22px; opacity: 0.6; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-avatar--me { background: var(--color-accent); }

.chat-text {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 14px 18px;
  max-width: 420px;
}
.chat-bubble--me .chat-text {
  background: var(--color-accent);
  border-radius: 18px;
  border-bottom-right-radius: 4px;
}
.chat-text p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.9); }

.chat-cta {
  display: flex;
  justify-content: flex-end;
  padding-right: 52px;
}
.chat-now-btn {
  background: white;
  color: var(--color-text);
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s var(--ease);
  display: inline-block;
}
.chat-now-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233,69,96,0.4);
}

/* ============================================================
   ANALYSIS SECTION
   ============================================================ */
.analysis-section { background: var(--color-surface); gap: 60px; }
.analysis-inner { max-width: 900px; width: 100%; }
.analysis-block { margin-bottom: 48px; }
.analysis-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.analysis-block > p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 700px;
}

/* Mockup elements */
.solution-cards {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.solution-mockup--desktop {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 8px;
  width: 280px;
}
.mockup-screen {
  background: #f0efeb;
  border-radius: 8px;
  overflow: hidden;
}
.mockup-bar {
  height: 24px;
  background: #e0dfdb;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.mockup-bar::before, .mockup-bar::after, .mockup-bar + *::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
  margin-right: 4px;
}
.mockup-content { padding: 14px; }
.mockup-line { height: 8px; border-radius: 4px; background: #d0cfcc; margin-bottom: 8px; }
.mockup-line--wide { width: 80%; }
.mockup-line--medium { width: 60%; }
.mockup-line--narrow { width: 40%; }
.mockup-blocks { display: flex; gap: 8px; margin-top: 12px; }
.mockup-block { flex: 1; height: 40px; border-radius: 6px; background: #d0cfcc; }
.mockup-base { height: 6px; background: #333; border-radius: 0 0 4px 4px; }

.solution-mockup--mobile .mockup-phone {
  width: 100px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 6px;
}
.mockup-phone-notch {
  width: 30px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 8px;
}
.mockup-phone-content { background: #f0efeb; border-radius: 10px; padding: 10px; }
.mockup-phone-block { height: 50px; border-radius: 6px; background: #d0cfcc; margin-top: 8px; }

.solution-points { display: flex; gap: 32px; flex-wrap: wrap; }
.solution-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
  min-width: 220px;
}
.solution-icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solution-icon svg { width: 20px; height: 20px; color: var(--color-accent); }
.solution-point h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.solution-point p { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  background: var(--color-bg);
  gap: 0;
}

.services-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  width: 100%;
}

.service-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; color: var(--color-text); }

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.7; }

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section {
  background: var(--color-surface);
  padding-bottom: 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,0.12); }

.project-images {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.project-img {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s var(--ease);
}
.project-img--2 { opacity: 0; }
.project-card:hover .project-img--1 { opacity: 0; }
.project-card:hover .project-img--2 { opacity: 1; }

.project-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-img-overlay span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-info { padding: 20px; }
.project-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-links { display: flex; flex-direction: column; gap: 4px; }
.project-link {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.project-link:hover { color: var(--color-accent); }
.project-link svg { width: 13px; height: 13px; }

.projects-nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}
.proj-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.proj-nav-btn svg { width: 20px; height: 20px; }
.proj-nav-btn:hover { background: var(--color-accent); transform: scale(1.08); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--color-bg); }

.about-inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  max-width: 1100px;
  width: 100%;
}

.about-left { flex-shrink: 0; }
.about-profile-wrap {
  position: relative;
  width: 200px;
}
.about-profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-surface);
  background: #333;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
.about-profile-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--color-border);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-right { flex: 1; }
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.about-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  max-width: 640px;
}

/* Skills */
.skills-wrap, .timeline-wrap { margin-top: 40px; }
.skills-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.skills-list { display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.skill-name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; }
.skill-pct { font-size: 0.8rem; color: var(--color-text-muted); }
.skill-bar {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: var(--color-text);
  border-radius: 2px;
  transition: width 1.2s var(--ease);
}
.skill-fill.animated { width: var(--pct); }

/* Timeline */
.timeline { max-width: 600px; padding-left: 20px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 28px;
}
.timeline-dot {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text);
  border: 2px solid var(--color-bg);
}
.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  display: block;
  margin-bottom: 4px;
}
.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-content p { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; }

.work-with-me-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  background: var(--color-text);
  color: white;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.02em;
}
.work-with-me-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.work-with-me-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(233,69,96,0.35);
}
.work-with-me-btn:hover svg { transform: translateX(4px); }

/* ============================================================
   FLOATING WORK WITH ME BUTTON
   ============================================================ */
.work-with-me-float {
  position: fixed;
  bottom: 28px;
  left: calc(var(--sidebar-w) + 28px);
  background: var(--color-text);
  color: white;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 200;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  letter-spacing: 0.02em;
}
.work-with-me-float svg { width: 16px; height: 16px; transition: transform 0.2s; }
.work-with-me-float:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(233,69,96,0.4);
}
.work-with-me-float:hover svg { transform: translateX(4px); }

/* ============================================================
   SCROLL REVEAL — BASE STATES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1100px) {
  .services-inner { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 64px; }

  .sidebar-logo .sidebar-avatar { width: 40px; height: 40px; }
  .nav-link span { display: none; }
  .nav-link { padding: 12px; justify-content: center; }
  .sidebar-socials { display: none; }
  .sidebar-lang { display: none; }

  .section { padding: 60px 32px; }

  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-profile-img { width: 120px; height: 120px; }

  .about-inner { flex-direction: column; gap: 40px; }
  .about-left { display: flex; justify-content: center; width: 100%; }
}

@media (max-width: 700px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0;
    flex-direction: row;
    padding: 12px 20px;
    justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 500;
  }
  .sidebar-logo { display: none; }
  .sidebar-nav {
    display: flex;
    flex: 1;
    justify-content: space-around;
    margin: 0;
  }
  .sidebar-nav li { margin: 0; }
  .nav-link { flex-direction: column; gap: 4px; padding: 8px 12px; font-size: 0.65rem; }
  .nav-link span { display: block; }
  .nav-icon { width: 20px; height: 20px; }
  .sidebar-socials { display: none; }
  .sidebar-lang { display: none; }

  .main-content { margin-left: 0; margin-bottom: 64px; }
  .work-with-me-float { bottom: 80px; left: 16px; font-size: 0.8rem; padding: 12px 18px; }

  .section { padding: 48px 20px; }
  .hero-section { padding-top: 48px; }
  .services-inner { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }

  .hero-heading { font-size: 2.2rem; }
  .hero-projects-preview { gap: 10px; }
  .hero-project-thumb { width: 80px; height: 56px; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 1.8rem; }
  .contact-panel { width: 100vw; }
  .cookie-banner { right: 12px; bottom: 80px; max-width: calc(100vw - 24px); }
}