/* Base
---------------------------------------- */
:root {
    --color-bg: #050000;
    --color-bg-alt: #0a0000;
    --color-text: #d1d0d1;
    --color-muted: #5b5756;
    --color-border: #2a1f1f;
    --color-primary: #ff584f;
    --color-primary-soft: rgba(255, 88, 79, 0.18);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.7);
}

  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 40%), var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
  }
  
  /* Typography */
  h1,
  h2,
  h3,
  h4 {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    margin: 0 0 0.5em;
    line-height: 1.3;
  }
  
  p {
    margin: 0 0 1em;
  }
  
  a {
    color: var(--color-primary);
    text-decoration: none;
    
  }
  
  a:hover {
    text-decoration:none;
  }
  
  /* Layout helpers */
  .container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .section-alt {
    background: var(--color-bg-alt);
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section-link {
    font-size: 0.95rem;
  }
  
  .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  @media (min-width: 768px) {
    .grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
 /* Header & Navigation
---------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(5, 8, 22, 0.96), rgba(5, 8, 22, 0.86));
    color: #f9fafb;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
  }
  
  .logo {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
  }
  
  /* Nav base */
  .site-nav {
    display: none;              /* hidden by default (mobile-first) */
  }
  
  .site-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  .site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
    position: relative;
  }
  
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
  }
  
  .site-nav a:hover::after,
  .site-nav a.active::after {
    width: 100%;
  }
  
  /* Mobile nav toggle button */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 32px;
    border-radius: 100px;
    border: 1px solid #ff584f;
    background: rgba(5, 0, 0, 0.6); /* dark transparent */
    cursor: pointer;
    padding: 0 8px;
  }
  
  .nav-toggle-bar {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #ff584f; /* 🔥 red lines */
  }
  
  
  /* When menu is open on mobile */
  .site-nav.open {
    display: block;                     /* IMPORTANT */
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
  }
  
  .site-nav.open ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }
  
  /* Desktop layout */
  @media (min-width: 768px) {
    .nav-toggle {
      display: none;                    /* hide burger on desktop */
    }
  
    .site-nav {
      display: block;                   /* always show nav on desktop */
      position: static;
    }
  
    .site-nav ul {
      flex-direction: row;
      padding: 0;
      gap: 1.5rem;
    }
  }
  
  
  /* Mobile nav open state */
  .site-nav.open {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
  }
  
  .site-nav.open ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
  }
  
  /* Hero
  ---------------------------------------- */
  .hero {
    padding: 3.5rem 0 3rem;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr;
    gap: 2.5rem;
    align-items: center;
  }
  
  .hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
  }
  
  .hero-body {
    color: var(--color-muted);
    max-width: 40rem;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .hero-image-wrapper {
    position: relative;
    max-width: 420px;
    justify-self: center;
  }
  
  .hero-image {
    width: 100%;
    border-radius: 1.75rem;
    display: block;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
  }
  
  .hero-image-overlay {
    position: absolute;
    inset: 8%;
    border-radius: 2rem;
    border: 1px solid var(--color-primary-soft);
    pointer-events: none;
  }
  
  @media (min-width: 900px) {
    .hero-inner {
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
    .hero {
      padding: 4.5rem 0 3.5rem;
    }
    .hero h1 {
      font-size: 2.9rem;
    }
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  }
  
  .btn.primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 88, 79, 0.35);
  }
  
  .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255, 88, 79, 0.35);
  }
  
  .btn.secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
  }
  
  .btn.secondary:hover {
    background: var(--color-primary-soft);
  }
  
  /* Cards
  ---------------------------------------- */
  .card {
    background: var(--color-bg-alt);
    border-radius: 1.25rem;
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
  }
  
  .project-card h2,
  .project-card h3 {
    margin-bottom: 0.4rem;
  }
  
  .project-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
  }
  
  /* Blog cards */
  .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .blog-card-image {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
  }
  
  .blog-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
  }
  
  .blog-card-meta {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
  }
  
  .tag-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.4rem 0 0.75rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
  }
  
  .card-link {
    margin-top: auto;
    font-size: 0.9rem;
  }
  
  /* Page hero */
  .page-hero {
    padding: 2.5rem 0 2rem;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  /* About page */
  .about-grid {
    display: grid;
    gap: 2rem;
  }
  
  .about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0;
    list-style: none;
  }
  
  .tag-list li {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--color-primary-soft);
  }
  
  @media (min-width: 900px) {
    .about-grid {
      grid-template-columns: 2fr 1fr;
    }
  }
  
  /* Blog controls & pagination */
  .blog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
  }
  
  .blog-search input {
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    min-width: 220px;
  }
  
  .blog-filter-group,
  .blog-sort-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
  }
  
  .blog-filter-group select,
  .blog-sort-group select {
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    font-size: 0.9rem;
  }

  /* Fix text color for inputs + selects in dark mode */
.blog-search input,
.blog-filter-group select,
.blog-sort-group select {
  color: #d1d0d1; /* white-grey text */
  background: #0a0000; /* your dark background */
  border: 1px solid #5b5756; /* muted border */
}

/* Placeholder color for search input */
.blog-search input::placeholder {
  color: #5b5756; /* muted grey */
}
/* Mobile: make search bar full width */
@media (max-width: 768px) {
    .blog-controls {
      flex-direction: column;
      align-items: stretch;
    }
  
    .blog-search input {
      width: 100%;
      min-width: 0;
    }
  
    .blog-filter-group,
    .blog-sort-group {
      width: 100%;
    }
  
    .blog-filter-group select,
    .blog-sort-group select {
      width: 100%;
    }
  }
  
  
  .pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .pagination button {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    cursor: pointer;
    font-size: 0.85rem;
  }
  
  .pagination button.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
  }
  
  /* Single post */
  .post-header {
    padding: 2.5rem 0 1rem;
  }
  
  .post-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  
  .post-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
  }
  
  .post-hero-image {
    margin: 1.5rem 0 2rem;
  }
  
  .post-hero-image img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
  }
  
  .post-body {
    max-width: 760px;
    margin: 0 auto 3rem;
  }
  
  .post-body p {
    margin-bottom: 1.1rem;
  }
  
  /* Contact */
  .contact-grid {
    display: grid;
    gap: 2rem;
  }
  
  .contact-list {
    list-style: none;
    padding: 0;
  }
  
  .contact-list li {
    margin-bottom: 0.5rem;
  }
  
  .contact-social {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .contact-form label {
    font-size: 0.9rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.7rem;
    background: var(--color-bg-alt);
    font: inherit;
  }
  
  /* Footer */
  .site-footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0 2rem;
    margin-top: 1rem;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-muted);
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .footer-links a {
    color: inherit;
  }
  
  /* Accessibility helpers */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  /* Image with caption inside blog posts */
.post-image {
    margin: 2rem 0;
    text-align: center;
  }
  
  .post-image img {
    width: 100%;
    max-width: 700px;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .post-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    font-style: italic;
  }


  /* Quote styling inside blog posts */
.post-quote {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    background: rgba(255, 88, 79, 0.08); /* soft red background */
    border-left: 4px solid #ff584f; /* highlight line */
    border-radius: 0.8rem;
    color: #d1d0d1;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    font-style: italic;
  }
  
  .post-quote .quote-author {
    display: block;
    margin-top: 0.75rem;
    text-align: right;
    font-size: 0.95rem;
    color: #5b5756; /* muted grey */
    font-style: normal;
  }
  
  .project-image {
    max-width: 800px;           /* limit how wide it can get on large screens */
    width: 100%;                /* still responsive */
    margin: 2rem auto;          /* center it with space above/below */
    border-radius: 16px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: auto;               /* keep aspect ratio */
    display: block;
    object-fit: contain;        /* don't crop any text in the image */
    background: #000;           /* optional: fills letterbox area on tall screens */
  }
  

  /* for youtube videos*/
  .video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
  }
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  


 /* Base card styles stay as you originally had them */
/* We only add transition + reveal states here */

/* Smooth transition for all cards in What I Do */
#what-i-do .card {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Hidden state before scrolling into view */
#what-i-do .card.reveal-card {
  opacity: 0;
  transform: translateY(20px);
}

/* Visible state when JS adds .visible */
#what-i-do .card.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   ENHANCED LANDING PAGE STYLES
   Add these styles to the END of your styles.css file
   ============================================ */

/* Animated gradient background */
body {
  background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 88, 79, 0.15), transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1), transparent 50%),
    var(--color-bg);
  animation: gradientShift 15s ease infinite;
}

/* @keyframes gradientShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(20deg); }
} */

/* Floating particles background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 88, 79, 0.3);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) scale(1);
    opacity: 0;
  }
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  z-index: 2;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-text {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-kicker {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
  background: linear-gradient(135deg, #fff 0%, #d1d0d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-body {
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-actions {
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated typing effect for hero text */
.typing-text {
  display: inline-block;
  border-right: 2px solid var(--color-primary);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Enhanced hero image */
.hero-image-wrapper {
  opacity: 0;
  animation: fadeInScale 1.2s ease 0.5s forwards;
  position: relative;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-image {
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.hero-image-overlay {
  transition: all 0.6s ease;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Glowing effect behind image */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 88, 79, 0.4), transparent 70%);
  z-index: -1;
  filter: blur(40px);
  opacity: 0.6;
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Enhanced Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  box-shadow: 0 12px 30px rgba(255, 88, 79, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(255, 88, 79, 0.45);
}

.btn.secondary {
  backdrop-filter: blur(10px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards, bounce 2s ease-in-out 2s infinite;
}

.scroll-indicator-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  margin: 0 auto 0.5rem;
}

.scroll-indicator-text {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Enhanced What I Do Cards */
#what-i-do .card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#what-i-do .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 88, 79, 0.1), transparent);
  transition: left 0.5s ease;
}

#what-i-do .card:hover::before {
  left: 100%;
}

#what-i-do .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(255, 88, 79, 0.2);
  border-color: rgba(255, 88, 79, 0.4);
}

/* Staggered card reveal */
#what-i-do .card:nth-child(1) { animation-delay: 0.1s; }
#what-i-do .card:nth-child(2) { animation-delay: 0.2s; }
#what-i-do .card:nth-child(3) { animation-delay: 0.3s; }

/* Section titles with underline effect */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transition: width 0.8s ease;
}

.section-title.in-view::after {
  width: 100%;
}

/* Project cards hover effects */
.project-card, .blog-card {
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover, .blog-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Parallax scroll effect */
.parallax-section {
  transform: translateY(0);
  transition: transform 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }
  
  .scroll-indicator {
    display: none;
  }
}