/* ===== Enhanced Contact Section ===== */
.contact-hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0e2a 0%, #1a237e 50%, #6a1b9a 100%);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(106, 27, 154, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(26, 35, 126, 0.05) 0%, transparent 50%);
    animation: cosmicFloat 20s infinite linear;
    z-index: 1;
}

@keyframes cosmicFloat {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.contact-left {
    color: var(--white);
    animation: slideInLeft 1.2s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--primary-dark);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.contact-left h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.contact-left h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 500px;
}

.contact-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.contact-box:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-box:nth-child(2) {
    animation-delay: 0.4s;
}

.contact-box:nth-child(3) {
    animation-delay: 0.6s;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.7s ease;
}

.contact-box:hover::before {
    left: 100%;
}

.contact-box:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.contact-box h3 {
    color: var(--secondary-gold);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    position: relative;
}

.contact-box h3::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-gold);
    border-radius: 1px;
}

.contact-box p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 15px;
}

.contact-box a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
}

.contact-box a:hover {
    color: var(--secondary-gold);
    transform: translateX(5px);
}

.contact-box a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-gold);
    transition: width 0.3s ease;
}

.contact-box a:hover::after {
    width: 100%;
}

.contact-right {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: slideInRight 1.4s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(106, 27, 154, 0.05) 100%);
    z-index: -1;
}

.contact-right h2 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
}

.contact-right h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.contact-right form {
    display: grid;
    gap: 25px;
}

.contact-right input,
.contact-right select {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-right input:focus,
.contact-right select:focus {
    outline: none;
    border-color: var(--secondary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.contact-right input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.contact-right select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d4af37' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 50px;
}

.contact-right button {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--primary-dark);
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.contact-right button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.contact-right button:hover::before {
    left: 100%;
}

.contact-right button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.6);
}

.contact-right button:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0;
    }

    .contact-wrapper {
        gap: 40px;
    }

    .contact-left h1 {
        font-size: 2.5rem;
    }

    .contact-right {
        padding: 35px;
    }

    .contact-right h2 {
        font-size: 2rem;
    }

    .contact-box {
        padding: 25px;
    }
}

/* ===== Floating Elements ===== */
.contact-hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 20px;
    height: 20px;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: floatElements 6s infinite ease-in-out;
    z-index: 1;
}

.contact-hero::after {
    animation-delay: 0s;
}

@keyframes floatElements {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Additional floating elements */
.contact-hero .floating-1,
.contact-hero .floating-2,
.contact-hero .floating-3 {
    position: absolute;
    border-radius: 50%;
    animation: floatElements 8s infinite ease-in-out;
    z-index: 1;
}

.contact-hero .floating-1 {
    top: 30%;
    left: 15%;
    width: 15px;
    height: 15px;
    background: rgba(106, 27, 154, 0.4);
    animation-delay: 2s;
}

.contact-hero .floating-2 {
    top: 60%;
    right: 20%;
    width: 10px;
    height: 10px;
    background: rgba(26, 35, 126, 0.5);
    animation-delay: 4s;
}

.contact-hero .floating-3 {
    top: 80%;
    left: 25%;
    width: 12px;
    height: 12px;
    background: rgba(212, 175, 55, 0.3);
    animation-delay: 6s;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}
