@media (max-width: 600px) {
    .book-description {
        display: none !important;
    }
}
/* Daniel Chak Homepage - Custom Styles */

:root {
    /* Color Palette */
    --celadon: #A5D0A8;
    --cambridge-blue: #8CADA7;
    --licorice: #110B11;
    --satin-sheen-gold: #B7990D;
    --cream: #F2F4CB;
    
    /* Additional colors for contrast and readability */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--licorice);
    background-color: var(--cream);
    overflow-x: hidden;
}

/* Smooth scrolling with snap */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Sections snap to viewport */
section {
    scroll-snap-align: start;
}

/* Company Logos */
.company-logos {
    margin: 2rem 0;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    padding: 0.5rem 0;
}

.logos-container > * {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.logos-container > *:last-child {
    margin-right: 0 !important;
}

.logos-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

.company-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.company-logo:hover {
    opacity: 1;
}

/* MIT SVG logo specific styling */
svg.company-logo {
    height: 40px;
    width: 120px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--cream) 0%, rgba(165, 208, 168, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23A5D0A8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--licorice);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    color: var(--cambridge-blue);
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid #58504A;
}

/* Buttons */
.btn-primary {
    background-color: var(--satin-sheen-gold);
    border-color: var(--satin-sheen-gold);
    color: var(--white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #9d8208;
    border-color: #9d8208;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(183, 153, 13, 0.3);
}

.btn-outline-secondary {
    border-color: var(--cambridge-blue);
    color: var(--cambridge-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--cambridge-blue);
    border-color: var(--cambridge-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    color: var(--licorice);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background-color: var(--satin-sheen-gold);
    transform: translateX(-50%);
}

/* About Section */
.about-section {
    background-color: var(--white);
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.8;
}



/* Books Section */
.books-section {
    background: linear-gradient(135deg, rgba(165, 208, 168, 0.1) 0%, var(--cream) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.book-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 11, 17, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(165, 208, 168, 0.2);
    height: 350px;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(17, 11, 17, 0.15);
}

.book-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.book-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 350px;
}

.book-title {
    color: var(--licorice);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.book-subtitle {
    color: var(--cambridge-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}

.book-description {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--licorice);
    color: var(--cream);
}

.social-link {
    color: var(--cream);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--satin-sheen-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .about-section {
        height: auto;
        min-height: 100vh;
        padding: 3rem 0;
    }
    
    .books-section {
        height: auto;
        min-height: 100vh;
        padding: 3rem 0;
    }
    
    .book-card {
        height: auto;
        min-height: 300px;
    }
    
    .book-cover-col {
        display: none; /* Hide book covers on mobile */
    }
    
    .book-info {
        padding: 1.5rem;
        height: auto;
    }
    
    .company-logo {
        height: 35px;
    }
    
    .logos-container {
        justify-content: flex-start;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content .lead {
        font-size: 1.1rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .company-logo {
        height: 30px;
    }
    /* No gap override for .logos-container on mobile; keep desktop gap */
    /* Compact mobile book layout */
    .book-cover-col {
        display: block !important;
        flex: 0 0 60px;
        max-width: 60px;
    }
    
    .book-cover {
        width: 50px;
        height: 65px;
        object-fit: cover;
        border-radius: 3px;
        margin: 0.5rem 0.5rem 0.5rem 1rem;
    }
    
    .book-info {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .book-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .book-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .book-description {
        display: none; /* Hide description on mobile */
    }
    
    .book-card {
        height: auto;
        min-height: 120px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animations */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

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