/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #050505;
  --bg-secondary: #0f0f0f;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
  --border: #2a2a2a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --nav-height: 60px;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Home page specific - no scroll */
body.home-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-logo::before {
  content: "$";
  color: var(--accent);
}

.terminal-text {
  position: relative;
}

.terminal-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  animation: blink 1s infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: calc(var(--nav-height) + 2rem);
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Morphing Text Animation */
.morph-text {
  display: inline-block;
  position: relative;
  min-height: 1.2em;
}

.morph-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom center;
}

.morph-char.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.morph-char.morphing-out {
  opacity: 0;
  transform: translateY(-20px) rotateX(90deg) scale(0.8);
}

.morph-char.morphing-in {
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg) scale(1.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

/* Projects Section */
.projects {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  min-height: auto;
  scroll-margin-top: var(--nav-height);
  -webkit-scroll-margin-top: var(--nav-height);
  position: relative;
}

/* Safari-specific fix for anchor scrolling */
.projects::before {
  content: "";
  display: block;
  height: var(--nav-height);
  margin-top: calc(var(--nav-height) * -1);
  visibility: hidden;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.subsection-title {
  font-size: 1.75rem;
  margin: 1.5rem 0 1.5rem;
  color: var(--text-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.project-card:hover::before {
  opacity: 0.05;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* Center loading spinner in YouTube grid */
#youtube-videos .loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

/* Ensure loading spinner is centered when youtube-grid is a grid container */
.youtube-grid:has(.loading) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Gaussian Blur Background Effect */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 107, 53, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 107, 53, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 107, 53, 0.06) 0%,
      transparent 40%
    );
  filter: blur(100px);
  z-index: -1;
  animation: gradientMove 60s ease-in-out infinite;
}

/* Smooth Gradient Movement Animation */
@keyframes gradientMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-10%, 10%) rotate(90deg);
  }
  50% {
    transform: translate(10%, -10%) rotate(180deg);
  }
  75% {
    transform: translate(-5%, -5%) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* About Page Styles */
.about-section {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  min-height: 100vh;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro {
  margin-bottom: 4rem;
  text-align: center;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.skills-section,
.interests-section,
.journey-section {
  margin-bottom: 4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skills-grid-balanced {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .skills-grid-balanced {
    grid-template-columns: 1fr;
  }
}

.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--border);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.interests-section p,
.journey-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Experience Timeline Styles */
.experience-section {
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-primary);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: translateY(-50%) scale(1.2);
  box-shadow:
    0 0 0 4px var(--bg-primary),
    0 0 20px rgba(255, 107, 53, 0.5);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-company {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-details {
  list-style: none;
  padding-left: 0;
}

.timeline-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-details li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.interest-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.interest-item:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.interest-item i {
  font-size: 2rem;
  color: var(--accent);
}

.interest-item span {
  font-weight: 500;
  color: var(--text-primary);
}

/* YouTube Page Styles */
.youtube-section {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  min-height: 100vh;
}

.youtube-header {
  text-align: center;
  margin-bottom: 3rem;
}

.youtube-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.youtube-subscribe-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
  color: white;
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.video-link {
  display: block;
  color: inherit;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: var(--border);
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.video-meta span:nth-child(2) {
  margin: 0 0.5rem;
}

/* Contact Page Styles */
.contact-section {
  padding: calc(var(--nav-height) + 2rem) 0 2rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

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

.submit-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.contact-link:hover {
  border-color: var(--accent);
  transform: translateX(5px);
  color: var(--accent);
}

.contact-link i {
  font-size: 1.25rem;
  width: 30px;
  text-align: center;
}

.response-time {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.response-time i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.response-time p {
  margin: 0;
  line-height: 1.2;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    order: -1;
  }
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-btn.primary {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.cta-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.cta-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Projects Page Styles */
.projects-page {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  min-height: 100vh;
}

.projects-intro {
  text-align: center;
  margin-bottom: 4rem;
}

/* Two Column Layout */
.projects-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Projects List Section (Left) */
.projects-list-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.projects-list-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-list-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.project-list-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  background: rgba(255, 107, 53, 0.02);
}

.project-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-list-title {
  font-size: 1.1rem;
  margin: 0;
}

.project-list-title a {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.project-list-title a:hover {
  color: var(--accent);
}

.project-list-title i {
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-list-item:hover .project-list-title i {
  opacity: 1;
}

.project-list-tech {
  background: var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-list-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* GitHub CTA Section (Right) */
.projects-cta-section {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.github-cta-card {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.github-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.github-icon-large {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.github-cta-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.github-cta-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.github-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat {
  padding: 1rem;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.github-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.github-profile-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  color: white;
}

.github-profile-btn i {
  font-size: 1.25rem;
}

.no-projects {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

/* Responsive for Projects Layout */
@media (max-width: 968px) {
  .projects-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-cta-section {
    position: static;
  }
}

@media (max-width: 640px) {
  .projects-list-section {
    padding: 1.5rem;
  }

  .project-list-item {
    padding: 1rem;
  }

  .github-cta-card {
    padding: 2rem;
  }
}

/* Mobile Responsive for CTA buttons */
@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 3rem auto 0;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Posts Page Styles */
.posts-section {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
}

.posts-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}

/* Coming Soon Message */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 2rem;
}

.coming-soon h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.coming-soon ul {
  margin: 2rem auto 0;
  max-width: 400px;
  text-align: left;
}

.coming-soon li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Posts Grid (for when posts are available) */
.posts-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--accent);
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-tag {
  background: var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  transform: translateX(5px);
}

/* Individual Post View */
.post-view {
  max-width: 1000px;
  margin: 2rem auto 0;
}

.post-full {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.post-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.back-to-posts {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.back-to-posts:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-3px);
}

.post-full .post-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.post-full .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0;
}

.post-content {
  padding: 2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Blog Post Content Styles */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.post-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.post-content h2 {
  font-size: 1.75rem;
  color: var(--accent);
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content code {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  color: var(--accent);
  border: 1px solid var(--border);
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(255, 107, 53, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.post-content blockquote p {
  margin-bottom: 0.5rem;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content ul li {
  list-style-type: disc;
}

.post-content ol li {
  list-style-type: decimal;
}

/* Blog Post Images */
.post-content img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Code blocks for blog posts */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  position: relative;
}

.code-block code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.code-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
  border-radius: 8px 8px 0 0;
}

/* Post Cards Cursor Pointer */
.post-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

/* Responsive Post Styles */
@media (max-width: 1024px) {
  .post-view {
    max-width: 90%;
  }

  .posts-content {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .post-view {
    margin: 1rem auto 0;
    padding: 0 1rem;
    max-width: 100%;
  }

  .posts-content {
    max-width: 100%;
  }

  .post-header,
  .post-content {
    padding: 1.5rem;
  }

  .post-full .post-title {
    font-size: 1.75rem;
  }

  .post-content h1 {
    font-size: 1.75rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .post-content img {
    margin: 1.5rem 0;
  }

  .code-block {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

/* Legal Pages Styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.legal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1.5rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1rem;
}

.legal-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--accent);
  font-weight: 600;
}

.legal-content h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.legal-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  text-align: justify;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.legal-content a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

.legal-date {
  font-size: 1rem;
  margin-bottom: 2rem !important;
  padding: 1rem;
  background: rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  color: var(--text-primary);
}

/* Footer Links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-separator {
  color: var(--text-secondary);
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 70px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}
