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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #eef2ff;
    color: #1f2532;
    line-height: 1.75;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 18px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: #1724b7;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    background: #0c1a78;
    box-shadow: 0 18px 34px rgba(23, 36, 126, 0.18);
}

section {
    padding: 90px clamp(18px, 8%, 90px);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(31, 41, 61, 0.08);
    min-height: 88px;
}

header a img {
    max-height: 56px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

nav a {
    color: #2a3144;
    font-weight: 600;
    letter-spacing: 0.04em;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #1724b7;
    transition: width 0.28s ease;
}

nav a:hover::after,
nav a.active::after,
nav a span::after {
    width: 100%;
}

nav a.active {
    color: #1724b7;
}

#menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #2a3144;
}

#hero {
    min-height: 560px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, #0c1a78 0%, #3d52ff 55%, #a1b1ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    color: #fff;
}

#hero h1 {
    font-size: clamp(3.4rem, 7vw, 5.6rem);
    letter-spacing: 0.22em;
    margin-bottom: 0.7rem;
}

#hero p {
    font-size: clamp(1.2rem, 2.3vw, 2rem);
    color: rgba(255, 255, 255, 0.92);
}

h2 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

p {
    margin-bottom: 22px;
    color: #4b546b;
}

.page-title {
    background: #121d64;
    color: #fff;
    text-align: center;
    padding: 110px 20px;
}

.page-title h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.15em;
}

#about,
#works,
#contact {
    background: #fff;
}

#about p {
    max-width: 760px;
    margin-inline: auto;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 44px;
}

.card,
.work-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(27, 33, 73, 0.12);
    box-shadow: 0 24px 58px rgba(21, 33, 82, 0.08);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.card:hover,
.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 72px rgba(20, 33, 84, 0.14);
}

.card img,
.work-card img,
.work-detail img {
    width: 100%;
    display: block;
}

.card h4,
.work-card h2 {
    font-size: 1.35rem;
    margin: 20px 24px 10px;
    color: #141b31;
}

.view-more {
    display: inline-flex;
    margin-top: 28px;
    color: #1724b7;
    font-weight: 700;
    justify-content: flex-end;
}

.about-container,
.works-list,
.work-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 80px 0;
}

.profile-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
    box-shadow: 0 28px 64px rgba(20, 29, 79, 0.12);
}

.work-detail {
    max-width: 900px;
    padding: 80px 0;
}

.profile-text {
    flex: 1;
}

.profile-text h2 {
    margin-bottom: 20px;
    font-size: 2.35rem;
    color: #0d1545;
}

.profile-text h3 {
    margin: 36px 0 16px;
    color: #1724b7;
    font-size: 1.15rem;
}

.profile-text ul {
    margin-top: 16px;
    list-style: disc inside;
    color: #4b546b;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 80px 0;
}

.work-card p {
    margin: 0 22px 24px;
    color: #5d647b;
}

.work-detail {
    padding: 80px 0;
}

.work-detail h2 {
    margin: 24px 0 16px;
    font-size: 2.2rem;
    color: #0f1d76;
}

.work-detail h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #1f2640;
}

.work-detail p {
    max-width: 840px;
    margin-bottom: 20px;
    color: #4d556f;
}

footer {
    padding: 24px 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    border-top: 1px solid rgba(31, 41, 61, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1024px) {

    .about-container,
    .works-list {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        width: 100%;
        padding: 16px 20px;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        box-shadow: 0 24px 40px rgba(20, 29, 79, 0.12);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 22px 0;
        gap: 18px;
    }

    #menu-btn {
        display: block;
        z-index: 1100;
    }

    #hero {
        min-height: 460px;
        padding: 0 20px;
    }

    #hero h1 {
        font-size: clamp(3rem, 10vw, 4.2rem);
    }

    #hero p {
        font-size: 1.5rem;
    }

    section {
        padding: 60px 6%;
    }

    h2 {
        font-size: 2.8rem;
    }

    .works-grid,
    .works-list {
        grid-template-columns: 1fr;
    }

    .view-more {
        text-align: center;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image img {
        max-width: 260px;
        margin-inline: auto;
    }

    .profile-text {
        width: 100%;
    }

    .work-card h2,
    .card h4 {
        margin: 20px;
    }

    .work-card p {
        margin: 0 20px 22px;
    }
}

@media (max-width: 520px) {
    header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
    }

    nav ul {
        gap: 14px;
    }

    .page-title h1 {
        font-size: 2.8rem;
    }
}