/*
 * Atul Anilkumar — AI Researcher Portfolio
 * Dark theme with teal accents — Inspired by modern AI researcher portfolios
 * v12 — Dark redesign
 */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&display=swap');

/* ── Design Tokens ── */
:root {
    --bg: #ffffff;
    --bg-alt: #fdfdfd;
    --bg-dark: #f5f5f5;
    --text: #000000;
    --text-2: #222222;
    --text-3: #444444;
    --accent: #000000;
    --accent-light: #f0f0f0;
    --accent-dark: #000000;
    --accent-2: #000000;
    --accent-3: #000000;
    --green: #000000;
    --border: #000000;
    --card-bg: #ffffff;
    --shadow-sm: 4px 4px 0 rgba(0, 0, 0, 1);
    --shadow-md: 8px 8px 0 rgba(0, 0, 0, 1);
    --shadow-lg: 12px 12px 0 rgba(0, 0, 0, 1);
    --radius: 0px;
    --radius-sm: 0px;
    --font: 'Syne', sans-serif;
    --heading: 'Syne', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --transition: all .25s ease;
}

/* ── Reset ── */
/* Hide default scrollbars for pure visual aesthetic */
::-webkit-scrollbar {
    display: none;
}
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
    max-width: 100vw;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 4rem !important;
}

@supports (padding-top: env(safe-area-inset-top)) {
    html {
        scroll-padding-top: calc(4rem + env(safe-area-inset-top)) !important;
    }
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: 5rem !important;
    }
}

@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 991px) {
        html {
            scroll-padding-top: calc(5rem + env(safe-area-inset-top)) !important;
        }
    }
}

body {
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
    background: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

main {
    padding-top: 4px;
    margin-top: -4px;
}

body p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--accent-dark);
}

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

::selection {
    background: #000000;
    color: #ffffff;
}

/* ── Navbar ── */
.navbar {
    background: #ffffff;
    border: 4px solid transparent;
    box-shadow: none;
    padding: 1rem 0;
    transition: all .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1030;
    border-radius: 0px;
    width: 100%;
    margin: 0;
}

.navbar.sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    margin: 0;
    width: 100%;
}

@supports (padding-top: env(safe-area-inset-top)) {
    .navbar.sticky-top {
        padding-top: calc(1rem + env(safe-area-inset-top));
        padding-bottom: 1rem;
    }
}

@media (max-width: 991px) {
    .navbar {
        border-radius: 0px;
        box-shadow: none;
        padding: 1rem 1rem;
    }

    .navbar.sticky-top {
        top: 16px;
    }

    #mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border: 4px solid #000000;
        border-radius: 0px;
        padding: 1.5rem;
        box-shadow: none;
        z-index: 1050;
    }

    .navbar.scrolled {
        box-shadow: none !important;
        border-color: #000000 !important;
    }
}

@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 991px) {
        .navbar {
            padding-top: calc(1rem + env(safe-area-inset-top));
            padding-bottom: 1rem;
        }
    }
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: #ffffff;
    border: 4px solid #000000 !important;
    padding: 0.5rem 0;
}

@supports (padding-top: env(safe-area-inset-top)) {
    .navbar.scrolled {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
        padding-bottom: 0.5rem;
    }
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: var(--heading);
    color: var(--text) !important;
    letter-spacing: -.3px;
}

.navbar-brand i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.nav-link {
    color: #000000 !important;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--heading);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
    background: var(--accent-light);
}

.btn-nav-cta {
    background: var(--accent) !important;
    color: #0a0f1a !important;
    font-weight: 700;
    font-size: .82rem;
    padding: 0.5rem 1rem !important;
    border-radius: 100px;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 229, 199, .3);
}

.btn-nav-outline-contrast {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 600;
    font-size: .85rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: var(--transition);
}

.btn-nav-outline-contrast:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 4px 15px rgba(0, 229, 199, .3);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
    display: none;
}

/* ── Hero ── */
.hero {
    background: #ffffff;
    color: #000000;
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
}

/* Removed hero pseudo elements for pure B&W aesthetic */
/* ── Hero Particles ── */
.hero-particles {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 1.5rem;
}

.hero-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 199, .4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 229, 199, 0);
    }
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    font-family: var(--heading);
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero .text-gradient {
    color: #000000;
}

.hero-role {
    font-size: 1.15rem;
    color: #000000;
    margin-bottom: 0.5rem;
}

.hero-role strong {
    color: #000000;
    font-weight: 600;
}

/* ── Typewriter cursor ── */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink .7s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-affil {
    font-size: .95rem;
    color: #333333;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: .95rem;
    color: #333333;
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 1.8rem;
    animation: heroScrollBounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}

.hero-scroll__text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.75rem;
    font-weight: bold;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-scroll:hover {
    opacity: 1;
    color: #fff;
}

.hero-scroll:hover .hero-scroll__text {
    color: #fff;
}

@keyframes heroScrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding-top: 8rem !important;
        align-items: center;
    }

    .hero h1 {
        text-align: center;
    }



    .hero p {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-links,
    .hero-social {
        justify-content: center;
    }

    .hero-scroll {
        display: none !important;
    }
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: .88rem;
    transition: var(--transition);
}

.btn-hero-primary {
    background: #000000;
    color: #ffffff !important;
    border: 4px solid #000000;
    font-weight: 700;
}

.btn-hero-primary:hover {
    background: #ffffff;
    color: #000000 !important;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.btn-hero-outline {
    border: 4px solid #000000;
    color: #000000 !important;
    background: #ffffff;
}

.btn-hero-outline:hover {
    background: #000000;
    color: #ffffff !important;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.hero-social {
    display: flex;
    gap: 0.5rem;
}

.hero-social a {
    width: 38px;
    height: 38px;
    border-radius: 0;
    background: #ffffff;
    border: 4px solid #000000;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    transition: var(--transition);
}

.hero-social a:hover {
    background: #000000;
    color: #ffffff;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-sm);
}

/* ── Hero Photo Animation ── */
.hero-photo {
    animation: heroFloat 4s ease-in-out infinite;
    transition: transform .3s ease, box-shadow .3s ease;
}

.hero-photo:hover {
    transform: scale(1.02) translate(-4px, -4px);
    box-shadow: 16px 16px 0px #000000 !important;
}

@keyframes heroFloat {

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

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

/* ── Section Layout ── */
.section {
    padding: 7rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

.section--alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 16px;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    font-family: var(--heading);
    letter-spacing: -.5px;
    color: var(--text);
}

.section-line {
    display: none;
}

/* ── About Card ── */
.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
}

.about-card p {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.about-stat {
    text-align: center;
    transition: transform .3s ease;
}

.about-stat:hover {
    transform: scale(1.08);
}

.about-stat__num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-stat__label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
}

/* ── Experience Timeline ── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #000000;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    display: none;
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.timeline-date {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
}

.timeline-role {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--heading);
    color: var(--text);
    margin: 0.25rem 0;
}

.timeline-org {
    font-size: .9rem;
    color: var(--text-2);
    margin-bottom: 0.5rem;
}

.timeline-details {
    font-size: .85rem;
    color: var(--text-3);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-details li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.timeline-details li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ── Education ── */
.edu-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.edu-card:hover {
    box-shadow: var(--shadow-md);
}

.edu-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.edu-card__degree {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--heading);
    color: var(--text);
    margin-bottom: 0.25rem;
}

.edu-card__school {
    font-size: .88rem;
    color: var(--text-2);
    margin-bottom: 0.25rem;
}

.edu-card__year {
    font-size: .78rem;
    color: var(--text-3);
}

/* ── Skills ── */
.skill-group-title {
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--heading);
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-group-title i {
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag:hover {
    background: #000000;
    color: #ffffff;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-sm);
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.skill-tag--highlight {
    background: var(--accent-light);
    border-color: rgba(79, 70, 229, .15);
    color: var(--accent);
    font-weight: 600;
}

/* ── Projects ── */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    box-shadow: 0 20px 60px rgba(0, 229, 199, .1), 0 0 0 1px rgba(0, 229, 199, .08);
    transform: translateY(-6px);
}

.project-card__header {
    padding: 1.5rem 1.5rem 1rem;
}

.project-card__badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 8px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.project-card__badge--ai {
    background: rgba(0, 229, 199, .1);
    color: var(--accent);
}

.project-card__badge--ml {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.project-card__badge--web {
    background: rgba(0, 184, 212, .1);
    color: #00b8d4;
}

.project-card__badge--java {
    background: rgba(255, 152, 0, .1);
    color: #ff9800;
}

.project-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--heading);
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.project-card__desc {
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.65;
    flex: 1;
    padding: 0 1.5rem;
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 1rem 1.5rem 1.5rem;
    margin-top: auto;
}

.project-card__tech span {
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 8px;
    background: var(--bg-alt);
    color: var(--text-3);
    border-radius: 4px;
    font-family: var(--mono);
}

.project-card:hover .project-card__tech span {
    background: var(--accent-light);
    color: var(--accent);
}

/* ── Blog Cards ── */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 229, 199, .08);
    transform: translateY(-5px);
}

.blog-card__img {
    height: 180px;
    overflow: hidden;
    background: var(--bg-alt);
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.blog-card:hover .blog-card__img img {
    transform: scale(1.04);
}

.blog-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-3);
}

.blog-card__cat {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

.blog-card__img {
    position: relative;
}

.blog-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    font-size: .78rem;
    color: var(--text-3);
    margin-bottom: 0.5rem;
}

.blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--heading);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card__title a {
    color: var(--text);
}

.blog-card__title a:hover {
    color: var(--accent);
}

.blog-card__excerpt {
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.6;
    flex: 1;
}

.blog-card__link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap .2s;
}

.blog-card__link:hover {
    gap: 8px;
}

/* ── Section cards / Video ── */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
    height: 100%;
}

.section-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.section-card__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.section-card__title {
    font-weight: 700;
    font-family: var(--heading);
    font-size: .95rem;
    margin-bottom: 0.5rem;
}

.section-card__text {
    font-size: .85rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-md);
}

.video-card__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-card__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-card__body {
    padding: 1rem 1rem;
}

/* ── Contact ── */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item__label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.contact-item a,
.contact-item span {
    font-size: .9rem;
    color: var(--text);
    font-weight: 500;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 199, .12);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 2rem;
    background: #000000;
    color: #ffffff;
    border: 4px solid #000000;
    border-radius: 0px;
    font-family: var(--font);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #ffffff;
    color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

/* ── Footer ── */
.site-footer {
    background: #000000;
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    font-size: .88rem;
}

.site-footer h6 {
    color: rgba(255, 255, 255, .8);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .45);
    transition: color .2s;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
}

/* ── CV Page ── */
.cv-header {
    background: var(--bg-dark);
    color: #fff;
    padding: 4rem 0 3rem;
}

.cv-name {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--heading);
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
}

.cv-role-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .5);
}

.cv-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.cv-section:last-child {
    border-bottom: none;
}

.cv-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ── Scroll animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .6s cubic-bezier(.25, .46, .45, .94), transform .6s cubic-bezier(.25, .46, .45, .94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in.visible.stagger-1 {
    transition-delay: .05s;
}

.fade-in.visible.stagger-2 {
    transition-delay: .1s;
}

.fade-in.visible.stagger-3 {
    transition-delay: .15s;
}

.fade-in.visible.stagger-4 {
    transition-delay: .2s;
}

.fade-in.visible.stagger-5 {
    transition-delay: .25s;
}

.fade-in.visible.stagger-6 {
    transition-delay: .3s;
}

/* ── Service Cards ── */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    opacity: 0;
    transition: opacity .4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(79, 70, 229, .12), 0 0 0 1px rgba(79, 70, 229, .08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform .3s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--heading);
    color: var(--text);
    margin-bottom: 0.5rem;
}

.service-card__desc {
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ── Section background pulse ── */
.section--alt {
    background: #000000;
}

/* ── 3D Card Tilt ── */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform .15s ease;
}

.tilt-card .tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(0, 229, 199, .06), transparent 60%);
}

.tilt-card:hover .tilt-glow {
    opacity: 1;
}

/* ── Portfolio Cards ── */
.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio-card:hover {
    box-shadow: 0 20px 60px rgba(0, 229, 199, .08), 0 0 0 1px rgba(0, 229, 199, .08);
    transform: translateY(-6px);
}

.portfolio-card__img {
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
    position: relative;
}

.portfolio-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.portfolio-card:hover .portfolio-card__img img {
    transform: scale(1.06);
}



.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 30, .7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity .4s ease;
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__overlay a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .3s ease;
}

.portfolio-card__overlay a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.portfolio-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-3);
    background: linear-gradient(135deg, var(--accent-light) 0%, #e8eaf6 100%);
}

.portfolio-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card__title {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--heading);
    margin-bottom: 0.5rem;
    color: var(--text);
}

.portfolio-card__desc {
    font-size: .85rem;
    color: var(--text-2);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.portfolio-card__link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s, color .2s;
    margin-top: auto;
}

.portfolio-card__link:hover {
    gap: 8px;
    color: var(--accent-dark);
}

/* ── Admin preserved ── */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-alt);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform .3s;
    border-right: 1px solid var(--border);
}

.sidebar-brand {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-family: var(--heading);
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    padding: 1rem 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 4px;
}

.sidebar-link:hover {
    color: var(--text);
    background: var(--accent-light);
}

.sidebar-link.active {
    color: #fff;
    background: var(--accent);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 256px;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-content {
    padding: 1.5rem;
    flex: 1;
}

.stats-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.stats-label {
    font-size: .78rem;
    color: var(--text-3);
}

.card {
    background: var(--card-bg);
    border-color: var(--border);
    border-radius: var(--radius);
}

.table th {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-3);
    border-color: var(--border);
}

.table td {
    border-color: var(--border);
    vertical-align: middle;
}

.form-control,
.form-select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .08);
}

.page-link {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--text);
    border-radius: var(--radius-sm) !important;
    margin: 0 4px;
}

.page-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

/* ── Blog/Post content ── */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content img {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}

.blog-content pre {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    font-size: .9rem;
}

.blog-content code {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 4px;
    border-radius: 4px;
    font-size: .88rem;
    font-family: var(--mono);
}

/* ── Portfolio Cards — Premium ── */
.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0px;
    overflow: hidden;
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 229, 199, .08), 0 0 0 1px rgba(0, 229, 199, .06);
    border-color: rgba(0, 229, 199, .12);
}

.portfolio-card__img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.portfolio-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.portfolio-card:hover .portfolio-card__img img {
    transform: scale(1.05);
}

.portfolio-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(0, 229, 199, .2);
    background: rgba(255, 255, 255, .02);
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 229, 199, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(4px);
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__overlay a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all .3s;
    border: 1px solid rgba(255, 255, 255, .3);
}

.portfolio-card__overlay a:hover {
    background: #fff;
    color: var(--accent);
    transform: scale(1.1);
}

.portfolio-card__body {
    padding: 1.5rem;
}

.portfolio-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.portfolio-card__desc {
    font-size: .85rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-card__link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .3s, color .3s;
}

.portfolio-card__link:hover {
    gap: 8px;
    color: var(--accent-dark);
}

/* ── Service Cards — Enhanced ── */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    transform: scaleX(0);
    transition: transform .4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 229, 199, .08), 0 0 0 1px rgba(0, 229, 199, .06);
    border-color: rgba(0, 229, 199, .1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform .3s ease;
    box-shadow: 0 8px 20px rgba(0, 229, 199, .2);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.service-card__desc {
    font-size: .85rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ── Section Enhancements ── */
.section-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    border-radius: 2px;
    margin: 1rem auto 0;
}

.section--alt {
    background: var(--bg-alt);
}

/* ── 3D Tilt + Glow ── */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform .4s cubic-bezier(.25, .46, .45, .94), box-shadow .4s ease;
    --glow-x: 50%;
    --glow-y: 50%;
    position: relative;
}

.tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .3s ease;
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(0, 229, 199, .06), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.tilt-card:hover .tilt-glow {
    opacity: 1;
}

/* ── Blog Admin Card ── */
.blog-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
}

.blog-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.about-content {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-2);
}

/* ── Bento Grid About ── */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}

.bento-card--accent {
    background: linear-gradient(135deg, rgba(0, 229, 199, .05) 0%, rgba(0, 229, 199, .01) 100%);
    border-color: rgba(0, 229, 199, .15);
}

/* ── Horizontal Timeline ── */
.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    padding-top: 2rem;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark), transparent);
}

.timeline-horizontal .timeline-item {
    position: relative;
}

.timeline-horizontal .timeline-dot {
    position: absolute;
    top: -2.5rem;
    left: 0;
}

/* ── CTA Banner ── */
.cta-banner {
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    font-family: var(--heading);
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.cta-banner h2 .future {
    color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .hero {
        padding: 5rem 0 3.5rem;
    }

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

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-links {
        flex-direction: column;
    }

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

    .section {
        padding: 3.5rem 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}