/* ============ CSS VARIABLES ============ */
:root {
    --bg: #050b14;
    --surface: #0a1628;
    --card: #0d1f35;
    --border: #1a3a5c;
    --cyan: #00e5ff;
    --green: #39ff6e;
    --purple: #a855f7;
    --text: #c8ddf0;
    --muted: #4a6a8a;
    --mono: 'Share Tech Mono', monospace;
    --sans: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
}

/* ============ SCANLINE OVERLAY ============ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 229, 255, .015) 2px,
            rgba(0, 229, 255, .015) 4px);
    pointer-events: none;
    z-index: 9999;
}

/* ============ GRID BACKGROUND ============ */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ============ NAVBAR ============ */
.navbar-custom {
    background: rgba(5, 11, 20, .85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-text {
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--cyan) !important;
    letter-spacing: .05em;
}

.navbar-brand-text span {
    color: var(--green);
}

.nav-link-custom {
    color: var(--muted) !important;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: var(--mono);
    transition: color .2s;
    padding: .4rem 1rem !important;
}

.nav-link-custom:hover {
    color: var(--cyan) !important;
}

.navbar-toggler {
    border-color: var(--border);
}

.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='%2300e5ff' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, .12) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    pointer-events: none;
}

.hero-glow2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, .1) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--green);
    letter-spacing: .2em;
    text-transform: uppercase;
    animation: fadeUp .6s ease both;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    animation: fadeUp .7s .1s ease both;
}

.hero-title .accent {
    color: transparent;
    -webkit-text-stroke: 2px var(--cyan);
    display: block;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.7;
    animation: fadeUp .7s .2s ease both;
}

.hero-sub strong {
    color: var(--cyan);
    font-weight: 400;
}

.badge-stack {
    animation: fadeUp .7s .3s ease both;
}

.tech-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: .75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .3rem .75rem;
    color: var(--muted);
    margin: .25rem .2rem;
    background: rgba(0, 229, 255, .03);
    transition: border-color .2s, color .2s;
}

.tech-badge:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-cta {
    font-family: var(--mono);
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .75rem 2rem;
    border-radius: 4px;
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    background: transparent;
    transition: background .2s, color .2s, box-shadow .2s;
    text-decoration: none;
}

.btn-cta:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 24px rgba(0, 229, 255, .45);
}

.btn-cta-outline {
    font-family: var(--mono);
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .75rem 2rem;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    color: var(--muted);
    background: transparent;
    transition: border-color .2s, color .2s;
    text-decoration: none;
}

.btn-cta-outline:hover {
    border-color: var(--green);
    color: var(--green);
}

/* Terminal card */
.terminal-card {
    background: #070f1b;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeUp .8s .2s ease both;
    box-shadow: 0 0 60px rgba(0, 229, 255, .06), 0 20px 60px rgba(0, 0, 0, .6);
}

.terminal-bar {
    background: #0d1a2e;
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-r {
    background: #ff5f57;
}

.dot-y {
    background: #febc2e;
}

.dot-g {
    background: #28c840;
}

.terminal-title {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--muted);
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--mono);
    font-size: .82rem;
    line-height: 1.9;
    color: #7a9bb5;
}

.t-prompt {
    color: var(--green);
}

.t-cmd {
    color: #fff;
}

.t-comment {
    color: var(--muted);
}

.t-string {
    color: var(--cyan);
}

.t-key {
    color: var(--purple);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--cyan);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* ============ SECTION COMMONS ============ */
section {
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--green);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.section-label::before {
    content: '// ';
    color: var(--muted);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
}

.section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    border-radius: 2px;
    margin-bottom: 2.5rem;
}

/* ============ ABOUT ============ */
.about-section {
    padding: 7rem 0;
}

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

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: .2rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(26, 58, 92, .5);
    font-size: .9rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .lbl {
    font-family: var(--mono);
    color: var(--muted);
    font-size: .8rem;
    min-width: 80px;
}

.info-list .val {
    color: var(--text);
}
.img-fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
/* ============ SKILLS ============ */
.skills-section {
    padding: 6rem 0;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    height: 100%;
}

.skill-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, .08);
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    margin-bottom: .35rem;
}

.skill-desc {
    font-size: .83rem;
    color: var(--muted);
    line-height: 1.6;
}

.progress-custom {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: .75rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 1.2s ease;
}

/* ============ PROJECTS ============ */
.projects-section {
    padding: 6rem 0;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, .04) 0%, transparent 60%);
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 229, 255, .1);
}

.project-num {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.project-desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.25rem;
}

.tag {
    font-family: var(--mono);
    font-size: .68rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: .2rem .55rem;
    color: var(--muted);
    background: rgba(0, 229, 255, .03);
}

.project-links {
    display: flex;
    gap: .75rem;
}

.proj-link {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s;
}

.proj-link:hover {
    color: var(--cyan);
}

/* ============ TIMELINE / EXPERIENCE ============ */
.timeline-section {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.tl-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.tl-dot {
    position: absolute;
    left: -2rem;
    top: .35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    border: 2px solid var(--bg);
    box-shadow: 0 0 12px var(--cyan);
    transform: translateX(calc(-50% + .5px));
}

.tl-date {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--green);
    letter-spacing: .1em;
    margin-bottom: .35rem;
}

.tl-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .15rem;
}

.tl-place {
    font-size: .83rem;
    color: var(--muted);
    margin-bottom: .5rem;
}

.tl-desc {
    font-size: .85rem;
    color: var(--text);
    line-height: 1.7;
}

/* ============ CONTACT ============ */
.contact-section {
    padding: 6rem 0 8rem;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, .05) 0%, rgba(168, 85, 247, .05) 100%);
    pointer-events: none;
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: .75rem 1rem;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}

.contact-form .form-control::placeholder {
    color: var(--muted);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: rgba(0, 229, 255, .04);
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .1);
    color: var(--text);
    outline: none;
}

.contact-form label {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.btn-send {
    font-family: var(--mono);
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .8rem 2.5rem;
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--cyan), #00b8d9);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 255, .4);
}

.social-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(26, 58, 92, .5);
    text-decoration: none;
    color: var(--muted);
    font-size: .9rem;
    transition: color .2s;
}

.social-link:last-child {
    border-bottom: none;
}

.social-link:hover {
    color: var(--cyan);
}

.social-link i {
    font-size: 1.1rem;
    width: 24px;
}

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
}

footer span {
    color: var(--cyan);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float {

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}