/* --- CORE THEME & RESET --- */
* {
    box-sizing: border-box;
    outline: none;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #0a0a0a;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* --- BACKGROUND GLOWS (Responsive) --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: pulseOrb 10s infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    /* Responsive width */
    height: 50vw;
    /* Responsive height */
    max-width: 600px;
    max-height: 600px;
    background: var(--accent-purple, #9d00ff);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--accent-cyan, #00fff2);
}

@keyframes pulseOrb {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* --- NAVBAR --- */
.navbar {
    padding: 20px 0;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 10;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
}

.dot {
    color: var(--accent-cyan, #00fff2);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95rem;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-cyan, #00fff2);
}

/* Dashboard Link Specifics */
.nav-links a[href='/dashboard'] {
    color: #fff;
    font-weight: 700;
    position: relative;
}

.nav-links a[href="/dashboard"]:hover {
    /* FIX: Changed 990 to 1.05 to prevent explosion */
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 15px var(--accent-cyan);
    color: var(--accent-cyan);
}

/* --- HAMBURGER MENU (For Mobile) --- */
.hamburger {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- MAIN LAYOUT --- */
.contact-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1100px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    /* Desktop: 2 Columns */
    grid-template-columns: 1fr 1.5fr;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LEFT SIDE: INFO --- */
.contact-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 242, 0.1);
    border: 1px solid rgba(0, 255, 242, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-cyan, #00fff2);
    margin-right: 20px;
    transition: 0.3s;
    flex-shrink: 0;
    /* Prevent icon squishing */
}

.info-item:hover .icon-box {
    background: var(--accent-cyan, #00fff2);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.4);
    transform: translateY(-3px);
}

.info-text h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #fff;
}

.info-text span {
    color: #aaa;
    font-size: 0.9rem;
    word-break: break-all;
    /* Prevents long emails breaking layout */
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* --- RIGHT SIDE: FORM --- */
.contact-form-wrapper {
    padding: 50px;
    position: relative;
}

/* Neon Top Border Animation */
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan, #00fff2), var(--accent-purple, #9d00ff), transparent);
    animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    resize: none;
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: #666;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
    padding: 0 5px;
}

/* Floating Label Effects */
.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-color: var(--accent-cyan, #00fff2);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.1);
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--accent-cyan, #00fff2);
    background: #0a0a0a;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent-purple, #9d00ff), var(--accent-cyan, #00fff2));
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 242, 0.3);
}

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

/* Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Messages */
.status-msg {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.status-msg.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-msg.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff3333;
    border: 1px solid #ff3333;
}


@media (max-width: 900px) {
    .contact-section {
        padding-top: 100px;

    }

    .container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .contact-info {
        padding: 40px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }

    .info-item {
        justify-content: center;

        text-align: left;
    }

    .social-links {
        justify-content: center;
        margin-top: 30px;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

}

@media (max-width: 480px) {
    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .icon-box {
        margin-right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}   