/* ==========================================
   CONTACT SECTION - CYBERSECURITY THEME
   ========================================== */

:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-green: #00ff88;
    --accent-cyan: #00d4ff;
    --accent-red: #ff0055;
    --text-light: #e0e0e0;
    --border-color: rgba(0, 255, 136, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   CONTACT SECTION MAIN
   ========================================== */

.contact-section {
    min-height: 100vh;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05), transparent);
    pointer-events: none;
}

/* ==========================================
   SECTION TITLE
   ========================================== */

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.contact-container h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: titleGlowContact 2.5s ease-in-out infinite;
}

@keyframes titleGlowContact {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

.contact-container p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-form {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(10, 14, 39, 0.8));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1),
                inset 0 0 30px rgba(0, 255, 136, 0.05);
    animation: formSlideIn 0.8s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 136, 0.03) 0px,
        rgba(0, 255, 136, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
}

/* ==========================================
   FORM GROUP
   ========================================== */

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* ==========================================
   INPUT & TEXTAREA
   ========================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    resize: vertical;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: rgba(224, 224, 224, 0.4);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(10, 14, 39, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3),
                inset 0 0 10px rgba(0, 255, 136, 0.1);
}

textarea {
    min-height: 120px;
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4),
                0 0 20px rgba(0, 212, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   FORM STATUS MESSAGE
   ========================================== */

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.form-status.show {
    opacity: 1;
}

.form-status.success {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.form-status.error {
    background: rgba(255, 0, 85, 0.1);
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-top: 3px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.5rem;
}

.spinner.active {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-container {
        min-height: auto;
        padding: 2rem 0;
    }

    .contact-container h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .contact-container p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .submit-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-container h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .contact-container p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        padding: 0.75rem 0.875rem;
        font-size: 16px;
    }

    textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }
}
