* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: gilroy, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #000407 0%, #000000 50%, #00050a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* NAVIGATION */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 5, 17, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

#nav h3 {
    font-size: 24px;
    font-weight: 600;
}

#nav h3 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

#nav h3 a:hover {
    color: #5865F2;
}

#nav h3 b {
    font-weight: 700;
}

.back-button {
    color: #5865F2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border: 2px solid #5865F2;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
}

#main {
    padding-top: 80px;
    position: relative;
}

/* ─── HERO SECTION ─── */
.contact-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 80px;
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* Subtle grain texture overlay */
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
}

/* Animated glow orbs */
.contact-hero::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.12), transparent 65%);
    border-radius: 50%;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(80px);
    animation: heroOrb 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroOrb {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 100px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, #5865F2, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 400;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.email-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 24px;
    line-height: 1.8;
}

.email-link {
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #5865F2;
    transition: width 0.3s ease;
}

.email-link:hover {
    color: #7c8aff;
}

.email-link:hover::after {
    width: 100%;
}

/* ─── FORM SECTION ─── */
.form-section {
    padding: 0 20px 120px;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Subtle connecting glow between hero & form */
.form-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(88, 101, 242, 0.4), transparent);
}

.form-container {
    max-width: 680px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 56px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 120px rgba(88, 101, 242, 0.04);
    position: relative;
    overflow: hidden;
}

/* Rotating glow inside the form card */
.form-container::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(88, 101, 242, 0.03),
        transparent,
        rgba(88, 101, 242, 0.02),
        transparent
    );
    animation: formRotate 25s linear infinite;
    pointer-events: none;
}

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

form {
    position: relative;
    z-index: 1;
}

.form-greeting {
    font-size: 34px;
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.5px;
}

.greeting-text {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.greeting-name {
    color: #fff;
    font-weight: 700;
    position: relative;
}

.greeting-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #5865F2, transparent);
    border-radius: 2px;
}

/* ─── FORM FIELDS ─── */
.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.optional {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    font-size: 12px;
    text-transform: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(88, 101, 242, 0.5);
    background: rgba(88, 101, 242, 0.04);
    box-shadow:
        0 0 0 3px rgba(88, 101, 242, 0.08),
        0 8px 32px -8px rgba(88, 101, 242, 0.15);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* ─── CHECKBOX ─── */
.checkbox-group {
    margin-top: 44px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: rgba(88, 101, 242, 0.2);
    background: rgba(88, 101, 242, 0.03);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    cursor: pointer;
    accent-color: #5865F2;
    margin-top: 2px;
    border-radius: 4px;
}

.checkbox-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
}

/* ─── PRIVACY NOTICE ─── */
.privacy-notice {
    margin: 20px 0 40px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(88, 101, 242, 0.4);
    border-radius: 0 12px 12px 0;
}

.privacy-notice p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    line-height: 1.7;
}

/* ─── SUBMIT BUTTON ─── */
.submit-button {
    width: 100%;
    padding: 18px 40px;
    background: #5865F2;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

/* Shimmer sweep on hover */
.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.6s ease;
}

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

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(88, 101, 242, 0.4),
        0 0 0 1px rgba(88, 101, 242, 0.3);
    background: #6974f7;
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

.button-arrow {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.submit-button:hover .button-arrow {
    transform: translateX(6px);
}

/* ─── SUCCESS MESSAGE ─── */
.success-message {
    text-align: center;
    padding: 70px 20px;
    position: relative;
    z-index: 1;
}

.success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #5865F2, #00D9FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #fff;
    box-shadow:
        0 0 60px rgba(88, 101, 242, 0.3),
        0 0 0 6px rgba(88, 101, 242, 0.08);
    animation: successGlow 2.5s ease-in-out infinite;
}

@keyframes successGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(88, 101, 242, 0.3), 0 0 0 6px rgba(88, 101, 242, 0.08);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 80px rgba(88, 101, 242, 0.5), 0 0 0 8px rgba(88, 101, 242, 0.12);
    }
}

.success-message h2 {
    font-size: 34px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #5865F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.success-message p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 40px;
    line-height: 1.7;
}

.back-to-form-button {
    padding: 14px 36px;
    background: transparent;
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 12px;
    color: #5865F2;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.back-to-form-button:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.35);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    #nav {
        padding: 15px 20px;
    }

    #nav h3 {
        font-size: 20px;
    }

    .back-button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .contact-hero {
        padding: 80px 20px 60px;
        min-height: 40vh;
    }

    .hero-title {
        font-size: 56px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .email-text {
        font-size: 15px;
    }

    .form-container {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .form-greeting {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 15px;
    }

    .submit-button {
        font-size: 16px;
        padding: 16px 32px;
        border-radius: 12px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 44px;
    }

    .success-message h2 {
        font-size: 28px;
    }

    .success-message p {
        font-size: 15px;
    }

    .back-to-form-button {
        font-size: 14px;
        padding: 12px 28px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 70px 16px 50px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .form-section {
        padding: 0 12px 80px;
    }

    .form-container {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .form-greeting {
        font-size: 22px;
    }

    .form-group input,
    .form-group textarea {
        padding: 13px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .checkbox-label {
        padding: 14px 16px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .checkbox-text {
        font-size: 13px;
    }

    .privacy-notice {
        padding: 14px 16px;
    }

    .privacy-notice p {
        font-size: 12px;
    }

    .submit-button {
        padding: 15px 24px;
        font-size: 15px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 38px;
    }

    .success-message h2 {
        font-size: 24px;
    }

    .success-message p {
        font-size: 14px;
    }

    .back-to-form-button {
        font-size: 13px;
        padding: 10px 24px;
    }
}
