:root {
    --bg: #0a0c10;
    --surface: #161b22;
    --card-bg: #1c2128;
    --text: #f0f6fc;
    --muted: #8b949e;
    --accent: #58a6ff;
    --border: rgba(255, 255, 255, 0.1);
}

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

body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVIGATION --- */
header {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 2.2rem 8%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.logo a { 
    text-decoration: none; 
    color: var(--text); 
    font-size: 1.5rem; 
    font-weight: 700; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
}

/* --- THE ICON LOGO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.logo-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-icon span {
    display: block;
    height: 1px;
    background: var(--accent);
    transition: all 0.4s ease;
}

.line-1 { 
    width: 20px;
}

.line-2 { 
    width: 14px; 
    opacity: 0.6; 
}

.line-3 { 
    width: 6px; 
    opacity: 0.3; 
}

.logo:hover .line-1 { 
    width: 24px; 
}

.logo:hover .line-2 { 
    width: 18px; 
    opacity: 1; 
}

.logo:hover .line-3 { 
    width: 12px; 
    opacity: 0.6; 
}

/* --- FEATURED WORKS LABEL --- */
.section-label { 
    display: block; 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    letter-spacing: 6px; 
    color: var(--accent); 
    margin-bottom: 3.5rem; 
    text-align: center; 
    font-weight: 600;
    opacity: 0.9;
    position: relative;
}

.section-label::after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent);
    margin: 15px auto 0;
    opacity: 0.4;
}

.logo span { 
    color: var(--accent); 
}

.nav-links { 
    display: flex; 
    gap: 3rem; 
    list-style: none; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--muted); 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: 0.3s; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--text); 
}

/* --- HERO SECTIONS --- */
.fullscreen-hero {
    position: relative;
    width: 100%;
    background-color: #0d1117; 
    background-repeat: no-repeat;
    background-image: url('hero.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.poem-hero-visual {
    position: relative;
    width: 100%;
    background-color: #0d1117; 
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fullscreen-hero { 
    height: 75vh; 
    background-position: center center; 
}

.poem-hero-visual { 
    height: 50vh; 
    background-position: center 30%; 
}

.hero-overlay, .poem-hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, rgba(10, 12, 16, 0.3) 0%, var(--bg) 100%); 
    z-index: 1;
}

.hero-content, .poem-hero-content { 
    position: relative; 
    z-index: 2; 
    padding: 0 2rem; 
}

.hero-content h1 { 
    font-size: clamp(3rem, 10vw, 6rem); 
    font-weight: 200;
    letter-spacing: -3px; 
}

.poem-hero-content h1 { 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    margin-top: 10px; 
}

/* --- CONTAINERS & LABELS --- */
.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 6rem 2rem; 
}

.section-label { 
    display: block; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 5px; 
    color: var(--accent); 
    margin-bottom: 3rem; 
    text-align: center; 
    font-weight: 600;
}

/* --- GRID & CARDS --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2.5rem; 
}

.card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 3.5rem 2.5rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.card:hover { 
    border-color: var(--accent); 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
}

.card h2 { 
    font-size: 1.6rem; 
    font-weight: 400;
    margin: 1.5rem 0 1rem; 
    color: var(--text); 
}

.card p { 
    color: var(--muted); 
    font-size: 0.95rem; 
    line-height: 1.7; 
}

/* --- Blog Carousel Section --- */
.blog-section {
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden; /* Critical to hide the cards off-screen */
}

.blog-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-carousel-track-container {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  position: relative;
}

.blog-card-grid {
  display: flex;
  gap: 2rem;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother slide */
}

/* --- The Cards --- */
.blog-card {
  flex: 0 0 320px; /* Base width for desktop */
  display: flex;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card-inner {
  width: 100%;
  background: var(--card-bg, #1e1e1e); /* Fallback to dark if var is missing */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Navigation Buttons --- */
.blog-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent, #7FD0C2);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  padding: 0 10px;
}

.blog-carousel-btn.prev { left: -50px; }
.blog-carousel-btn.next { right: -50px; }

.blog-carousel-btn:hover {
  transform: translateY(-50%) scale(1.2);
  color: #ffffff;
}

/* --- Responsive Styles --- */

/* For Tablets (Screens under 1024px) */
@media (max-width: 1024px) {
  .blog-carousel {
    max-width: 90%;
  }
  .blog-carousel-btn.prev { left: -30px; }
  .blog-carousel-btn.next { right: -30px; }
}

/* For Phones (Screens under 768px) */
@media (max-width: 768px) {
  .blog-card {
    flex: 0 0 85vw; 
  }
  
  .blog-carousel-btn {
    display: none; 
  }
  
  .blog-carousel-track-container {
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }
  
  .blog-card {
    scroll-snap-align: center;
  }

  .blog-carousel-track-container::-webkit-scrollbar {
    display: none;
  }
}

/* --- SEARCH BAR --- */
.search-wrapper { 
    max-width: 650px; 
    margin: 0 auto 5rem; 
}

.search { 
    width: 100%; 
    padding: 1.5rem; 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px);
    border: 1px solid var(--border); 
    border-radius: 100px; 
    color: var(--text); 
    font-size: 1.1rem; 
    text-align: center; 
    outline: none; 
    transition: 0.3s;
}

.search:focus { 
    border-color: var(--accent); 
    background: rgba(255, 255, 255, 0.07); 
}

/*-- Filter --*/
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* --- POEM ARTICLE VIEW --- */
.poem-container { 
    max-width: 800px; 
    margin: -8rem auto 10rem; 
    background: var(--card-bg); 
    padding: 6rem; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    position: relative; 
    z-index: 10;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

.poem-body { 
    font-size: 1.1rem; 
    line-height: 2.2; 
    color: #e6edf3; 
    white-space: pre-wrap; 
    font-weight: 300;
}

.poem-footer-nav {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.poem-footer-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- AUTHOR SECTION --- */
.about-author-section { 
    padding: 8rem 0; 
    border-top: 1px solid var(--border); 
}

.about-container { 
    display: flex; 
    align-items: center; 
    gap: 5rem; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.about-image img { 
    width: 350px; 
    height: 450px; 
    object-fit: cover; 
    border-radius: 4px; 
}

.about-text { 
    flex: 1; 
}

#author-blurb {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--muted);
    font-weight: 300;
    margin-top: 1.5rem;
    margin-left: clamp(0.75rem, 4vw, 1.5rem);
    margin-right: clamp(0.75rem, 4vw, 1.5rem);
}

/* --- FOOTER --- */
footer { 
    padding: 6rem 0; 
    text-align: center; 
    opacity: 0.4; 
    font-size: 0.75rem; 
    letter-spacing: 3px; 
    text-transform: uppercase;
    border-top: 1px solid var(--border); 
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 1100px) { 
    .grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
}

@media (max-width: 850px) { 
    .about-container { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .about-image img {
        width: 100%; 
        max-width: 300px; 
        height: auto; 
    }
}

@media (max-width: 700px) { 
    .grid { 
        grid-template-columns: 1fr; 
    } 
    
    .poem-container { 
        padding: 3rem 1.5rem; 
        margin: 2rem 1rem 6rem; 
    }
    
    .hero-content h1 { 
        font-size: 3.5rem; 
    }
    
    .navbar { 
        padding: 1.5rem 5%; 
    }
    
    .nav-links { 
        gap: 1.5rem; 
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1.2rem 5%;
    }
    
    .logo-icon {
        gap: 3px; 
    }
    
    .line-1 { 
        width: 15px; 
    }
    
    .line-2 { 
        width: 10px; 
    }
    
    .line-3 { 
        width: 5px; 
    }
    
    .logo a {
        font-size: 1.1rem; 
        letter-spacing: 2px;
    }
}
