/* Enhanced Custom Styles for Visa Check Application */

:root {
    --primary-color: #dc3545;
    --secondary-color: #892712;
    --accent-color: goldenrod;
    --dark-overlay: rgba(0, 0, 0, 0.7);
    --light-overlay: rgba(0, 0, 0, 0.9);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Header Sticky Animation */
.sticky-top {
    transition: all 0.3s ease-in-out;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Cover Section Enhancement */
.cover {
    position: relative;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.cover h1 {
    animation: fadeInDown 1s ease-in-out;
}

.cover p {
    animation: fadeInUp 1.2s ease-in-out;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Shadow Effect */
.shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Form Inputs */
.form-control {
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Image Hover Effects */
.about-images img {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.about-images img:hover {
    transform: scale(1.05);
}

/* Section Backgrounds */
section {
    position: relative;
    background-attachment: fixed;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

/* Social Icons */
.bi {
    transition: all 0.3s ease;
}

.bi:hover {
    transform: scale(1.2);
    color: var(--accent-color) !important;
}

/* Loading Spinner */
.spinner-border {
    display: none;
}

.loading .spinner-border {
    display: inline-block;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Success/Error Messages */
.alert {
    animation: slideDown 0.5s ease;
    border-radius: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Newsletter Input */
.footerInput {
    background-color: rgba(255, 255, 255, 0.9);
}

.footerInput:focus {
    background-color: white;
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#scrollToTop:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

#scrollToTop.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Image Grid Enhancement */
.about-images {
    perspective: 1000px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader.active {
    display: flex;
}

/* Text Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Navbar Enhancement */
.sticky-top.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
