:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5FBFF;
    --accent-sky: #38BDF8;
    --accent-purple: #7C3AED;
    --accent-emerald: #10B981;
    --accent-gold: #D4AF37;
    --text-primary: #111827;
    --text-secondary: #6B7280;
}

body {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* ---------- Background layer ---------- */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-icon {
    position: absolute;
    color: var(--accent-sky);
    animation-name: floatIcon;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    will-change: transform, opacity;
}

@keyframes floatIcon {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(15px, -20px) rotate(5deg); }
    50%  { transform: translate(-10px, -35px) rotate(-4deg); }
    75%  { transform: translate(10px, -15px) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    animation: blobMove 18s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: var(--accent-sky); top: -120px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: var(--accent-purple); bottom: -100px; right: -100px; animation-delay: 4s; }

@keyframes blobMove {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- Content layer ---------- */
.content-layer {
    position: relative;
    z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0%; height: 2px;
    background: linear-gradient(90deg, var(--accent-sky), var(--accent-purple));
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero-wrap {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 900px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-sky), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.typing {
    font-size: 1.3rem;
    color: var(--text-secondary);
    min-height: 2rem;
    margin-top: 0.5rem;
}
.typing::after {
    content: "|";
    animation: blink 0.8s step-end infinite;
    color: var(--accent-sky);
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Glass cards ---------- */
.glass-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(56,189,248,0.18);
}

.badge-tag {
    background: rgba(56,189,248,0.12);
    color: #0284c7;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(90deg, var(--accent-gold), #f5d78e);
    color: #3d2e00;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.skill-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(124,58,237,0.18));
    color: #0369a1;   /* darker sky blue, was var(--accent-sky) */
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* ---------- Journey roadmap ---------- */
.roadmap {
    display: flex;
    align-items: center;
    overflow-x: auto;
    gap: 0;
    position: relative;
    padding: 60px 20px;
    max-width: 100%;
}

.roadmap::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-sky), var(--accent-purple));
    z-index: 0;
}

.roadmap-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
    z-index: 1;
}

.roadmap-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--accent-sky);
    color: #0369a1;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(56,189,248,0.25);
    transition: transform 0.3s ease;
}
.roadmap-item:hover .roadmap-dot {
    transform: scale(1.15);
    background: var(--accent-sky);
    color: white;
}

.roadmap-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    background: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 8px;
}

.roadmap-item.up .roadmap-label { order: 1; margin-bottom: 10px; }
.roadmap-item.up .roadmap-dot { order: 2; }

.roadmap-item.down .roadmap-dot { order: 1; }
.roadmap-item.down .roadmap-label { order: 2; margin-top: 10px; }

/* ---------- Achievements counters ---------- */
.counter {
    font-size: 2.4rem;
    font-weight: 800;
}

/* ---------- Contact form ---------- */
.field-wrap {
    position: relative;
    margin-bottom: 1.6rem;
}
.field-wrap input, .field-wrap textarea {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s ease;
}
.field-wrap input:focus, .field-wrap textarea:focus {
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}

.submit-btn {
    background: linear-gradient(90deg, var(--accent-sky), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(56,189,248,0.35);
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(56,189,248,0.12);
    color: #0369a1;
    font-size: 0.95rem;
}
/* ---------- D-Worker section ---------- */
.dworker-hero-card {
    background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(124,58,237,0.08));
    border: 1px solid rgba(56,189,248,0.25);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.12);
    color: #047857;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.status-badge::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10B981;
    animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.dworker-feature-card {
    text-align: center;
    padding: 20px 14px;
}

.roadmap-version-card {
    border-top: 4px solid var(--accent-sky);
}
.roadmap-version-card.v2 { border-top-color: var(--accent-purple); }
.roadmap-version-card.v3 { border-top-color: var(--accent-gold); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,0.1);
    color: #6d28d9;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.station-icon-wrap i,
.arch-icon-wrap i {
    display: inline-block;
    font-size: 14px;
    line-height: 28px;
    width: 100%;
    text-align: center;
}