
:root {
  --bg: #ffffff; --text: #0a0a0a; --muted:#6b7280; --card:#f6f7f8; --border:#e5e7eb; --accent:#0a0a0a;
}
.dark { --bg:#0b0b0c; --text:#f3f4f6; --muted:#a1a1aa; --card:#121214; --border:#2a2a2e; --accent:#ffffff; }
* { box-sizing: border-box; }
html,body { height:100%; }
body { margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background:var(--bg); color:var(--text); }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header { position: sticky; top: 0; backdrop-filter: blur(6px); border-bottom:1px solid var(--border); background: color-mix(in oklab, var(--bg), transparent 30%); z-index: 10; }
nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; }
.brand { font-weight: 700; letter-spacing: -0.02em; }
.navlinks { display:flex; gap:18px; align-items:center; }
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:12px;
  background: transparent;
  border-color: var(--border);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { border-color: rgba(0,0,0,0.5); box-shadow: 0 0 12px rgba(0,0,0,0.18); }
.dark .btn:hover { border-color: rgba(255,255,255,0.95); box-shadow: 0 0 12px rgba(255,255,255,0.35); }
.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary:hover {
  background: color-mix(in oklab, var(--accent) 85%, var(--bg) 15%);
  border-color: rgba(0,0,0,0.6);
  box-shadow: 0 0 14px rgba(0,0,0,0.22);
}
.dark .btn.primary:hover { border-color: rgba(255,255,255,1); box-shadow: 0 0 14px rgba(255,255,255,0.4); }
.grid { display:grid; gap:24px; }
.grid.cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 900px){ .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero { padding: 64px 0 48px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 8px 0; }
h2 { font-size: clamp(22px, 3.5vw, 32px); margin: 0 0 8px; }
p.muted { color: var(--muted); }
.card { border:1px solid var(--border); border-radius:16px; background: var(--card); overflow:hidden; }
.card img { width:100%; height:180px; object-fit:cover; display:block; }
.card .p { padding:16px; }
.tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.tag { font-size:12px; border:1px solid var(--border); padding:4px 8px; border-radius:999px; }
section { padding:56px 0; }
.skills { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
@media(min-width:700px){ .skills{ grid-template-columns: repeat(4,minmax(0,1fr)); } }
.skill { border:1px solid var(--border); padding:10px 12px; border-radius:12px; font-size:14px; }
footer { border-top:1px solid var(--border); padding:24px 0; font-size: 14px; }
.toggle { border:1px solid var(--border); border-radius:12px; padding:8px 10px; background:#f1f1f3; cursor:pointer; transition: background 0.2s ease; }
.dark .toggle { background:#d9d9e0; }
.toggle:hover { background:#d6d6dd; }
.dark .toggle:hover { background:#f0f1f5; }
.field { display:flex; flex-direction:column; gap:6px; }
input, textarea { background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:12px; padding:10px 12px; }
textarea { resize: vertical; }
.contact { border:1px solid var(--border); border-radius:20px; padding:20px; background:var(--card); }

/* ====== Carousel Styles ====== */
.carousel-container { position: relative; width: 100%; }
.carousel-wrapper { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: var(--bg); }
.carousel-slide-container { position: relative; width: 100%; height: 500px; display: flex; align-items: center; justify-content: center; padding: 0; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; height: 100%; }
.carousel-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-slide img, .carousel-slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.carousel-slide video { background: var(--bg); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); color: white; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.carousel-btn:hover { background: rgba(0, 0, 0, 0.7); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-btn-prev { left: 16px; }
.carousel-btn-next { right: 16px; }
.carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-indicator { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); background: transparent; cursor: pointer; transition: all 0.2s; padding: 0; }
.carousel-indicator.active { background: var(--accent); border-color: var(--accent); }
.carousel-indicator:hover { border-color: var(--accent); }

/* ====== Project Description Styles ====== */
.project-description { line-height: 1.7; }
.description-content { font-size: 16px; }
.description-content p { margin: 0 0 16px 0; }
.description-content ul, .description-content ol { margin: 0 0 16px 0; padding-left: 24px; }
.description-content li { margin: 8px 0; }
.description-content h3 { font-size: 20px; margin: 24px 0 12px 0; }
.description-content h4 { font-size: 18px; margin: 20px 0 10px 0; }
.description-content code { background: var(--card); padding: 2px 6px; border-radius: 4px; font-size: 14px; border: 1px solid var(--border); }
.description-content pre { background: var(--card); padding: 16px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--border); }
.description-content a { color: var(--accent); text-decoration: underline; }
.description-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
