.float-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    opacity: .35;
    filter: blur(.2px);
    animation: floatUp var(--dur) ease-in-out infinite alternate;
}

.shape.circle {
    background: radial-gradient(circle at 30% 30%, rgba(154, 215, 255, .9), rgba(61, 134, 255, .6) 60%, transparent 62%);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(61, 134, 255, .35);
}

.shape.diamond {
    background: linear-gradient(135deg, rgba(0, 229, 168, .65), rgba(154, 215, 255, .6));
    transform: rotate(45deg);
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(0, 229, 168, .28);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-14px) translateX(6px);
    }

    100% {
        transform: translateY(-22px) translateX(-6px);
    }
}

:root {
    --bg: #0b1020;
    /* deep blackish blue */
    --bg-elev: #0f162e;
    /* elevated surface */
    --text: #e6f0ff;
    /* near-white with blue tint */
    --muted: #b9c9ff;
    /* muted text */
    --primary: #2979ff;
    /* bright blue */
    --cyan: #00bcd4;
    /* cyan accent */
    --card: #121e40;
    /* card bg */
    --border: rgba(255, 255, 255, 0.08);
    --glow: 0 0 20px rgba(41, 121, 255, 0.6), 0 0 40px rgba(0, 188, 212, 0.35);
    --light: #7fb3ff;
    /* brighter light blue */
    --mint: #1bb0ff;
    /* blue-cyan accent (no green) */
    --grad: linear-gradient(135deg, var(--light), #2d6efb 45%, var(--mint));
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

/* Plain bluish-black background; removed meshes/stars/waves */

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: #0b1020;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Oceanic moving background (subtle) */
.ocean-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(126, 179, 255, 0.14), transparent 60%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.10), transparent 70%),
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.09), transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(126, 179, 255, 0.18), transparent 48%),
        radial-gradient(circle at 60% 82%, rgba(0, 0, 0, 0.22), transparent 58%),
        linear-gradient(180deg, #070b16 0%, #0b1020 45%, #0e1b3d 100%);
    background-size: 200% 200%, 200% 200%, auto, auto, auto, auto;
    background-position: 0% 0%, 100% 100%, center, center, center, center;
    animation: bgShift 24s ease-in-out infinite alternate;
    filter: saturate(135%);
    box-shadow: inset 0 0 220px rgba(0, 0, 0, 0.55);
}

.ocean-bg::before,
.ocean-bg::after {
    content: "";
    position: absolute;
    left: -25%;
    right: -25%;
    height: 260px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1) 55%, transparent 72%);
    opacity: .35;
    animation: swell 10s ease-in-out infinite;
}

.ocean-bg::after {
    top: 12%;
    animation-duration: 14s;
    opacity: .28;
    filter: blur(1.5px);
}

.ocean-bg::before {
    top: 52%;
    animation-duration: 18s;
    opacity: .22;
    filter: blur(2.5px);
}

@keyframes swell {

    0%,
    100% {
        transform: translateX(0) translateY(0) skewX(-8deg);
    }

    50% {
        transform: translateX(8%) translateY(-16px) skewX(8deg);
    }
}

@keyframes bgShift {
    0% {
        background-position: 0% 0%, 100% 100%, center, center, center, center;
    }

    50% {
        background-position: 60% 40%, 40% 60%, center, center, center, center;
    }

    100% {
        background-position: 100% 100%, 0% 0%, center, center, center, center;
    }
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* removed mesh overlay for a plain background */

/* Cursor follower */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, #a7dcff 0%, #2979ff 40%, rgba(41, 121, 255, 0.22) 68%, rgba(57, 226, 157, 0.18) 76%, transparent 78%);
    box-shadow: var(--glow);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 16, 32, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(41, 121, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(41, 121, 255, 0.18);
}

.nav-links a.active {
    color: var(--text);
    background: rgba(41, 121, 255, 0.18);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 28px;
    padding: 90px 0 70px;
}

.eyebrow {
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: .6px;
    margin: 0 0 -100px 0;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    margin: 8px 0 10px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-heading {
    display: flex;
    align-items: center;
    gap: 268px;
}

/* Circular glowing avatar placed to the right of the name */
.hero-avatar {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    padding: 6px;
    background: radial-gradient(circle at 30% 30%, rgba(126, 179, 255, .85), rgba(45, 110, 251, .95));
    box-shadow: 0 0 32px rgba(45, 110, 251, .5), 0 0 84px rgba(27, 176, 255, .28);
    display: grid;
    place-items: center;
    margin-left: 40px;
    margin-top: 80px;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-inline-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.tagline {
    color: var(--muted);
    font-weight: 600;
    margin-top: -100px;
}

.subtitle {
    color: var(--muted);
    margin-top: 10px;
    min-height: 28px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    background: rgba(41, 121, 255, 0.08);
}

.social:hover {
    background: rgba(41, 121, 255, 0.18);
    box-shadow: 0 10px 30px rgba(41, 121, 255, 0.18);
    transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    justify-content: flex-start;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, rgba(61, 134, 255, 0.98), rgba(0, 229, 168, 0.9));
    color: #081225;
    box-shadow: 0 12px 34px rgba(61, 134, 255, 0.45), 0 6px 18px rgba(0, 229, 168, 0.25);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(41, 121, 255, 0.45);
}

.btn.ghost {
    color: var(--text);
    background: transparent;
}

.btn.ghost:hover {
    background: rgba(41, 121, 255, 0.12);
    box-shadow: 0 10px 30px rgba(41, 121, 255, 0.18);
    transform: translateY(-2px);
}

.btn.link {
    color: var(--text);
    background: rgba(41, 121, 255, 0.12);
}

.btn.link:hover {
    background: rgba(41, 121, 255, 0.2);
    transform: translateY(-2px);
}

.hero-visual {
    display: grid;
    justify-items: end;
}

/* Hexagon frame */
.hero-hex {
    position: relative;
    width: min(520px, 90%);
    aspect-ratio: 1;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    border: 2px solid rgba(126, 167, 255, 0.6);
    background: linear-gradient(145deg, rgba(45, 110, 251, 0.18), rgba(27, 176, 255, 0.12));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(45, 110, 251, 0.2);
    overflow: hidden;
    border-radius: 18px;
}

.hero-hex::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(45, 110, 251, 0.6), rgba(27, 176, 255, 0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: pulse 2.8s ease-in-out infinite;
    opacity: .7;
}

.hero-hex img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: 50% 20%;
    transform: translate(-5%, -5%);
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

/* Waves */
.wave {
    position: absolute;
    width: 180px;
    opacity: .65;
    filter: drop-shadow(0 0 16px rgba(41, 121, 255, 0.5));
}

.wave-left {
    left: -10px;
    top: 12%;
    animation: float 6s ease-in-out infinite;
}

.wave-right {
    right: -10px;
    bottom: 10%;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: .95;
    }
}

/* Sections */
.section {
    padding: 70px 0;
}

.section h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    margin: 0 0 18px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: rgba(17, 25, 53, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    backdrop-filter: saturate(150%) blur(8px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(61, 134, 255, 0.28), 0 10px 28px rgba(0, 229, 168, 0.18);
    border-color: rgba(61, 134, 255, 0.55);
    background: rgba(17, 25, 53, 0.82);
}

.project.card {
    text-decoration: none;
    color: var(--text);
}

.p-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

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

.tags span {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(126, 200, 255, 0.18), rgba(57, 226, 157, 0.16));
    color: var(--muted);
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 8px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--cyan), transparent);
    opacity: .5;
}

.t-item {
    position: relative;
    padding-left: 36px;
    margin: 18px 0;
}

.t-dot {
    position: absolute;
    left: 4px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: var(--glow);
}

.t-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

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

/* Contact */
.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: rgba(11, 16, 32, 0.6);
}

.footer p {
    color: var(--muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 60px 0;
    }

    .hero-visual {
        order: -1;
    }

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

@media (max-width: 600px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 4%;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 10px;
        flex-direction: column;
        gap: 8px;
    }

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

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}