/* ================= ROOT ================= */
:root {
    --purple: #7c3aed;
    --purple-light: #b065fb;
    --dark: #0f172a;
    --light: #ffffff;
    --text-dark: #1e293b;
}

/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background: var(--light);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark body {
    background: var(--dark);
    color: white;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

.section {
    min-height: auto;
    padding: 78px 0 75px;
    scroll-margin-top: 75px;

}


/* ================= NAVBAR ================= */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    height: 90px;
    background: var(--light);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: 0.3s ease;

}

nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);

}

html.dark nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

html.dark nav {
    background: var(--dark);
}

.nav-wrapper {
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
}

.nav-logo-img {
    height: 33px;
    width: auto;
    display: block;
}


.nav-menu {
    display: flex;
    gap: 120px;
}

.nav-menu a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    color: inherit;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    transition: 0.3s ease;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Light mode nav text */
.nav-menu a,
.nav-logo {
    color: var(--text-dark);
    /* dark text in light mode */
    transition: color 0.3s ease;
    /* smooth color change */
}

/* Dark mode nav text */
html.dark .nav-menu a,
html.dark .nav-logo {
    color: white;
    /* white text in dark mode */
}


/* ===== Premium Gradient Hover ===== */

.nav-logo,
.nav-menu a {
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-logo:hover,
.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));

    background-clip: text;
    /* Standard */
    -webkit-background-clip: text;
    /* Chrome/Safari */

    color: transparent;
    /* Fallback */
    -webkit-text-fill-color: transparent;
}

.theme-toggle {
    font-size: 22px;
    cursor: pointer;
}

.hamburger,
.nav-close {
    display: none;
}

/* ================= HERO ================= */
.hero {
    height: 92vh;
    padding-top: 90px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 60px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.hero-text p {
    font-size: 19px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 30px;
}

.hero-buttons button {
    padding: 16px 44px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-top: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: white;
    transition: 0.3s ease;
}

.hero-buttons button:hover {
    transform: translateY(-4px);
}


.hero-image .animation-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: auto;
    z-index: 1;
    /* Container above hero background */
}

.hero-image .signature img {
    width: clamp(270px, 55vw, 520px);
    display: block;
    margin: auto;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 1.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }

}

.hero-image .magnifier {
    position: absolute;
    width: clamp(82px, 15vw, 166px);
    height: clamp(82px, 15vw, 166px);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-image .rim {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: clamp(4px, 0.8vw, 8px) solid #a855f7;
    box-shadow:
        0 0 clamp(8px, 1vw, 15px) #7c3aed,
        0 0 clamp(8px, 1vw, 15px) #b065fb,
        inset 0 0 clamp(4px, 0.5vw, 8px) rgba(0, 0, 0, .6);
    z-index: 3;
}

.hero-image .lens {
    position: absolute;
    inset: calc(clamp(4px, 0.8vw, 8px) * -0.01);
    border-radius: 50%;
    background: transparent;
}

.hero-image .shine {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(130deg, rgba(255, 255, 255, .35), transparent 40%);
    border-radius: 50%;
    z-index: 4;
}

.hero-image .handle {
    position: absolute;
    width: clamp(70px, 13vw, 170px);
    height: clamp(7.5px, 1.1vw, 18px);
    background: linear-gradient(to right, #972df5, #b572f7);
    /* Position at circle edge */
    top: 88%;
    left: 88%;
    /* Small gap + perfect angle */
    transform: rotate(45deg);
    transform-origin: left center;
    border-radius: 20px;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, .5),
        inset 0 0 6px rgba(255, 255, 255, .4);
}

/* Default (light mode) */
.hero-image .signature img {
    filter: invert(0);
    /* black stays black */
    transition: filter 0.3s ease;
}

/* Dark mode */
html.dark .hero-image .signature img {
    filter: invert(1);
    /* black becomes white */
}


/* ================= SCAN RESULT ================= */

.scan-result {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(8.5px, 1.4vw, 15px);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50%;
    padding: clamp(4px, 0.8vw, 10px);
    opacity: 0;
    transition: opacity 0.2s ease,
        color 0.3s ease,
        background 0.3s ease;
    backdrop-filter: blur(1.43px);
}

/* Light mode background */
.scan-result {
    background: rgba(250, 250, 250, 0.65);
}

/* Dark mode background */
html.dark .scan-result {
    background: rgba(15, 23, 42, 0.60);
}

/* Match styling*/
.scan-result.match {
    color: #20ae20;
}

/* No match styling */
.scan-result.no-match {
    color: #f11e1e;
}


/* ================= ABOUT ================= */

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}


.about-text h2 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 40px;
}

.brand-name {
    background: linear-gradient(135deg,
            var(--purple),
            var(--purple-light),
            var(--purple),
            var(--purple-light),
            var(--purple));

    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: gradientMove 7s linear infinite;
    will-change: background-position;
    backface-visibility: hidden;
    transform: translateZ(0);

}

/* Animation */
@keyframes gradientMove {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}


.about-text p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.85;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 400;
}

.check-list i {
    color: var(--purple);
    font-size: 22px;
}

.about-image img {
    display: block;
    width: 75%;
    height: auto;

}

/* ===== Custom Scrollbar ===== */

/* Width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;

}

/* Thumb (Light Mode) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Thumb (Dark Mode) */
html.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
}


/* ================= CONTACT PREMIUM ================= */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.contact-title {
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 70px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.contact-item i {
    font-size: 25px;
    color: var(--purple-light);
    margin-bottom: 25px;
}

.contact-item h4 {
    font-size: 17px;
    margin-bottom: 3px;
    font-weight: 600;
}

.contact-item a {
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}

.contact-item a:hover {
    color: var(--purple-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}

.form-group {
    position: relative;
    border-bottom: 1.2px solid #ccc;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 0;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: inherit;
}

.form-group textarea {
    height: 120px;
    margin-top: 11.5px;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 14px;
    font-size: 15px;
    font-weight: 450;
    opacity: .6;
    transition: .3s ease;

}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -12px;
    font-size: 14px;
}

/* Red underline only when invalid */
.form-group:has(input:invalid:not(:placeholder-shown)),
.form-group:has(textarea:invalid:not(:placeholder-shown)) {
    border-bottom: 1.3px solid #ff0000;
}

/* make label red too */
.form-group:has(input:invalid:not(:placeholder-shown)) label,
.form-group:has(textarea:invalid:not(:placeholder-shown)) label {
    color: #ff0000;
    font-weight: 450;
}

.btn-gradient {
    padding: 16px;
    margin-top: 14px;
    width: 200px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: white;
    font-size: 17px;
    transition: transform 0.2s ease, background 0.3s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gradient:hover {
    transform: none;
    filter: brightness(1.1);
}

.btn-gradient:hover i {
    transform: translateX(5px);
}

.btn-gradient:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}

.btn-gradient i {
    display: inline-block;
    transition: transform 0.3s ease;
}


#contact {
    min-height: calc(100vh - 75px);
}

/* ================= PREMIUM FOOTER  ================= */
.footer {
    padding: 60px 0 40px;
    background: var(--dark);
    color: white;
    text-align: center;
    font-size: 15px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--light);
    transition: 0.3s ease;
}

/* Gradient hover like navbar */
.footer-logo:hover {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    background-clip: text;
    /* Standard */
    -webkit-background-clip: text;
    /* Chrome / Safari */

    color: transparent;
    /* Fallback */
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    margin-top: 13.5px;
    margin-left: 5px;
    display: flex;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-item {
    display: block;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--light);
}

/* Remove default link styling */
.footer-item[href] {
    text-decoration: none;
    color: var(--light);
    transition: 0.3s ease;
}

/* Hover effect only for clickable links */
.footer-item[href]:hover {
    color: var(--purple-light);
}

.footer-social i {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
    transition: .3s;
}

.footer-social i:hover {
    color: var(--purple-light);
    transform: translateY(-3px);
}

.footer-copy {
    text-align: center;
    margin-top: 60px;
    opacity: .6;
}



/* ================= SCROLL UP ================= */

.scroll-up {
    position: fixed;
    right: 30px;
    bottom: -60px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: white;
    border-radius: 8px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform, bottom;
    transition: bottom 0.4s, transform 0.4s ease, box-shadow 0.4s;
}

.scrollup__icon {
    font-size: 20px;
    display: block;
    line-height: 1;
    pointer-events: none;
}

.scroll-up.show {
    bottom: 40px;
}

.scroll-up:hover {
    transform: translateY(-5px) scale(1.02) translateZ(0);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.2);
}


.scroll-up:active {
    transform: translateY(-2px) scale(0.96);
}




/* Responsive */
@media(max-width:900px) {

    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px) {

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image,
    .about-image {
        order: -1;
    }

    .hero-text h1 {
        font-size: 42px;
    }

}

/* ================= MOBILE SLIDE NAV ================= */

.hamburger {
    font-size: 22px;
    cursor: pointer;
    display: none;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}


@media (max-width: 768px) {


    .nav-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 26px;
        cursor: pointer;
    }

    .nav-close:hover {
        color: var(--purple-light);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background: var(--light);
        padding: 120px 40px;
        display: flex;
        flex-direction: column;
        gap: 50px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        border-radius: 1rem 0 0 1rem;
        z-index: 2000;
    }

    .nav-menu a {
        display: inline-block;
        width: fit-content;
    }

    html.dark .nav-menu {
        background: var(--dark);
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .hamburger {
        display: block;
    }
}





/* =======================================================
   RESPONSIVE SYSTEM
   Desktop First → Scaling Down
======================================================= */

@media (max-width: 1385px) {

    .container {
        max-width: 1150px;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .about-text h2,
    .contact-title {
        font-size: 44px;
    }

}

/* ===========================
   1200px (Large Laptop)
=========================== */
@media (max-width: 1200px) {

    .container {
        max-width: 1200px;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .about-text h2,
    .contact-title {
        font-size: 44px;
    }

}

@media (max-width: 1240px) {

    .section {
        padding: 70px 0;
    }

    .hero {
        height: auto;
        padding: 120px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-image,
    .about-image {
        order: -1;
    }

    .nav-menu {
        gap: 110px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 17px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }



    .about-image img {
        width: 85%;
        margin: auto;
    }
}


/* ===========================
   1024px (Small Laptop)
=========================== */
@media (max-width: 1024px) {

    .nav-menu {
        gap: 90px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-text p {
        font-size: 18px;
    }



    .about-text h2 {
        font-size: 40px;
    }


}





/* ===========================
   900px (Tablet Portrait)
=========================== */
@media (max-width: 900px) {

    .section {
        padding: 70px 0;
    }

    .hero {
        height: auto;
        padding: 120px 0 70px;
    }

    .hero-grid,
    .about-grid,
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .hero-image,
    .about-image {
        order: -1;
    }

    .nav-menu {
        gap: 75px;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .hero-text p {
        font-size: 18px;
        margin-bottom: 45px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 60px;
    }



    .about-image img {
        width: auto;
        margin: auto;
    }

    .check-list li {
        display: flex;
        align-items: center;
    }
}


/* ===========================
   768px (Large Mobile)
=========================== */
@media (max-width: 768px) {

    nav,
    .nav-wrapper {
        height: 75px;
    }

    .nav-menu {
        width: 80%;
        padding: 110px 40px;
    }

    .hero-text h1 {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-buttons button {
        padding: 14px 34px;
        font-size: 16px;
    }


    .about-text h2,
    .contact-title {
        font-size: 32px;
    }

    .about-text p {
        font-size: 15px;
    }

    .contact-item {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .footer-container {
        gap: 40px;
    }


}


/* ===========================
   600px (Medium Mobile)
=========================== */
@media (max-width: 600px) {

    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-buttons {
        gap: 15px;
    }

    .hero-buttons button {
        width: 100%;
        max-width: 250px;
    }



    .about-image img {
        width: 100%;
        max-width: 350px;
    }

    .btn-gradient {
        width: 100%;
        max-width: 250px;
    }

    .scroll-up {
        width: 40px;
        height: 40px;
        right: 20px;
    }
}


/* ===========================
   480px (Small Mobile)
=========================== */
@media (max-width: 480px) {

    .nav-menu {
        gap: 50px;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .nav-menu a::after {
        height: 2px;
    }

    .nav-close {
        font-size: 26.8px;
    }

    .hero-text p {
        font-size: 14.8px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons button {
        width: 100%;
        max-width: 245px;
        padding: 14px 34px;
        font-size: 15px;
    }

    .about-image img {
        width: 93%;
        max-width: 350px;
        padding-bottom: 15px;
    }

    .about-text h2,
    .contact-title {
        font-size: 27px;
    }

    .about-text p {
        font-size: 14.8px;
    }

    .check-list {
        width: fit-content;
        margin: 0 auto;
    }

    .check-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
        font-size: 15px;
    }

    .check-list i {
        font-size: 21px;
    }

    .contact-item i {
        font-size: 21px;
        color: var(--purple-light);
        margin-bottom: 9px;
    }

    .contact-item h4 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .contact-item a {
        font-size: 15px;
    }

    .form-group label {
        top: 13px;
        font-size: 14.8px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14.7px;
    }

    .form-group input:focus+label,
    .form-group input:not(:placeholder-shown)+label,
    .form-group textarea:focus+label,
    .form-group textarea:not(:placeholder-shown)+label {
        top: -11.5px;
        font-size: 13.8px;
    }

    .btn-gradient {
        width: 100%;
        max-width: 245px;
        font-size: 15.5px;
        padding: 14.5px;
    }

    .footer-col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-tagline {
        margin-left: 0;
        text-align: center;
        display: block;
    }

    .scrollup__icon {
        font-size: 17.5px;
    }

    .footer-copy {
        font-size: 13.8px;
    }

}

