:root {
    --bg: #070b12;
    --surface: #101722;
    --surface2: #151e2b;
    --text: #f5f7fa;
    --muted: #9aa7b8;
    --line: #233042;
    --accent: #64e3c0;
    --accent2: #4cc8e8;
}

/* Light Mode Variables */
html[data-bs-theme="light"], body.light {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface2: #eef2f5;
    --text: #121923;
    --muted: #5e6976;
    --line: #dce3e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==================== NAVBAR / HEADER FIXES ==================== */
.navbar {
    background: var(--bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--text) !important;
}

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

.navbar-nav .nav-link, .navbar-nav a {
    color: var(--muted) !important;
    text-decoration: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav a:hover {
    color: var(--accent) !important;
}

.nav-cv {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-left: 8px;
}

.mode, .theme-toggle-btn {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    margin-left: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.navbar-toggler {
    color: var(--text);
    border: 1px solid var(--line);
    padding: 6px 10px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    padding: 150px 0 90px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(100, 227, 192, 0.13), transparent 27%),
                radial-gradient(circle at 20% 80%, rgba(76, 200, 232, 0.07), transparent 25%);
}

.badge-soft, .section-kicker {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2.2px;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;
    margin: 20px 0;
}

.hero h1 span, .display-title span { color: var(--accent); }
.hero h2 {
    font-size: clamp(20px, 3vw, 31px);
    font-weight: 600;
    color: var(--muted);
}

.lead {
    max-width: 690px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    padding: 13px 20px;
    border-radius: 11px;
}

.btn-accent {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #07110e !important;
    font-weight: 800;
}

.btn-accent:hover {
    background: #8af0d7;
    color: #07110e !important;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
}

.quick {
    display: flex;
    gap: 25px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 25px;
}

.quick span:first-child { color: var(--accent); }

/* ==================== PORTRAIT & FLOATING ==================== */
.portrait-card {
    position: relative;
    max-width: 430px;
    margin: auto;
    padding: 35px;
}

.portrait-card:before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    border-radius: 32px;
    transform: rotate(4deg);
}

.portrait-card img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 28px;
    background: #dce2e7;
    filter: saturate(.92);
}

.orbit {
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(100, 227, 192, 0.45);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.floating-card {
    position: absolute;
    right: 0;
    bottom: 25px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 14px 17px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.floating-card b { font-size: 25px; color: var(--accent); }
.floating-card small { line-height: 1.2; color: var(--muted); }

/* ==================== SECTIONS ==================== */
.section { padding: 105px 0; }
.dark-section { background: var(--surface2); }
.light-section { background: var(--surface2); color: var(--text); }
.display-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -2px; margin: 14px 0; }
.big-copy { color: var(--muted); font-size: 17px; line-height: 1.9; }

.contact-mini { display: flex; gap: 35px; flex-wrap: wrap; margin-top: 30px; }
.contact-mini div { display: flex; flex-direction: column; }
.contact-mini small { color: var(--muted); }
.contact-mini b { font-size: 14px; }

/* ==================== CARDS & TIMELINE ==================== */
.service-card {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-no { font-size: 28px; color: var(--accent); margin-bottom: 35px; }
.service-card h3 { font-size: 21px; }
.service-card p, .project-card p { color: var(--muted); font-size: 14px; }

.timeline { border-left: 1px solid var(--line); margin-left: 8px; }
.timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 40px;
    padding: 0 0 55px 38px;
}

.timeline article:before {
    content: "";
    position: absolute;
    left: -5px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--bg);
}

.timeline-date { font-size: 12px; color: var(--accent); font-weight: 700; }
.timeline h3 { margin: 0 0 2px; font-size: 23px; }
.timeline h5 { color: var(--muted); font-size: 14px; }
.timeline p, .timeline li { color: var(--muted); font-size: 14px; }

.skill-grid { display: grid; gap: 24px; }
.skill-row > div:first-child { display: flex; justify-content: space-between; }
.skill-row span { color: var(--muted); font-size: 12px; }

.track {
    height: 7px;
    background: var(--line);
    border-radius: 10px;
    margin-top: 9px;
    overflow: hidden;
}

.track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 10px;
}

.edu-card {
    height: 100%;
    border: 1px solid var(--line);
    padding: 28px;
    border-radius: 18px;
    background: var(--surface);
}

.edu-card small { color: var(--accent); }
.edu-card h3 { font-size: 21px; margin: 12px 0 4px; }
.edu-card p { color: var(--muted); font-size: 14px; }

.project-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: 0.25s;
}

.project-visual {
    height: 170px;
    background: linear-gradient(135deg, var(--surface2), var(--bg));
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 20px;
}

.project-visual span { color: var(--accent); font-size: 11px; letter-spacing: 1.5px; font-weight: 800; }
.project-visual strong { font-size: 55px; color: rgba(255,255,255,0.08); }

.text-link { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 700; }

/* ==================== CONTACT FORM ==================== */
.contact-section { background: var(--bg); }
.email-link { display: inline-block; color: var(--accent); font-size: 19px; text-decoration: none; border-bottom: 1px solid var(--accent); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 14px 15px;
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent);
}

footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

/* ==================== FLOATING WHATSAPP BUTTON FIX ==================== */
.wa-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-float-btn:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    color: #ffffff !important;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--surface);
        padding: 20px;
        border-radius: 14px;
        border: 1px solid var(--line);
        margin-top: 12px;
    }
    
    .nav-cv { margin: 10px 0 0 0; }
    .hero { padding-top: 125px; }
    .portrait-card { max-width: 360px; }
    .timeline article { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 575px) {
    .section { padding: 75px 0; }
    .hero h1 { letter-spacing: -2px; }
    .quick { flex-direction: column; gap: 4px; }
    .portrait-card { padding: 20px; }
    .floating-card { right: -5px; }
    .contact-mini { gap: 18px; }
    .timeline article { padding-left: 25px; }
    .timeline { margin-left: 5px; }
}