:root {
    --bg-color: #0f1717;
    --snd-bg-color: #1b2b2b;
    --main-color: #00ADB5;
    --accent-color: #FF7043;
    --text-color: #f5f7f8;
    --muted: #9fb1b1;
    --card: #122021;
    --ring: rgba(0, 173, 181, .35);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* body.light-theme {
    --bg-color: #faf9f6;
    --snd-bg-color: #ffffff;
    --main-color: #2A9D8F;
    --accent-color: #F4A261;
    --text-color: #1F1F1F;
    --muted: #555;
    --card: #ffffff;
    --ring: rgba(42, 157, 143, .35);
    --shadow: 0 10px 30px rgba(0, 0, 0, .1);
} */



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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

button {
    font: inherit
}

section {
    min-height: 100vh;
    padding: 7rem 6vw 4rem;
}



/* Header Design */
.header {
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: saturate(120%) blur(8px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .10));
}

.nav {
    max-width: 1280px;
    margin-inline: auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: Poppins, sans-serif;
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 2.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    font-weight: 600;
    opacity: .9;
}

.nav-links a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    border-radius: 2px;
    transition: width .35s ease;
}

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

.actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    position: relative;
    z-index: 9999;
}

.icon-btn {
    z-index: 2100;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
    opacity: .9;
    transition: .25s;
}

.icon-btn i {
    pointer-events: none;
}

.icon-btn:hover {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px var(--ring);
}

.hamburger {
    display: none;
}

.hamburger i {
    pointer-events: none;
}


/* Mobile menu */
.mobile {
    position: absolute;
    inset: 72px 3vw auto;
    max-width: 1120px;
    margin-inline: auto;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .45s ease, opacity .35s ease, transform .35s ease;
}

.mobile.open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
}

.mobile a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile a:hover {
    background: rgba(255, 255, 255, .04);
}

/* Hero */
.home {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.bg-orbs::before,
.bg-orbs::after {
    content: "";
    position: absolute;
    filter: blur(60px);
    opacity: .35;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.bg-orbs::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(closest-side, var(--main-color), transparent 70%);
    top: -80px;
    left: 0;
}

.bg-orbs::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(closest-side, var(--accent-color), transparent 70%);
    bottom: -80px;
    right: 0;
}

.tag {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .9rem;
}

.title {
    font-family: Poppins, sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin: .75rem 0 .5rem;
}

.subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--muted);
    max-width: 56ch;
}

.cta {
    margin-top: 1.6rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    background: var(--main-color);
    color: #061111;
    padding: .85rem 1.15rem;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 6px 20px rgba(0, 173, 181, .35);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 173, 181, .45);
}

.btn.ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: none;
}

.hero-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.hero-photo {
    aspect-ratio: 1/1;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    50% {
        transform: translateY(-8px)
    }
}

.socials {
    display: flex;
    gap: .7rem;
    margin-top: 14px;
}

.socials a {
    height: 44px;
    width: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    transition: .25s;
}

.socials a:hover {
    border-color: var(--ring);
    box-shadow: 0 0 0 1px var(--ring);
}



/* About*/
.about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.about-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.heading {
    font-family: Poppins, sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.about p {
    line-height: 1.7;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

.chip {
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    font-weight: 600;
    font-size: .95rem;
}

.readmore {
    margin-top: 10px;
}

/* Portfolio */
.portfolio .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card img {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tech .chip {
    background: rgba(0, 173, 181, .14);
    border-color: rgba(0, 173, 181, .25);
}

.card a.live {
    margin-top: auto;
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: start;
}

.muted {
    color: var(--muted);
}

form {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

label {
    font-weight: 700;
    font-size: .95rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    font-weight: bold;
    font-style: oblique;
    opacity: 0.7;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.3;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
    color: var(--text-color);
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 6px var(--ring);
    border-color: var(--main-color);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


/* Footer */
footer {
    padding: 18px 6vw;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.to-top {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
}

/* Toast */
.toast {
    position: fixed;
    right: 16px;
    top: 16px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--text-color);
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 980px) {
    .nav {
        padding: 0 40px;
        /* background: purple; */
    }

    .home {
        grid-template-columns: 1fr;
        gap: 2.2rem
    }

    .about {
        grid-template-columns: 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav {
        padding: 0 40px;
        /* background: purple; */
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: grid;
    }
}