@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap');

:root {
    --color-body: #b6cbce;
    --color-heading: #eef3db;
    --color-base: #033f47;
    --color-base2: #022a30;
    --color-brand: #e0f780;
    --color-brand2: #deff58;
    --sidbar-width: 240px;
    --font-base: "Bai Jamjuree";
}

/* ─── BASE ─────────────────────────────────────── */
body {
    background-color: var(--color-base2);
    color: var(--color-body);
    font-family: var(--font-base), sans-serif;
}

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

a {
    text-decoration: none;
    color: var(--color-body);
    transition: all 0.3s ease;
}

a:hover { color: var(--color-brand); }

img { width: 100%; }

.text-brand { color: var(--color-brand); }
.bg-base { background-color: var(--color-base); }
.text-muted-brand { color: #8aacb0; }
.letter-spacing { letter-spacing: 0.12em; }

/* ─── LAYOUT ────────────────────────────────────── */
.full-height {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ─── NAVBAR ────────────────────────────────────── */
.navbar { background-color: var(--color-base); }

.navbar .nav-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--color-body);
    padding: 8px 0;
    position: relative;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-brand);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 60%; }

.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--color-brand); }

@media (min-width: 992px) {
    .navbar {
        min-height: 100vh;
        width: var(--sidbar-width);
        background: linear-gradient(rgba(2, 42, 48, 0.92), rgba(2, 42, 48, 0.92)),
                    url(../images/sidebar-img.jpg);
        background-size: cover;
        background-position: center;
    }

    .navbar-brand img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border: 3px solid var(--color-brand);
        box-shadow: 0 0 0 6px rgba(224, 247, 128, 0.12);
        transition: box-shadow 0.3s ease;
    }

    .navbar-brand:hover img {
        box-shadow: 0 0 0 8px rgba(224, 247, 128, 0.2);
    }

    #content-wrapper { padding-left: var(--sidbar-width); }
}

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-brand {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-base2);
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--color-brand2);
    border-color: var(--color-brand2);
    color: var(--color-base2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(224, 247, 128, 0.25);
}

.btn-outline-brand {
    background-color: transparent;
    border: 2px solid var(--color-brand);
    color: var(--color-brand);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--color-brand);
    color: var(--color-base2);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.link-custom {
    font-weight: 600;
    position: relative;
}

.link-custom::after {
    content: "";
    width: 0%;
    height: 2px;
    background-color: var(--color-brand);
    position: absolute;
    left: 0;
    top: 110%;
    transition: all 0.3s;
}

.link-custom:hover::after { width: 100%; }

/* ─── ICONBOX ───────────────────────────────────── */
.iconbox {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background-color: var(--color-brand);
    color: var(--color-base2);
    flex-shrink: 0;
}

/* ─── SHADOW EFFECT ─────────────────────────────── */
.shadow-effect { transition: all 0.35s ease; }

.shadow-effect:hover {
    box-shadow: -5px 5px 0 0 var(--color-brand);
    transform: translate(2px, -2px);
}

/* ─── SOCIAL ICONS ──────────────────────────────── */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-base);
    border-radius: 50%;
    font-size: 20px;
    border: 1px solid rgba(224, 247, 128, 0.15);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-brand);
    color: var(--color-base2) !important;
    border-color: var(--color-brand);
    transform: translateY(-3px);
}

/* ─── TYPING ANIMATION ──────────────────────────── */
.typing-wrapper { min-height: 36px; }

#typed-text {
    color: var(--color-brand);
    font-size: 1.4rem;
}

.cursor {
    font-size: 1.4rem;
    font-weight: 300;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ─── EXPERIENCE TIMELINE ───────────────────────── */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-brand), rgba(224, 247, 128, 0.1));
}

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

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

.timeline-dot {
    position: absolute;
    left: -2.15rem;
    top: 1.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-brand);
    border: 3px solid var(--color-base2);
    box-shadow: 0 0 0 3px rgba(224, 247, 128, 0.2);
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    padding: 3px 0 3px 1.4rem;
    position: relative;
    font-size: 0.88rem;
    line-height: 1.6;
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-brand);
    font-size: 0.75rem;
    top: 5px;
}

.badge-date {
    display: inline-block;
    background-color: rgba(224, 247, 128, 0.1);
    color: var(--color-brand);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(224, 247, 128, 0.2);
    white-space: nowrap;
}

/* ─── PROJECT CARDS ─────────────────────────────── */
.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card-header {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
}

.project-card-header--1 {
    background: linear-gradient(135deg, #0a3d1f, #0d6e3b);
}

.project-card-header--2 {
    background: linear-gradient(135deg, #0a1f4a, #0d3a8a);
}

.project-card-header--3 {
    background: linear-gradient(135deg, #3a0a4a, #6a0f7a);
}

.project-card-header--4 {
    background: linear-gradient(135deg, #1a2a0a, #3a5a0d);
}

.project-icon {
    font-size: 44px;
    color: var(--color-brand);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(224, 247, 128, 0.3));
}

.h-100-inner {
    flex: 1;
}

/* ─── TECH PILLS ────────────────────────────────── */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-pill {
    background-color: rgba(224, 247, 128, 0.08);
    color: var(--color-brand);
    border: 1px solid rgba(224, 247, 128, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── CONTACT FORM ──────────────────────────────── */
#contact .form-control {
    background-color: var(--color-base);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-body);
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.3s;
}

#contact .form-control:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(224, 247, 128, 0.1);
    background-color: var(--color-base);
    color: var(--color-heading);
}

#contact .form-control::placeholder { color: #7a9ca0; }

#contact input.form-control { height: 46px; }

/* ─── SCROLL PROGRESS ───────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-brand), var(--color-brand2));
    z-index: 9999;
    box-shadow: 0 0 10px rgba(224, 247, 128, 0.7);
    pointer-events: none;
}

/* ─── CURSOR GLOW ───────────────────────────────── */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 247, 128, 0.055) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease, top 0.12s ease;
    will-change: left, top;
}

/* ─── HERO ORBS ─────────────────────────────────── */
#home { position: relative; overflow: hidden; }
#home .container { position: relative; z-index: 1; }

.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.13;
}

.orb-1 {
    width: 560px;
    height: 560px;
    background: var(--color-brand);
    top: -120px;
    right: -80px;
    animation: orbFloat1 9s ease-in-out infinite;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: #38bdf8;
    bottom: -40px;
    left: 15%;
    animation: orbFloat2 11s ease-in-out infinite;
}

.orb-3 {
    width: 220px;
    height: 220px;
    background: var(--color-brand2);
    top: 35%;
    left: 55%;
    animation: orbFloat3 7s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 35px) scale(1.06); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -25px) scale(0.94); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-18px, 18px); }
}

/* ─── TIMELINE DOT PULSE (current role) ─────────── */
.timeline-dot.pulse {
    animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(224, 247, 128, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(224, 247, 128, 0.0), 0 0 20px rgba(224, 247, 128, 0.45); }
}

/* ─── SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-base2); }
::-webkit-scrollbar-thumb {
    background: var(--color-base);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-brand); }

/* ─── SELECTION ─────────────────────────────────── */
::selection {
    background-color: var(--color-brand);
    color: var(--color-base2);
}
