/* Contact Page Styles */
body {
    background-color: #0c1930;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    /* Lock scroll for full-screen feel if content fits */
}

/* Ensure canvas is behind */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.btn-back {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(12, 25, 48, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.contact-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.contact-container {
    width: 100%;
    max-width: 1000px;
    /* Increased for side-by-side */
    padding: 20px;
    position: relative;
    z-index: 2;
    animation: fade-up 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-header {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-logo {
    width: 300px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: logo-entry 1s ease-out 0.5s forwards, logo-float 6s ease-in-out 1.5s infinite;
}

@keyframes logo-entry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.contact-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Content Grid */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
}

/* Info Panel */
.contact-info-panel {
    background: rgba(12, 25, 48, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 212, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.info-intro {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: #00d4ff;
    /* Placeholder icon color */
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.4));
}

.info-item .details {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.info-item .value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.social-links-row {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Glass Form */
.contact-form {
    background: rgba(12, 25, 48, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d4ff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    /* Fixed padding */
    color: #fff;
    font-family: 'Kufam', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: #00d4ff;
    /* padding-left is no longer needed to shift text since we have base padding */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Submit Button */
.btn-submit {
    position: relative;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    font-family: 'Kufam', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #00d4ff;
    color: #0c1930;
    box-shadow: 0 0 20px #00d4ff;
}

/* Response Message (Hidden by default) */
.form-response {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .contact-wrapper {
        align-items: flex-start;
        padding-top: 80px;
    }

    .contact-container {
        max-width: 600px;
        padding: 20px;
    }

    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-panel,
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    body {
        overflow-y: auto;
    }

    .contact-wrapper {
        padding-top: 80px;
    }

    .contact-container {
        padding: 0px 20px 40px 20px;
    }

    .contact-header h1 {
        font-size: 1.8rem;
    }

    .contact-logo {
        width: 150px;
        margin-bottom: 0.5rem;
    }

    .btn-back {
        top: 20px;
        left: 20px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}