html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    background: #0f172a;
    color: #f1f5f9;
    position: relative;
    overflow-x: hidden;
}

background-image: radial-gradient(circle at 1px 1px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 0);
background-size: 40px 40px;

/* Background Glow Circles */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

body::before {
    background: rgba(0, 173, 181, 0.25);
    top: -150px;
    left: -150px;
}

body::after {
    background: rgba(37, 211, 102, 0.15);
    bottom: -150px;
    right: -150px;
}




.portfolio,
.contact {
    position: relative;
}

.portfolio::before,
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
}




/* ================= NAVBAR ================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 60px;

    /* Footer base color */
    background: #0f172a;

    /* Subtle right-to-left overlay effect */
    background-image: linear-gradient(to right,
            rgba(30, 58, 138, 0.35),
            rgba(15, 23, 42, 1));

    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 1000;
    transition: 0.4s ease;
}

nav.hide {
    transform: translateY(-100%);
}

nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
}

nav.scrolled {
    background: linear-gradient(to right, #0c1220, #172554);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* LOGO */
.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #00adb5;
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00adb5;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #00adb5;
    left: 0;
    bottom: -6px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
}

/* ================= HERO ================= */

.hero {
    height: 100vh;
    background: linear-gradient(to right, #0f172a, #1e3a8a);
    background-size: 200% 100%;
    animation: heroMove 8s ease infinite;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
}

@keyframes heroMove {
    0% {
        background-position: left;
    }

    50% {
        background-position: right;
    }

    100% {
        background-position: left;
    }
}

.hero h1 {
    font-size: 50px;
    background: linear-gradient(to right, #ffffff, #00adb5);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 10px;
    font-size: 18px;
}



/* HERO BUTTONS (Email + WhatsApp) */
.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
}

.btn i {
    margin-right: 8px;
    font-size: 16px;
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Email Button */
.email-btn {
    background: #ffffff;
    color: #111827;
}

.email-btn:hover {
    background: #111827;
    color: white;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1da851;
}

/* ================= PORTFOLIO ================= */
.portfolio {
    padding: 100px 60px;
    background: linear-gradient(to right, #00adb5, #393e46);
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 40px;
}

.projects {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #111827;
    padding: 25px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card.featured {
    width: 360px;
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 18px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(30, 58, 138, 0.4);

    border: 1px solid rgba(30, 58, 138, 0.4);
}

/* Tech Stack */
.tech-stack {
    margin-top: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    background: #1f2937;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #e2e8f0;
}

/* Project Links */
.project-links {
    margin-top: 10px;
    display: flex;
    gap: 25px;
}

.project-links a {
    font-size: 14px;
    color: #00adb5;
    text-decoration: none;
    position: relative;
    transition: 0.3s ease;
}

.project-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1.5px;
    background: #00adb5;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

.project-links a:hover::after {
    width: 100%;
}

.project-links a:hover {
    color: #ffffff;
}

/* ================= CONTACT ================= */
.contact {
    padding: 100px 60px;
    text-align: center;
    background: #0f172a;
    /* Same as footer */
}

form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

form input,
form textarea {
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(to right, #0f172a, #1e3a8a);
    /* Navbar blue */
    color: white;
    transition: all 0.4s ease;
    position: relative;
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

form input:focus,
form textarea:focus {
    outline: none;
    background: linear-gradient(to right, #1e3a8a, #2563eb);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    transform: translateX(5px);
    background-size: 200% 100%;
    background-position: right center;
}

form button {
    padding: 14px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

form button:hover {
    background: #2563eb;
    color: white;
}

/* ================= FOOTER ================= */
footer {
    background: #0f172a;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= LOADER ================= */
.loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #00adb5;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    nav {
        padding: 15px 30px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #111827;
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .portfolio {
        padding: 80px 30px;
    }

    .contact {
        padding: 80px 30px;
    }
}