/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #102c44;
    color: #fff4dc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HEADER
========================= */

header {
    width: 100%;
    padding: 20px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #102c44;

    border-bottom: 2px solid #f28c28;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff4dc;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #fff4dc;
    font-size: 14px;

    transition: 0.3s;
}

nav a:hover {
    color: #f28c28;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 90vh;

    padding: 80px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 60px;
}

.hero-text {
    max-width: 650px;
}

.small-title {
    color: #f28c28;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 15px 0;

    font-size: clamp(45px, 7vw, 80px);

    line-height: 1.05;
}

.hero h1 span {
    color: #f28c28;
}

.hero-text > p:not(.small-title) {
    max-width: 550px;
    color: #fff4dc;
    opacity: 0.8;
}

.button {
    display: inline-block;

    margin-top: 25px;

    padding: 12px 25px;

    background: #f28c28;
    color: #102c44;

    border-radius: 8px;

    font-weight: bold;

    transition: 0.3s;
}

.button:hover {
    transform: translateY(-5px);
}


/* =========================
   HERO CARD
========================= */

.hero-card {
    width: 330px;
    min-height: 280px;

    padding: 35px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #24527a;

    border: 2px solid #f28c28;

    border-radius: 15px;

    transition: 0.3s;
}

.hero-card:hover {
    transform: translateY(-8px);
}

.hero-card h2 {
    margin-bottom: 15px;

    color: #fff4dc;
}

.hero-card p {
    color: #fff4dc;
    opacity: 0.85;
}


/* =========================
   SECTION
========================= */

.section {
    padding: 80px 8%;
}

.section-title {
    margin-bottom: 35px;
}

.section-title p {
    color: #f28c28;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}

.section-title h2 {
    margin-top: 5px;

    font-size: 35px;

    color: #fff4dc;
}


/* =========================
   PROFILE
========================= */

.profile-card {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 30px;

    padding: 35px;

    background: #24527a;

    border: 2px solid #f28c28;

    border-radius: 15px;
}

.profile-info h3 {
    margin-bottom: 15px;

    color: #fff4dc;

    font-size: 25px;
}

.profile-info p {
    margin-bottom: 15px;

    color: #fff4dc;

    opacity: 0.85;
}

.profile-data {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.profile-data div {
    padding: 15px;

    background: #102c44;

    border-radius: 10px;
}

.profile-data span {
    display: block;

    color: #f28c28;

    font-size: 12px;

    font-weight: bold;
}

.profile-data strong {
    color: #fff4dc;
}


/* =========================
   SKILLS
========================= */

.card-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.skill-card {
    padding: 30px;

    background: #24527a;

    border: 2px solid #f28c28;

    border-radius: 15px;

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-7px);
}

.icon {
    width: 45px;
    height: 45px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 20px;

    background: #f28c28;

    color: #102c44;

    border-radius: 8px;

    font-weight: bold;
}

.skill-card h3 {
    margin-bottom: 10px;

    color: #fff4dc;

    font-size: 23px;
}

.skill-card p {
    color: #fff4dc;

    opacity: 0.8;
}


/* =========================
   PORTFOLIO
========================= */

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.portfolio-card {
    padding: 20px;

    background: #24527a;

    border: 2px solid #f28c28;

    border-radius: 15px;

    transition: 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-7px);
}

.portfolio-image {
    height: 180px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 20px;

    background: #102c44;

    border-radius: 10px;

    color: #f28c28;

    font-size: 30px;

    font-weight: bold;
}

.portfolio-card h3 {
    margin-bottom: 10px;

    color: #fff4dc;

    text-align: center;
}

.portfolio-card p {
    color: #fff4dc;

    opacity: 0.8;
}

.portfolio-card a {
    display: inline-block;

    margin-top: 18px;

    color: #f28c28;

    font-weight: bold;

    transition: 0.3s;
}

.portfolio-card a:hover {
    transform: translateX(5px);
}


/* =========================
   CONTACT
========================= */

.contact-card {
    padding: 35px;

    background: #24527a;

    border: 2px solid #f28c28;

    border-radius: 15px;

    text-align: center;
}

.contact-card > p {
    color: #fff4dc;

    opacity: 0.85;
}

.contact-list {
    margin-top: 25px;

    display: flex;
    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.contact-list a {
    padding: 12px 20px;

    background: #102c44;

    color: #fff4dc;

    border: 1px solid #f28c28;

    border-radius: 8px;

    transition: 0.3s;
}

.contact-list a:hover {
    background: #f28c28;

    color: #102c44;

    transform: translateY(-3px);
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 35px 8%;

    text-align: center;

    border-top: 2px solid #f28c28;

    background: #0b2032;

    color: #fff4dc;
}

footer p {
    margin: 5px;

    font-size: 13px;

    opacity: 0.8;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    header {
        padding: 20px 5%;
    }

    nav {
        gap: 15px;
    }

    .hero {
        padding: 60px 5%;
    }

    .section {
        padding: 60px 5%;
    }

    .hero-card {
        width: 300px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    header {
        flex-direction: column;

        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        padding-top: 70px;
    }

    .hero-card {
        width: 100%;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 50px;
    }

    .section-title h2 {
        font-size: 28px;
    }

}