@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');
:root {
    --primary-color: #5e3a8f;
    --primary-light: #7d5ba6;
    --primary-lighter: #9b7ec4;
    --primary-dark: #4a2d70;
    --secondary-color: #8b6bb0;
    --accent-color: #e8dff5;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: auto;
    overflow: hidden;
    height: 100vh;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow: hidden;
}


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

/* ==================== NAVBAR ==================== */
/* ==================== NAVBAR ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: var(--nav-height);            /* ✅ FIX: explicit height */
    z-index: 1000;

    background: #ffffff;
    border-bottom: 1px solid var(--border-light);

    /* ❌ removed padding to avoid height mismatch */
}

/* Navbar inner container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 100%;                         /* ✅ FIX: fills navbar height */
}

/* Logo */
.nav-logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

/* Navigation links */
.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

/* Underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;

    width: 0;
    height: 2px;
    background: var(--primary-color);

    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 50px;
}

.home-text {
    flex: 1;
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

/* PLAYFAIR SERIF FOR H1 */
.home-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* IMAGE CONTAINER WITH BLOB BACKGROUND */
.home-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    position: relative;
    padding-top: 40px;   /* NEW */
    transform: translateY(-30px); /* Pulls the image UP by 30 pixels */
}

.home-image-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    z-index: -1;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    right: 25px;
    animation: blobMorph 10s ease-in-out infinite;
}

/* HOME PHOTO: BLENDED, NO SHADOW */
.home-photo {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: none !important; /* SHADOW REMOVED */
    animation: float 6s ease-in-out infinite;
    transform: translateY(-100px); /* Pulls the image UP by 30 pixels */
}

@keyframes blobMorph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
50% {
        transform: translateY(-12px);   /* CHANGED */
    }}

/* ==================== HOME RESPONSIVE ==================== */
@media (max-width: 992px) {
    .home-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-text {
        max-width: 100%;
    }

    .home-image-container {
        justify-content: center;
        margin-bottom: 30px;
        transform: translateY(-90px); /* Pulls the image UP by 30 pixels */
    }

    .home-photo {
        max-width: 350px;
        transform: translateY(-30px); /* Pulls the image UP by 30 pixels */
    }
    
    .home-image-container::before {
        width: 320px;
        height: 320px;
        right: auto;
         transform: translateY(-90px); 
    }

    .home-links, .social-icons {
        justify-content: center;
    }
}

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

.home-subtitle {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    animation: slideInUp 0.8s ease 0.1s both;
    min-height: 40px;
}

.cycling-text {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.cycling-text.fade-out {
    opacity: 0;
}

.home-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: slideInUp 0.8s ease 0.2s both;
}

.home-links {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease 0.3s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 25px;
    animation: slideInUp 0.8s ease 0.4s both;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* ==================== SECTION STYLES ==================== */
section {
    padding-top: 100px;
    padding-bottom: 100px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    flex-shrink: 0;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #999;
    margin-bottom: 60px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: #fafafa;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-subtitle {
    font-size: 20px;
    color: #999;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}

/* ==================== ABOUT CARDS LAYOUT ==================== */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.timeline {
  position: relative;
  margin: 40px 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #6c63ff; /* accent line */
}

.timeline-item {
  position: relative;
  margin: 40px 0;
  padding-left: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: #6c63ff;
  border-radius: 50%;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.about-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-card a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Vertical scroll variant for About: stack chapters and gallery */
.about-cards.about-scroll {
    display: block;
    max-width: 880px;
    margin: 0 auto;
}

.about-cards.about-scroll .about-card {
    width: 100%;
    margin-bottom: 32px;
    display: block;
}

/* larger screens: align text and mini-gallery side-by-side */
@media (min-width: 900px) {
    .about-cards.about-scroll .about-card {
        display: flex;
        gap: 22px;
        align-items: flex-start;
    }
    .about-cards.about-scroll .about-card .about-text { flex: 1; }
    .about-cards.about-scroll .about-card .mini-gallery { width: 420px; }
}

.highlight {
    background: rgba(157, 123, 201, 0.12);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
}

.accent {
    color: var(--primary-color);
    font-weight: 700;
}

/* Mini-gallery beside chapters */
.mini-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.mini-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.board-photo {
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    cursor: pointer;
}


.board-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.photo-caption {
    font-size: 13px;
    color: #444;
    text-align: center;
    margin-top: 8px;
}

/* Lightbox modal for board photos */
.img-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.75); z-index: 2200; }
.img-modal .modal-inner { max-width: 92%; max-height: 92%; text-align: center; }
.img-modal img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.img-modal .modal-caption { color: #fff; margin-top: 12px; font-size: 15px; }

/* Poem modal for full poem display */
.poetry-full {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.poetry-card.expanded .poetry-full {
    display: block;
    animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.poetry-card.expanded .read-more-btn::after {
    content: ' (Click to collapse)';
    font-size: 12px;
    opacity: 0.7;
}

.poetry-full .poetry-text {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    white-space: pre-wrap;
}

.read-more-btn { background: none; border: none; color: var(--primary-color); font-weight: 600; cursor: pointer; font-size: 14px; transition: color 0.2s ease; }
.read-more-btn:hover { color: var(--primary-dark); }

.board-photo:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); }

@media (max-width: 900px) {
    .mini-gallery { flex-direction: row; }
    .mini-gallery img { height: 100px; width: calc(33.333% - 8px); }
}

.strengths-list,
.achievements-list {
    list-style: none;
    margin-top: 20px;
}

.strengths-list li,
.achievements-list li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.strengths-list li::before,
.achievements-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== TIMELINE STYLES ==================== */
.timeline {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.timeline-year {
    min-width: 80px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
}

.timeline-content {
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: var(--primary-dark);
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item { gap: 12px; }
    .timeline-year { min-width: 60px; padding: 8px 10px; }
}

/* ==================== PINBOARD STYLES ==================== */
.pinboard {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    align-items: start;
    padding: 20px;
    background: #fff8f9;
    border: 1px dashed var(--border-light);
    border-radius: 12px;
}

/* Connector line + vertical timeline on wide screens */
/* 1. MASTER IMAGE SIZE CONTROL */
.pin-image {
    width: 240px;      /* Matches your desktop column width */
    height: 160px;     /* Keeps a consistent horizontal ratio */
    object-fit: cover; /* CROPS TO FIT: This is what fixes the size */
    border-radius: 8px;
    border: 1px solid var(--border-light);
    display: block;
    margin: 0;
    flex-shrink: 0;
}

/* 2. THE DESKTOP GRID (900px+) */
@media (min-width: 900px) {
    .pinboard {
        display: block;
        max-width: 980px;
        margin: 0 auto;
        padding-left: 100px;
        position: relative;
    }

    .pinboard::before {
        content: '';
        position: absolute;
        left: 70px; /* Adjusted to align with dots better */
        top: 20px;
        bottom: 20px;
        width: 2px;
        background: linear-gradient(180deg, rgba(94,58,143,0.95), rgba(125,91,166,0.85));
        z-index: 1;
    }

    .pin {
        display: grid;
        /* column 1: Text | column 2: Image (240px) */
        grid-template-columns: 1fr 240px; 
        gap: 28px;
        align-items: start;
        margin-bottom: 30px;
        padding: 20px;
    }

    /* Push the image to the second column */
    .pin-image {
        grid-column: 2;
    }

    /* Keep the text in the first column */
    .pin-body {
        grid-column: 1;
    }

    /* Move the Timeline Dot to the left of the card */
    .pin::after {
        left: -35px; /* Adjust this to sit exactly on the line */
        top: 25px;
        transform: none;
    }
}

/* 3. MOBILE ADAPTATION (Under 900px) */
@media (max-width: 899px) {
    .pin {
        display: flex;
        flex-direction: column; /* Stack image on top of text */
        margin: 15px auto;
        max-width: 500px;
    }

    .pin-image {
        width: 100%;    /* Image becomes full width of card */
        height: 200px;  /* Slightly taller on mobile for impact */
        margin-bottom: 15px;
    }
}
/* ==================== POETRY SECTION ==================== */
.poetry {
    background: #ffffff;
}

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.poetry-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poetry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.poetry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.poetry-card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.poetry-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--secondary-color);
    margin-left: 5px;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: #fafafa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
  padding-top: 20px;
}


.project-card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    font-weight: 700;
}

.project-tag {
    background: #f5f5f5;
    color: var(--primary-color);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-light);
}

.project-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-links a:hover {
    color: var(--secondary-color);
    margin-left: 5px;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 40px;
    font-weight: 700;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-method i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.contact-method .label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 58, 143, 0.1);
}

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

.contact-form button {
    margin-top: 10px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 20px;
    font-size: 15px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
    top: var(--nav-height);                       /* CHANGED */
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
    height: calc(100vh - var(--nav-height));      /* CHANGED */
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border-light);

    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-link {
        padding: 20px 30px;
        display: block;
        border-bottom: 1px solid var(--border-light);
    }

    .home {
        flex-direction: column;
        text-align: center;
    padding-top: calc(var(--nav-height) + 40px);  /* CHANGED */
    padding-bottom: 60px;
 }

    .home-title {
        font-size: 48px;
    }

    .home-subtitle {
        font-size: 22px;
    }

    .home-decoration {
        margin-top: 40px;
    }

    .book-icon {
        font-size: 120px;
    }

    .home-links {
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 36px;
    }

    .book-spine {
        height: 400px;
    }

    .pages-container {
        height: 400px;
    }

    .page-content {
        padding: 30px 25px;
    }

    .poetry-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: 36px;
    }

    .home-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .nav-container {
        height: 60px;
    }

    .nav-logo a {
        font-size: 22px;
    }

    .nav-menu {
        top: 60px;
    }

    .about-box {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}