:root {
    --navy: #0f172a;
    --blue: #1e40af;
    --blue-light: #3b82f6;
    --light: #f1f5f9;
    --white: #ffffff;
}

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

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--navy);
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* HEADER */
header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(37,99,235,0.5); }
    50% { box-shadow: 0 0 25px rgba(37,99,235,0.6); }
    100% { box-shadow: 0 0 0 rgba(37,99,235,0.5); }
}

nav a {
    margin-left: 28px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

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

nav a.active {
    color: var(--blue);
}

nav a.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--blue);
    bottom: -6px;
    left: 0;
}

/* HERO */
.hero {
    padding: 140px 8%;
    background: linear-gradient(-45deg, #1e3a8a, #2563eb, #1e40af, #3b82f6);
    background-size: 300% 300%;
    animation: gradientMove 10s ease infinite;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

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

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 19px;
    opacity: 0.95;
}

.hero img {
    width: 520px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 30px;
    background: white;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* SECTION */
.section {
    padding: 110px 8%;
}

.section.light {
    background: var(--light);
}

.section h2 {
    font-size: 40px;
    margin-bottom: 25px;
}

.section p.lead {
    font-size: 18px;
    max-width: 750px;
    opacity: 0.8;
}

/* GRID — EXACTLY 3 PER ROW */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* CARDS — PREMIUM */
.card {
    padding: 40px 30px;
    border-radius: 18px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 70px rgba(37,99,235,0.25);
}

.card h3 {
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 35px;
}

/* RESPONSIVE */
@media(max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        width: 100%;
        max-width: 450px;
    }
}

@media(max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}


/* CONTACT PAGE FIX */

.contact-wrapper {
    max-width: 700px;
    margin: 60px auto 0 auto;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.contact-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-wrapper h2 {
    margin-bottom: 15px;
    text-align: center;
}

.contact-wrapper p {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.7;
}

.contact-wrapper input,
.contact-wrapper textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: 0.3s;
}

.contact-wrapper input:focus,
.contact-wrapper textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.contact-wrapper button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-wrapper button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37,99,235,0.3);
}