@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #3a3a3a;
    min-height: 100vh;
    padding: 20px;
}

h2 {
    text-align: center;
    font-size: 3rem;
    color: #8b0000;
    margin: 1.5rem auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Dancing Script', cursive;
    letter-spacing: 1px;
}

.iru {
    display: block;
    text-align: center;
    font-size: 2.8rem;
    color: #fff;
    margin: 1.5rem auto;
    background: linear-gradient(135deg, #8b0000, #b22222);
    border-radius: 15px;
    padding: 1.5rem 2.5rem;
    width: fit-content;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.3);
    transition: all 0.4s ease;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.iru::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.iru:hover::before {
    left: 100%;
}

.iru:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.4);
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.container .card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    margin: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.container .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.container .card img,
.container .card video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.container .card video {
    height: 80vh;
}

.container .card img:hover,
.container .card video:hover {
    transform: scale(1.03);
}

.container .card a {
    display: block;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.pre1 {
    display: block;
    text-align: center;
    background: linear-gradient(to right, #fff, #fff9f9);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1.2rem;
    font-size: 1.2rem;
    color: #8b0000;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.pre1:hover {
    background: linear-gradient(to right, #fff0f0, #ffebeb);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.15);
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8b0000, #b22222);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.2);
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #b22222, #8b0000);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    color: #aaa;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #8b0000;
}

.modal-content img,
.modal-content video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 1rem;
}

.gallery-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.nav-btn {
    background: linear-gradient(135deg, #8b0000, #b22222);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #b22222, #8b0000);
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    padding: 2rem;
    color: #8b0000;
    font-weight: 500;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.footer a {
    color: #8b0000;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .iru {
        font-size: 2.3rem;
        padding: 1.2rem 2rem;
    }
}

@media screen and (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
    
    .iru {
        font-size: 2rem;
        padding: 1rem 1.8rem;
    }
    
    .container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
        padding: 1rem;
    }
    
    .container .card img {
        height: 220px;
    }

    .container .card video{
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .iru {
        font-size: 1.7rem;
        padding: 0.8rem 1.2rem;
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container .card img
     {
        height: 250px;
    }

    .container .card video{
        height: auto;
    }
    
    .pre1 {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}