/********** Nana Aba Nhyira — Custom Design System (HTML/CSS/JS only) **********/

/* ===== Variables ===== */
:root {
    --primary: #06A3DA;
    --primary-dark: #0487b3;
    --primary-light: #34C5F0;
    --grad: linear-gradient(135deg, #06A3DA 0%, #34C5F0 100%);
    --secondary: #0B1E3A;
    --light: #F8FAFC;
    --light-2: #EEF4F8;
    --dark: #12141D;
    --muted: #6B7280;
    --border: #E5E7EB;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 .25rem .75rem rgba(0,0,0,.06);
    --shadow: 0 .5rem 1.25rem rgba(0,0,0,.10);
    --shadow-lg: 0 1rem 2.5rem rgba(0,0,0,.14);
    --container: 1140px;
    --header-h: 76px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #3b4252;
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Open Sans', sans-serif; color: var(--dark); line-height: 1.25; margin: 0 0 .5rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; vertical-align: middle; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { width: 100%; padding: 0 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 768px) { .col-md-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ===== Spacing / utilities ===== */
.my-6 { margin-top: 5rem; margin-bottom: 5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.pt-5 { padding-top: 3rem; }
.pb-5 { padding-bottom: 3rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; } .me-2 { margin-right: .5rem; } .me-3 { margin-right: 1rem; }
.ms-4 { margin-left: 1.5rem; } .pe-3 { padding-right: 1rem; } .ms-sm-4 { margin-left: 0; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.p-4 { padding: 1.5rem; } .p-lg-5 { padding: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.mx-auto { display: block; margin-left: auto; margin-right: auto; }
.w-25 { width: 25% !important; } .w-100 { width: 100%; } .h-100 { height: 100%; }
.overflow-hidden { overflow: hidden; }
.flex-column { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.flex-sm-row { flex-direction: column; }
.ms-auto { margin-left: auto; }
.text-center { text-align: center; } .text-start { text-align: left; }
.text-primary { color: var(--primary) !important; }
.text-white { color: #fff !important; } .text-muted { color: var(--muted) !important; }
.text-white-50 { color: rgba(255,255,255,.6) !important; }
.text-uppercase { text-transform: uppercase; letter-spacing: .04em; }
.fw-bold { font-weight: 700; } .fw-semibold { font-weight: 600; }
.fst-italic { font-style: italic; } .small { font-size: .875rem; }
.d-none { display: none !important; } .d-flex { display: flex !important; }
.d-inline { display: inline !important; } .d-block { display: block; }
.align-items-center { align-items: center; } .justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.bg-white { background: #fff; } .bg-light { background: var(--light); } .bg-dark { background: var(--dark); }
.border { border: 1px solid var(--border); } .border-end { border-right: 1px solid var(--border); }
.rounded { border-radius: var(--radius); } .shadow { box-shadow: var(--shadow); }
.text-decoration-none { text-decoration: none; }
.bg-primary { background: var(--primary) !important; } .bg-warning { background: #f6c23e !important; }
.bg-danger { background: #e74c3c !important; } .bg-success { background: #2ecc71 !important; }
.bg-info { background: #36c6d3 !important; } .bg-secondary { background: var(--secondary) !important; }
@media (min-width: 576px) { .ms-sm-4 { margin-left: 1.5rem; } .flex-sm-row { flex-direction: row; } }
@media (min-width: 768px) { .text-md-start { text-align: left; } .text-md-end { text-align: right; } }
@media (min-width: 992px) { .d-lg-block { display: block !important; } .d-lg-none { display: none !important; } .p-lg-5 { padding: 3rem; } .text-lg-end { text-align: right; } }

/* ===== Display headings ===== */
.display-1 { font-size: 5rem; font-weight: 800; }
.display-3 { font-size: 3.2rem; font-weight: 800; }
.display-4 { font-size: 2.6rem; font-weight: 800; }
.display-5 { font-size: 2.4rem; font-weight: 700; }
.fs-5 { font-size: 1.25rem; }

/* ===== Section system ===== */
.section { position: relative; }
.eyebrow {
    display: block; color: var(--primary); font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase; font-size: .78rem;
    margin-bottom: .6rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px;
    background: var(--primary); vertical-align: middle; margin-right: 10px; }
.section-head { margin-bottom: 2.5rem; }
.section-head p { max-width: 640px; color: var(--muted); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    font-weight: 600; font-size: 1rem; line-height: 1;
    padding: .9rem 1.7rem; border: 2px solid transparent; border-radius: 50px;
    cursor: pointer; transition: .3s; text-align: center;
}
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 .5rem 1.2rem rgba(6,163,218,.35); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-2px); color: #fff; box-shadow: 0 .7rem 1.6rem rgba(6,163,218,.45); }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-success { background: transparent; color: #25D366; border-color: #25D366; }
.btn-outline-success:hover { background: #25D366; color: #fff; }
.btn-success { background: #25D366; color: #fff; border-color: #25D366; }
.btn-success:hover { background: #1ebe5d; color: #fff; }
.btn-square { width: 42px; height: 42px; padding: 0; border-radius: 12px; font-size: 1.05rem; box-shadow: var(--shadow-sm); transition: .3s; }
.btn-square:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-lg-square { width: 54px; height: 54px; padding: 0; border-radius: 14px; font-size: 1.15rem; }

/* ===== Spinner ===== */
#spinner { position: fixed; inset: 0; width: 100%; height: 100%; background: #fff; z-index: 99999;
    display: flex; align-items: center; justify-content: center; transition: opacity .4s ease, visibility .4s; }
#spinner.show { visibility: visible; opacity: 1; }
#spinner:not(.show) { visibility: hidden; opacity: 0; }
.spinner-border { width: 3rem; height: 3rem; border: .3rem solid var(--primary); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Navbar ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); position: relative; }
.brand { background: var(--secondary); color: var(--primary) !important; font-weight: 800; font-size: 1.35rem; padding: .7rem 1.5rem; border-radius: 10px; letter-spacing: .02em; white-space: nowrap; line-height: 1; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow-sm); }
.brand:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.nav-collapse { display: flex; align-items: center; gap: .35rem; }
.nav-group { display: flex; align-items: center; }
.nav-group a { padding: 1.5rem .95rem; color: var(--dark); font-weight: 600; font-size: 1rem; position: relative; transition: color .25s; white-space: nowrap; }
.nav-group a::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 1.15rem; height: 2px; background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .25s; }
.nav-group a:hover, .nav-group a.active { color: var(--primary); }
.nav-group a:hover::after, .nav-group a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--dark); border-radius: 2px; transition: .3s; }
@media (max-width: 991px) {
    .nav-toggle { display: flex; }
    .nav-collapse { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); padding: 8px 0; gap: 0; }
    .nav-collapse.open { display: flex; }
    .nav-group { flex-direction: column; align-items: stretch; width: 100%; }
    .nav-group a { padding: .85rem 1.25rem; }
    .nav-group a::after { display: none; }
}

/* ===== Hero ===== */
#home { position: relative; background:
        radial-gradient(900px 500px at 85% -10%, rgba(52,197,240,.18), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(6,163,218,.16), transparent 55%),
        var(--light);
    padding: calc(var(--header-h) + 3.5rem) 0 5rem; overflow: hidden; }
#home .blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; z-index: 0; }
#home .blob.b1 { width: 280px; height: 280px; background: rgba(6,163,218,.35); top: 8%; right: 6%; }
#home .blob.b2 { width: 220px; height: 220px; background: rgba(52,197,240,.4); bottom: 6%; left: 4%; }
#home .row { position: relative; z-index: 1; }
.hero-card { position: relative; padding: 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); }
.hero-card::before { content: ""; position: absolute; inset: -14px; border-radius: 30px; background: var(--grad); opacity: .12; z-index: -1; }
.hero-img { position: relative; }
.hero-img img { border-radius: 18px; }
.hero-badge { position: absolute; bottom: 18px; left: -10px; background: var(--grad); color: #fff; padding: .7rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; }
.hero-badge small { display: block; font-weight: 500; font-size: .72rem; opacity: .9; }
.typed-text-output { font-size: 1.7rem; font-weight: 600; color: var(--primary); min-height: 2.1rem; }
.typed-cursor { color: var(--primary); font-weight: 300; }
.availability-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(6,163,218,.1); color: var(--primary); padding: 7px 16px; border-radius: 30px; font-weight: 600; font-size: .9rem; }
.availability-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #28a745; box-shadow: 0 0 0 0 rgba(40,167,69,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40,167,69,.6); } 70% { box-shadow: 0 0 0 8px rgba(40,167,69,0); } 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); } }

/* ===== About ===== */
#about { background: #fff; }
.years { background: var(--grad); color: #fff; border-radius: 16px; padding: 1.1rem 1.6rem; box-shadow: var(--shadow); }
.years .display-1 { font-size: 4.2rem; line-height: 1; color: #fff; }
.years h5 { letter-spacing: .3em; margin: 0; text-transform: uppercase; font-size: .8rem; }
.stat-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; transition: .3s; }
.stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.stat-card h5 { margin: 0; font-size: 1rem; color: var(--muted); font-weight: 600; }
.stat-link { text-decoration: none; display: inline-flex; align-items: baseline; line-height: 1; transition: transform .25s ease; }
.stat-link:hover { transform: translateY(-3px); }
.stat-link .plus { font-size: 1.7rem; font-weight: 800; }

/* ===== Skills ===== */
#skill { background: linear-gradient(180deg, #fff 0%, var(--light-2) 100%); }
.skill-panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-sm); }
.progress { width: 100%; height: 9px; background: #e9eef2; border-radius: 6px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width 1.6s ease; }
.tabs-nav { display: flex; border: 2px solid var(--primary); border-radius: 12px; overflow: hidden; }
.tabs-nav button { flex: 1; padding: 1rem; border: 0; background: #fff; color: var(--dark); font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: .25s; }
.tabs-nav button.active { background: var(--grad); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade .4s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.exp-card { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); transition: .3s; }
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exp-card hr { width: 34px; border: 0; border-top: 3px solid var(--primary); margin: .4rem 0; }

/* ===== Services ===== */
#service { background: var(--light); position: relative; }
#service::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--grad); }
.service-item { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; border: 1px solid var(--border); }
.service-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-item:hover::before { transform: scaleX(1); }
.bg-icon { width: 84px; height: 84px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--light-2); transition: .3s; }
.service-item:hover .bg-icon { background: var(--grad); }
.bg-icon i { font-size: 2rem; color: var(--primary); transition: color .3s; }
.service-item:hover .bg-icon i { color: #fff; }

/* ===== Process (timeline) ===== */
#process { background: #fff; }
.timeline { position: relative; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--primary), var(--primary-light)); border-radius: 3px; }
.timeline-item { position: relative; padding-left: 72px; margin-bottom: 1.6rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-node { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); box-shadow: var(--shadow-sm); z-index: 1; }
.timeline-item:hover .timeline-node { background: var(--grad); color: #fff; border-color: transparent; }
.timeline-body { background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.25rem; transition: .3s; }
.timeline-item:hover .timeline-body { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.timeline-body h4 { margin-bottom: .3rem; }

/* ===== Projects ===== */
#project { background: linear-gradient(180deg, var(--light-2) 0%, #fff 100%); }
.filters { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.filters li { padding: .5rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 30px; transition: .3s; }
.filters li:hover { color: var(--primary); border-color: var(--primary); }
.filters li.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 .4rem 1rem rgba(6,163,218,.3); }
.portfolio-item { margin-bottom: 30px; }
.portfolio-img { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.portfolio-img img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .5s; }
.portfolio-item:hover .portfolio-img img { transform: scale(1.07); }
.portfolio-btn { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,163,218,.0), rgba(6,163,218,.85)); display: flex; align-items: flex-end; gap: 8px; padding: 24px; opacity: 0; transition: opacity .35s; }
.portfolio-item:hover .portfolio-btn { opacity: 1; }
.portfolio-btn .btn { background: #fff; color: var(--primary); border: 2px solid #fff; }
.portfolio-btn .btn:hover { background: transparent; color: #fff; }
.project-cap { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 0 0 16px 16px; padding: 1.25rem; box-shadow: var(--shadow-sm); }

/* ===== Contact ===== */
#contact { background: #fff; }
.info-card { background: var(--secondary); color: #fff; border-radius: 20px; padding: 2.2rem; height: 100%; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.info-card::after { content: ""; position: absolute; width: 200px; height: 200px; right: -60px; bottom: -60px; background: var(--grad); opacity: .25; border-radius: 50%; }
.info-card h3 { color: #fff; }
.info-card .row-line { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-card .row-line i { color: var(--primary-light); width: 22px; text-align: center; }
.info-card .row-line a { color: #fff; }
.info-card .row-line a:hover { color: var(--primary-light); }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow); }
.form-floating { position: relative; margin-bottom: 1rem; }
.form-floating input, .form-floating textarea { width: 100%; padding: 1.3rem .9rem .4rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--light); outline: none; transition: border-color .2s, box-shadow .2s; }
.form-floating input:focus, .form-floating textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,163,218,.15); background: #fff; }
.form-floating label { position: absolute; left: .9rem; top: .85rem; color: var(--muted); pointer-events: none; transition: .2s; background: transparent; padding: 0 4px; }
.form-floating input:focus + label, .form-floating input:not(:placeholder-shown) + label, .form-floating textarea:focus + label, .form-floating textarea:not(:placeholder-shown) + label { top: -.5rem; font-size: .72rem; color: var(--primary); background: #fff; padding: 0 4px; }

/* ===== Social ===== */
.social a { display: inline-flex; }

/* ===== WhatsApp pulse ===== */
.whatsapp-pulse { position: relative; }
.whatsapp-pulse::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; background: #25D366; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: wp-pulse 1.8s infinite; }
@keyframes wp-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: 8px; }
.lightbox .close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2.5rem; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ===== Footer ===== */
.footer { position: relative; border-top: 6px solid transparent; border-image: var(--grad) 1; }
.rounded-map { border-radius: 18px; overflow: hidden; }
.footer a.btn-link { color: rgba(255,255,255,.6); padding: 0; display: inline-block; margin-bottom: .35rem; }
.footer a.btn-link:hover { color: var(--primary); }
.footer h1, .footer h5 { color: #fff; }

/* ===== Back to top ===== */
.back-to-top { position: fixed; right: 30px; bottom: 30px; z-index: 999; display: none; transition: transform .25s; }
.back-to-top.show { display: inline-flex; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== CV ===== */
.cv-wrapper { max-width: 900px; margin: 40px auto; background: #fff; padding: 50px; box-shadow: var(--shadow); border-radius: 12px; }
.cv-name { color: var(--primary); }
.cv-section { margin-top: 35px; }
.cv-section h3 { border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.cv-skill { display: inline-block; border: 1px solid var(--primary); color: var(--primary); border-radius: 30px; padding: 6px 18px; margin: 4px; font-weight: 600; }
.cv-item { margin-bottom: 18px; }
.cv-item h5 { margin-bottom: 2px; }
.cv-date { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .display-3 { font-size: 2.4rem; }
    .display-5 { font-size: 1.9rem; }
    .cv-wrapper { padding: 25px; margin: 20px; }
    #home { padding-top: calc(var(--header-h) + 1.5rem); }
    .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
