html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 80px; /* 👈 IMPORTANT */
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;

    transition: all 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}
.nav-links a.active {
    color: #00bcd4;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #00bcd4;
    transition: 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a:link,
.nav-links a:visited {
    color: white;
}

.light-mode .nav-links a:link,
.light-mode .nav-links a:visited {
    color: white;
}

/* HERO */
.hero {
    background: black;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    padding-bottom: 20px; /* less gap */
}


.hero-box {
    background: white;
    color: black;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFade 1s ease forwards;
}

/* FEATURES */
.features {
    background: black;
    color: white;
    text-align: center;
    padding: 40px 20px;
    padding-top: 20px; /* tighter */
}

.features h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* PRICING (ALWAYS DARK) */
.pricing {
    background: black;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* CONTACT */
.contact {
    background: black;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* BOXES */
.row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.box {
    width: 250px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.box:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
/* DARK MODE DEFAULT */
.features .box {
    background: white;
    color: black;
}

.pricing .box {
    background: white;
    color: black;
}

/* LIGHT MODE */
.light-mode {
    background: white;
    color: black;
}

.light-mode .hero {
    background: white;
}

.light-mode .hero-box {
    background: black;
    color: white;
}

.light-mode .features {
    background: white;
    color: black;
}

.light-mode .features .box {
    background: black;
    color: white;
}

.light-mode .contact {
    background: white;
    color: black;
}

/* PRICING NEVER CHANGES */
.light-mode .pricing {
    background: black;
    color: white;
}

.light-mode .pricing .box {
    background: white;
    color: black;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 15px;
    background: white;
    color: black;
}

.light-mode .footer {
    background: black;
    color: white;
}

/* BUTTON */
.btn {
    margin-top: 10px;
    padding: 10px 15px;
    background: #0097a7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
     position: relative;
    overflow: hidden;
     position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.btn:hover {
    box-shadow: 0 0 15px #00bcd4, 0 0 30px #00bcd4;
    transform: translateY(-2px);
}


/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
#themeToggle {
    all: unset;              /* 🔥 removes ALL default browser styles */
    cursor: pointer;
    font-size: 20px;
    color: white;
    box-shadow: #00bcd4;
    margin-right: 50px;
}

/* Light mode color */
.light-mode #themeToggle {
    color: black;
}
#themeToggle:focus,
#themeToggle:active {
    outline: none;
    box-shadow: none;
}
/* MOBILE NAV */
.menu-toggle {
    font-size: 26px;
    cursor: pointer;
    color: white;
    display: none;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* ANIMATION */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


    @media (max-width: 768px) {

    .menu-toggle {
        display: flex;
        z-index: 1100; /* 👈 keeps it above menu */
    }

    .nav-links {
        position: fixed;

        top: 70px; /* 👈 below navbar */
        right: -100%;
        left: auto;
        transform: none;

        width: 60%; /* 👈 smaller */
        height: calc(100vh - 70px);

        background: rgba(0, 0, 0, 0.95);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 25px;
        padding: 20px;

        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;

        transition: 0.4s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }
}


/* SCROLL PROGRESS BAR */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #00bcd4;
    z-index: 9999;
    transition: width 0.1s linear;
    background: linear-gradient(90deg, #00bcd4, #4caf50);
}
.right-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* RIPPLE EFFECT */

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(255, 255, 255, 0.6);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    padding: 10px 14px;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    background: #0097a7;
    color: white;
    cursor: pointer;

    display: none;
    z-index: 1000;

    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    background: #00bcd4;
}
/* OVERLAY (background blur) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;
    z-index: 900;
}

/* SHOW OVERLAY */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}