:root {
    --primary-color: #003366;
    --secondary-color: #001f3f;
    --accent-color: #00ccff;
    --text-color: #ffffff;
    --background-color: #000033;
}

/* Floating Home Button */
.floating-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    cursor: none;
}

.bubble-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    animation: float 3s ease-in-out infinite;
}

.bubble-shine {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 25%;
    height: 25%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.floating-home i {
    color: var(--text-color);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.floating-home:hover i {
    transform: scale(1.2);
}

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

.contact-main {
    min-height: 100vh;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('8.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 8rem 4rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    align-items: center;
}

.text-content {
    padding-top: 4rem;
}

.mega-text {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.accent-text {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #ffffff;
    margin-top: 2rem;
    max-width: 400px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 2rem);
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: clamp(0.8rem, 1.5vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: clamp(100px, 15vw, 150px);
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 0.5rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.8);
    color: var(--accent-color);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
}

.form-group select:not(:placeholder-shown) {
    color: var(--text-color);
}

.form-group select option {
    background: var(--background-color);
    color: var(--text-color);
}

.submit-btn {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    opacity: 0.9;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .fa-spinner {
    margin-left: 0.5rem;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.form-message.success {
    display: block;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.form-message.error {
    display: block;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.info-item:hover {
    color: var(--accent-color);
}

.info-item i {
    font-size: 1.4rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1200px) {
    .contact-content {
        grid-template-columns: 1fr;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        text-align: center;
    }

    .text-content {
        padding-top: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .subtitle {
        margin: 1rem auto 0;
    }

    .contact-form-container {
        margin: 2rem auto 0;
    }
}

@media (max-width: 768px) {
    .video-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        top: 0;
        left: 0;
    }

    .contact-main {
        min-height: 100vh;
        position: relative;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .contact-content {
        padding: 6rem 1.5rem 2rem;
        gap: 1.5rem;
    }

    .text-content {
        padding-top: 0;
    }

    .contact-form-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 2rem auto;
    }

    .info-item {
        font-size: 1rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 4rem 1rem 1rem;
    }

    .contact-form-container {
        padding: 1.2rem;
    }

    .form-group {
        margin-bottom: 0.3rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .contact-info {
        margin: 1.5rem auto;
    }

    .info-item {
        font-size: 0.9rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .video-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contact-content {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .text-content {
        padding-top: 0;
    }

    .contact-form-container {
        padding: 1.2rem;
    }

    .form-group textarea {
        min-height: 80px;
    }
}

/* Optimize for touch devices */
@media (hover: none) and (pointer: coarse) {
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        background: rgba(255, 255, 255, 0.15);
    }

    .submit-btn:active {
        transform: scale(0.98);
    }
}