section {
    padding: 6.5rem 1.4rem 4.3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

#home h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 18ch;
    margin: 0 auto 1.2rem;
    text-wrap: balance;
    background: linear-gradient(120deg, #6fe9ff 0%, #69a9ff 35%, #a88bff 68%, #ff7fc5 100%);
    background-size: 220% 220%;
    color: #dbe7ff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroGradientShift 9s ease-in-out infinite;
}

.lead {
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    color: var(--muted);
    max-width: 68ch;
    margin: 0 auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.88rem 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(116, 147, 255, 0.42);
    background: linear-gradient(135deg, rgba(76, 117, 255, 0.98), rgba(79, 218, 255, 0.95));
    color: #041126;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(43, 118, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(43, 118, 255, 0.47);
}

#about,
#services,
#contact {
    min-height: 86vh;
}

#about .container,
#contact .container {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: clamp(1.4rem, 4vw, 2.3rem);
    box-shadow: var(--glow);
}

#about p,
#services p,
#contact p {
    color: var(--muted);
}

#contact a {
    color: var(--cyan);
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin-top: 1.7rem;
    width: 100%;
    max-width: 1100px;
}

.card {
    text-align: left;
    min-width: 0;
    padding: 1.35rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(19, 30, 56, 0.92), rgba(12, 20, 38, 0.92));
    border: 1px solid rgba(120, 160, 255, 0.28);
    box-shadow: var(--glow);
    transform: translateY(10px);
    opacity: 0;
    animation: rise 0.68s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.07s; }
.card:nth-child(3) { animation-delay: 0.14s; }
.card:nth-child(4) { animation-delay: 0.21s; }

.card h3 {
    font-size: 1.06rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.95rem;
    color: #b7c6ea;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 560px;
    margin: 1.7rem auto 0;
}

input,
textarea {
    width: 100%;
    padding: 0.86rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(119, 151, 241, 0.35);
    background: rgba(8, 14, 28, 0.78);
    color: var(--ink);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8ea0cb;
}

input:focus,
textarea:focus {
    border-color: rgba(93, 226, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(93, 226, 255, 0.16);
}

button {
    padding: 0.88rem;
    border-radius: 12px;
    border: 1px solid rgba(106, 146, 255, 0.46);
    background: linear-gradient(130deg, rgba(94, 96, 255, 0.95), rgba(76, 182, 255, 0.95));
    color: #051023;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

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

@media (prefers-reduced-motion: reduce) {
    #home h1 {
        animation: none;
    }
}

@media (max-width: 900px) {
    #services .container {
        max-width: 100%;
    }

    #services .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 6rem;
    }

    #services .grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    #services .card {
        padding: 1.15rem;
    }
}

