/* Welcome Page Enhancements - Only affects welcome page */

/* Enhanced Hero Section */
.ud-hero {
    background: linear-gradient(135deg, #3056d3 0%, #179bee 50%, #13c296 100%);
    position: relative;
    overflow: hidden;
}

.ud-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

.ud-hero-content {
    position: relative;
    z-index: 2;
}

.ud-hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

.ud-hero-desc {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@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);
    }
}

.ud-hero-brands-wrapper img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ud-hero-brands-wrapper img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Enhanced Header */
.ud-header {
    backdrop-filter: blur(10px);
    background: rgba(48, 86, 211, 0.1) !important;
    transition: all 0.3s ease;
}

.sticky {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-item > a {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item > a::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.navbar-nav .nav-item > a:hover::after,
.navbar-nav .nav-item > a.active::after {
    width: 60%;
}

.sticky .navbar-nav .nav-item > a::after {
    background: var(--primary-color);
}

.navbar-btn .ud-login-btn {
    border-radius: 50px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-btn .ud-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced FAQ Section */
.ud-faq {
    background: linear-gradient(180deg, #f3f4fe 0%, #ffffff 100%);
}

.ud-single-faq {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ud-single-faq:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(48, 86, 211, 0.15);
    border-color: rgba(48, 86, 211, 0.2);
}

.ud-faq-btn {
    transition: all 0.3s ease;
}

.ud-faq-btn:hover {
    color: var(--primary-color) !important;
}

.ud-faq-btn span.icon {
    transition: all 0.3s ease;
}

.ud-faq-btn:hover span.icon {
    background: rgba(48, 86, 211, 0.15);
    transform: scale(1.1);
}

.ud-faq-body {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Enhanced Contact Section */
.ud-contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.ud-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 50%,
            rgba(48, 86, 211, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(23, 158, 238, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.ud-contact-title {
    position: relative;
}

.ud-contact-title span {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3056d3, #179bee);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 20px;
}

.ud-contact-title h2 {
    background: linear-gradient(135deg, #3056d3, #179bee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.ud-single-info {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ud-single-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(48, 86, 211, 0.15);
    border-color: rgba(48, 86, 211, 0.2);
}

.ud-info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3056d3, #179bee);
    border-radius: 15px;
    color: var(--white);
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(48, 86, 211, 0.3);
    transition: all 0.3s ease;
}

.ud-single-info:hover .ud-info-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(48, 86, 211, 0.4);
}

.ud-info-meta h5 {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.ud-info-meta p {
    color: var(--body-color);
    line-height: 1.8;
}

/* Enhanced Footer */
.ud-footer {
    background: linear-gradient(135deg, #212b36 0%, #1a2332 100%);
    position: relative;
    overflow: hidden;
}

.ud-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.ud-widget {
    position: relative;
    z-index: 1;
}

.ud-widget-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.ud-widget-socials a:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(48, 86, 211, 0.4);
}

.ud-widget-links a {
    transition: all 0.3s ease;
    position: relative;
    padding-right: 0;
}

.ud-widget-links a::before {
    content: "→";
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.ud-widget-links a:hover::before {
    opacity: 1;
    right: -15px;
}

.ud-widget-links a:hover {
    padding-right: 20px;
    color: var(--primary-color) !important;
}

/* Enhanced Section Title */
.ud-section-title {
    position: relative;
}

.ud-section-title span {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3056d3, #179bee);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(48, 86, 211, 0.3);
}

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

/* Enhanced Back to Top Button */
.back-to-top {
    background: linear-gradient(135deg, #3056d3, #179bee);
    box-shadow: 0 4px 15px rgba(48, 86, 211, 0.4);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(48, 86, 211, 0.5);
}

/* Enhanced Shapes Animation */
.ud-hero-image .shape {
    animation: float 6s ease-in-out infinite;
}

.ud-hero-image .shape.shape-1 {
    animation-delay: 0s;
}

.ud-hero-image .shape.shape-2 {
    animation-delay: 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Enhancements */
@media (max-width: 767px) {
    .ud-hero {
        padding-top: 120px;
    }

    .ud-single-info {
        padding: 20px;
        margin-bottom: 20px;
    }

    .ud-info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Loading Animation for Hero Content */
.ud-hero-content {
    animation: fadeIn 1s ease-out;
}

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

/* Enhanced Button Styles */
.ud-main-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ud-main-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.ud-main-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Card Hover Effects */
.ud-single-faq,
.ud-single-info {
    position: relative;
    overflow: hidden;
}

.ud-single-faq::before,
.ud-single-info::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(48, 86, 211, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ud-single-faq:hover::before,
.ud-single-info:hover::before {
    opacity: 1;
}

/* Enhanced Hero Brand Image */
.ud-hero-brands-wrapper {
    position: relative;
    z-index: 2;
}

.ud-hero-brands-wrapper img {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Enhanced Section Transitions */
section {
    position: relative;
    overflow: hidden;
}

/* Enhanced Typography */
.ud-section-title h2 {
    position: relative;
    display: inline-block;
}

.ud-section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3056d3, #179bee);
    border-radius: 2px;
}

/* Smooth Page Transitions */
body {
    animation: pageLoad 0.5s ease-out;
}

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

/* Enhanced Footer Bottom */
.ud-footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ud-footer-bottom-left a,
.ud-footer-bottom-right {
    transition: all 0.3s ease;
}

.ud-footer-bottom-left a:hover {
    transform: translateX(-3px);
}

/* Enhanced Shape Animations */
.ud-hero-image {
    position: relative;
}

.ud-hero-image .shape {
    opacity: 0.6;
    filter: blur(1px);
}

/* Enhanced FAQ Accordion */
.accordion-collapse {
    transition: all 0.3s ease;
}

.ud-faq-body {
    color: var(--body-color);
    line-height: 1.8;
}

/* Enhanced Contact Info Cards */
.ud-contact-info-wrapper {
    gap: 20px;
}

/* Enhanced Responsive Design */
@media (max-width: 991px) {
    .ud-hero::before {
        animation-duration: 30s;
    }

    .ud-single-info {
        flex-direction: column;
        text-align: center;
    }

    .ud-info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Enhanced Loading States */
.ud-hero-content,
.ud-hero-brands-wrapper,
.ud-hero-image {
    will-change: transform;
}

/* Enhanced Accessibility */
.ud-main-btn:focus,
.ud-faq-btn:focus {
    outline: 3px solid rgba(48, 86, 211, 0.5);
    outline-offset: 2px;
}

/* Enhanced Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .wow {
        animation-duration: 1s;
    }
}

/* Enhanced Gradient Overlays */
.ud-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 1;
}
