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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f8fbff;
    color: #1f2933;
    line-height: 1.6;
}

section {
    padding: 80px 10%;
}

/* NAVBAR */
.navbar {
    padding: 18px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(90, 116, 148, 0.08);
}

.logo {
    color: #3f6f5f;
    font-size: 22px;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
}

.navbar a:hover {
    color: #4f8fcf;
}

.nav-pfp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e7f3ff;
    background: #dbeafe;
}

/* HERO */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fbff, #eef7f1);
    position: relative;
    overflow: hidden;
}

.hero-text {
    width: 48%;
    z-index: 2;
}

.small-title {
    color: #4f8fcf;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.intro {
    font-size: 18px;
    color: #52616f;
    margin-bottom: 30px;
    max-width: 450px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #4f8fcf;
    color: white;
    text-decoration: none;
    border-radius: 30px;
}

.btn:hover {
    background: #3f6f5f;
}

.hero-image {
    width: 360px;
    height: 430px;
    border-radius: 180px 180px 25px 25px;
    overflow: hidden;
    background: #dbeafe;
    z-index: 2;
}

.hero-image img,
.hobby-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* BACKGROUND SHAPES */
.shape {
    position: absolute;
    z-index: 1;
}

.shape-one {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    right: 30%;
    bottom: 10%;
    background: #cde8d5;
}

.shape-two {
    width: 300px;
    height: 300px;
    border-radius: 200px 200px 0 0;
    right: 8%;
    top: 20%;
    background: #dbeafe;
}

/* ABOUT */
.about {
    background: #e7f3ff;
}

.section-title,
.why-me,
.hobbies {
    text-align: center;
}

.section-title h2,
.why-me h2,
.hobbies h2,
.certificates h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.about-card {
    max-width: 850px;
    margin: 35px auto 0;
    background: white;
    padding: 35px;
    border-radius: 18px;
    border-left: 6px solid #4f8fcf;
    box-shadow: 0 12px 30px rgba(79, 143, 207, 0.12);
}

/* WHY ME AND HOBBIES */
.why-grid,
.hobby-grid {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.why-card,
.hobby-card {
    border-radius: 22px;
    background: #e7f3ff;
    overflow: hidden;
    transition: 0.3s;
}

.why-card {
    padding: 30px 25px;
}

.why-card:nth-child(2),
.hobby-card:nth-child(2) {
    background: #eef7f1;
}

.why-card:nth-child(3),
.hobby-card:nth-child(3) {
    background: #fff4df;
}

.why-card:hover,
.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(79, 143, 207, 0.16);
}

.icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.why-card p,
.hobby-content p,
.info-text p,
.contact-info p,
.contact-card p {
    color: #52616f;
    font-size: 14px;
}

.hobby-card {
    text-align: left;
}

.hobby-img {
    height: 230px;
}

.hobby-content {
    padding: 22px;
}

/* COURSE */
.info-section,
.contact {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #f2f7ff;
}

.info-image {
    width: 45%;
    height: 280px;
    background: #cde8d5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon-card {
    width: 88%;
    height: 82%;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.course-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    background: #e7f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon-card h3 {
    font-size: 42px;
    color: #3f6f5f;
}

.info-text,
.contact-info {
    width: 50%;
}

.info-text h2,
.contact-info h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.age,
.contact-detail span {
    color: #3f6f5f;
    font-weight: bold;
}

/* CERTIFICATE GALLERY */
.certificates {
    background: white;
    text-align: center;
}

.certificate-gallery {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.certificate-item {
    height: 260px;
    border-radius: 22px;
    overflow: hidden;
    background: #e7f3ff;
    box-shadow: 0 12px 30px rgba(79, 143, 207, 0.12);
    transition: 0.3s;
    display: block;
    position: relative;
}

.certificate-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(79, 143, 207, 0.18);
}

.certificate-item iframe {
    width: 100%;
    height: calc(100% + 56px);
    border: none;
    position: absolute;
    top: -56px;
    left: 0;
    pointer-events: none;
}
/* QUOTE */
.quote-section {
    background: #3f6f5f;
    text-align: center;
    color: white;
}

.quote-section h2 {
    margin-bottom: 25px;
}

.light-btn {
    background: white;
    color: #3f6f5f;
}

/* CONTACT */
.contact-card {
    width: 50%;
    min-height: 260px;
    background: #e7f3ff;
    border-radius: 22px;
    padding: 45px;
    border-left: 6px solid #4f8fcf;
}

/* FOOTER */
footer {
    padding: 35px 10%;
    background: #3f6f5f;
    color: white;
    display: flex;
    justify-content: space-between;
}

/* TABLET */
@media (max-width: 900px) {
    section,
    .navbar {
        padding-left: 6%;
        padding-right: 6%;
    }

    .hero,
    .info-section,
    .contact {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .info-text,
    .info-image,
    .contact-info,
    .contact-card {
        width: 100%;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-image {
        width: 320px;
        height: 320px;
        border-radius: 50%;
    }

    .why-grid,
    .hobby-grid,
    .certificate-gallery {
        grid-template-columns: 1fr;
    }

    .certificate-gallery {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    .certificate-item {
        height: 380px;
    }
}

/* PHONE */
@media (max-width: 600px) {
    section {
        padding: 60px 5%;
    }

    .navbar {
        flex-direction: column;
        gap: 14px;
        padding: 16px 5%;
    }

    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-pfp {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 36px;
    }

    .intro {
        font-size: 16px;
    }

    .hero-image {
        width: 230px;
        height: 230px;
    }

    .shape {
        opacity: 0.25;
    }

    .info-image {
        height: 250px;
    }

    .hobby-img {
        height: 200px;
    }

    .certificate-item {
        height: 250px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}