/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    animation: logoSmooth 3s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes logoSmooth {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    20% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }

    80% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }

    100% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
}

/* Footer Styles */
.footer {
    background: #8B0000;
    background-image:
        linear-gradient(45deg, #8B0000 25%, transparent 25%, transparent 75%, #8B0000 75%, #8B0000),
        linear-gradient(45deg, #8B0000 25%, transparent 25%, transparent 75%, #8B0000 75%, #8B0000);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: white;
    padding: 40px 0 20px;
    /* margin-top: 60px; */
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px);
    pointer-events: none;
}

.footer-content {
    width: 50%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
}

.social-link.tiktok:hover {
    background: #000000;
    border-color: #000000;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 25px;
    margin-top: 20px;
}

.copyright p {
    margin: 8px 0;
    font-size: 15px;
    color: white !important;
    font-weight: 400;
}

.powered-by {
    margin-top: 15px !important;
}

.devzur-link {
    color: #ffd700 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.devzur-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
        /* margin-top: 40px; */
    }

    .footer-content {
        width: 100%;
        padding: 0 20px;
    }

    .social-links {
        gap: 20px;
        margin-bottom: 25px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .copyright p {
        font-size: 13px;
    }
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* Red brick background with texture */
    background:
        linear-gradient(45deg, #8B0000 25%, transparent 25%),
        linear-gradient(-45deg, #8B0000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #8B0000 75%),
        linear-gradient(-45deg, transparent 75%, #8B0000 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #A52A2A;
    min-height: 100vh;
}

/* Main container */
.container {
    width: 50%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Logo section */
.logo-section {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #dc2626;
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, rgba(220, 38, 38, 0.06), transparent, rgba(220, 38, 38, 0.06), transparent);
    animation: logoRotate 8s linear infinite;
}

.logo-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoRipple 3s ease-out infinite;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.slogan {
    font-size: 20px;
    color: #333;
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* Images section */
.images-section {
    padding: 30px;
}

@media (max-width: 768px) {
    .images-section {
        background-color: #9b283a;
    }
}

.image-item {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.02);
}

/* Responsive design */
@media (max-width: 1200px) {
    .container {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .logo {
        max-width: 350px;
    }

    .slogan {
        font-size: 22px;
    }

    .images-section {
        padding: 15px;
    }

    .image-item {
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .logo-section {
        padding: 30px 15px 15px;
    }

    .logo {
        max-width: 120px;
    }

    .slogan {
        font-size: 14px;
    }

    .images-section {
        padding: 10px;
    }

    .image-item {
        margin: 10px 0;
        border-radius: 8px;
    }
}

/* Admin styles */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.admin-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}