/* ============================================================
   EDITORIAL SHOWCASE PORTFOLIO — CSS Style rules
   Plus Jakarta Sans (UI) & Lora (Readability) Typography
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---------- Theme Colors & Variables ---------- */
:root {
  /* Light Theme (Default) */
  --bg-primary: #FAF9F6;
  --bg-secondary: #F2F0EA;
  --bg-card: #FFFFFF;
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-muted: #8E8E93;
  --accent-color: #2563EB; /* Cobalt Blue */
  --accent-light: #EFF6FF;
  --border-color: #E4E4E7;
  
  --font-ui: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Lora', Georgia, serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #09090B;
  --bg-secondary: #18181B;
  --bg-card: #141417;
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --accent-color: #6366F1; /* Indigo */
  --accent-light: #1E1B4B;
  --border-color: #27272A;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, nav, button, input, textarea {
  font-family: var(--font-ui);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  opacity: 0.85;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

[data-theme="dark"] .site-header {
  background-color: rgba(9, 9, 11, 0.8);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.theme-toggle:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Mobile Hamburger Menu icon */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  color: var(--text-primary);
}

/* ---------- Sections Layout ---------- */
section {
  padding-block: 80px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-ui);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding-block: 40px;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
}

.hero-title {
  font-family: var(--font-ui);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.btn {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #FFFFFF;
}
.btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background-color: var(--bg-secondary);
  text-decoration: none;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-left p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-right {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
  font-size: 0.95rem;
}
.info-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}
.info-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Skills Section ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}
.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-card__title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-meter__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.skill-meter__track {
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-meter__fill {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* ---------- Chronology (Timeline) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-node {
  position: relative;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-color);
  transition: var(--transition);
}
.timeline-node:hover::before {
  transform: scale(1.2);
}

.timeline-node__date {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.timeline-node__title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-node__comp {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-node__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---------- Projects Listing Section ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.project-card__title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-card__tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

.project-card__links {
  display: flex;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Blog Feed Section ---------- */
.blog-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-feed-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-feed-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.blog-feed-item__title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}
.blog-feed-item__header:hover .blog-feed-item__title {
  color: var(--accent-color);
}

.blog-feed-item__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.blog-feed-item__arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.blog-feed-item.open .blog-feed-item__arrow {
  transform: rotate(180deg);
}

.blog-feed-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.blog-feed-item.open .blog-feed-item__body {
  max-height: 2000px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-left p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.contact-node-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-node-link svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
}
.contact-node-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-color);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* ---------- Mobile Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .site-nav {
    position: relative;
  }
  
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 30px 24px;
    gap: 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-grid, .skills-grid, .projects-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}
