/* ==============================
   GLOBAL
   ============================== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #222;
}


/* ==============================
   HERO
   ============================== */

.hero {
    background: linear-gradient(
        135deg,
        #182433 0%,
        #232f3e 55%,
        #32465f 100%
    );
    color: white;
    text-align: center;
    padding: 75px 20px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-color: rgba(255, 153, 0, 0.06);
    right: -90px;
    top: -100px;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ff9900;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.hero-story {
    max-width: 650px;
    margin: 0 auto 18px;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    color: #f1f4f8;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 16px;
    margin: 0 auto 30px;
    opacity: 0.92;
    position: relative;
    z-index: 1;
    max-width: 850px;
    line-height: 1.6;
}

.button {
    display: inline-block;
    background-color: #ff9900;
    color: #232f3e;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.button:hover {
    background-color: #e88b00;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}


/* ==============================
   MAIN SECTIONS
   ============================== */

section {
    max-width: 1000px;
    margin: 30px auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

h2 {
    color: #232f3e;
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f4f8;
}

p {
    line-height: 1.65;
}

.section-intro,
.writing-intro {
    color: #4f5b67;
    font-size: 16px;
    margin-bottom: 24px;
}


/* ==============================
   SKILLS
   ============================== */

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-list span {
    background-color: #e8f0fe;
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: bold;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.skill-list span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(35, 47, 62, 0.12);
}

.next-focus .skill-list span {
    background-color: #fff3df;
    color: #232f3e;
}

.next-focus p {
    margin-top: 20px;
}


/* ==============================
   ARCHITECTURE
   ============================== */

.architecture-diagram {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 25px;
}

.architecture-box {
    background-color: #232f3e;
    color: white;
    padding: 15px;
    margin: 10px auto;
    max-width: 250px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.architecture-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
}

.architecture-arrow {
    font-size: 28px;
    font-weight: bold;
    color: #ff9900;
}


/* ==============================
   PROJECTS + ARTICLES
   ============================== */

.project-card,
.article-card {
    background-color: #f0f4f8;
    border-left: 5px solid #ff9900;
    padding: 22px;
    margin: 20px 0;
    border-radius: 8px;
    position: relative;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.article-card {
    border-left-color: #232f3e;
}

.project-card:hover,
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(35, 47, 62, 0.12);
    background-color: #f7f9fb;
}

.project-card h3,
.article-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #232f3e;
}

.story-hook {
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    color: #58697a;
    margin-top: 5px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d7dde4;
}


/* ==============================
   FEATURED / NEWEST PROJECT
   ============================== */

.featured-project {
    border-left-width: 7px;
    background: linear-gradient(
        135deg,
        #fffaf1 0%,
        #f7f9fb 45%,
        #f0f4f8 100%
    );
}

.project-badge {
    display: inline-block;
    background-color: #ff9900;
    color: #232f3e;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}


/* ==============================
   PROJECT BUTTONS
   ============================== */

.project-button {
    display: inline-block;
    background-color: #232f3e;
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-button + .project-button {
    margin-left: 10px;
}

.project-button:hover {
    background-color: #ff9900;
    color: #232f3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.13);
}


/* ==============================
   LESSONS
   ============================== */

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.lesson-card {
    background-color: #f7f9fb;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(35, 47, 62, 0.10);
}

.lesson-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.lesson-card h3 {
    color: #232f3e;
    margin-top: 0;
    margin-bottom: 10px;
}

.lesson-card p {
    margin-bottom: 0;
    color: #4f5b67;
}


/* ==============================
   FOOTER
   ============================== */

footer {
    text-align: center;
    background: linear-gradient(
        135deg,
        #182433 0%,
        #232f3e 100%
    );
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-message {
    font-style: italic;
    margin-bottom: 18px;
    color: #eef2f6;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #ff9900;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}


/* ==============================
   MOBILE RESPONSIVENESS
   ============================== */

@media (max-width: 768px) {

    .hero {
        padding: 55px 20px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-title {
        font-size: 19px;
    }

    .hero-story {
        font-size: 16px;
        max-width: 540px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
        max-width: 600px;
    }

    section {
        margin: 20px 15px;
        padding: 24px 20px;
    }

    .skill-list {
        gap: 10px;
    }

    .skill-list span {
        font-size: 14px;
    }

    .architecture-box {
        max-width: 220px;
    }

    .lesson-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {

    .hero {
        padding: 45px 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-story {
        font-size: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.7;
    }

    .profile-photo {
        width: 135px;
        height: 135px;
    }

    .button {
        padding: 11px 18px;
    }

    section {
        margin: 15px 10px;
        padding: 22px 18px;
    }

    .project-card,
    .article-card {
        padding: 17px;
    }

    .project-button {
        display: block;
        width: fit-content;
    }

    .project-button + .project-button {
        margin-left: 0;
    }

    .story-hook {
        font-size: 15px;
    }

    .lesson-grid {
        grid-template-columns: 1fr;
    }

    .lesson-card {
        padding: 18px;
    }
}