:root {
    --bg: #0e0f14;
    --bg-soft: #121522;
    --card: #14182a99;
    --text: #e7e9ee;
    --muted: #9aa3b2;
    --primary: #7c3aed;
    /* purple */
    --secondary: #06b6d4;
    /* cyan */
    --accent: #f59e0b;
    /* amber */
    --grad: linear-gradient(135deg, var(--primary), #ff4d8d, var(--secondary));
}

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

html,
body {
    height: 100%
}

body {
    font-family: "Poppins", system-ui, Arial, sans-serif;
    background: radial-gradient(1200px 400px at 10% -10%, #1b1140, transparent 60%), radial-gradient(1000px 500px at 120% 10%, #0b3a4a, transparent 60%), var(--bg);
    color: var(--text);
}

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

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

.container {
    width: min(1100px, 92%);
    margin-inline: auto
}

.section {
    padding: 80px 0
}

.title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: .5px
}

.title.center {
    text-align: center;
    margin-bottom: 30px
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: var(--card);
    backdrop-filter: blur(6px);
    transition: .3s;
    box-shadow: 0 6px 22px #00000040
}

.btn:hover {
    transform: translateY(-2px);
    border-color: #ffffff30
}

.btn.primary {
    background: var(--grad);
    border: none
}

.btn.ghost {
    background: transparent;
    border: 1.5px solid #ffffff2c
}

.btn.tiny {
    padding: 8px 14px;
    font-size: .85rem
}


/* NAV */
.nav-wrap {
    position: sticky;
    top: -80px;
    z-index: 50;
    background: linear-gradient(#0e0f14cc, #0e0f14cc)
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 0
}
/* Navbar Default (Light Theme) */
nav {
  background: #ffffff;
  padding: 15px 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: background 0.5s ease, color 0.5s ease;
}

nav a {
  color: #222;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.5s ease;
}

/* Dark Theme Navbar */
body.dark nav {
  background: #1a1a1a;
}

body.dark nav a {
  color: aliceblue;   /* Light shade for dark background */
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: lowercase
}

.brand .dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad);
    display: inline-block
}

.links {
    list-style: none;
    display: flex;
    gap: 22px
}

.links a {
    opacity: .85
}

.links a:hover {
    opacity: 1
}

.hire {
    background: var(--grad);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px
}

.menu-btn span {
    width: 28px;
    height: 2px;
    background: #fff;
    display: block
}

.about {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 30px
}

.about p {
    margin: 18px 0 26px;
    color: var(--muted)
}

.about-cta {
    display: flex;
    gap: 12px
}

.avatar-wrap {
    position: relative;
    width: min(360px, 80vw);
    aspect-ratio: 1;
    border-radius: 28px;
    padding: 12px;
    background: var(--card)
}

.about-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    filter: saturate(1.05)
}

.ring {
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: 32px;
    background: conic-gradient(from 180deg, var(--primary), #ff4d8d, var(--secondary), var(--accent), var(--primary));
    filter: blur(14px);
    opacity: .6
}


/* SERVICES */
.grid {
    display: grid;
    gap: 22px
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr)
}

.card {
    background: var(--card);
    border: 1px solid #ffffff14;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 8px 30px #00000050;
    transition: transform .35s ease, box-shadow .35s ease
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px #00000066
}

.service img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px
}

.service h3 {
    font-size: 1.25rem;
    margin-bottom: 6px
}

.service p {
    color: var(--muted)
}


/* PROJECTS */
.project .thumb {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px
}

.project h3 {
    margin-bottom: 6px
}

.project p {
    color: var(--muted);
    margin-bottom: 12px
}

.project-grid .project {
    cursor: pointer
}

.project-grid .project:hover .thumb img {
    transform: scale(1.06)
}

.project-grid .thumb img {
    transition: transform .5s ease
}


/* SKILLS */
.skills-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px
}

.skill {
    background: var(--card);
    border: 1px solid #ffffff14;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-direction: column
}

.skill img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 6px 12px #00000070)
}

.skill span {
    font-weight: 500
}


/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.contact-card {
    background: var(--card);
    border: 1px solid #ffffff14;
    border-radius: 22px;
    padding: 22px
}

.contact-card h3 {
    margin-bottom: 4px
}

.contact-card .muted {
    color: var(--muted);
    margin-bottom: 12px
}

.contact-item {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffffff08, transparent);
    border: 1px solid #ffffff1c;
    margin-bottom: 10px;
    transition: .3s
}

.contact-item:hover {
    transform: translateX(4px)
}


/* FOOTER */
.footer {
    padding: 30px 0;
    color: #b6becd;
    text-align: center;
    border-top: 1px solid #ffffff14;
    background: #0e0f14
}


/* Responsive */
@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr
    }

    .cards-3 {
        grid-template-columns: 1fr 1fr
    }

    .skills-row {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width: 650px) {
    .links {
        display: none
    }

    .menu-btn {
        display: flex
    }

    .cards-3 {
        grid-template-columns: 1fr
    }

    .skills-row {
        grid-template-columns: repeat(2, 1fr)
    }

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