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

:root {
    --bg: #050816;
    --surface: #0f172a;
    --primary: #00f5ff;
    --secondary: #7c3aed;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --warning: #ff0000;
    --warning-bg: rgba(255, 0, 0, 0.2);
    --border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #101b3b 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(5, 8, 22, 0.7);
    isolation: isolate;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateZ(0);
    z-index: 9999;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 8%;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    background: rgba(5, 8, 22, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateZ(0);
}

nav {
    display: flex;
    gap: 24px;
    position: relative;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    transition: 0.3s ease;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.logo {
    display: flex;
}

.logo img {
    max-width: 300px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: 60px;
    padding: 50px 8%;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary);
    text-shadow: 0 0 18px rgba(0, 245, 255, 0.7);
}

.hero-text p {
    color: var(--muted);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #020617;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 245, 255, 0.5);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255,255,255,0.03);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.text-red { color: var(--warning); }
.cards {
    padding: 0 8% 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;

    align-items: stretch;
}

.card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition: 0.3s ease;
    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.15);
}

.card h3 {
    margin-bottom: 14px;
    color: var(--primary);
}

.card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 10px;
    flex-grow: 1;
}

.contact-thank-you h3 {
    text-align: center;
}
.card .buttons {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .logo {
        font-size: 5rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    header,
    footer {
        flex-direction: column;
        gap: 5px;
    }

    footer div {
        text-align: center;
    }

    footer .center-note {
        display: none;
    }

    .hero {
        padding-top: 60px;
    }
}

/* =========================
  CONTACT FORM
========================= */
.contact-section {
    padding: 40px 8% 120px;
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    max-width: 760px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px;
    backdrop-filter: blur(14px);
    box-shadow:
            0 0 30px rgba(0, 245, 255, 0.08),
            0 0 80px rgba(0, 0, 0, 0.45);
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.contact-thank-you h2,
.contact-thank-you .contact-description {
    text-align: center;
}

.contact-description {
    color: var(--muted);
    margin-bottom: 34px;
    line-height: 1.7;
}

/* =========================
   FORM
========================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-size: 1rem;
    transition: 0.25s ease;
    outline: none;
}

.form-group .error {
    border: 1px solid rgba(255,0,0,0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(0,245,255,0.45);
    box-shadow:
            0 0 0 4px rgba(0,245,255,0.08),
            0 0 18px rgba(0,245,255,0.15);
}

.form-group .info-fields {
    margin-top: 10px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.form-group .info-fields .form-info {
    color: var(--muted);
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.contact-thank-you h3{

}

/* =========================
   CHARACTER COUNTER
========================= */
.char-counter {
    text-align: right;
    font-size: 0.9rem;
    color: var(--muted);
}

#char-count {
    color: var(--primary);
    font-weight: 700;
}

/* =========================
   ACTIONS
========================= */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 10px;
}

.errors {
    border: 1px solid var(--warning);
    border-radius: 22px;
    color: var(--warning);
    background-color: var(--warning-bg);
    padding: 20px;
    margin-bottom: 20px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .contact-card {
        padding: 28px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
}
