/* RESET*/

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


/*ROOT VARIABLES*/

:root {
    --text-main:  #ffffff;
    --text-soft: #cfc8b7;
    --accent: #69d18b;
    --accent-2: #ffb86b;

    --card: #171d24;
    --card-strong: #1f2731;
}


/*BODY */

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color:  #ffffff !important;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(105, 209, 139, 0.16),
            transparent 28%
        ),

        radial-gradient(
            circle at 82% 8%,
            rgba(255, 184, 107, 0.14),
            transparent 24%
        ),

        linear-gradient(
            135deg,
            #080b10 0%,
            #121722 45%,
            #0d1320 100%
        );
}


/* BACKGROUND GLOW*/

body::before,
body::after {
    content: "";
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    animation: drift 12s ease-in-out infinite alternate;
}

body::before {
    top: -90px;
    left: -80px;
    background: rgba(105, 209, 139, 0.16);
}

body::after {
    bottom: -120px;
    right: -90px;
    background: rgba(255, 184, 107, 0.16);
    animation-duration: 16s;
}


/*CANVAS BACKGROUND*/

#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}


/* HEADER*/

.topbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background:
        linear-gradient(
            135deg,
            #173220,
            #245233
        );

    color: #ffffff;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}


.brand {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    color: #ffffff;
}


/* NAVIGATION */

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 12px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}


.menu-btn {
    display: none;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #4db5ff
        );

    color: #04101a;
    font-weight: 700;
}


/*MAIN*/

main {
    position: relative;
    z-index: 1;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}


/* HERO*/

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(
            135deg,
            #1a2230,
            #121a25
        );

    padding: 32px;
    border-radius: 24px;
    border:
        1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}


.hero::before {
    content: "";
    position: absolute;
    inset: -20% 30% auto auto;
    width: 250px;
    height: 250px;
    background:
        radial-gradient(
            circle,
            rgba(120, 245, 212, 0.3),
            transparent 70%
        );

    animation:
        pulseGlow 7s ease-in-out infinite;
    pointer-events: none;
}


.hero-text {
    flex: 1;
    position: relative;
    z-index: 1;
    color: var(--text-main);
}


/* IMPORTANT FIX */

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 8px 0 12px;
    line-height: 1.1;
    color:  #ffffff;
}


.hero-text p {
    max-width: 600px;
    color: var(--text-soft);
}


/*HERO IMAGE*/

.hero-image {
    position: relative;
    z-index: 1;
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-image img {
    width: 100%;
    max-width: 260px;
    border-radius: 16px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18);
    border:
        3px solid #2f6b2f;
}


/* TAG */

.tag {
    display: inline-block;
    background: #ffb86b;
    color: #2b1a0e !important;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}


/* BUTTON*/

button {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #3a8f58
        );

    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2);
}


/* SECTIONS*/

.section {
    margin-top: 22px;
    background: var(--card);
    color: var(--text-main);
    padding: 20px;
    border-radius: 14px;
    border:
        1px solid rgba(255, 255, 255, 0.08);
}


.section h2 {
    color: #ffffff;
    margin-bottom: 16px;
}


.section p {
    color: var(--text-soft);
}


/* ABOUT*/

.about-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}


.about-box {
    flex: 1;
    min-width: 240px;
    background: var(--card-strong);
    color: var(--text-main);
    padding: 16px;
    border-radius: 12px;
    border:
        1px solid rgba(255, 255, 255, 0.08);
}


.about-box h3 {
    margin-top: 0;
    color: #8fe7ad;
}


.about-box p {
    margin: 8px 0;
    color: var(--text-soft);
}


.about-box strong {
    color: #ffffff;
}


/* PROJECT CARDS */

.cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


.card {
    flex: 1;
    min-width: 220px;
    background: var(--card-strong);
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    border:
        1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s ease;
}


.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}


.card img {
    width: 100%;
    max-width: 260px;
    border-radius: 16px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18);
    border:
        3px solid #2f6b2f;
}


.card h3 {
    color: #ffffff;
    margin-top: 12px;
}


.card p {
    color: var(--text-soft);
}


/*SHOWCASE*/

.showcase {
    margin-top: 16px;
    background: #202734;
    color: var(--text-main);
    padding: 16px;
    border-radius: 12px;
    border:
        1px solid rgba(255, 255, 255, 0.08);
}


.showcase h3 {
    color: #ffffff;
}


.showcase-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}


.showcase-item {
    background: #ffffff;
    color: #1b2330;
    padding: 12px;
    border-radius: 10px;
    min-width: 140px;
    text-align: center;
}


.showcase-item p {
    color: #1b2330;
}


/*CHARACTER IMAGE */

.character-image {
    width: 100px;
    height: 120px;
    display: block;
    margin: 0 auto 8px;
    border-radius: 12px;
    border: 2px solid #4a2f1f;
    background: #ffffff;
}


/* VILLAGE*/

.village-block {
    width: 70px;
    height: 70px;
    margin: 0 auto 8px;
    background: #c58a3c;
    position: relative;
    border-radius: 6px;
}


.village-block::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 30px;
    background: #6fa85b;
    border-radius: 4px;
}


/* CONTACT*/

.contact {
    background: #1b2330;
}


.contact p {
    color: var(--text-soft);
}


/*BACK TO GROUP*/

.back-btn {
    display: flex;
    justify-content: center;
    text-align: center;
    width: fit-content;
    margin: 30px auto;
    padding: 12px 24px;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #3a8f58
        );

    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.3s ease;
}


.back-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 22px rgba(105, 209, 139, 0.25);
}


/*ANIMATIONS */

@keyframes drift {

    0% {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    100% {
        transform:
            translate3d(20px, -30px, 0)
            scale(1.12);
    }

}


@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(0.9);

        opacity: 0.7;
    }

    50% {
        transform: scale(1.12);

        opacity: 1;
    }

}


/*MOBILE */

/* ==========================
   RESPONSIVE DESIGN
========================== */

@media (max-width: 700px) {

    body {
        font-size: 15px;
    }

    /* NAVBAR */
    .topbar {
        padding: 14px 18px;
        position: relative;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 1.1rem;
    }

    .menu-btn {
        display: block;
        padding: 8px 14px;
        font-size: 14px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 15px;
        width: 150px;

        flex-direction: column;
        gap: 0;

        background: #245233;
        padding: 8px;

        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.15);

        box-shadow: 0 10px 25px rgba(0,0,0,0.3);

        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        padding: 10px 12px;
        border-radius: 6px;
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.08);
    }


    /* MAIN */
    main {
        width: 100%;
        padding: 16px;
    }


    /* HERO */
    .hero {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;

        padding: 25px 20px;

        border-radius: 18px;
        gap: 25px;
    }

    .hero-text {
        width: 100%;
        background: transparent;
        color: var(--text-main);
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.15;
        margin: 12px 0;
        color: #ffffff;
    }

    .hero-text p {
        color: #cfc8b7;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .tag {
        font-size: 0.85rem;
        padding: 7px 11px;
    }


    /* HERO IMAGE */
    .hero-visual {
        width: 100%;
        flex: none;
        margin-top: 5px;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        width: 100%;
        max-width: 230px;
        height: auto;
    }


    /* SECTION */
    .section {
        padding: 18px;
        margin-top: 18px;
    }

    .section h2 {
        font-size: 1.7rem;
    }


    /* ABOUT */
    .about-grid {
        flex-direction: column;
        gap: 15px;
    }

    .about-box {
        width: 100%;
        min-width: 0;
    }

    .about-box h3 {
        font-size: 1.1rem;
    }


    /* PROJECTS */
    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
        min-width: 0;
    }

    .card img {
        max-width: 100%;
    }


    /* SHOWCASE */
    .showcase-grid {
        flex-direction: column;
    }

    .showcase-item {
        width: 100%;
        min-width: 0;
    }


    /* CONTACT */
    .contact {
        text-align: left;
    }


    /* BACK BUTTON */
    .back-btn {
        width: 100%;
        margin-top: 20px;
        padding: 12px;
    }
}

.back-btn{
    display:block;
    width:fit-content;
    text-align:center;
    margin:20px auto;
    padding:14px 28px;
    text-decoration:none;
    color:rgb(0, 0, 0);
    border:2px solid rgb(0, 0, 0);
    border-radius:8px;
    font-weight:600;
    transition:.3s;
}

.back-btn:hover{
    background:rgb(0, 0, 0);
    color:#050816;
    transform:translateY(-5px);
}

.back-btn h2{
    font-size:18px;
}

