style.css
/* =====================================================
   PERSONAL WEBSITE - HABWAH FILDZAH NAJIBAH
   CSS
   ===================================================== */


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    color: #27233a;
    background: #faf9ff;
}


/* ================= GLOBAL ================= */

:root {
    --primary: #7c5cff;
    --primary-dark: #6042d8;
    --secondary: #f0edff;
    --accent: #ff8fb3;
    --dark: #27233a;
    --gray: #77748a;
    --light: #faf9ff;
    --white: #ffffff;
    --border: #e8e4f5;
    --shadow: 0 15px 40px rgba(70, 55, 130, 0.10);
}

section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title > p:first-child {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-title p:last-child {
    color: var(--gray);
}


/* ================= NAVBAR ================= */

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(250, 249, 255, 0.88);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(232, 228, 245, 0.7);
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    padding-top: 150px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(124, 92, 255, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(255, 143, 179, 0.10),
            transparent 30%
        );
}

.hero-text {
    flex: 1;
    animation: slideLeft 1s ease;
}

.greeting {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--primary);
}

.hero h2 {
    color: var(--gray);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-text > p:not(.greeting):not(.motto) {
    max-width: 600px;
    color: var(--gray);
    margin-bottom: 20px;
}

.motto {
    font-weight: 700;
    color: var(--dark);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 30px;
}

.hero-button {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-button a {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.hero-button a:first-child {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 10px 25px rgba(124, 92, 255, 0.25);
}

.hero-button a:first-child:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-button a:last-child {
    color: var(--primary);
    border: 2px solid var(--primary);
}

.hero-button a:last-child:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}


/* ================= HERO IMAGE ================= */

.hero-image {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;

    border-radius: 50%;

    border: 10px solid white;

    box-shadow:
        0 0 0 10px rgba(124, 92, 255, 0.12),
        0 25px 60px rgba(70, 55, 130, 0.18);
}


/* ================= ABOUT ================= */

.about {
    background: white;
}

.about-content {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 18px;
}

.about-info {
    display: grid;
    gap: 20px;
}

.info-card {
    padding: 25px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 20px;

    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-card h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 18px;
}

.info-card p {
    color: var(--gray);
}


/* ================= SKILLS ================= */

.skills {
    background: #f7f5ff;
}

.skills-container {
    max-width: 1150px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    background: white;
    padding: 35px 28px;

    border: 1px solid var(--border);
    border-radius: 25px;

    transition: 0.4s;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(124, 92, 255, 0.3);
}

.skill-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: var(--secondary);

    font-size: 30px;

    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--gray);
    font-size: 15px;
}


/* ================= EXPERIENCE ================= */

.experience {
    background: white;
}

.timeline {
    max-width: 900px;
    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 31px;
    top: 0;
    bottom: 0;

    width: 2px;

    background: var(--border);
}

.timeline-item {
    position: relative;

    display: flex;
    gap: 30px;

    margin-bottom: 40px;
}

.timeline-number {
    min-width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary);
    color: white;

    font-weight: 800;

    z-index: 2;
}

.timeline-content {
    flex: 1;

    padding: 28px;

    background: var(--light);

    border: 1px solid var(--border);
    border-radius: 20px;

    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.timeline-content span {
    display: inline-block;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--gray);
}


/* ================= FUTURE ================= */

.future {
    background: #f7f5ff;
}

.future-content {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
}

.future-main {
    padding: 40px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #7c5cff,
            #9b83ff
        );

    color: white;

    box-shadow: 0 20px 50px rgba(124, 92, 255, 0.25);
}

.future-icon {
    display: block;

    font-size: 55px;

    margin-bottom: 20px;
}

.future-main h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

.future-main p {
    opacity: 0.9;
}

.future-list {
    display: grid;
    gap: 20px;
}

.future-item {
    display: flex;
    gap: 20px;

    padding: 25px;

    background: white;

    border-radius: 20px;

    border: 1px solid var(--border);

    transition: 0.3s;
}

.future-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.future-item > span {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--secondary);

    color: var(--primary);

    border-radius: 12px;

    font-weight: 800;
}

.future-item h4 {
    margin-bottom: 5px;
}

.future-item p {
    color: var(--gray);
    font-size: 14px;
}


/* ================= QUOTE ================= */

.quote {
    min-height: 50vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #27233a,
            #463a70
        );

    color: white;
}

.quote div {
    max-width: 850px;
}

.quote p {
    font-size: clamp(28px, 4vw, 45px);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

.quote span {
    color: #d8d0ff;
    font-weight: 600;
}


/* ================= CONTACT ================= */

.contact {
    background: white;
}

.contact-container {
    max-width: 1000px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-card {
    text-align: center;

    padding: 35px 25px;

    background: var(--light);

    border: 1px solid var(--border);

    border-radius: 25px;

    transition: 0.3s;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 18px;

    background: var(--secondary);

    font-size: 30px;
}

.contact-card h3 {
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--gray);
    word-break: break-word;
}


/* ================= FOOTER ================= */

footer {
    background: #211e31;
    color: white;
    text-align: center;
}

.footer-content {
    padding: 60px 20px 35px;
}

.footer-content h2 {
    color: #a998ff;
    font-size: 30px;
    margin-bottom: 10px;
}

.footer-content p {
    color: #b9b5c8;
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    padding: 20px;
}

.footer-bottom p {
    color: #8f8a9e;
    font-size: 13px;
}


/* ================= ANIMATIONS ================= */

@keyframes float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }

}

@keyframes slideLeft {

    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* ================= RESPONSIVE ================= */


/* TABLET */

@media (max-width: 900px) {

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .hero {
        gap: 30px;
    }

    .hero-image {
        flex: 0 0 300px;
    }

    .hero-image img {
        width: 280px;
        height: 280px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .future-content {
        grid-template-columns: 1fr;
    }

}


/* MOBILE */

@media (max-width: 650px) {

    section {
        padding: 75px 6%;
    }


    /* NAVBAR */

    nav {
        padding: 15px 6%;
    }

    .logo {
        font-size: 22px;
    }

    .nav-menu {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding-top: 130px;
        padding-bottom: 80px;

        flex-direction: column-reverse;

        text-align: center;
    }

    .hero-image {
        flex: auto;
    }

    .hero-image img {
        width: 230px;
        height: 230px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero-text > p:not(.greeting):not(.motto) {
        margin-left: auto;
        margin-right: auto;
    }

    .motto {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        max-width: 400px;
    }

    .hero-button {
        justify-content: center;
    }


    /* SECTION TITLE */

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 30px;
    }


    /* ABOUT */

    .about-text h3 {
        font-size: 26px;
    }


    /* SKILLS */

    .skills-container {
        grid-template-columns: 1fr;
    }


    /* TIMELINE */

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        gap: 15px;
    }

    .timeline-number {
        min-width: 52px;
        width: 52px;
        height: 52px;

        font-size: 13px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }


    /* FUTURE */

    .future-main {
        padding: 30px;
    }

    .future-main h3 {
        font-size: 25px;
    }

    .future-item {
        padding: 20px;
    }


    /* QUOTE */

    .quote {
        min-height: 45vh;
        padding: 70px 8%;
    }

    .quote p {
        font-size: 27px;
    }


    /* CONTACT */

    .contact-container {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-content {
        padding: 45px 20px 30px;
    }

}
```
