/* ===== PERSONAL THEME ===== */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --background: #f7fafc;
    --white: #ffffff;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--background);
}

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

/* ===== LAYOUT COMPONENTS ===== */
.content-section {
    padding: 50px 0;
}

.bg-white {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
}

.navbar {
    padding: 0.6rem 0;
}

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

/* Logo */
.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTIONS ===== */
.personal-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    margin-top: 70px;
    padding: 70px 0 50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

/* ===== BUTTONS ===== */
.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.cta-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
}

/* ===== CARD GRIDS ===== */
.highlights-grid,
.projects-grid,
.philosophy-grid,
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card,
.project-card,
.philosophy-card,
.hobby-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover,
.project-card:hover,
.philosophy-card:hover,
.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card {
    border-left: 4px solid var(--primary);
}

.project-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Card Typography */
.highlight-card h3,
.project-card h3,
.philosophy-card h3,
.hobby-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.highlight-card p,
.project-card p,
.philosophy-card p,
.hobby-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== FUN FACTS ===== */
.fun-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fact-item {
    text-align: center;
    padding: 2rem;
}

.fact-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

.fact-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== STORY TIMELINE ===== */
.story-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-year {
    flex: 0 0 100px;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.timeline-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CONTACT STYLES ===== */
.contact-section {
    padding: 50px 0;
    background-color: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form h2 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-info h2 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.info-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.fun-contact-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 15px;
}

.fun-contact-cta h2 {
    margin-bottom: 1rem;
    color: white;
}

.fun-contact-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.personal-footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-subtitle {
    opacity: 0.7;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Hero */
    .personal-hero {
        margin-top: 70px;
        padding: 50px 0 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    /* Mobile Layouts */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-year {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ===== MY RAMBLINGS STYLES ===== */
.scrolls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.scroll-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
}

.scroll-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.scroll-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.scroll-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.scroll-tags {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== BOOK CARD STYLES ===== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.book-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.book-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.book-card .cta-button {
  align-self: flex-start;
}

/* ===== BOOKSHELF STYLES ===== */
.bookshelf {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.book-spine {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--white);
  border-left: 6px solid var(--primary);
  padding: 1rem;
  width: 120px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  position: relative;
}

.book-spine:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.book-spine .cta-button {
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* ===== SCROLL TABLE STYLES ===== */
.scroll-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.scroll-table th,
.scroll-table td {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
  font-size: 1rem;
}

.scroll-table th {
  background-color: var(--background);
  color: var(--text-dark);
  font-weight: 600;
}

.scroll-table td {
  color: var(--text-light);
}

.info-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ===== SCROLL PROGRESS BAR ===== */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  z-index: 9999;
}

.progress-bar {
  height: 6px;
  background: var(--primary);
  width: 0%;
}

/* ===== BACK TO SHELF BUTTON ===== */
.back-to-shelf {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  padding: 12px 16px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 9999;
}

.back-to-shelf:hover {
  transform: scale(1.1);
  background: var(--secondary);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.comment-form input,
.comment-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.comment-form button {
  align-self: flex-start;
}

.feedback-widget {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--text-light);
}

.feedback-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vote-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.vote-btn:hover {
  transform: scale(1.2);
  color: var(--primary);
}

.reactions {
  display: flex;
  gap: 1rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.reaction:hover {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

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

.scroll-card {
  display: block;
  padding: 1.5rem;
  border: 2px solid #ccc;
  border-radius: 12px;
  text-decoration: none;
  background-color: #fff;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.scroll-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

.floating-back-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

.floating-back-button:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.scroll-link {
  display: inline-block;
  font-size: 1.0em;
  font-weight: bold;
  color: #4B3F72;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: shimmer 2s infinite;
}

.scroll-link:hover {
  transform: translateY(-3px) scale(1.05);
  animation: bounce 0.6s;
  color: #8E44AD;
}

/* Shimmer effect */
@keyframes shimmer {
  0% { text-shadow: 0 0 2px #ccc; }
  50% { text-shadow: 0 0 8px #FFD700; }
  100% { text-shadow: 0 0 2px #ccc; }
}

/* Bounce effect */
@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-5px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

