@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-dark: #030408;
  --bg-card: rgba(13, 17, 28, 0.45);
  --bg-card-hover: rgba(22, 28, 45, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 245, 255, 0.3);
  
  --text-primary: #f1f3f9;
  --text-secondary: #8c93a8;
  --text-muted: #5e6577;
  
  --accent-cyan: #00f5ff;
  --accent-purple: #bc34fa;
  --accent-blue: #3b82f6;
  
  /* Gradients */
  --gradient-neon: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  --gradient-blue: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  --gradient-dark: linear-gradient(180deg, rgba(13,17,28,0.2) 0%, rgba(3,4,8,0.8) 100%);
  
  /* Fonts */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --max-width: 1040px; /* Wider for split sidebar layout */
  --nav-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(188, 52, 250, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.4);
}

/* Background floating glow blobs */
.glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  animation: float 25s infinite alternate ease-in-out;
}

.blob-purple {
  top: -10%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: var(--accent-purple);
  animation-duration: 20s;
}

.blob-blue {
  bottom: -15%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: var(--accent-blue);
  animation-duration: 28s;
}

.blob-cyan {
  top: 40%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: var(--accent-cyan);
  animation-duration: 24s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(80px, 60px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, -80px) scale(0.9) rotate(360deg);
  }
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Floating Navigation Bar */
header {
  position: sticky;
  top: 15px;
  z-index: 100;
  margin-top: 15px;
}

.nav-bar {
  background: rgba(3, 4, 8, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 40px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.75rem;
  transition: all 0.3s ease;
}

.nav-bar:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

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

.nav-menu a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-menu a:hover, .nav-menu a.active {
  color: #fff;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

.byteworks-link {
  font-size: 0.85rem !important;
  color: var(--accent-cyan) !important;
}

/* Layout grid for columns */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  padding: 2.5rem 0;
  align-items: start;
}

/* Profile Sidebar (Left Column) */
.profile-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.avatar-container {
  position: relative;
  margin-bottom: 1.25rem;
}

.avatar-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: var(--gradient-neon);
  border-radius: 50%;
  z-index: -1;
  filter: blur(6px);
  opacity: 0.8;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.profile-info h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.profile-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.profile-description a {
  color: var(--accent-cyan);
  font-weight: 500;
  border-bottom: 1px dashed rgba(0, 245, 255, 0.4);
}

.profile-description a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  justify-content: flex-start;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

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

/* Category Filter Menu */
.filter-container {
  display: flex;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--gradient-neon);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(188, 52, 250, 0.35);
}

/* Chronological Timeline & Cards */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 6rem;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Visual timeline element: a soft vertical path dot */
.feed-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2.5rem;
  width: 4px;
  height: 24px;
  background: var(--gradient-neon);
  border-radius: 0 4px 4px 0;
  opacity: 0.7;
}

.feed-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 245, 255, 0.05);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.feed-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

/* Category Specific Badges */
.feed-card[data-category="photos"] .feed-category {
  color: var(--accent-cyan);
  border-color: rgba(0, 245, 255, 0.2);
}

.feed-card[data-category="thoughts"] .feed-category {
  color: var(--accent-purple);
  border-color: rgba(188, 52, 250, 0.2);
}

.feed-card[data-category="cars"] .feed-category {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

.feed-card[data-category="tech"] .feed-category {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}

.feed-title {
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.3;
}

.feed-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Photo posts specific layout */
.feed-media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  margin: 0.5rem 0;
}

.feed-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.feed-card:hover .feed-media img {
  transform: scale(1.02);
}

/* Gallery layout for posts with multiple photos */
.feed-media-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin: 0.5rem 0;
}

.gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

.gallery-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 180px;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.feed-card:hover .gallery-main img,
.feed-card:hover .gallery-thumb img {
  transform: scale(1.02);
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 0;
  text-align: center;
  background: rgba(3, 4, 8, 0.8);
  backdrop-filter: blur(10px);
  margin-top: auto;
}

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

/* Hide utility for categories */
.card-hidden {
  display: none !important;
}

/* Reveal classes for scroll transitions */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive queries */
@media (max-width: 768px) {
  :root {
    --max-width: 100%;
  }
  .nav-bar {
    padding: 0 1rem;
  }
  .main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
  }
  .profile-sidebar {
    position: relative;
    top: 0;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
  }
  .avatar {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }
  .profile-info h1 {
    font-size: 1.75rem;
  }
  .social-links {
    justify-content: center;
  }
  .filter-container {
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
  .feed-card {
    padding: 1.5rem;
  }
}
