/* Modern Tech Startup CSS for Fusi Pustaka */

:root {
    --primary: #000000;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --accent: #3b82f6;
    --accent-foreground: #ffffff;
    --destructive: #ef4444;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #3b82f6;
    --background: #ffffff;
    --foreground: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Modern Button Styles */
.btn {
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    border-color: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: var(--secondary-foreground);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-youtube {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* Transparent Navigation for Space Background */
.navbar {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
    padding: 20px 0;
    transition: all 0.2s ease;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 22px;
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-nav {
    gap: 8px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Hide Navbar Toggler - Not needed with single menu item */
.navbar-toggler {
    display: none !important;
}

.navbar-toggler-icon-custom {
    display: none !important;
}

/* Mobile navbar adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    
    .navbar-nav {
        flex-direction: row;
        margin-left: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 16px !important;
    }
}

/* Space-Themed Hero Section */
.hero-section {
    background: radial-gradient(ellipse at center, #0f0f23 0%, #000000 70%);
    padding: 120px 0 180px;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Space Background */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Animated Stars */
.stars-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

.stars-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 100px 150px, #fff, transparent),
        radial-gradient(2px 2px at 200px 100px, #eee, transparent);
    background-repeat: repeat;
    background-size: 250px 150px;
    animation: twinkle 3s ease-in-out infinite alternate-reverse;
}

/* Floating Particles */
.particles-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-space 8s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; animation-duration: 8s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; animation-duration: 15s; }
.particle:nth-child(4) { left: 40%; animation-delay: -1s; animation-duration: 10s; }
.particle:nth-child(5) { left: 50%; animation-delay: -6s; animation-duration: 14s; }
.particle:nth-child(6) { left: 60%; animation-delay: -3s; animation-duration: 9s; }
.particle:nth-child(7) { left: 70%; animation-delay: -5s; animation-duration: 11s; }
.particle:nth-child(8) { left: 80%; animation-delay: -7s; animation-duration: 13s; }
.particle:nth-child(9) { left: 90%; animation-delay: -2.5s; animation-duration: 16s; }
.particle:nth-child(10) { left: 15%; animation-delay: -8s; animation-duration: 7s; }
.particle:nth-child(11) { left: 25%; animation-delay: -1.5s; animation-duration: 12s; }
.particle:nth-child(12) { left: 35%; animation-delay: -4.5s; animation-duration: 9s; }
.particle:nth-child(13) { left: 45%; animation-delay: -6.5s; animation-duration: 14s; }
.particle:nth-child(14) { left: 55%; animation-delay: -3.5s; animation-duration: 11s; }
.particle:nth-child(15) { left: 65%; animation-delay: -7.5s; animation-duration: 8s; }
.particle:nth-child(16) { left: 75%; animation-delay: -0.5s; animation-duration: 15s; }
.particle:nth-child(17) { left: 85%; animation-delay: -5.5s; animation-duration: 10s; }
.particle:nth-child(18) { left: 95%; animation-delay: -2.8s; animation-duration: 13s; }
.particle:nth-child(19) { left: 5%; animation-delay: -4.8s; animation-duration: 9s; }
.particle:nth-child(20) { left: 12%; animation-delay: -6.8s; animation-duration: 16s; }

/* Cosmic Rays */
.cosmic-rays {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cosmic-ray {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(100, 200, 255, 0.6), transparent);
    animation: cosmic-ray-move 3s infinite linear;
}

.cosmic-ray:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.cosmic-ray:nth-child(2) {
    left: 60%;
    animation-delay: -1s;
    transform: rotate(-10deg);
}

.cosmic-ray:nth-child(3) {
    left: 85%;
    animation-delay: -2s;
    transform: rotate(25deg);
}

/* Nebula Glow */
.nebula-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 40%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 600px 400px at 80% 60%, rgba(30, 144, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 400px 300px at 60% 20%, rgba(255, 20, 147, 0.06) 0%, transparent 50%);
    animation: nebula-drift 20s ease-in-out infinite alternate;
}

.hero-content {
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    max-width: 1000px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    text-shadow: 0 0 10px rgba(203, 213, 225, 0.5);
    animation: subtitle-fade 2s ease-in-out infinite alternate;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Space Footer */
.space-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0;
    z-index: 10;
}

.footer-content-space {
    text-align: center;
}

.company-info {
    color: rgba(255, 255, 255, 0.9);
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.company-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-email,
.contact-phone {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-section {
        padding: 120px 0 240px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title {
        margin-top: 40px;
    }
    
    .space-footer {
        position: relative;
        padding: 40px 0 30px;
        margin-top: auto;
        bottom: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 60px;
    }
    
    .hero-buttons .btn {
        width: 200px;
        max-width: 90%;
    }
}

/* Particle Background */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

/* Science Icons Animation */
.science-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 1s; }
.floating-icon:nth-child(3) { animation-delay: 2s; }
.floating-icon:nth-child(4) { animation-delay: 3s; }
.floating-icon:nth-child(5) { animation-delay: 4s; }
.floating-icon:nth-child(6) { animation-delay: 5s; }

/* Modern Card Styles */
.card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    
}

.card:hover {
    
    border-color: var(--ring);
}

.book-card {
    height: 100%;
    padding: 24px;
}

.book-icon {
    width: 64px;
    height: 64px;
    background: var(--muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--muted-foreground);
}

.book-detail-card {
    padding: 32px;
}

.book-detail-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--ring);
    transform: translateY(-1px);
}

.book-cover-placeholder {
    background: var(--muted);
    min-height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.book-info {
    background: var(--muted);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

/* Modern Feature Cards */
.feature-box {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--ring);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
    color: var(--accent);
}

/* Modern Value Cards */
.value-card {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

.value-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--ring);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: var(--accent);
}

/* Modern Team Cards */
.team-card {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

.team-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--ring);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: var(--accent);
}

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

/* Space-Themed Animations */
@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes float-space {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

@keyframes cosmic-ray-move {
    0% {
        transform: translateY(-100vh) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}

@keyframes nebula-drift {
    0% {
        transform: translateX(-20px) translateY(-10px);
    }
    100% {
        transform: translateX(20px) translateY(10px);
    }
}

@keyframes title-glow {
    0% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(147, 197, 253, 0.3),
            0 0 90px rgba(147, 197, 253, 0.1);
    }
}

@keyframes subtitle-fade {
    0% {
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(203, 213, 225, 0.3);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(203, 213, 225, 0.6);
    }
}

/* Legacy Animations for compatibility */
@keyframes titleGlow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 
                     0 0 20px rgba(243, 156, 18, 0.3);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bookPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.005);
    }
}

/* Modern Typography Classes */
.text-lg {
    font-size: 18px;
    line-height: 1.5;
}

.text-sm {
    font-size: 14px;
    line-height: 1.4;
}

.text-xs {
    font-size: 12px;
    line-height: 1.3;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-muted {
    color: var(--muted-foreground);
}

/* Modern Section Styles */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 18px;
    color: var(--muted-foreground);
}

/* Modern Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}
    
    /* Stack book info vertically on mobile */
    .katalog-info-row {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    /* Stack about section on mobile */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

/* Modern Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fed7aa;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* Utility Classes */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }

/* Modern Responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 80px 0 100px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: clamp(36px, 10vw, 64px) !important;
        margin-bottom: 24px;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
        margin-bottom: 32px;
    }
    
    .hero-buttons {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Reduce particle density on mobile */
    .particle:nth-child(n+11) {
        display: none;
    }
    
    .cosmic-ray:nth-child(2),
    .cosmic-ray:nth-child(3) {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-sm {
        padding: 40px 0;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--muted);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--foreground);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--foreground);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Footer button styling for light background */
.footer .btn-outline {
    color: var(--muted-foreground);
    border: 2px solid var(--border);
    background-color: transparent;
}

.footer .btn-outline:hover {
    color: var(--foreground);
    border-color: var(--foreground);
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Make menu and category lists display inline on mobile */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
    
    /* Hero and other responsive styles */
    .hero-section {
        min-height: 90vh;
        padding: 100px 0 120px;
    }
    
    .hero-title {
        font-size: clamp(42px, 7vw, 72px) !important;
        margin-bottom: 28px;
    }
    
    .hero-subtitle {
        font-size: 20px !important;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        gap: 20px;
    }
    
    .hero-buttons .btn {
        min-width: 200px;
    }
    
    /* Reduce some particles on tablets */
    .particle:nth-child(n+16) {
        display: none;
    }
    
    .science-icons {
        display: none;
    }
    
    .book-cover-placeholder {
        min-height: 200px;
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

/* Custom Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

/* Loading Animation for Future Use */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Book Catalog Responsive Layout */
.book-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.book-cover-container {
    width: 100%;
}

.book-cover-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fallback-cover {
    display: none;
    width: 160px;
    height: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    .book-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .book-cover-container {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .fallback-cover {
        width: 200px;
        height: 250px;
        margin: 0 auto;
    }
    
    .katalog-info-row {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .book-layout {
        gap: 16px;
    }
    
    .book-cover-container {
        max-width: 160px;
    }
    
    .fallback-cover {
        width: 160px;
        height: 200px;
    }
    
    .katalog-info-row {
        flex-direction: column;
        gap: 12px !important;
        align-items: center;
    }
}