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

body {
    font-family: 'JetBrains Mono', monospace;
    background: 
        radial-gradient(ellipse at top, #1a1611 0%, #0f0d0a 100%),
        linear-gradient(180deg, #2c2419 0%, #1f1b14 50%, #141209 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1000px;
    -webkit-tap-highlight-color: transparent;
}

/* Yıldızlı Gökyüzü Arkaplanı */
canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

main {
    position: relative;
    z-index: 1;
}


.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}

.projects {
    min-height: 100vh;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

/* Havada uçan parçacıklar */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatingDust 15s linear infinite;
    opacity: 0.4;
    filter: blur(0.5px);
}

.floating-star {
    position: absolute;
    font-size: 1rem;
    animation: floatingDust 20s linear infinite reverse;
    opacity: 0.3;
    filter: blur(0.3px);
}

@keyframes floatingDust {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% { 
        transform: translateY(-10vh) translateX(50px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Ana Kütüphane Yapısı */
.library-shelf {
    position: relative;
    z-index: 1;
    background: 
        /* Ana ahşap doku */
        linear-gradient(135deg, 
            #8b4513 0%, 
            #a0522d 15%, 
            #cd853f 30%, 
            #daa520 45%, 
            #b8860b 60%, 
            #8b4513 85%, 
            #654321 100%
        ),
        /* Ahşap damarları */
        repeating-linear-gradient(
            3deg,
            transparent 0px,
            transparent 8px,
            rgba(101, 67, 33, 0.3) 8px,
            rgba(101, 67, 33, 0.3) 12px,
            transparent 12px,
            transparent 25px
        ),
        /* Dikey damarlar */
        repeating-linear-gradient(
            87deg,
            transparent 0px,
            transparent 15px,
            rgba(160, 82, 45, 0.2) 15px,
            rgba(160, 82, 45, 0.2) 17px
        );
    
    opacity: 0.85;
    border-radius: 25px;
    padding: 2rem 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    min-height: 300px;
    
    /* 3D Gölgeler ve Derinlik */
    box-shadow: 
        /* Ana gölge */
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 15px 30px rgba(0, 0, 0, 0.4),
        /* İç gölgeler - ahşabın derinliği */
        inset 0 3px 0 rgba(255, 255, 255, 0.15),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3),
        inset 3px 0 0 rgba(101, 67, 33, 0.4),
        inset -3px 0 0 rgba(0, 0, 0, 0.25),
        /* Kenarlık efektleri */
        inset 0 0 0 4px #654321,
        inset 0 0 0 8px rgba(139, 69, 19, 0.8);
    
    /* 3D Transform */
    transform: perspective(800px) rotateX(5deg);
    transform-origin: bottom center;
}

/* Kütüphane Çerçevesi */
.library-shelf::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: 
        linear-gradient(135deg, 
            #654321 0%, 
            #8b4513 25%, 
            #a0522d 50%, 
            #8b4513 75%, 
            #654321 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 4px,
            rgba(101, 67, 33, 0.2) 4px,
            rgba(101, 67, 33, 0.2) 8px
        );
    border-radius: 30px;
    z-index: -1;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

/* Üst çerçeve */
.library-shelf::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    height: 15px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            #654321 10%, 
            #8b4513 30%, 
            #a0522d 50%, 
            #8b4513 70%, 
            #654321 90%, 
            transparent 100%
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, 0.1) 3px,
            rgba(0, 0, 0, 0.1) 6px
        );
    border-radius: 25px 25px 8px 8px;
    z-index: 5;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ahşap Dokusu Detayları */
.wood-grain-1, .wood-grain-2 {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    z-index: 2;
}

.wood-grain-1 {
    top: 20px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 0, 0, 0.3) 15%, 
            rgba(139, 69, 19, 0.2) 30%,
            rgba(0, 0, 0, 0.25) 50%,
            rgba(160, 82, 45, 0.15) 70%,
            rgba(0, 0, 0, 0.2) 85%, 
            transparent 100%
        );
    border-radius: 1px;
}

.wood-grain-2 {
    top: 35px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(160, 82, 45, 0.25) 20%, 
            rgba(0, 0, 0, 0.2) 40%,
            rgba(139, 69, 19, 0.3) 60%,
            rgba(0, 0, 0, 0.15) 80%, 
            transparent 100%
        );
    border-radius: 1px;
}

/* Kütüphane Başlığı */
.shelf-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.shelf-header h2 {
    font-size: 2.5rem;
    color: #f4e4bc;
    margin-bottom: 1rem;
    text-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(244, 228, 188, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
}

.shelf-header p {
    color: #d2b48c;
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Gerçek Kitap Rafları */
.shelf-rail {
    position: absolute;
    left: 5px;
    right: 5px;
    height: 20px;
    background: 
        /* Ana raf */
        linear-gradient(90deg, 
            transparent 0%, 
            #4a3728 5%, 
            #654321 15%, 
            #8b4513 30%, 
            #a0522d 50%, 
            #8b4513 70%, 
            #654321 85%, 
            #4a3728 95%, 
            transparent 100%
        ),
        /* Ahşap dokusu */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(101, 67, 33, 0.4) 2px,
            rgba(101, 67, 33, 0.4) 4px
        );
    
    border-radius: 10px;
    z-index: 8;
    
    /* 3D Raf efekti */
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.2),
        inset 0 -4px 0 rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(101, 67, 33, 0.6);
    
    /* Perspektif */
    transform: perspective(600px) rotateX(-15deg);
    transform-origin: bottom center;
}

.shelf-rail.bottom-rail {
    top: 90%;
}

.shelf-rail:not(.bottom-rail) {
    top: 90%;
}

/* Raf altı desteği */
.shelf-rail::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 2px;
    right: 2px;
    height: 12px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(74, 55, 40, 0.8) 10%, 
            rgba(101, 67, 33, 0.9) 50%, 
            rgba(74, 55, 40, 0.8) 90%, 
            transparent 100%
        );
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Raf üstü ışık yansıması */
.shelf-rail::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%
    );
    border-radius: 2px;
    z-index: 2;
}

/* Kitap Konteynerları */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    position: relative;
    z-index: 15;
    padding: 1rem 0;
}

/* Tüm kitapların container'ı - gizli */
.all-books-container {
    display: none;
}

/* Otomatik raflar için özel stiller */
.auto-shelf {
    position: relative;
    z-index: 15;
}

/* Mobil için özel transform */
@media (max-width: 480px) {
    .auto-shelf {
        transform: translateY(-16px);
    }
}

/* Tablet için özel transform */
@media (min-width: 481px) and (max-width: 768px) {
    .auto-shelf {
        transform: translateY(-18px);
    }
}

/* PC için özel transform */
@media (min-width: 769px) {
    .auto-shelf {
        transform: translateY(-20px);
    }
}

.auto-rail {
    position: absolute;
    z-index: 8;
}

.top-shelf {
    margin-top: 1rem;
    margin-bottom: 3rem;
    transform: translateY(-45px);
}

.bottom-shelf {
    margin-top: 1rem;
    margin-bottom: 2rem;
    transform: translateY(-55px);
}

/* Gerçekçi Kitaplar */
.book {
    width: 110px;
    height: 160px;
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    text-decoration: none;
    color: inherit;
    z-index: 20;
    
    /* Kitap gölgesi - rafta duruyor */
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    
    /* Hafif perspektif */
    transform: perspective(400px) rotateY(2deg);
}

/* Kitap alt gölgesi - raf üzerinde */
.book::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    height: 8px;
    background: 
        radial-gradient(ellipse at center, 
            rgba(0, 0, 0, 0.6) 0%, 
            rgba(0, 0, 0, 0.3) 40%, 
            transparent 70%
        );
    border-radius: 50%;
    z-index: -1;
}

/* Kitap sol kenarı - derinlik */
.book::after {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 8px;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.6) 0%, 
            rgba(0, 0, 0, 0.3) 50%, 
            rgba(0, 0, 0, 0.4) 100%
        );
    border-radius: 4px 0 0 4px;
    z-index: 0;
    transform: perspective(200px) rotateY(-45deg);
    transform-origin: right center;
}

.book:hover {
    transform: perspective(400px) rotateY(-25deg) translateY(-20px) scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    z-index: 30;
}

.book:hover::before {
    width: 110%;
    height: 12px;
    background: 
        radial-gradient(ellipse at center, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(0, 0, 0, 0.4) 40%, 
            transparent 70%
        );
}

/* Kitap Sırtı */
.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            #654321 0%, 
            #8b4513 25%, 
            #a0522d 50%, 
            #8b4513 75%, 
            #654321 100%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 8px,
            rgba(101, 67, 33, 0.3) 8px,
            rgba(101, 67, 33, 0.3) 10px
        );
    
    border-radius: 4px 0 0 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 3;
    
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.4),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.book-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #f4e4bc;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(244, 228, 188, 0.3);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    line-height: 1.1;
}

.book-author {
    font-size: 0.55rem;
    color: #d2b48c;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

/* Kitap Kapağı */
.book-cover {
    position: absolute;
    left: 20px;
    top: 0;
    width: 90px;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    
    /* Kitap kapağı efektleri */
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        inset -2px 0 4px rgba(0, 0, 0, 0.1);
    
    /* Dokulu yüzey */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
}

.book-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    text-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.book-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Favori Kitaplar */
.book.favorite {
    position: relative;
    z-index: 25;
    border: 3px solid #ffd700;
    border-radius: 12px;
    animation: favoriteGlow 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2);
}

.book.favorite .book-spine {
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.4),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 215, 0, 0.4);
}

.book.favorite .book-cover {
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        inset -2px 0 4px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.favorite-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: 
        linear-gradient(135deg, #ffd700 0%, #ffed4e 30%, #ffd700 60%, #ffed4e 100%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
    color: #8b4513;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 
        0 3px 6px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 215, 0, 0.7),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    animation: favoriteCrownGlow 2.5s ease-in-out infinite;
    z-index: 30;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: rotate(-15deg);
}

@keyframes favoriteGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 50px rgba(255, 215, 0, 0.6),
            0 0 70px rgba(255, 215, 0, 0.4);
    }
}

@keyframes favoriteCrownGlow {
    0%, 100% { 
        box-shadow: 
            0 6px 15px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(255, 215, 0, 0.7),
            inset 0 3px 0 rgba(255, 255, 255, 0.5),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
        transform: rotate(-15deg) scale(1);
    }
    50% { 
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.5),
            0 0 35px rgba(255, 215, 0, 0.9),
            inset 0 4px 0 rgba(255, 255, 255, 0.7),
            inset 0 -3px 0 rgba(0, 0, 0, 0.3);
        transform: rotate(-15deg) scale(1.1);
    }
}

@keyframes favoriteBadgeGlow {
    0%, 100% { 
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(255, 215, 0, 0.5);
    }
    50% { 
        box-shadow: 
            0 2px 12px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(255, 215, 0, 0.7);
    }
}

/* Kitap Renkleri */
.book[data-book="valentine"] .book-cover {
    background: 
        linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #ff1493 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.book[data-book="teklif"] .book-cover {
    background: 
        linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

/* Yakında Gelecek Kitaplar */
.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.7);
}

.coming-soon:hover {
    transform: perspective(400px) rotateY(-15deg) translateY(-10px) scale(1.02);
}

.coming-soon .book-cover {
    background: 
        linear-gradient(135deg, #555 0%, #777 50%, #555 100%), 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%) !important;
}

/* Alt Elemanlar */
.bottom-elements {
    position: relative;
    z-index: 2;
    margin-top: 4rem;
}

.love-message {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0.7;
    font-size: 1rem;
    color: #d2b48c;
    text-align: center;
    animation: loveGlow 8s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes loveGlow {
    0%, 100% { 
        opacity: 0.7; 
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% { 
        opacity: 1; 
        text-shadow: 0 2px 8px rgba(210, 180, 140, 0.3);
    }
}

/* Alt raf renkleri */
.bottom-shelf .book:nth-child(1) .book-cover {
    background: 
        linear-gradient(135deg, #667eea 0%, #764ba2 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.bottom-shelf .book:nth-child(2) .book-cover {
    background: 
        linear-gradient(135deg, #f093fb 0%, #f5576c 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.bottom-shelf .book:nth-child(3) .book-cover {
    background: 
        linear-gradient(135deg, #4facfe 0%, #00f2fe 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.bottom-shelf .book:nth-child(4) .book-cover {
    background: 
        linear-gradient(135deg, #43e97b 0%, #38f9d7 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

/* Otomatik Raf Sistemi */
.books-grid {
    display: grid;
    gap: 2rem;
    justify-items: center;
    position: relative;
    z-index: 15;
    padding: 1rem 0;
    /* PC: 4 kolon */
    grid-template-columns: repeat(4, 1fr);
}

/* Ekstra raflar için */
.shelf-section {
    position: relative;
    margin-bottom: 4rem;
}

.shelf-section:not(:first-child) {
    margin-top: 3rem;
}

/* Her raf kesimi için rail */
.shelf-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 5px;
    right: 5px;
    height: 20px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            #4a3728 5%, 
            #654321 15%, 
            #8b4513 30%, 
            #a0522d 50%, 
            #8b4513 70%, 
            #654321 85%, 
            #4a3728 95%, 
            transparent 100%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(101, 67, 33, 0.4) 2px,
            rgba(101, 67, 33, 0.4) 4px
        );
    
    border-radius: 10px;
    z-index: 8;
    
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.2),
        inset 0 -4px 0 rgba(0, 0, 0, 0.4);
    
    transform: perspective(600px) rotateX(-15deg);
    transform-origin: bottom center;
}

/* Tablet Responsive (768px ve altı) */
@media (max-width: 768px) {
    body {
        perspective: 800px;
    }
    
    .library-shelf {
        padding: 2.5rem 1.8rem;
        transform: perspective(700px) rotateX(4deg);
        margin: 2rem auto;
        border-radius: 20px;
    }
    
    .shelf-header h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .shelf-header p {
        font-size: 1rem;
    }
    
    /* Tablet: 3 kolon - her rafta 3 kitap */
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
        padding: 0.8rem 0;
    }
    
    /* Otomatik raflar için tablet ayarları - JavaScript ile override ediliyor */
    .auto-shelf {
        display: grid;
        gap: 1.8rem;
    }
    
    .top-shelf {
        margin-top: 1.5rem;
        margin-bottom: 3.5rem;
        transform: translateY(-38px);
    }
    
    .bottom-shelf {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        transform: translateY(-45px);
    }
    
    /* Otomatik 3. raf tablet için */
    .shelf-section:nth-child(3) {
        transform: translateY(-52px);
        margin-bottom: 2rem;
    }
    
    .book {
        width: 95px;
        height: 135px;
        transform: perspective(350px) rotateY(3deg);
    }
    
    .book::before {
        bottom: -10px;
        width: 90%;
        height: 6px;
    }
    
    .book::after {
        left: -6px;
        width: 6px;
    }
    
    .book:hover {
        transform: perspective(350px) rotateY(-20deg) translateY(-15px) scale(1.04);
    }
    
    .book-spine {
        width: 22px;
    }
    
    .book-title {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }
    
    .book-author {
        font-size: 0.5rem;
    }
    
    .book-cover {
        left: 18px;
        width: 77px;
        border-radius: 0 10px 10px 0;
    }
    
    .book-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .book-subtitle {
        font-size: 0.6rem;
    }
    
    .shelf-rail {
        height: 18px;
        transform: perspective(500px) rotateX(-12deg);
    }
    
    .floating-elements .floating-heart,
    .floating-elements .floating-star {
        font-size: 1.3rem;
    }
    
    .love-message {
        font-size: 0.9rem;
        gap: 1rem;
        margin-top: 3rem;
    }
    
    .favorite-badge {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        top: -12px;
        right: -12px;
    }
}

/* Mobil Responsive (480px ve altı) */
@media (max-width: 480px) {
    .library-shelf {
        padding: 1.5rem 1.2rem;
        transform: perspective(600px) rotateX(3deg);
        margin: 1.5rem auto;
        border-radius: 18px;
        min-height: 200px;
    }
    
    .shelf-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .shelf-header p {
        font-size: 0.9rem;
    }
    
    /* Mobil: 2 kolon - her rafta 2 kitap */
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0.6rem 0;
    }
    
    /* Otomatik raflar için mobil ayarları - JavaScript ile override ediliyor */
    .auto-shelf {
        display: grid;
        gap: 1.5rem;
    }
    
    .top-shelf {
        margin-top: 1rem;
        margin-bottom: 3rem;
        transform: translateY(-32px);
    }
    
    .bottom-shelf {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        transform: translateY(-38px);
    }
    
    /* Otomatik ekstra raflar mobil için */
    .shelf-section:nth-child(3) {
        transform: translateY(-44px);
        margin-bottom: 1.5rem;
    }
    
    .shelf-section:nth-child(4) {
        transform: translateY(-50px);
        margin-bottom: 1.5rem;
    }
    
    .book {
        width: 85px;
        height: 120px;
        transform: perspective(300px) rotateY(2deg);
    }
    
    .book::before {
        bottom: -8px;
        width: 85%;
        height: 5px;
    }
    
    .book::after {
        left: -5px;
        width: 5px;
    }
    
    .book:hover {
        transform: perspective(300px) rotateY(-18deg) translateY(-12px) scale(1.03);
    }
    
    .book-spine {
        width: 18px;
    }
    
    .book-title {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.3px;
    }
    
    .book-author {
        font-size: 0.45rem;
    }
    
    .book-cover {
        left: 15px;
        width: 70px;
        border-radius: 0 8px 8px 0;
    }
    
    .book-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .book-subtitle {
        font-size: 0.55rem;
        line-height: 1.1;
    }
    
    .shelf-rail {
        height: 16px;
        transform: perspective(400px) rotateX(-10deg);
    }
    
    .floating-elements .floating-heart,
    .floating-elements .floating-star {
        font-size: 1.1rem;
    }
    
    .love-message {
        font-size: 0.8rem;
        gap: 0.8rem;
        margin-top: 2.5rem;
    }
    
    .favorite-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -10px;
        right: -10px;
    }
}

/* Büyük Ekranlar (1024px ve üstü) */
@media (min-width: 1024px) {
    .library-shelf {
        padding: 4.5rem 3.5rem;
        max-width: 1300px;
        transform: perspective(900px) rotateX(6deg);
    }
    
    .shelf-header h2 {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }
    
    .shelf-header p {
        font-size: 1.2rem;
    }
    
    /* Büyük ekran: 4 kolon */
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.8rem;
        padding: 1.2rem 0;
    }
    
    .top-shelf {
        margin-bottom: 4rem;
        transform: translateY(-55px);
    }
    
    .bottom-shelf {
        margin-bottom: 2.5rem;
        transform: translateY(-65px);
    }
    
    .book {
        width: 140px;
        height: 190px;
        transform: perspective(450px) rotateY(3deg);
    }
    
    .book::before {
        bottom: -15px;
        width: 100%;
        height: 10px;
    }
    
    .book::after {
        left: -10px;
        width: 10px;
    }
    
    .book:hover {
        transform: perspective(450px) rotateY(-28deg) translateY(-25px) scale(1.08);
    }
    
    .book-spine {
        width: 32px;
    }
    
    .book-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .book-author {
        font-size: 0.6rem;
    }
    
    .book-cover {
        left: 28px;
        width: 112px;
        border-radius: 0 14px 14px 0;
    }
    
    .book-icon {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .book-subtitle {
        font-size: 0.75rem;
    }
    
    .shelf-rail {
        height: 22px;
        transform: perspective(700px) rotateX(-18deg);
    }
    
    .love-message {
        font-size: 1.1rem;
        gap: 1.4rem;
        margin-top: 4rem;
    }
}

/* Çok Büyük Ekranlar (1440px ve üstü) */
@media (min-width: 1440px) {
    .library-shelf {
        max-width: 1500px;
        padding: 5rem 4rem;
    }
    
    .books-grid {
        gap: 3.2rem;
    }
    
    .book {
        width: 150px;
        height: 200px;
    }
    
    .book-spine {
        width: 35px;
    }
    
    .book-cover {
        left: 30px;
        width: 120px;
    }
}