/*
Theme Name: Omi Portfolio
Theme URI: https://example.com/omi-portfolio
Author: Your Name
Author URI: https://example.com
Description: A clean, minimal dark portfolio theme for UI/UX designers and developers. Features sections for about, services, tech stack, testimonials, work process, projects, and contact.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omi-portfolio
Tags: portfolio, dark, minimal, one-page, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1f1f1f;
  --border: #2a2a2a;
  --border-light: #333;
  --text-primary: #f0f0f0;
  --text-secondary: #aaa;
  --text-muted: #666;
  --accent: #4ade80;
  --accent-dark: #22c55e;
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,22,22,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 12px;
}

.nav-inner a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-inner a:hover,
.nav-inner a.current {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-inner a .nav-icon { font-size: 14px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
#primary {
  padding: 20px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.grid-layout {
  display: grid;
  gap: 16px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

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

.card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-label .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ============================================================
   HERO / ABOUT SECTION
   ============================================================ */
.section-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

/* Profile card */
.profile-card .profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-meta { display: flex; align-items: center; gap: 12px; }

.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar-placeholder {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.available-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.available-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.profile-title { font-size: 13px; color: var(--text-muted); }

.resume-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.resume-btn:hover { border-color: var(--border-light); color: var(--text-primary); }

.about-heading { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.about-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }
.about-text p { margin-bottom: 10px; }
.about-text p:last-child { margin-bottom: 0; }

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.action-btn:hover { border-color: var(--border-light); color: var(--text-primary); }

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.stat-plus { color: var(--accent); }

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Right column stacked */
.right-column { display: flex; flex-direction: column; gap: 16px; }
.stat-card-wide { grid-column: span 1; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

.service-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.service-item:hover { border-color: var(--border-light); }

.service-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.service-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.service-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   TECH STACK
   ============================================================ */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.stack-item:hover { border-color: var(--border-light); color: var(--text-primary); }
.stack-icon { font-size: 15px; }

/* ============================================================
   TWO COLUMN SECTION (Testimonials + Work Process)
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

.testimonial-item {
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.testimonial-author { display: flex; align-items: center; gap: 10px; }

.t-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  overflow: hidden;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }

.t-name { font-size: 13.5px; font-weight: 600; }
.t-country { font-size: 12px; color: var(--text-muted); }
.t-date { font-size: 11.5px; color: var(--text-muted); }
.t-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   WORK PROCESS
   ============================================================ */
.process-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }

.process-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.process-item:hover { border-color: var(--border-light); }

.process-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--bg-secondary);
}

.process-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.process-icon { font-size: 15px; }
.process-toggle { font-size: 16px; color: var(--text-muted); transition: transform 0.2s; }
.process-item.open .process-toggle { transform: rotate(180deg); }

.process-body {
  display: none;
  padding: 0 16px 14px;
  background: var(--bg-secondary);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.process-item.open .process-body { display: block; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.projects-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.projects-track::-webkit-scrollbar { display: none; }

.project-thumb {
  flex: 0 0 220px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  position: relative;
  background: var(--bg-secondary);
}

.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.project-thumb:hover img { transform: scale(1.04); }

.project-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.view-works-btn {
  display: block;
  margin: 16px auto 0;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 28px;
  border-radius: 50px;
  text-align: center;
  transition: all var(--transition);
  width: fit-content;
}
.view-works-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ============================================================
   SOCIAL + CTA ROW
   ============================================================ */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.social-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-item:hover { border-color: var(--border-light); color: var(--text-primary); }
.social-left { display: flex; align-items: center; gap: 10px; }
.social-icon { font-size: 16px; }
.social-arrow { font-size: 14px; color: var(--text-muted); }

/* CTA */
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.cta-trophy { font-size: 32px; margin-bottom: 8px; }
.cta-title { font-size: 20px; font-weight: 700; }
.cta-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.cta-buttons { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.cta-btn:hover { border-color: var(--border-light); color: var(--text-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--text-muted);
}

#site-footer .footer-nav { display: flex; gap: 20px; }
#site-footer .footer-nav a:hover { color: var(--text-primary); }

/* ============================================================
   WORDPRESS CUSTOMIZER OVERRIDES
   ============================================================ */
.custom-logo { max-height: 40px; width: auto; }

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
.admin-bar #site-header { top: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .section-hero,
  .two-col,
  .bottom-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr 1fr; }

  .profile-actions { grid-template-columns: 1fr; }

  .nav-inner { display: none; }
  .menu-toggle { display: block; }

  #site-footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
