/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto
}

:root {
    --bg-900: #0b1017;
    --text: #e8eefc;
    --muted-300: #c2cbe3;
    --muted-400: #9aa7c6;
    --accent: #00d4ff;
    --accent-2: #7c5cff;
    --mint: #00ffa6;
    --card: #121a29;
    --border: #1c2740;
    --radius: 18px;
}

/* Body transparent to reveal canvas */
html {
    width: 100%;
    overflow-x: hidden; 
    background: #070b13
}

body {
    width: 100%;
    overflow-x: hidden; 
    background: transparent;
    color: var(--text);
    font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55
}

#app {
    position: relative;
    z-index: 1
}

section[id],
.section {
    scroll-margin-top: 90px
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    opacity: .9
}

.section {
    padding: 88px 0
}

.text-muted-300 {
    color: var(--muted-300) !important
}

.text-muted-400 {
    color: var(--muted-400) !important
}

.text-accent {
    color: var(--accent)
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.overline {
    letter-spacing: .18em;
    font-size: .8rem;
    color: var(--muted-400)
}

/* Full-page animated background canvas */
#bg-stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    display: block;
    background: radial-gradient(circle at 50% -20%, #0f1626 0%, #070b13 55%, #060912 100%);
}

/* Navbar */
/* .navbar {
    backdrop-filter: saturate(140%) blur(10px);
    background: rgba(10, 14, 22, .7) !important
}

.navbar .nav-link {
    color: var(--muted-300)
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff
} */

/* html, body {
  width: 100%;
  overflow-x: hidden;              
} */

.navbar {
    -webkit-backdrop-filter: saturate(140%) blur(10px); 
    backdrop-filter: saturate(140%) blur(10px);
    background: rgba(10, 14, 22, .7) !important;
}
.navbar .nav-link { color: var(--muted-300); }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff; }


#nav {
  left: 0;
  right: 0;
  width: 100%;
  overflow-x: clip;                
}

#nav .container,
#nav .container-fluid {
  max-width: 100%;
  padding-inline: 1rem;
  overflow-x: clip;
}

#nav .navbar-collapse {
  max-width: 100%;
  overflow-x: auto;                
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center
}

.hero-figure {
    position: relative
}

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: 14px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6))
}

/* Only bottom WEB DEVELOPER word (above image, smaller) */
.hero-word {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    text-align: center;
    pointer-events: none;
    user-select: none;
    letter-spacing: .06em;
    font-weight: 800;
    line-height: 1;
}

.hero-word-bottom {
    bottom: 6%;
    font-size: clamp(1.6rem, 4.8vw, 4rem);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .55);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
    opacity: .95;
    z-index: 3;
}

@media (max-width:575.98px) {
    .hero-word-bottom {
        bottom: 2%
    }
}

/* Cards / glass */
.card.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    transition: transform .25s ease;
    color: var(--text)
}

.card.glass:hover {
    transform: translateY(-6px)
}

.card.gradient {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: radial-gradient(120% 120% at 8% 0%, rgba(0, 212, 255, .18), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    color: var(--text)
}

.gradient-num {
    color: #bfeaff
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    color: #0b0f17;
    border: none;
    border-radius: 999px
}

.btn-gradient:hover {
    transform: translateY(-3px);
    color: #0b0f17
}

.btn-xl {
    padding: 16px 28px;
    font-weight: 700
}

.btn-view {
    padding: .35rem .8rem;
    border-radius: 999px
}

/* Section titles */
.section-title {
    font-weight: 800
}

/* Stats */
.stat .h2,
.text-strong {
    color: #ecf2ff;
    font-weight: 800
}

/* Skills (logo + range) */
.skill-row {
    margin-bottom: 22px
}

.skill-head {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.skill-logo i {
    font-size: 28px
}

.skill-name {
    font-weight: 600
}

.skill-val {
    font-weight: 700
}

.range {
    height: 10px;
    background: #22304b;
    border-radius: 999px;
    overflow: hidden
}

.range span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--mint));
    border-radius: 999px;
    transition: width 1.2s ease
}

.devicon-nextjs-original {
    color: #e8eefc
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 56px
}

.timeline:before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1d2a44
}

.tl-item {
    position: relative;
    margin-bottom: 26px
}

.tl-dot {
    position: absolute;
    left: 28px;
    top: 22px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(0, 212, 255, .12)
}

.tl-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    color: var(--text)
}

.tl-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px
}

.tl-title i {
    font-size: 20px
}

.tl-year {
    margin-bottom: 6px
}

/* Projects */
.project .card-img-top {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px
}

.project {
    cursor: pointer
}

.project:hover {
    transform: translateY(-6px);
    transition: .25s
}

/* Swiper */
.reviews-tight {
    max-width: 1100px;
    margin-inline: auto
}

.review-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02))
}

.swiper {
    width: 100%
}

.swiper-pagination-bullet {
    background: var(--muted-400);
    opacity: .6
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1
}

/* Clients & Reviews */
.client-logo {
    height: 54px;
    opacity: .95;
    filter: grayscale(15%);
    transition: .25s
}

.client-logo:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.02)
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%
}

/* Forms */
.form-control,
.form-control:focus {
    background: #0f1626;
    border: 1px solid #22304b;
    color: var(--text);
    box-shadow: none
}

.form-control::placeholder {
    color: #8ea1c7
}

/* Social */
.social {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--accent);
    background: #0f1626
}

.social:hover {
    background: linear-gradient(180deg, rgba(0, 212, 255, .15), rgba(124, 92, 255, .15));
    color: #fff
}

/* Responsive */
@media (max-width:991.98px) {
    .hero {
        padding: 96px 0 40px
    }
}