﻿:root {
    --bg: #0b1020;
    --card: #121a35;
    --ink: #e8eefc;
    --muted: #97a4c0;
    --accent: #8ab4ff; /* soft blue */
    --pill: #1c2b59;
    --shadow: 0 20px 40px rgba(0,0,0,.35);
}

html, body {
    background: radial-gradient(1200px 600px at 10% 0%, #0f1630 0, #0b1020 55%) fixed;
    color: var(--ink);
}

a {
    color: var(--accent)
}

    a:hover {
        opacity: .9
    }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 7rem 0 5rem;
    background: transparent;
}

.orb {
    position: absolute;
    inset: auto -20vw -35vh auto;
    width: 55vw;
    aspect-ratio: 1;
    background: radial-gradient(45% 45% at 50% 50%, rgba(138,180,255,.35), rgba(138,180,255,0));
    filter: blur(24px);
    z-index: -1;
    animation: float 16s ease-in-out infinite;
}

@keyframes float {
    50% {
        transform: translateY(-20px)
    }
}

.headline {
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1.05;
    background: linear-gradient(90deg, #e6eeff, #a8c6ff 50%, #e6eeff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge-skill {
    background: var(--pill);
    border: 1px solid #2a3b78;
    color: #cfe0ff;
    padding: .5rem .75rem;
    border-radius: 999px;
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .badge-skill:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(24,38,94,.35)
    }

/* Cards */
.card-glass {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
    border: 1px solid rgba(170,190,255,.12);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

/* Timeline */
.timeline {
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 14px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(138,180,255,.35);
    }

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(138,180,255,.2);
    margin-right: .75rem;
    flex: 0 0 auto;
}

.nav-link {
    color: var(--ink) !important
}

.navbar {
    background: rgba(5,8,20,.6) !important;
    backdrop-filter: blur(10px) saturate(120%);
    border-bottom: 1px solid rgba(170,190,255,.12)
}

/* Section headings */
.section-title {
    font-weight: 800;
    letter-spacing: .3px;
}

    .section-title .bar {
        display: inline-block;
        width: 56px;
        height: 6px;
        background: var(--accent);
        border-radius: 999px;
        margin-left: .6rem;
        vertical-align: middle;
        box-shadow: 0 8px 20px rgba(138,180,255,.35)
    }

/* Buttons */
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(170,190,255,.25);
}

    .btn-ghost:hover {
        border-color: var(--accent);
        color: var(--accent)
    }

footer {
    color: var(--muted)
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: .6s ease
}

    [data-reveal].on {
        opacity: 1;
        transform: none
    }

/* Make it comfy on small screens */
@media (max-width: 576px) {
    .hero {
        padding: 5rem 0 3rem
    }

    .headline {
        font-size: 2rem
    }
}

.nameImgContainer {
    display: flex;
    align-items: center; /* vertically align image and text */
    gap: 1rem; /* space between image and name */
    flex-wrap: wrap; /* allow wrapping on small screens */
}

    .nameImgContainer img {
        border-radius: 50%; /* circular profile */
        max-width: 150px; /* control image size */
        height: auto;
        flex-shrink: 0; /* keep image from shrinking */
    }

    .nameImgContainer h1 {
        flex: 1; /* let text take remaining space */
        margin: 0; /* reset default margin */
    }

/* On very small screens, stack vertically */
@media (max-width: 576px) {
    .nameImgContainer {
        flex-direction: column;
        align-items: flex-start; /* align text under image */
        text-align: center; /* optional: center text */
    }

        .nameImgContainer h1 {
            margin-top: 0.5rem;
        }
}


/* Portfolio */
.portfolio-shot {
    width: 100%;
    height: clamp(240px, 55vh, 520px);
    object-fit: cover; /* keeps images nicely cropped */
    border-radius: 1rem;
    border: 1px solid rgba(170,190,255,.12);
    box-shadow: var(--shadow);
}

.carousel-caption {
    background: rgba(5,8,20,.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(170,190,255,.12);
    border-radius: .75rem;
    padding: .75rem 1rem;
}

.stack-badge {
    background: var(--pill);
    border: 1px solid #2a3b78;
    color: #cfe0ff;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .8rem;
}

.modal-title {
    color: black !important;
}

.modal-body {
    color: white !important;
    background-color:slategrey;
}

.buttonContainer {
    text-align: center;
}