/* ========================================
   GLOBAL STYLES
======================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #f7f4ef;
    color: #24233a;
    font-family: 'DM Sans', sans-serif;
}


/* ========================================
   NAVIGATION
======================================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 6%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #24233a;
    font-size: 15px;
    margin-left: 25px;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #6c63a8;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #6c63a8;
}

nav a:hover::after {
    width: 100%;
}


/* ========================================
   HERO SECTION
======================================== */

.hero {
    min-height: 75vh;
    padding: 80px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
}

.hero-text {
    max-width: 650px;
}

.hero-number {
    font-size: 12px;
    letter-spacing: 3px;
    color: #6c63a8;
    font-weight: 600;
}

.intro {
    margin: 25px 0 0;
    font-size: 18px;
}

.hero h1 {
    font-size: 80px;
    line-height: 0.9;
    margin: 15px 0;
    font-weight: 700;
    letter-spacing: -3px;
}

.hero h2 {
    font-size: 24px;
    font-weight: normal;
    margin: 20px 0;
}

.hero-description {
    max-width: 500px;
    line-height: 1.6;
}


/* ========================================
   HERO VISUAL
======================================== */

.hero-visual {
    position: relative;
    width: 360px;
    height: 320px;
    justify-self: center;
}

/* Hide the old circle element */
.visual-circle {
    display: none;
}

/* Soft abstract background shape */
.hero-visual::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 190px;
    background-color: #e9e7f5;
    border-radius: 35% 65% 60% 40%;
    top: 60px;
    left: 60px;
    transform: rotate(-8deg);
}

/* Small decorative plus */
.hero-visual::after {
    content: "+";
    position: absolute;
    top: 35px;
    right: 55px;
    font-size: 22px;
    color: #6c63a8;
    font-weight: 500;
}

/* Main visual card */
.visual-card {
    position: absolute;
    width: 210px;
    height: 130px;
    padding: 22px;
    background-color: #24233a;
    color: #f7f4ef;
    border-radius: 16px;
    top: 85px;
    left: 70px;
    transform: rotate(-3deg);
    box-shadow: 12px 12px 0 #b9b4df;
    animation: cardFloat 4s ease-in-out infinite;
    box-sizing: border-box;
}

.visual-card span {
    font-size: 30px;
    color: #dcd8f0;
}

.visual-card p {
    margin: 20px 0 0;
    font-size: 11px;
    letter-spacing: 3px;
}

/* Decorative dots */
.visual-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c63a8;
}

.dot-one {
    top: 65px;
    left: 40px;
}

.dot-two {
    bottom: 65px;
    right: 55px;
}

.dot-three {
    bottom: 35px;
    left: 95px;
}

/* Decorative lines */
.visual-line {
    position: absolute;
    height: 1px;
    background-color: #b9b4df;
    transform-origin: left center;
}

.line-one {
    width: 75px;
    top: 55px;
    left: 10px;
    transform: rotate(-25deg);
}

.line-two {
    width: 65px;
    bottom: 50px;
    right: 10px;
    transform: rotate(-25deg);
}

/* Small label */
.visual-label {
    position: absolute;
    bottom: 15px;
    left: 175px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #6c63a8;
}


/* ========================================
   HERO CARD ANIMATION
======================================== */

@keyframes cardFloat {
    0% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(-3deg);
    }

    100% {
        transform: translateY(0) rotate(-3deg);
    }
}


/* ========================================
   ABOUT SECTION
======================================== */

#about {
    padding: 100px 6%;
    background-color: #e9e7f5;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 70px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#about::before {
    content: "02";
    position: absolute;
    right: 6%;
    top: 25px;
    font-size: 90px;
    font-weight: 700;
    color: rgba(108, 99, 168, 0.08);
    letter-spacing: -5px;
}

#about h2 {
    grid-column: 1;
    font-size: 52px;
    margin: 0;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

#about p {
    grid-column: 2;
    max-width: 700px;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

#about p + p {
    margin-top: 35px;
}


/* ========================================
   PROJECTS SECTION
======================================== */

#projects {
    padding: 120px 6%;
    box-sizing: border-box;
}

#projects h2 {
    font-size: 52px;
    margin: 0 0 50px;
    letter-spacing: -2px;
}

.project-card {
    max-width: 700px;
    padding: 40px;
    background: #24233a;
    color: #f7f4ef;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box;
}

.project-card::before {
    content: "03";
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 55px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
}

.project-card::after {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    width: 70px;
    height: 4px;
    background: #b9b4df;
}

.project-card h3 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 18px;
}

.project-card p {
    line-height: 1.7;
}

.project-card a {
    display: inline-block;
    margin-top: 20px;
    color: #dcd8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-card a:hover {
    color: #ffffff;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 12px 15px 0 #dcd8f0;
}


/* ========================================
   SKILLS SECTION
======================================== */

#skills {
    padding: 100px 6%;
    background: #f7f4ef;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#skills h2 {
    font-size: 52px;
    margin: 0 0 55px;
    letter-spacing: -2px;
}

#skills::before {
    content: "04";
    position: absolute;
    right: 6%;
    top: 25px;
    font-size: 90px;
    font-weight: 700;
    color: rgba(108, 99, 168, 0.08);
    letter-spacing: -5px;
}

.skill-category {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #d8d4df;
    transition: padding-left 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-category strong {
    min-width: 190px;
}

.skill-category span {
    display: inline-block;
    padding: 9px 15px;
    background: #e9e7f5;
    border-radius: 20px;
    font-size: 14px;
    cursor: default;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.skill-category span:hover {
    background: #6c63a8;
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 18px rgba(108, 99, 168, 0.22);
}

.skill-category:hover {
    padding-left: 8px;
}


/* ========================================
   CLUBS & ACTIVITIES
======================================== */

#clubs {
    padding: 100px 6%;
    background: #e9e7f5;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#clubs h2 {
    font-size: 52px;
    margin: 0 0 55px;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

/* Large faded section number */
#clubs::before {
    content: "05";
    position: absolute;
    right: 6%;
    top: 25px;
    font-size: 90px;
    font-weight: 700;
    color: rgba(108, 99, 168, 0.08);
    letter-spacing: -5px;
    z-index: 0;
}

.club-card {
    max-width: 900px;
    padding: 32px 0 38px;
    border-top: 1px solid #bcb8cc;
    position: relative;
    transition: transform 0.3s ease;
}

.club-card h3 {
    font-size: 28px;
    margin: 0 0 12px;
    transition: color 0.3s ease;
}

.club-card p {
    max-width: 700px;
    line-height: 1.7;
}

.club-card strong {
    color: #6c63a8;
}

.club-card:hover {
    transform: translateX(10px);
}

.club-card:hover h3 {
    color: #6c63a8;
}


/* ========================================
   CONTACT SECTION
======================================== */

#contact {
    padding: 140px 6%;
    background: #24233a;
    color: #f7f4ef;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Large faded section number */
#contact::before {
    content: "06";
    position: absolute;
    right: 6%;
    top: 25px;
    font-size: 90px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: -5px;
}

#contact h2 {
    font-size: 60px;
    margin: 0 0 25px;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-links a {
    color: #f7f4ef;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #6c63a8;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #b9b4df;
}


/* ========================================
   FOOTER
======================================== */

footer {
    padding: 25px 6%;
    background: #1c1b2d;
    color: #b9b4df;
    text-align: center;
    font-size: 13px;
}


/* ========================================
   SCROLL REVEAL ANIMATION
======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.scroll-reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 768px) {

    /* Navigation */
    nav {
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav a {
        margin-left: 0;
        font-size: 13px;
    }


    /* Hero */
    .hero {
        min-height: auto;
        padding: 70px 5%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero h2 {
        font-size: 19px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-visual {
        width: 280px;
        height: 280px;
        align-self: center;
    }

    .visual-card {
        width: 180px;
        height: 115px;
        padding: 18px;
        top: 80px;
        left: 50px;
    }

    .visual-card span {
        font-size: 26px;
    }

    .visual-card p {
        margin-top: 15px;
    }

    .visual-label {
        left: 135px;
    }


    /* About */
    #about {
        display: block;
        padding: 80px 5%;
    }

    #about h2 {
        font-size: 42px;
        margin-bottom: 30px;
    }

    #about p {
        font-size: 16px;
    }


    /* Projects */
    #projects {
        padding: 80px 5%;
    }

    #projects h2 {
        font-size: 42px;
    }

    .project-card {
        padding: 30px;
    }

    .project-card h3 {
        font-size: 27px;
    }


    /* Skills */
    #skills {
        padding: 80px 5%;
    }

    #skills h2 {
        font-size: 42px;
    }

    .skill-category {
        flex-wrap: wrap;
        gap: 12px;
    }

    .skill-category strong {
        min-width: 100%;
        margin-bottom: 5px;
    }


    /* Clubs */
    #clubs {
        padding: 80px 5%;
    }

    #clubs h2 {
        font-size: 42px;
    }

    .club-card h3 {
        font-size: 25px;
    }


    /* Contact */
    #contact {
        padding: 100px 5%;
    }

    #contact h2 {
        font-size: 45px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}