/* ====================================================
   Alkan (Dobby B) — Clean Personal Dev Portfolio Theme
   ==================================================== */

:root {
  --bg-dark:       #0d1117;
  --bg-card:       #161b22;
  --bg-card-hover: #1c2128;
  --border:        #30363d;
  --border-subtle: #21262d;
  --border-hover:  #58a6ff;

  --text-main:     #c9d1d9;
  --text-bright:   #f0f6fc;
  --text-muted:    #8b949e;
  --text-sub:      #6e7681;
  
  --accent:        #238636;
  --accent-blue:   #58a6ff;
  --accent-purple: #a371f7;

  --font-sans:     'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-bright);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text-bright);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Lang Toggle */
.lang-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #238636;
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--text-bright);
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.github-link:hover {
  color: var(--text-bright);
  border-color: var(--border-hover);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* Profile Card Left */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  object-fit: cover;
  margin-bottom: 1rem;
}

.profile-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.15rem;
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.profile-status {
  display: inline-block;
  font-size: 0.78rem;
  color: #3fb950;
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* Social buttons under Profile Card */
.profile-socials {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-bright);
  background: var(--bg-card-hover);
}

/* Hero Content Right */
.hero-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-heading .highlight {
  color: var(--accent-blue);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-main:hover {
  background: #2ea043;
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--bg-card);
  color: var(--text-bright);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-sub:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Sections */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 2.25rem;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.section-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  flex: 1;
}

/* Featured Box */
.featured-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.featured-box:hover {
  border-color: var(--border-hover);
}

.featured-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge-featured {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #3fb950;
  background: rgba(46, 160, 67, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.link-live {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.featured-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.2rem;
}

.project-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.project-text {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-sm-main {
  padding: 0.4rem 0.9rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
}

.btn-sm-sub {
  padding: 0.4rem 0.9rem;
  background: var(--bg-dark);
  color: var(--text-bright);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Category Divider */
.cat-divider {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
}

.cat-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  margin-left: 1rem;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-blue);
  margin-top: 1rem;
  font-weight: 500;
}

.highlight-card {
  border-color: rgba(88, 166, 255, 0.4);
}

/* Image Box / Multi Slider */
.project-img-box {
  width: 100%;
  height: 170px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  position: relative;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.2s ease;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  z-index: 5;
}

.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--accent-blue);
  width: 12px;
  border-radius: 3px;
}

/* Pills Box */
.pills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pills-box span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-main);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

/* Contact Section & Big Email Badge */
.contact-box {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-box h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.contact-box p {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email-hero {
  margin-bottom: 2rem;
}

.email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.email-badge:hover {
  background: rgba(88, 166, 255, 0.15);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.contact-links {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer code {
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .profile-socials { width: 100%; }
  .hero-avatar { width: 90px; height: 90px; margin-bottom: 0.75rem; }
  .cards-grid.two-col { grid-template-columns: 1fr; }
}
