* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: black;
    min-height: 100vh;
    padding: 2rem 0;
    height: 100vh;
}

/* Ana GIF - 832x134 */
.main-gif {
    margin: 0 auto 3rem auto;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
    position: relative;
}

.main-gif:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}

.main-gif img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.main-gif::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-gif:hover::before {
    opacity: 1;
}

/* 2'li Grid Sistem */
.gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gif-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    background: white;
    position: relative;
}

.gif-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.gif-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.gif-item:hover img {
    transform: scale(1.08);
}

.gif-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gif-item:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem 0;
    }
    
    .main-gif {
        margin: 0 auto 2rem auto;
        max-width: 95%;
    }
    
    .gif-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .gif-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem 0;
    }
    
    .main-gif {
        margin: 0 auto 1.5rem auto;
        border-radius: 15px;
    }
    
    .main-gif img {
        border-radius: 15px;
    }
    
    .gif-grid {
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .gif-item {
        border-radius: 15px;
    }
    
    .gif-item img {
        border-radius: 15px;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-gif {
    animation: fadeInUp 0.8s ease-out;
}

.gif-item {
    animation: fadeInUp 0.6s ease-out;
}

.gif-item:nth-child(1) { animation-delay: 0.1s; }
.gif-item:nth-child(2) { animation-delay: 0.2s; }
.gif-item:nth-child(3) { animation-delay: 0.3s; }
.gif-item:nth-child(4) { animation-delay: 0.4s; }
.gif-item:nth-child(5) { animation-delay: 0.5s; }
.gif-item:nth-child(6) { animation-delay: 0.6s; }

/* Hover Effects */
.main-gif, .gif-item {
    cursor: pointer;
}

/* Focus States for Accessibility */
img:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .main-gif, .gif-item {
        box-shadow: none;
        transform: none;
    }
}
