/* Custom CSS for Bookcase Website */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f8fafc;
    --text-color: #334155;
    --text-muted: #64748b;
    --success-color: #10b981;
    --border-color: #e2e8f0;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 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 1000 1000"><defs><pattern id="books" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="none"/><path d="M20,20h15v60h-15z M40,20h15v60h-15z M60,20h15v60h-15z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1000" height="1000" fill="url(%23books)"/></svg>') center/400px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-phone {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-phone img {
    max-width: 300px;
    width: 100%;
    height: auto;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.hero-phone img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Navigation */
.navbar-brand img {
    border-radius: 6px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Features Detailed */
.features-detailed {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.feature-section h3 {
    color: var(--text-color);
    font-weight: 600;
}

/* Tech Stack */
.tech-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.tech-item h6 {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

/* Screenshot Gallery */
#screenshot-gallery .col-lg-3 {
    transition: transform 0.3s ease;
}

#screenshot-gallery .col-lg-3:hover {
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.screenshot-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.screenshot-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Download Buttons */
.download-buttons .btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-phone {
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .features-detailed {
        padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1rem 0;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .download-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Modal for Screenshot Gallery */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Section Spacing */
section {
    position: relative;
}

/* Background Patterns */
.bg-light {
    background-color: #f8fafc !important;
}

/* Success Color Override */
.text-success {
    color: var(--success-color) !important;
}

/* Custom List Styling */
.list-unstyled li {
    padding: 0.25rem 0;
}

/* Navbar Transparency on Scroll */
.navbar.scrolled {
    background-color: rgba(99, 102, 241, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Footer Styling */
footer {
    border-top: 1px solid #374151;
}

/* Utility Classes */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}
