* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f4f4f4;
    color: #111;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.navbar {
    width: min(100%, 1180px);
    margin: 16px auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-section img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
}

.logo-text h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.logo-text h3 {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #111;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 14px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(75, 31, 209, 0.08);
    color: #4b1fd1;
}

.nav-links a.active {
    background: #4b1fd1;
    color: #fff;
}

.hero,
.about-page,
.page-intro,
.section-section,
.hero-summary {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.home-hero {
    min-height: 620px;
    background: url('/static/images/bgimage.jpeg') center/cover no-repeat;
}

.home-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: 48px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-content {
    width: 100%;
    max-width: 620px;
}

.left-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 4.3rem);
    line-height: 1.03;
    margin: 0;
}

.purple {
    color: #4b1fd1;
}

.line {
    width: 140px;
    height: 4px;
    background: #4b1fd1;
    margin: 20px 0;
    border-radius: 999px;
}

.left-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
    margin-bottom: 30px;
    max-width: 720px;
}

.left-content button {
    padding: 16px 28px;
    border: none;
    background: #4b1fd1;
    color: #fff;
    font-size: 1rem;
    border-radius: 16px;
    min-width: 180px;
    transition: background 0.3s ease;
}

.left-content button:hover {
    background: #3510a5;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 28px auto 20px;
    padding: 0 20px 20px;
}

.card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.card i {
    font-size: 1.95rem;
    color: #4b1fd1;
    margin-bottom: 18px;
}

.card h2 {
    margin: 0 0 14px;
    color: #4b1fd1;
    font-size: 1.2rem;
}

.card p {
    color: #444;
    line-height: 1.8;
    font-size: 0.98rem;
}

footer {
    width: min(100%, 1180px);
    margin: 20px auto 24px;
    padding: 18px 20px;
    background: #3510a5;
    color: #fff;
    text-align: center;
    border-radius: 18px;
    font-size: 0.98rem;
}

.about-page {
    padding: 28px 0 40px;
}

.page-intro {
    display: grid;
    gap: 28px;
    padding-top: 24px;
}

.intro-copy,
.section-section,
.feature-card,
.why-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
}

.page-intro h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

.page-intro p {
    max-width: 760px;
    color: #4a4a4a;
    line-height: 1.75;
    font-size: 1rem;
}

.intro-highlights,
.feature-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card h3,
.why-card h3 {
    color: #4b1fd1;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.section-header {
    margin-bottom: 18px;
}

.section-header span {
    display: inline-block;
    color: #4b1fd1;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin: 0;
    line-height: 1.15;
}

.section-section p {
    max-width: 900px;
    color: #4a4a4a;
    line-height: 1.85;
    font-size: 1rem;
}

.hero-summary {
    padding: 28px 0 42px;
}

.hero-summary h1 {
    font-size: clamp(2rem, 4vw, 2.3rem);
    margin-bottom: 16px;
}

.hero-summary p {
    max-width: 760px;
    margin: 0 auto 26px;
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 1rem;
}

.boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.box {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.box h3 {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

textarea,
select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d3d3d3;
    padding: 14px 16px;
    font-size: 1rem;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

label {
    display: block;
    margin: 18px 0 10px;
    color: #4a4a4a;
    font-size: 0.95rem;
    font-weight: 600;
}

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

textarea:focus,
select:focus,
button:focus {
    border-color: #4b1fd1;
    box-shadow: 0 0 0 4px rgba(75, 31, 209, 0.08);
}

.btn {
    width: 100%;
    max-width: 280px;
    margin: 28px auto 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: #4b2aad;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    transition: background 0.25s ease;
    text-align: center;
}

.btn:hover {
    background: #3510a5;
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 520px;
    }

    .hero-content {
        padding: 32px 0;
    }

    .cards {
        padding: 0 16px 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 18px;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 18px 20px 24px;
        flex-direction: column;
        gap: 14px;
        background: #fff;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        padding: 14px 16px;
    }

    .hero-summary,
    .about-page,
    .page-intro,
    .section-section {
        padding: 0 16px;
    }

    .intro-highlights,
    .feature-grid,
    .boxes {
        grid-template-columns: 1fr;
    }

    .box {
        min-height: auto;
    }

    .btn {
        max-width: 100%;
    }
}

@media (max-width: 540px) {
    .navbar {
        gap: 12px;
    }

    .logo-text h2 {
        font-size: 0.95rem;
    }

    .logo-text h3 {
        font-size: 0.82rem;
    }

    .left-content button {
        width: 100%;
    }

    .page-intro h1,
    .section-header h2,
    .hero-summary h1 {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
    }

    .card,
    .feature-card,
    .why-card,
    .section-section,
    .intro-copy,
    .box {
        padding: 20px;
    }

    textarea {
        min-height: 160px;
    }
}
