/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #6c63ff;
  --accent-hover: #5a52d5;
  --border: #2a2a2a;
  --card-bg: #151515;
  --radius: 12px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent-hover); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: 1px;
}
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  transition: 0.3s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text) !important; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding-top: 80px;
}
.hero-greeting {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.hero-name {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6c63ff, #e040fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}
.hero-tagline {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 15px; justify-content: center; }
.btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-10px)} }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ── About ── */
.about { background: var(--bg2); }
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-text p { margin-bottom: 15px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.about-text p:first-child { color: var(--text); font-size: 1.1rem; }
/* ── Social Links ── */
.social-links-row { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 30px; }
.social-icon-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: .85rem;
  transition: .3s;
  text-decoration: none;
}
.social-icon-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-icon-link i { font-size: 1.2rem; }

/* ── Works ── */
.works { background: var(--bg2); }
.works-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.85rem;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.3s;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg3);
}
.work-info { padding: 20px; }
.work-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.work-info p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.work-info .work-category {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--accent);
  border-radius: 50px;
  color: #fff;
}
.work-no-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  color: var(--text-muted);
  font-size: 2rem;
}

/* ── Blog ── */
.blog { background: var(--bg2); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg3);
}
.blog-card-no-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  color: var(--text-muted);
  font-size: 2.5rem;
}
.blog-card-body { padding: 20px; }
.blog-card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-card-meta .category {
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
}
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card-body p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.blog-card-body .read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent);
}
.blog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px;
  grid-column: 1 / -1;
}
.blog-empty i { font-size: 3rem; margin-bottom: 15px; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: 0.3s;
  background: none;
  border: none;
}
.modal-close:hover { color: var(--text); }
.modal-content h2 { margin-bottom: 15px; font-size: 1.5rem; }
.modal-content .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.modal-content .body { line-height: 1.8; color: var(--text-muted); }
.modal-content .body p { margin-bottom: 15px; }

.contact { background: var(--bg); }
/* ── Contact ── */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}
.contact-info { display: flex; flex-direction: column; gap: 25px; justify-content: center; }
.contact-item { display: flex; align-items: center; gap: 15px; }
.contact-item i { font-size: 1.2rem; color: var(--accent); width: 24px; }
.contact-item span { color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input,
.contact-form textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.9rem;
  transition: 0.3s;
  font-family: inherit;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }
.social-links { margin-top: 15px; display: flex; gap: 20px; justify-content: center; }
.social-links a { color: var(--text-muted) !important; font-size: 1.2rem; transition: 0.3s; }
.social-links a:hover { color: var(--accent) !important; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  z-index: 999;
  animation: slideIn 0.3s;
}
.toast.success { background: #22c55e; }
.toast.error { background: #ef4444; }
@keyframes slideIn { from{transform:translateX(100%)opacity:0} to{transform:translateX(0)opacity:1} }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.95);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-name { font-size: 2.5rem; }
  .about-content { gap: 30px; }
  .social-links-row { gap: 10px; }
  .social-icon-link { font-size: .8rem; padding: 8px 14px; }
  .works-grid, .blog-grid { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
