/* Premium typography and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --color-bg: #050505;
    /* Deep rich blackish */
    --color-primary: #4169E1;
    /* Royal Blue */
    --color-primary-glow: rgba(65, 105, 225, 0.4);
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
}

body,
html {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
}

/* Glassmorphism Animated Logo */
.logo-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    /* Let canvas clicks through */
}

.glass-text-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 2.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatingTextLogo 4s ease-in-out infinite, pulseTextGlow 3s alternate infinite;
}

.glass-text-logo .accent {
    font-weight: 300;
    background: linear-gradient(180deg, var(--color-primary) 0%, rgba(65, 105, 225, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@keyframes floatingTextLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseTextGlow {
    0% {
        filter: drop-shadow(0 4px 10px rgba(65, 105, 225, 0.2));
    }

    100% {
        filter: drop-shadow(0 4px 25px rgba(65, 105, 225, 0.7));
    }
}

/* Hero Canvas Section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Premium V3 Contact Section */
.contact-section {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at center, #0a0a0f 0%, var(--color-bg) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    border-top: 1px solid rgba(65, 105, 225, 0.15);
    position: relative;
}

/* Add a subtle background glow behind the form */
.contact-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    z-index: 1;
    /* Above the background glow */
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.form-info h2 {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    white-space: nowrap;
}

.form-info p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 450px;
}

.contact-perks .perk {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.contact-perks .perk span {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.form-wrapper {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.half-width {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .form-wrapper {
        padding: 25px 15px;
    }

    .form-info h2 {
        font-size: 2.2rem;
        white-space: normal;
    }

    .contact-section {
        padding: 60px 5%;
    }

    .logo-container {
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
    }

    .glass-text-logo {
        font-size: 1.5rem;
    }
}

.form-group {
    margin-bottom: 25px;
}

/* Premium Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.15);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.select-wrapper:focus-within::after {
    transform: translateY(-35%) rotate(-135deg);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
}

.form-group select option {
    background-color: #0f0f14;
    color: white;
}

/* Spark Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn span {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.submit-btn:hover {
    background: #5078f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.4);
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn.success {
    background: #28a745;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Modal UI */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* White subtle border */
    border-radius: 24px;
    padding: 50px 45px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 600px) {
    .modal-content {
        padding: 40px 20px 30px;
        width: 95%;
        border-radius: 20px;
    }

    #modal-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .close-btn {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }
}

.modal.hidden .modal-content {
    transform: translateY(30px) scale(0.95);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-text);
    transform: scale(1.1);
}

#modal-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

#modal-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
}

#modal-body h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 400;
}

#modal-body p {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    #modal-body {
        font-size: 1rem;
        line-height: 1.6;
    }

    #modal-body h3 {
        font-size: 1.2rem;
    }
}

#modal-body ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 5px;
}

#modal-body ol.numbered-process-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 5px;
}

#modal-body li {
    margin-bottom: 15px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

#modal-body ul li {
    padding-left: 20px;
}

#modal-body ol.numbered-process-list li {
    padding-left: 5px;
    color: #ffffff;
    font-weight: normal;
}

#modal-body ol.numbered-process-list li::marker {
    color: var(--color-primary);
    font-weight: bold;
}

#modal-body li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#modal-body ul.icon-list {
    list-style-type: none;
    padding-left: 0;
}

#modal-body ul.icon-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 0;
}

#modal-body ul.icon-list li::marker {
    content: none;
}

#modal-body ul.icon-list li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-primary);
}

/* Tools Carousel in Modal */
.tools-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-top: 20px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tools-carousel {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: scroll-carousel 8s linear infinite;
}

.tools-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 25px));
    }
}

.tool-item {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.tool-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.tool-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Tooltip */
.tooltip {
    position: fixed;
    background: var(--color-primary);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.2s;
    top: 0;
    left: 0;
    transform: translate(-50%, -150%);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.tooltip.hidden {
    opacity: 0;
}

/* Premium Footer */
.premium-footer {
    width: 100%;
    padding: 10px 40px;
    background: rgba(10, 10, 14, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copy {
    color: #a0a0a0;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item svg {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-item:hover {
    color: #ffffff;
}

.footer-item:hover svg {
    opacity: 1;
}

@media (max-width: 800px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer-links {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }

    .premium-footer {
        padding: 20px 15px;
    }
}