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

:root {
    --navy: #111827;
    --blue: #1e3a5f;
    --light-blue: #eaf1f8;
    --gold: #fbbf24;
    --gold-dark: #e3a713;
    --text: #1f2937;
    --muted-text: #4b5563;
    --light-background: #f3f4f6;
    --border: #d1d5db;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

a {
    color: inherit;
}

.hero {
    min-height: 720px;
    padding: 24px 8% 80px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 85% 40%,
            rgba(251, 191, 36, 0.08),
            transparent 24%
        ),
        linear-gradient(135deg, var(--navy), var(--blue));
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--white);
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--gold);
    transform: translateY(-1px);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    align-items: center;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 110px;
}

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

.intro {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
}

.hero-text h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 6vw, 5.3rem);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 720px;
    color: #e5e7eb;
    font-size: 1.15rem;
}

.hero-buttons,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

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

.primary-button {
    color: var(--navy);
    background: var(--gold);
}

.primary-button:hover {
    background: var(--gold-dark);
}

.secondary-button {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 220px;
    height: 220px;
    border: 4px solid var(--gold);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow:
        0 15px 38px rgba(0, 0, 0, 0.35),
        0 0 0 7px rgba(251, 191, 36, 0.08);
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 85px 8%;
}

.alternate {
    max-width: none;
    padding-right: max(8%, calc((100% - 1200px) / 2 + 8%));
    padding-left: max(8%, calc((100% - 1200px) / 2 + 8%));
    background: var(--light-background);
}

.section-heading {
    margin-bottom: 34px;
}

.section-label {
    margin-bottom: 6px;
    color: #b77900;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.section h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    color: var(--muted-text);
    font-size: 1.05rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 7px 24px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.11);
}

.card h3 {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 1.25rem;
}

.card p {
    color: var(--muted-text);
}

.card-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #7c5200;
    background: #fff3c4;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.technology-list {
    margin-top: 18px;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 700;
}

.project-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.contact-section > div:first-child {
    max-width: 700px;
}

.contact-section p {
    color: var(--muted-text);
}

.dark-button {
    color: var(--blue);
    border-color: var(--blue);
}

.dark-button:hover {
    color: var(--white);
    background: var(--blue);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 8%;
    color: #d1d5db;
    background: var(--navy);
    font-size: 0.92rem;
}

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 80px;
    }

    .hero-image {
        justify-content: flex-start;
        grid-row: 1;
    }

    .hero-image img {
        width: 210px;
        height: 210px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 22px 6% 65px;
    }

    .navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        gap: 12px 18px;
    }

    .hero-content {
        padding-top: 55px;
    }

    .hero-text h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-image img {
        width: 180px;
        height: 180px;
    }

    .section,
    .alternate {
        padding: 65px 6%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        padding: 26px 6%;
    }
}