:root {
    --brand-blue: #1c2f50;
    /* primary */
    --brand-orange: #FC6302;
    /* accent */
    --brand-green: #00BF63;
    /* success */
    --bg: #ffffff;
    /* LIGHT theme only */
    --text: #1f2937;
    /* slate-800 */
    --muted: #6b7280;
    /* slate-500 */
    --card: #f7f9ff;
    /* soft light */
    --shadow: 0 10px 30px rgba(28, 47, 80, .12);
    --radius: 1.2rem;
    --ring: 0 0 0 .25rem rgba(252, 99, 2, .15);
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text)
}

a {
    color: var(--brand-blue)
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow)
}

.navbar .nav-link {
    font-weight: 600
}

.navbar .btn-whatsapp {
    background: var(--brand-green);
    border: none;
    color: #fff;
    font-weight: 700
}

.navbar .btn-whatsapp:hover {
    filter: brightness(1.05)
}

.brand-dot {
    color: var(--brand-orange)
}

/* visible toggler icon on light bg */
.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='rgba(28,47,80,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden
}

.hero .badge-pill {
    background: rgba(252, 99, 2, .08);
    color: var(--brand-orange);
    border: 1px dashed var(--brand-orange);
    font-weight: 700
}

.hero .title {
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: -.5px
}

.hero .subtitle {
    color: var(--muted)
}

/* Animated photo blob */
.portrait-wrap {
    position: relative;
    max-width: 520px;
    margin-inline: auto
}

.blob {
    position: absolute;
    inset: -6%;
    background: conic-gradient(from 140deg at 50% 50%, rgba(252, 99, 2, .15), rgba(0, 191, 99, .15), rgba(28, 47, 80, .15), rgba(252, 99, 2, .15));
    filter: blur(20px);
    border-radius: 36% 64% 41% 59% / 54% 32% 68% 46%;
    animation: blobMorph 12s ease-in-out infinite
}

@keyframes blobMorph {
    0% {
        transform: translateY(0) rotate(0)
    }

    25% {
        transform: translateY(-6px) rotate(8deg)
    }

    50% {
        transform: translateY(0) rotate(0)
    }

    75% {
        transform: translateY(6px) rotate(-8deg)
    }

    100% {
        transform: translateY(0) rotate(0)
    }
}

.portrait {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }

    100% {
        transform: translateY(0)
    }
}

/* Section headings */
.section-title {
    font-weight: 800;
    color: var(--brand-blue)
}

.section-title .bar {
    display: inline-block;
    height: .6rem;
    width: 3.2rem;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-green));
    border-radius: 6px;
    margin-left: .6rem
}

/* Skills */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--card);
    color: var(--brand-blue);
    border: 1px solid rgba(28, 47, 80, .1);
    padding: .55rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform .2s ease
}

.chip:hover {
    transform: translateY(-2px)
}

.chip i {
    color: var(--brand-green)
}

/* Cards / contact */
.contact-card {
    background: var(--card);
    border: 1px solid rgba(28, 47, 80, .08);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.contact-lead {
    background: linear-gradient(135deg, rgba(252, 99, 2, .08), rgba(0, 191, 99, .08));
    border: 1px dashed rgba(252, 99, 2, .35);
    border-radius: 12px
}

.btn-accent {
    background: var(--brand-orange);
    border: none;
    color: #fff;
    font-weight: 700
}

.btn-accent:hover {
    filter: brightness(1.05)
}

.btn-outline-muted {
    border-color: rgba(28, 47, 80, .25)
}

.input-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: .7
}

.has-icon {
    padding-left: 2.2rem
}

.form-control:focus,
.form-check-input:focus {
    box-shadow: var(--ring)
}

/* Footer (colorful) */
footer {
    background: linear-gradient(180deg, rgba(252, 99, 2, .08), rgba(0, 191, 99, .08) 60%, rgba(28, 47, 80, .06));
    border-top: 1px solid rgba(28, 47, 80, .07)
}

.footer-top {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #fbfcff);
    border: 1px solid rgba(28, 47, 80, .08)
}

.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-green), var(--brand-blue));
    border-radius: 999px
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(28, 47, 80, .08);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(28, 47, 80, .18)
}

.link-muted {
    color: var(--muted);
    text-decoration: none
}

.link-muted:hover {
    color: var(--brand-blue)
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.show {
    opacity: 1;
    transform: translateY(0)
}

/* Back to top */
#backToTop {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 1000;
    display: none
}

.navbar-toggler {
    border-radius: 5px !important;
    padding: 1px 5px !important;
    font-size: large !important
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {

    .blob,
    .portrait {
        animation: none
    }

    .reveal {
        transition: none
    }

    html {
        scroll-behavior: auto
    }
}


/* Optional: icons ko baseline align */
.chip i { margin-right: .4rem; }




   /* ===== HERO IMAGE PREMIUM CIRCLES ===== */

.portrait-wrap {
  position: relative;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MAIN IMAGE CIRCLE */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 3;
  background: #00AEEF;
}

.hero-img.active {
  opacity: 1;
}

/* GREEN SOLID RING */
.green-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 6px solid #00BF63; /* GREEN */
  z-index: 2;
}

/* COLORFUL OUTER RING */
.color-ring {
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: #0A66C2;   /* BLUE */
  border-right-color: #FC6302; /* ORANGE */
  animation: spin 12s linear infinite;
  z-index: 1;
}

/* SOFT GLOW */
.color-ring::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,191,99,.25), transparent 70%);
  z-index: -1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* MOBILE */
@media (max-width: 768px) {
  .portrait-wrap {
    width: 320px;
    height: 320px;
  }
  .color-ring {
    display: none;
  }
}

/* ===== HERO SKILL RING (FINAL) ===== */

.portrait-wrap {
  position: relative;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MAIN IMAGE */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 3;
}

.hero-img.active {
  opacity: 1;
}

/* GREEN BORDER */
.green-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 6px solid #00BF63;
  z-index: 2;
}

/* ===== HERO SKILLS – DESKTOP + MOBILE ===== */

.skill-ring {
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  animation: spin 22s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.skill-ring span {
  position: absolute;
  width: 46px;
  height: 46px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  font-size: 18px;
}

/* DESKTOP POSITIONS */
.skill-ring span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.skill-ring span:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); }
.skill-ring span:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.skill-ring span:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); }
.skill-ring span:nth-child(5) { top: 12%; right: 12%; }
.skill-ring span:nth-child(6) { bottom: 12%; left: 12%; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .portrait-wrap {
    width: 320px;
    height: 320px;
  }
  .skill-ring {
    display: none;
  }
}

