/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar Styles */
.top-bar {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.website-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%; /* Make it a circle */
    object-fit: cover;
}

.website-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.custom-button:hover {
    background-color: #0056b3;
}

/* Main Content Styles */
.main-content {
    padding: 40px 0;
}

.animated-section {
    background-color: #fff;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Hidden by default for animations */
    transform: translateY(20px); /* Initial position for slide-up */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.animated-section h2 {
    color: #007bff;
    margin-top: 0;
    font-size: 2em;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.animated-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: scale(0.9); /* Initial state for zoom-in */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.animated-image.visible {
    transform: scale(1);
    opacity: 1;
}

/* Specific Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes rotateIn {
    from { transform: rotateY(90deg) scale(0.8); opacity: 0; }
    to { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.fade-in.visible {
    animation: fadeIn 1s ease-out forwards;
}

.slide-up.visible {
    animation: slideUp 1s ease-out forwards;
}

.rotate-in.visible {
    animation: rotateIn 1s ease-out forwards;
}

.zoom-in.visible {
    animation: zoomIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* Bottom Bar Styles */
.bottom-bar {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.footer-text {
    margin: 0;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-left {
        margin-bottom: 15px;
    }

    .website-title {
        font-size: 1.5em;
    }

    .custom-button {
        width: 100%;
        padding: 12px 0;
    }

    .animated-section {
        padding: 20px;
    }

    .animated-section h2 {
        font-size: 1.8em;
    }

    .image-grid {
        grid-template-columns: 1fr; /* Stack images on mobile */
    }
}

@media (max-width: 480px) {
    .website-icon {
        width: 30px;
        height: 30px;
    }

    .website-title {
        font-size: 1.2em;
    }

    .footer-text {
        font-size: 0.8em;
    }
}