/* ===== Global Animations ===== */
/* Entry animations for each section */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When the element becomes visible on the screen */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Home Section (Hero) ===== */
.home-section {
    position: relative;
    height: 100vh;
    background-color: #7a7a7a; 
    background-image: url('../assets/imgs/pages/home/home_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Contact Me button styles */
.btn-contact {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, #3498db, #2f4b68);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-contact:hover {
    background: linear-gradient(45deg, #2f4b68, #3498db);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Projects Section ===== */
/* Hover effect for project cards */
.card:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== About Me Section ===== */
#about .row {
    align-items: center;
}

/* Adjust spacing for About Me image */
#about img {
    margin-bottom: 20px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #about .row {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* ===== Contact Section ===== */
#contact h2 {    
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contact Form Styling */
#contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Contact Form Button */
#send-button {
    width: 100%;
    font-weight: bold;
}

/* ===== Confirmation Modal Styling ===== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Confirmation Icon Animation */
.modal-body i {
    animation: fadeInHome 0.5s ease-in-out;
}

/* Fade-in Animation */
@keyframes fadeInHome {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}