* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-light:  #3b82f6;
    --dark:           #0f172a;
    --darker:         #020617;
    --text:           #f8fafc;
    --text-dark:      #cbd5e1;
    --border:         #334155;
    --secondary-dark: #1e293b;
    --transition:     all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--darker);
    color: var(--text);
    overflow-x: hidden;
}

#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

nav {
    background-color: rgba(15,23,42,0.85);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-light); }

.nav-links a.active {
    color: var(--primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(37,99,235,0.25);
    font-size: 0.95rem;
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,99,235,0.35);
    color: white !important;
}

.dropdown { position: relative; display: inline-block; }

.dropdown-trigger {
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-trigger:hover { color: var(--primary-light); }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark);
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 6px;
    border: 1px solid var(--border);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    padding: 10px 0;
}

.dropdown-content.active { display: block; }

.dropdown-header {
    color: var(--primary-light);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 5px;
    display: block;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    cursor: pointer;
    margin-left: 10px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: var(--secondary-dark);
    color: var(--primary-light);
}

header {
    background-color: transparent;
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.header-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out forwards;
}

.data-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    animation: gridPulse 8s infinite ease-in-out;
}

.animated-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    display: inline-block;
    animation: floatAnimation 8s ease-in-out infinite, glow 3s ease-in-out infinite;
}

.tagline-wrapper {
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    white-space: nowrap;
    position: relative;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.9);
    display: inline-block;
    white-space: nowrap;
    border-right: 3px solid white;
    width: 0;
    overflow: hidden;
    animation: typing 3.5s steps(40, end) 1.5s forwards, blink 0.75s step-end infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatAnimation {
    0%   { transform: translateY(0); }
    25%  { transform: translateY(-10px) translateX(5px); }
    50%  { transform: translateY(-15px) translateX(-3px); }
    75%  { transform: translateY(-7px) translateX(-5px); }
    100% { transform: translateY(0); }
}

@keyframes glow {
    0%   { text-shadow: 0 0 5px rgba(37,99,235,0.3); }
    50%  { text-shadow: 0 0 15px rgba(37,99,235,0.6), 0 0 30px rgba(37,99,235,0.4); }
    100% { text-shadow: 0 0 5px rgba(37,99,235,0.3); }
}

@keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50%      { border-color: white; }
}

@keyframes gridPulse {
    0%   { opacity: 0.05; background-size: 40px 40px; }
    50%  { opacity: 0.10; background-size: 42px 42px; }
    100% { opacity: 0.05; background-size: 40px 40px; }
}

#contact {
    padding: 100px 0;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(15,23,42,0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.contact-subtitle {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 36px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    background-color: rgba(30,41,59,0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #475569; }

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

.btn-submit:active { transform: translateY(0); }

.form-success {
    display: none;
    text-align: center;
    padding: 20px;
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-card { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; }

    header {
        min-height: 100vh;
        height: 100vh;
        padding: 60px 0;
        width: 100vw;
        overflow: hidden;
    }

    .data-grid {
        width: 100vw;
        height: 100%;
    }

    .animated-title { font-size: 2rem; }
    .tagline { font-size: 1rem; }

    .tagline-wrapper {
        max-width: 90vw;
        white-space: normal;
    }
}