/* ------------------------------------------------------------------
   Joshua Omang - Portfolio Styles
   ------------------------------------------------------------------ */

/* --- variables --- */
:root {
  --bg-main: #090d16;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8, #818cf8);
  --text-bright: #f8fafc;
  --text-muted: #94a3b8;
  --sidebar-width: 260px;
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --accent-cyan: #0284c7;
  --accent-indigo: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #0284c7, #4f46e5);
  --text-bright: #0f172a;
  --text-muted: #64748b;
}

/* --- reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- body / background --- */
body {
  background-color: var(--bg-main);
  background-image: url('images/subaru.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-bright);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- sidebar --- */
aside {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  z-index: 100;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 2rem 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-bright);
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid var(--accent-cyan);
}

.nav-links i {
  font-size: 1.1rem;
  width: 20px;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.sidebar-footer a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.sidebar-footer a:hover {
  color: var(--accent-cyan);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: auto;
}

.theme-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  background: rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .sidebar-footer a:hover {
  color: var(--accent-cyan);
}

/* --- main content --- */
main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 3rem 4rem;
  max-width: 1200px;
  position: relative;
}

.section-badge {
  position: absolute;
  top: 1rem;
  right: 0;
  background: rgba(56, 189, 248, 0.08);
  border: none;
  color: var(--white);
  padding: 1px 2px;
  border-radius: 20px;
  font-size: 23px;
  
}

section {
  margin-bottom: 6rem;
  scroll-margin-top: 3rem;
}

/* --- typography --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* --- cards & grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

/* --- about section --- */
.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
  width: 120%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
}

.about-main-photo {
  width: 90%;
  height: 80%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.about-image-border {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--accent-cyan);
  border-radius: 20px;
  opacity: 0.3;
  z-index: -1;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-intro h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-role {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(56, 189, 248, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.gallery-link-btn {
  margin-top: 1.5rem;
}

/* --- gallery page --- */
.gallery-section {
  margin-bottom: 6rem;
  scroll-margin-top: 3rem;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.gallery-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.gallery-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.gallery-caption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  text-decoration: none;
}

.back-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* --- hobby pages --- */
.hobby-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hobby-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hobby-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.hobby-intro h3 {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hobby-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.hobby-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hobby-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.hobby-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(5px);
}

.hobby-item i {
  color: var(--accent-cyan);
  font-size: 1rem;
}

.hobby-item span {
  font-weight: 600;
  color: var(--text-bright);
}

/* --- quotes section --- */
.quote-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-bright);
  font-style: italic;
}

.quote-author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* --- mobile stuff --- */
@media (max-width: 900px) {
  aside {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  body {
    flex-direction: column;
  }

  main {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image-wrapper {
    max-width: 250px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hobby-content {
    grid-template-columns: 1fr;
  }
}