/* Custom CSS for BcaiTech Contact Page */

/* General Styles */
:root {
    --primary-color: #dd2f30;
    --secondary-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #dd2f30;
    --bg-gradient: linear-gradient(135deg, var(--primary-color), #861d1d);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Animation for Logo */
.logo {
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.logo-text {
    font-weight: bold;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Section */
.hero-section {
    background-image: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Contact Form */
.contact-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating>label {
    padding: 0.75rem 1rem;
}

/* Button Animation */
.pulse-button {
    position: relative;
    background: var(--bg-gradient);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pulse-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.pulse-button:active {
    transform: translateY(0);
}

.pulse-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 1.5s infinite;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.button-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.pulse-button:hover .button-icon {
    transform: translateX(5px);
}

/* Contact Info Section */
.contact-info {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.contact-item:hover .icon-box {
    transform: scale(1.1) rotate(10deg);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Success Animation */
.success-animation {
    margin: 20px auto;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-left: auto;
    margin-right: auto;
}

.checkmark-circle .background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-color);
    position: absolute;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 100ms;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 40px;
    width: 20px;
    transform-origin: left top;
    border-right: 7px solid var(--success-color);
    border-top: 7px solid var(--success-color);
    border-radius: 2px !important;
    content: '';
    left: 25px;
    top: 40px;
    position: absolute;
}

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

    20% {
        height: 0;
        width: 20px;
        opacity: 1;
    }

    40% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }

    100% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section h2 {
        font-size: 2rem;
    }

    .contact-info {
        margin-top: 2rem;
    }
}

/* RTL Specific Adjustments */
.rtl .button-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

.rtl .pulse-button:hover .button-icon {
    transform: translateX(-5px);
}

/* AOS Animation Adjustments */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}




/* Logo Container */
.logo-container {
    position: relative;
    margin-bottom: 2rem;
}

/* Enhanced Logo */
.enhanced-logo {
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.enhanced-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Brand Name */
.logo-brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0 5px 0;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Tagline */
.logo-tagline {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 0;
    letter-spacing: 1px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enhanced-logo {
        max-width: 80px;
    }

    .logo-brand-name {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .logo-tagline {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .enhanced-logo {
        max-width: 70px;
    }

    .logo-brand-name {
        font-size: 1.8rem;
    }

    .logo-tagline {
        font-size: 0.8rem;
    }
}


.bg-success {
    background-color: var(--success-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}