/*****RESET & BASE STYLES*****/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', GENEVA, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0f17 0%, #151925 100%);
    color: #c6e9fe;
    min-height: 100vh;
    overflow-x: hidden;
}

/***** HEADER & NAVIGATION *****/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 15, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 252, 133, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #e6e9f0;
    text-decoration: none;
    white-space: nowrap;
}

.logo-image {
    width: 44px;
    height: 38px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(90deg, #e6e9fe 0%, #2afc85 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: #c2c6d3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0px;
}

nav a:hover {
    color: #2afc85;
}

nav ::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2afc85;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu.toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e6e9f0;
}

/***** HERO SECTION *****/
.hero {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 120px 40px 60px;
    min-height: 100vh;
}

.content {
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0px 5px 15px rgba(46, 252, 139, 0.3);
}

h2 {
    font-size: 2.0rem;
    align-items: center;
    margin-bottom: 25px;
    color: #c2c6d3;
    font-weight: 500;
}

P {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #c2c6d3;
}

.typing-text {
    position: relative;
    display: inline-block;
    color: #2afc85;
}

.typing-text::after {
    content: "|";
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
    color: #2afc85;
}

.cta-buttons {
    display: flex;
    gap: 90px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, #1ed761 0%, #15c46a 100%);
    color: #0c0f17;
    box-shadow: 0 5px 15px rgba(30, 215, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(30, 215, 97, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    border: 2px solid #2afc85;
    color: #2afc85;
}

.btn-secondary:hover {
    background-color: rgba(42, 252, 133, 0.1);
    transform: translateY(-6px);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 28px;
    opacity: 1;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 1.1s;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #232838 100%);
    color: #2afc85;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: #151925;
    box-shadow: 0 8px 20px rgba(39, 215, 97, 0.3);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1ed761, #2afc85, #15c46a);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}

.social-icons a:hover::before {
    opacity: 1;
}

/***** PROFILE IMAGE & PULSE EFFECT *****/
.profile-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 4px solid #0c0f17;
    transition: all 0.5s ease;
}

.profile-img:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/****ANIMATED RINGS****/
.border-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transform: translate(-50%, -50%)rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(transparent, #2afc85, 
    transparent, transparent);
    z-index: 1;
    animation: rotate 4s linear infinite;
}

.border-middle {
    position: absolute;
    width: 270px;
    height: 270px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(transparent, #15c46a,
    transparent, transparent);
    z-index: 2;
    animation: rotate-reverse 3s linear infinite;
    filter: blur(3px);
}

.border-inner {
    position: absolute;
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(transparent, #1ed761,
    transparent, transparent);
    z-index: 3;
    animation: rotate 2s linear infinite;
}

/****Pulsing Effects****/

.pulse-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    border: 2px solid rgba(42, 252, 133, 0.3);
    z-index: 0;
    animation: pulse 3s ease-out infinite;
}

/*Border Container*/
.border-container {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 4;
}

.border-container::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, #151925 0%, #1a1f2e 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/*KEYFRAMES FOR ANIMATIONS****/
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop: show navigation links and hide hamburger */
@media (min-width: 769px) {
    nav ul {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 30px;
    }

    nav a {
        font-size: 1rem;
        margin: 0;
    }

    .menu.toggle {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        padding: 100px 20px 40px;
        gap: 45px;
    }

    .content {
        text-align: center;
        width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile/tablet: replace the navigation links with the hamburger */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(12, 15, 23, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 15px;
        transition: left 0.3s ease;
    }

    nav ul.active {
        left: 0;
    }

    nav a {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    .menu.toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .border-outer {
        width: 250px;
        height: 250px;
    }

    .border-middle {
        width: 225px;
        height: 225px;
    }

    .border-inner {
        width: 200px;
        height: 200px;
    }

    .border-container {
        width: 250px;
        height: 250px;
    }

    .border-container::after {
        width: 215px;
        height: 215px;
    }

    .pulse-ring {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .profile-container {
        width: 200px;
        height: 200px;
    }

    .profile-img {
        width: 160px;
        height: 160px;
    }

    .border-outer {
        width: 200px;
        height: 200px;
    }

    .border-middle {
        width: 180px;
        height: 180px;
    }

    .border-inner {
        width: 160px;
        height: 160px;
    }

    .border-container {
        width: 200px;
        height: 200px;
    }

    .border-container::after {
        width: 170px;
        height: 170px;
    }

    .pulse-ring {
        width: 200px;
        height: 200px;
    }
}

/* ===== PORTFOLIO SECTIONS ===== */
html { scroll-behavior: smooth; }
body { background: radial-gradient(circle at 80% 10%, rgba(42,252,133,.07), transparent 30%), linear-gradient(135deg, #0c0f17 0%, #151925 100%); }
header { z-index: 1000; }
.section { scroll-margin-top: 90px; }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: #2afc85; transition: width .3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #2afc85; }

.eyebrow { color: #2afc85; font-size: .85rem; letter-spacing: 4px; font-weight: 700; margin-bottom: 12px; }
.page-section { max-width: 1200px; margin: 0 auto; padding: 110px 40px; min-height: 80vh; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 55px; }
.section-heading > span { color: #2afc85; font-weight: 700; letter-spacing: 3px; font-size: .85rem; }
.section-heading h2 { font-size: 2.8rem; margin: 8px 0 12px; color: #e6e9f0; }
.section-heading h2 strong { color: #2afc85; font-weight: 700; }
.section-heading p { margin: 0; font-size: 1.05rem; color: #8f98aa; }
.glass-card { background: linear-gradient(145deg, rgba(26,31,46,.85), rgba(18,22,33,.8)); border: 1px solid rgba(42,252,133,.12); border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,.18); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.glass-card:hover { transform: translateY(-7px); border-color: rgba(42,252,133,.45); box-shadow: 0 20px 50px rgba(0,0,0,.28), 0 0 25px rgba(42,252,133,.06); }
.card-icon, .skill-icon { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 15px; color: #2afc85; background: rgba(42,252,133,.08); border: 1px solid rgba(42,252,133,.18); font-size: 1.4rem; }

.about-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 25px; }
.about-main { padding: 35px; }
.about-main h3 { font-size: 1.7rem; color: #e6e9f0; margin: 22px 0 18px; }
.about-main p { font-size: 1.02rem; line-height: 1.8; margin-bottom: 16px; }
.about-details { display: grid; gap: 18px; }
.detail-card { padding: 25px; display: flex; gap: 18px; align-items: flex-start; }
.detail-card > i { color: #2afc85; font-size: 1.5rem; padding-top: 4px; }
.detail-card h3 { color: #e6e9f0; font-size: 1.1rem; margin-bottom: 8px; }
.detail-card p { font-size: .95rem; line-height: 1.55; margin: 0; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { padding: 28px; position: relative; overflow: hidden; }
.project-card::before { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(42,252,133,.05); top: -60px; right: -60px; }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.project-top i { color: #2afc85; font-size: 1.5rem; }
.project-number { color: #697386; font-weight: 700; letter-spacing: 2px; }
.project-card h3 { color: #e6e9f0; font-size: 1.4rem; margin-bottom: 12px; }
.project-card p { font-size: .98rem; line-height: 1.7; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags span, .skill-list span { border: 1px solid rgba(42,252,133,.2); color: #a9b3c5; background: rgba(42,252,133,.04); border-radius: 30px; padding: 7px 11px; font-size: .78rem; }
.project-link { color: #2afc85; text-decoration: none; font-weight: 700; font-size: .9rem; }
.project-link i { transition: transform .25s ease; }
.project-link:hover i { transform: translateX(5px); }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill-card { padding: 30px; }
.skill-card h3 { color: #e6e9f0; margin: 20px 0 18px; font-size: 1.3rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 25px; }
.contact-intro { padding: 35px; }
.contact-intro h3 { color: #e6e9f0; font-size: 1.8rem; margin: 22px 0 15px; }
.contact-intro p { line-height: 1.75; }
.contact-button { display: inline-flex; margin-top: 12px; }
.contact-details { display: grid; gap: 18px; }
.contact-item { padding: 23px; display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; }
.contact-item > i { color: #2afc85; font-size: 1.35rem; width: 28px; text-align: center; }
.contact-item div { display: flex; flex-direction: column; gap: 5px; }
.contact-item span { color: #697386; font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; }
.contact-item strong { color: #dce2eb; font-size: 1rem; }
footer { border-top: 1px solid rgba(42,252,133,.1); text-align: center; padding: 30px 20px; color: #697386; font-size: .9rem; }
footer i { color: #2afc85; }

@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .project-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .page-section { padding: 90px 20px; }
    .section-heading h2 { font-size: 2.25rem; }
    .project-grid, .skills-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 125px; }
    .content { max-width: 100%; }
    .cta-buttons { gap: 18px; }
}
@media (max-width: 480px) {
    .page-section { padding: 75px 16px; }
    .section-heading { margin-bottom: 38px; }
    .section-heading h2 { font-size: 1.9rem; }
    .about-main, .contact-intro, .project-card, .skill-card { padding: 23px; }
    .detail-card { padding: 20px; }
}


/* ===== FINAL NAVIGATION + LOGO REFINEMENTS ===== */
header {
    min-height: 76px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    align-items: center;
}

.nav-link {
    display: inline-block;
}

.menu.toggle {
    display: none;
}

/* Keep the social icons centered beneath the goal statement. */
.content .social-icons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 22px auto 0;
}

/* Give the social icons a consistent clickable area. */
.content .social-icons a {
    flex: 0 0 48px;
}

/* Desktop: show navigation names, hide hamburger. */
@media (min-width: 901px) {
    .menu.toggle {
        display: none !important;
    }

    nav ul {
        display: flex !important;
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 30px;
    }
}

/* Smaller screens: use hamburger navigation. */
@media (max-width: 900px) {
    header {
        padding: 15px 20px;
    }

    .menu.toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: #e6e9f0;
        user-select: none;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(12, 15, 23, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 15px;
        transition: left 0.3s ease;
    }

    nav ul.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 38px;
        height: 34px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .content .social-icons {
        gap: 12px;
    }

    .content .social-icons a {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
}

/* ===== 2026 PROFESSIONAL POLISH ===== */
:root{
  --bg:#07111f;
  --bg2:#0d1b2e;
  --surface:rgba(14,31,52,.72);
  --surface-strong:rgba(17,39,65,.92);
  --text:#eaf4ff;
  --muted:#a9bdd1;
  --accent:#38bdf8;
  --accent2:#8b5cf6;
  --line:rgba(56,189,248,.18);
  --shadow:0 20px 60px rgba(0,0,0,.28);
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 10% 15%,rgba(56,189,248,.12),transparent 28%),
    radial-gradient(circle at 90% 75%,rgba(139,92,246,.10),transparent 30%),
    linear-gradient(135deg,var(--bg),var(--bg2));
  color:var(--text);
}
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:linear-gradient(rgba(56,189,248,.025) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(56,189,248,.025) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,black,transparent 85%);
}
header{
  background:rgba(7,17,31,.78)!important;
  border-bottom:1px solid var(--line)!important;
  backdrop-filter:blur(18px);
  box-shadow:0 8px 30px rgba(0,0,0,.12);
}
.logo-text{background:linear-gradient(90deg,var(--text),var(--accent));background-clip:text;-webkit-background-clip:text}
nav a{color:#c5d5e5}
nav a:hover,.nav-link.active{color:var(--accent)!important}
.nav-link::after{background:linear-gradient(90deg,var(--accent),var(--accent2))!important}

.hero{position:relative}
.content{text-align:center;max-width:720px}
.eyebrow{letter-spacing:.18em;color:var(--accent)!important;font-weight:700}
h1{
  text-align:center;
  background:linear-gradient(90deg,#f4f9ff 15%,var(--accent) 55%,#b8a1ff 90%);
  background-clip:text;-webkit-background-clip:text;
  text-shadow:0 8px 35px rgba(56,189,248,.16);
}
h2{text-align:center;color:#d8e6f4}
.typing-text{
  display:inline-flex;
  align-items:center;
  vertical-align:middle;
  white-space:nowrap;
  color:var(--accent)!important;
  min-height:1.2em;
}
.typing-text::after{
  position:static!important;
  display:inline-block;
  margin-left:3px;
  right:auto!important;
  content:"|"!important;
  color:var(--accent);
  animation:blink .7s step-end infinite;
}
.hero-service-badge{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  margin:4px auto 4px;padding:10px 17px;border:1px solid var(--line);
  border-radius:999px;background:rgba(56,189,248,.06);color:#cfe5f7;
  font-size:.9rem;box-shadow:0 10px 30px rgba(0,0,0,.12);
  animation:floatSoft 5s ease-in-out infinite;
}
.hero-service-badge i{color:var(--accent)}
.cta-buttons{justify-content:center;gap:18px}
.btn{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,background .35s ease}
.btn-primary{background:linear-gradient(135deg,var(--accent),#2563eb)!important;color:#04101d!important;box-shadow:0 10px 30px rgba(56,189,248,.22)}
.btn-secondary{border-color:var(--accent)!important;color:var(--accent)!important}
.btn:hover{transform:translateY(-7px) scale(1.02)!important}
.social-icons a{
  background:linear-gradient(145deg,#10233a,#142b47);
  color:var(--accent);border:1px solid rgba(56,189,248,.12);
  transition:transform .35s ease,box-shadow .35s ease,color .35s ease;
}
.social-icons a:hover{color:#06101c;box-shadow:0 12px 30px rgba(56,189,248,.2)}

.profile-container{filter:drop-shadow(0 25px 45px rgba(0,0,0,.22))}
.border-outer{background:conic-gradient(transparent,var(--accent),transparent,transparent)}
.border-middle{background:conic-gradient(transparent,var(--accent2),transparent,transparent)}
.border-inner{background:conic-gradient(transparent,#60a5fa,transparent,transparent)}
.pulse-ring{border-color:rgba(56,189,248,.28)}
.border-container::after{background:linear-gradient(135deg,var(--bg2),#102642)}

.page-section{padding-top:110px;padding-bottom:110px}
.section-heading{text-align:center;max-width:780px;margin:0 auto 48px}
.section-heading>span{
  display:inline-block;color:var(--accent);font-size:.82rem;font-weight:800;
  letter-spacing:.22em;margin-bottom:9px;
}
.section-heading h2{margin-bottom:12px}
.section-heading h2 strong{color:var(--accent)}
.section-heading p{color:var(--muted);margin-bottom:0}
.glass-card{
  background:linear-gradient(145deg,rgba(18,40,65,.78),rgba(10,24,42,.72))!important;
  border:1px solid var(--line)!important;
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
  transition:transform .45s cubic-bezier(.2,.8,.2,1),border-color .45s ease,box-shadow .45s ease,background .45s ease;
}
.glass-card:hover{
  transform:translateY(-9px);
  border-color:rgba(56,189,248,.42)!important;
  box-shadow:0 28px 70px rgba(0,0,0,.32),0 0 35px rgba(56,189,248,.06);
}
.card-icon,.skill-icon{color:var(--accent)!important}
.detail-card i{color:var(--accent)!important}
.detail-card,.skill-card,.project-card,.contact-item,.about-main{overflow:hidden}
.detail-card::before,.skill-card::before,.project-card::before,.contact-item::before{
  content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.055) 50%,transparent 65%);
  transform:translateX(-120%);transition:transform .7s ease;pointer-events:none;
}
.detail-card:hover::before,.skill-card:hover::before,.project-card:hover::before,.contact-item:hover::before{transform:translateX(120%)}
.about-grid{align-items:stretch}
.about-details{gap:18px}
.project-grid{gap:26px}
.project-card{position:relative}
.project-visual{
  height:170px;border-radius:14px;margin-bottom:20px;overflow:hidden;
  background:#091a2c;border:1px solid rgba(56,189,248,.12);
}
.project-visual img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .65s cubic-bezier(.2,.8,.2,1)}
.project-card:hover .project-visual img{transform:scale(1.07)}
.project-top i,.project-link{color:var(--accent)!important}
.tags span{background:rgba(56,189,248,.08)!important;border-color:rgba(56,189,248,.16)!important;color:#bfe4fb!important}
.skill-list span{transition:transform .25s ease,background .25s ease}
.skill-list span:hover{transform:translateY(-2px);background:rgba(56,189,248,.1)}
.contact-section{padding-bottom:130px}
.contact-item:hover{transform:translateX(6px) translateY(-3px)}
footer{border-top:1px solid var(--line);background:rgba(4,12,22,.35);color:var(--muted);text-align:center;padding:28px 20px}
footer p{margin:0;font-size:.95rem}

.reveal{opacity:0;transform:translateY(34px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.8,.2,1)}
.reveal.is-visible{opacity:1;transform:none}
.stagger-1{transition-delay:.08s}.stagger-2{transition-delay:.16s}.stagger-3{transition-delay:.24s}.stagger-4{transition-delay:.32s}.stagger-5{transition-delay:.40s}
@keyframes floatSoft{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}
@media (max-width:768px){
  .hero{padding-top:105px}
  .content{max-width:100%}
  h1{font-size:2.45rem}
  h2{font-size:1.35rem}
  .typing-text{white-space:normal;justify-content:center}
  .hero-service-badge{max-width:95%;border-radius:16px}
  .page-section{padding-top:85px;padding-bottom:85px}
  /* Compact mobile menu — no full-screen oversized navigation */
  nav ul{
    top:68px!important;left:auto!important;right:18px!important;
    width:min(210px,calc(100vw - 36px))!important;height:auto!important;
    max-height:0;overflow:hidden;padding:0!important;gap:0!important;
    border:1px solid var(--line);border-radius:16px;
    background:rgba(7,17,31,.97)!important;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    transition:max-height .35s ease,opacity .35s ease,transform .35s ease!important;
    opacity:0;transform:translateY(-8px);
  }
  nav ul.active{left:auto!important;max-height:360px;padding:8px!important;opacity:1;transform:translateY(0)}
  nav a{font-size:1rem!important;margin:0!important;display:block;padding:12px 14px!important;border-radius:10px}
  nav a:hover{background:rgba(56,189,248,.08)}
  .menu.toggle{color:var(--accent)}
}
@media (max-width:480px){
  h1{font-size:2.05rem}
  .typing-text{font-size:.98rem}
  .project-visual{height:145px}
  .cta-buttons{gap:12px}
}

/* =========================================================
   FINAL RESPONSIVE + THEME + HERO TITLE REFINEMENTS
   ========================================================= */

:root {
  --bg:#07111f;
  --bg2:#0d1b2e;
  --surface:rgba(14,31,52,.78);
  --surface-strong:rgba(17,39,65,.94);
  --text:#eaf4ff;
  --heading:#f4f9ff;
  --muted:#a9bdd1;
  --accent:#38bdf8;
  --accent2:#8b5cf6;
  --line:rgba(56,189,248,.18);
  --header:rgba(7,17,31,.82);
  --shadow:0 20px 60px rgba(0,0,0,.28);
}

html[data-theme="light"] {
  --bg:#f5f9fd;
  --bg2:#e9f2fb;
  --surface:rgba(255,255,255,.84);
  --surface-strong:#ffffff;
  --text:#203047;
  --heading:#10233d;
  --muted:#5e7085;
  --accent:#087db3;
  --accent2:#6844c7;
  --line:rgba(8,125,179,.20);
  --header:rgba(255,255,255,.88);
  --shadow:0 18px 45px rgba(30,65,95,.12);
}

body {
  background:
    radial-gradient(circle at 10% 15%,rgba(56,189,248,.12),transparent 28%),
    radial-gradient(circle at 90% 75%,rgba(139,92,246,.10),transparent 30%),
    linear-gradient(135deg,var(--bg),var(--bg2));
  color:var(--text);
  transition:background .5s ease,color .4s ease;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 10% 15%,rgba(8,125,179,.10),transparent 30%),
    radial-gradient(circle at 90% 75%,rgba(104,68,199,.08),transparent 30%),
    linear-gradient(135deg,var(--bg),var(--bg2));
}

header {
  z-index:1000;
  background:var(--header)!important;
  border-bottom-color:var(--line)!important;
}

.logo-text {
  background:linear-gradient(90deg,var(--heading),var(--accent));
  background-clip:text;
  -webkit-background-clip:text;
}

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

.theme-toggle {
  border:1px solid var(--line);
  background:rgba(56,189,248,.08);
  color:var(--accent);
  min-height:42px;
  padding:9px 13px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font:600 .82rem/1 'Segoe UI',sans-serif;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  transition:transform .3s ease,background .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.theme-toggle:hover {
  transform:translateY(-2px) rotate(-1deg);
  background:rgba(56,189,248,.14);
  border-color:rgba(56,189,248,.45);
  box-shadow:0 12px 28px rgba(0,0,0,.16);
}
.theme-toggle i { font-size:1rem; }

.hero-title {
  display:block;
  width:100%;
  text-align:center!important;
  color:var(--heading)!important;
  line-height:1.35;
  margin:0 auto 25px;
  font-size:clamp(1.15rem,2.4vw,2rem);
  font-weight:650;
}
.senior-title {
  display:inline;
  white-space:nowrap;
  color:var(--heading);
}
.typing-text {
  display:inline;
  white-space:normal;
  color:var(--accent)!important;
  vertical-align:baseline;
}
.typing-text::after {
  content:'|';
  position:static!important;
  display:inline;
  margin-left:4px;
  color:var(--accent);
  animation:blink .7s step-end infinite;
}

.content > p { color:var(--muted); }

.glass-card {
  background:linear-gradient(145deg,rgba(18,40,65,.78),rgba(10,24,42,.72))!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow);
}
html[data-theme="light"] .glass-card {
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(239,247,253,.88))!important;
}
.glass-card h3,.about-main h3,.project-card h3,.skill-card h3,.contact-intro h3 { color:var(--heading)!important; }
.glass-card p { color:var(--muted); }
.section-heading h2 { color:var(--heading)!important; }
.section-heading p { color:var(--muted)!important; }
.project-number,.contact-item span { color:var(--muted)!important; }
.contact-item strong { color:var(--heading)!important; }

.project-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.project-card { min-width:0; }
.project-visual { background:#091a2c; }

/* Tablet + Android: compact navigation, safe spacing, no horizontal overflow. */
@media (max-width:1024px) {
  header { padding:14px 22px; gap:12px; }
  nav { margin-left:auto; }
  .menu.toggle {
    display:flex!important;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid var(--line);
    border-radius:12px;
    color:var(--accent);
    background:rgba(56,189,248,.06);
  }
  nav ul {
    position:fixed!important;
    top:74px!important;
    right:18px!important;
    left:auto!important;
    width:min(235px,calc(100vw - 36px))!important;
    height:auto!important;
    max-height:0;
    overflow:hidden;
    padding:0!important;
    gap:0!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--header)!important;
    box-shadow:0 22px 60px rgba(0,0,0,.28);
    opacity:0;
    transform:translateY(-10px) scale(.98);
    transition:max-height .35s ease,opacity .3s ease,transform .3s ease!important;
  }
  nav ul.active {
    max-height:360px;
    padding:8px!important;
    opacity:1;
    transform:translateY(0) scale(1);
  }
  nav li { width:100%; }
  nav a {
    display:block!important;
    width:100%;
    padding:12px 14px!important;
    border-radius:10px;
  }
  nav a:hover { background:rgba(56,189,248,.08); }
  .hero {
    width:100%;
    padding-left:24px;
    padding-right:24px;
    gap:38px;
  }
  .content { width:min(100%,760px); }
  .profile-container { flex:0 0 auto; }
  .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:768px) {
  header { padding:12px 16px; }
  .logo { max-width:55%; }
  .logo-text { overflow:hidden;text-overflow:ellipsis; }
  .theme-toggle { min-width:42px;width:42px;padding:0; }
  .theme-label { display:none; }
  .hero {
    min-height:auto;
    padding-top:108px;
    padding-bottom:65px;
    flex-direction:column-reverse;
  }
  .content { max-width:100%; }
  h1 { font-size:clamp(2rem,9vw,2.7rem); }
  .hero-title {
    font-size:clamp(.95rem,4.2vw,1.3rem);
    line-height:1.5;
    letter-spacing:-.01em;
  }
  .typing-text { white-space:normal; }
  .profile-container { transform:scale(.88); margin-bottom:-18px; }
  .cta-buttons { flex-wrap:wrap; justify-content:center; }
  .btn { padding:13px 20px; font-size:1rem; }
  .social-icons { flex-wrap:wrap; }
  .page-section { padding:80px 18px; }
  .section-heading h2 { font-size:clamp(1.9rem,8vw,2.35rem); }
  .about-grid,.contact-grid,.project-grid,.skills-grid { grid-template-columns:1fr; }
  .project-card,.skill-card,.about-main,.contact-intro { padding:23px; }
  .project-visual { height:160px; }
  .detail-card { padding:20px; }
  .contact-item { min-width:0; }
  .contact-item strong { overflow-wrap:anywhere; }
}

@media (max-width:480px) {
  .logo-image { width:36px;height:32px; }
  .logo { gap:7px;font-size:1rem; }
  .hero { padding-left:15px;padding-right:15px; }
  .hero-title { font-size:.91rem; }
  .hero-service-badge { font-size:.8rem; padding:9px 12px; }
  .profile-container { transform:scale(.76); margin-bottom:-42px; }
  .cta-buttons { width:100%; }
  .btn { width:100%; justify-content:center; }
  .social-icons a { width:44px;height:44px;flex-basis:44px; }
  .project-visual { height:145px; }
}

@media (prefers-reduced-motion:reduce) {
  .theme-toggle,.glass-card,.btn,.social-icons a { transition:none!important; }
}


/* ===== FINAL PORTFOLIO REFINEMENTS ===== */
.site-name {
  font-size: clamp(2.25rem, 4.2vw, 3rem) !important;
  color: var(--accent2) !important;
  background: none !important;
  -webkit-text-fill-color: var(--accent2) !important;
  text-shadow: 0 6px 24px rgba(139, 92, 246, .18) !important;
  margin-bottom: 10px !important;
  letter-spacing: .015em;
}

.hero-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  text-align: center !important;
  margin: 0 auto 25px !important;
  line-height: 1.35 !important;
  font-size: clamp(1rem, 2.15vw, 1.55rem) !important;
  font-weight: 650 !important;
}

.senior-title {
  display: block !important;
  color: var(--heading) !important;
  font-size: .95em;
  line-height: 1.2;
  margin-bottom: 7px;
  white-space: nowrap;
}

.typing-text {
  display: block !important;
  width: 100%;
  max-width: 100%;
  text-align: center !important;
  color: var(--accent) !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.45;
  min-height: 1.45em;
}

.typing-text::after {
  content: "|" !important;
  position: static !important;
  display: inline !important;
  margin-left: 4px;
  color: var(--accent) !important;
  animation: blink .7s step-end infinite;
}

/* Laptop/tablet landscape: keep the portrait high and to the right of the content. */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px !important;
    padding-top: 105px !important;
  }
  .content {
    flex: 1 1 auto;
    min-width: 0;
  }
  .profile-container {
    flex: 0 0 250px !important;
    width: 250px !important;
    height: 250px !important;
    margin-top: 8px;
    transform: scale(.82);
    transform-origin: top center;
  }
  .profile-img { width: 200px; height: 200px; }
  .border-outer { width: 250px; height: 250px; }
  .border-middle { width: 225px; height: 225px; }
  .border-inner { width: 200px; height: 200px; }
  .border-container { width: 175px; height: 175px; }
  .typing-text { max-width: 100%; }
}

/* Phones and portrait tablets: portrait appears first, then centered content. */
@media (max-width: 768px) {
  .hero {
    flex-direction: column !important;
    align-items: center !important;
  }
  .profile-container {
    order: -1 !important;
    margin-top: 0 !important;
    margin-bottom: -8px !important;
  }
  .site-name { font-size: clamp(2rem, 9vw, 2.55rem) !important; }
  .hero-title { font-size: clamp(.92rem, 3.8vw, 1.2rem) !important; }
  .typing-text { line-height: 1.55; }
}

@media (max-width: 480px) {
  .hero-title { font-size: .9rem !important; }
  .senior-title { margin-bottom: 5px; }
  .site-name { font-size: 2rem !important; }
}

/* ===== LATEST HERO POLISH ===== */
.site-name {
  background: linear-gradient(90deg, #ffffff 0%, #f8fbff 42%, #dbeafe 72%, #c4b5fd 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-size: clamp(2.05rem, 3.7vw, 2.7rem) !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  text-shadow: 0 6px 22px rgba(255,255,255,.08) !important;
}

/* On laptop/tablet, lift the portrait so it sits higher beside the name/title/goal area. */
@media (min-width: 769px) {
  .profile-container {
    transform: translateY(-42px) scale(.94);
    transform-origin: center top;
  }
}

/* Keep the portrait comfortably positioned on smaller screens. */
@media (max-width: 768px) {
  .profile-container {
    transform: translateY(-10px) scale(.88) !important;
    margin-bottom: -18px !important;
  }
}

@media (max-width: 480px) {
  .profile-container {
    transform: translateY(-8px) scale(.76) !important;
    margin-bottom: -38px !important;
  }
  .site-name {
    font-size: 2rem !important;
  }
}


/* ===== LIGHT THEME VISIBILITY + LOGO FIX ===== */
html[data-theme="light"] .logo-image {
  /* Source logo is white; make it solid black in light theme. */
  filter: brightness(0);
}

html[data-theme="light"] .logo-text {
  /* Keep the complete Delabs Visions logo readable on the light header. */
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;
}

html[data-theme="light"] .hero-service-badge {
  color: #29445d !important;
  background: rgba(8,125,179,.07) !important;
}

html[data-theme="light"] .tags span {
  color: #29445d !important;
  background: rgba(8,125,179,.08) !important;
  border-color: rgba(8,125,179,.22) !important;
}

html[data-theme="light"] .skill-list span {
  color: #29445d !important;
  background: rgba(8,125,179,.06) !important;
  border-color: rgba(8,125,179,.20) !important;
}

html[data-theme="light"] .skill-list span:hover {
  color: #18344b !important;
  background: rgba(8,125,179,.12) !important;
}

html[data-theme="light"] .project-number,
html[data-theme="light"] .contact-item span {
  color: #52677b !important;
}

html[data-theme="light"] .section-heading p,
html[data-theme="light"] .glass-card p,
html[data-theme="light"] .content > p {
  color: #4b6176 !important;
}

html[data-theme="light"] .contact-item strong {
  color: #10233d !important;
}

html[data-theme="light"] .theme-toggle {
  color: #075f88 !important;
  background: rgba(8,125,179,.07) !important;
}

html[data-theme="light"] nav a {
  color: #42576b !important;
}

html[data-theme="light"] nav a:hover,
html[data-theme="light"] .nav-link.active {
  color: #075f88 !important;
}

/* ===== LIGHT THEME: LAB MARTIN TITLE VISIBILITY ===== */
html[data-theme="light"] .site-name {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #10233d !important;
  color: #10233d !important;
  text-shadow: none !important;
}

/* ===== PREMIUM PORTFOLIO PAGE ===== */
.portfolio-page { background: #070b12; color: #dce6f4; }
.portfolio-page::before { content:""; position:fixed; inset:0; pointer-events:none; background: radial-gradient(circle at 12% 18%, rgba(42,252,133,.08), transparent 28%), radial-gradient(circle at 88% 35%, rgba(63,140,255,.08), transparent 25%); z-index:-1; }
.portfolio-hero { min-height:100vh; max-width:1280px; margin:0 auto; padding:145px 40px 85px; display:grid; grid-template-columns:1.05fr .95fr; gap:80px; align-items:center; position:relative; }
.portfolio-hero-copy { max-width:720px; }
.portfolio-kicker { display:inline-flex; align-items:center; gap:10px; padding:8px 13px; border:1px solid rgba(42,252,133,.2); border-radius:999px; color:#2afc85; background:rgba(42,252,133,.05); letter-spacing:3px; font-size:.72rem; font-weight:800; }
.portfolio-hero h1 { font-size:clamp(4rem,8vw,7rem); line-height:.92; margin:22px 0 16px; letter-spacing:-3.5px; }
.portfolio-hero h1 .name-first { color:#f1f5fa; }
.portfolio-hero h1 .name-space { display:inline-block; width:.24em; }
.portfolio-hero h1 .name-last { color:#2afc85; }
.portfolio-hero h2 { font-size:clamp(1.25rem,2.5vw,2rem); color:#dfe7f2; margin-bottom:22px; font-weight:500; }
.portfolio-hero h2 strong { color:#2afc85; }
.portfolio-lead { max-width:650px; font-size:1.15rem; line-height:1.85; color:#9ca9bc; margin-bottom:26px; }
.portfolio-roles { display:flex; flex-wrap:wrap; gap:10px; margin:25px 0 30px; }
.portfolio-roles span { padding:10px 13px; border-radius:12px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.08); color:#cbd6e4; font-size:.86rem; }
.portfolio-roles i { color:#2afc85; margin-right:7px; }
.portfolio-actions { display:flex; flex-wrap:wrap; gap:15px; }
.portfolio-mini-contact { margin-top:28px; color:#69778c; font-size:.9rem; }
.portfolio-mini-contact i { color:#2afc85; }
.portfolio-portrait-wrap { position:relative; width:min(470px,90vw); aspect-ratio:1; justify-self:center; display:grid; place-items:center; }
.portrait-glow { position:absolute; width:75%; height:75%; border-radius:50%; background:rgba(42,252,133,.12); filter:blur(70px); }
.portrait-orbit { position:absolute; border:1px solid rgba(42,252,133,.22); border-radius:50%; }
.orbit-one { width:100%; height:62%; transform:rotate(-28deg); animation:orbitFloat 8s ease-in-out infinite; }
.orbit-two { width:72%; height:100%; transform:rotate(28deg); border-color:rgba(63,140,255,.22); animation:orbitFloat 10s ease-in-out infinite reverse; }
.portrait-card { width:78%; aspect-ratio: .82; border-radius:34px; padding:18px; position:relative; overflow:hidden; background:linear-gradient(145deg,rgba(20,28,41,.96),rgba(8,13,21,.96)); border:1px solid rgba(42,252,133,.24); box-shadow:0 30px 90px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.05); transform:rotate(2deg); }
.portrait-card::after { content:""; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(42,252,133,.09); right:-80px; bottom:-70px; }
.portrait-topline { display:flex; justify-content:space-between; color:#708096; font-size:.62rem; letter-spacing:2px; font-weight:800; position:relative; z-index:2; }
.portfolio-portrait { width:100%; height:calc(100% - 62px); object-fit:cover; object-position:center top; border-radius:24px; margin-top:14px; filter:saturate(.95) contrast(1.04); }
.portrait-caption { position:absolute; left:28px; right:28px; bottom:24px; display:flex; justify-content:space-between; align-items:end; z-index:3; text-shadow:0 2px 12px #000; }
.portrait-caption span { font-size:1.15rem; font-weight:800; color:#fff; }
.portrait-caption small { color:#c4d0df; font-size:.72rem; }
.portfolio-section { max-width:1200px; margin:0 auto; padding:100px 40px; }
.portfolio-section-head { display:flex; gap:20px; align-items:flex-start; margin-bottom:42px; }
.portfolio-section-head > span { color:#2afc85; font-weight:800; letter-spacing:2px; padding-top:8px; }
.portfolio-section-head h2 { color:#edf3fb; font-size:clamp(2rem,4vw,3.2rem); margin:5px 0 0; }
.portfolio-section-head .eyebrow { margin:0; }
.profile-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:24px; }
.profile-story { padding:38px; }
.profile-story h3 { color:#fff; font-size:1.7rem; margin-bottom:20px; }
.profile-story p { color:#a8b5c6; font-size:1rem; line-height:1.85; margin-bottom:18px; }
.profile-facts { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.fact-card { padding:24px; min-height:155px; }
.fact-card span { color:#2afc85; font-size:.67rem; letter-spacing:2px; font-weight:800; }
.fact-card strong { display:block; color:#f2f6fb; font-size:1.15rem; margin:11px 0 8px; }
.fact-card p { color:#7e8ca0; font-size:.85rem; line-height:1.5; margin:0; }
.expertise-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.expertise-card { padding:26px; min-height:310px; position:relative; overflow:hidden; }
.expertise-card .expertise-number { position:absolute; right:18px; top:18px; color:#344153; font-weight:800; font-size:1rem; }
.expertise-card > i { color:#2afc85; font-size:1.55rem; margin:12px 0 24px; }
.expertise-card h3 { color:#f1f5fa; font-size:1.15rem; margin-bottom:12px; }
.expertise-card p { color:#8f9daf; font-size:.9rem; line-height:1.65; margin-bottom:18px; }
.portfolio-projects { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.portfolio-project { padding:28px; display:grid; grid-template-columns:58px 1fr; gap:20px; align-items:start; }
.project-index { color:#2afc85; font-size:1.3rem; font-weight:800; }
.project-label { color:#6f7f94; font-size:.68rem; letter-spacing:2px; font-weight:800; }
.portfolio-project h3 { color:#f1f5fa; font-size:1.25rem; margin:8px 0 9px; }
.portfolio-project p { color:#909db0; font-size:.9rem; line-height:1.65; margin:0; }
.portfolio-cta { padding-top:40px; padding-bottom:120px; }
.cta-panel { text-align:center; padding:65px 30px; border-radius:32px; border:1px solid rgba(42,252,133,.16); background:radial-gradient(circle at 50% 0%,rgba(42,252,133,.12),transparent 45%),linear-gradient(145deg,rgba(20,28,41,.9),rgba(10,15,23,.9)); box-shadow:0 30px 80px rgba(0,0,0,.25); }
.cta-panel h2 { color:#f4f7fb; font-size:clamp(2rem,4vw,3.3rem); margin:8px 0 14px; }
.cta-panel > p:not(.eyebrow) { max-width:680px; margin:0 auto 28px; color:#98a6b8; line-height:1.7; }
.theme-toggle { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09); color:#d7e0eb; padding:9px 13px; border-radius:999px; cursor:pointer; display:flex; gap:7px; align-items:center; }
.theme-toggle i { color:#2afc85; }
@keyframes orbitFloat { 0%,100% { transform:rotate(-28deg) scale(1); } 50% { transform:rotate(-20deg) scale(1.035); } }
@media (max-width:1000px){ .portfolio-hero{grid-template-columns:1fr;gap:50px;text-align:center}.portfolio-hero-copy{margin:auto}.portfolio-roles,.portfolio-actions{justify-content:center}.portfolio-mini-contact{margin-bottom:0}.profile-grid{grid-template-columns:1fr}.expertise-grid{grid-template-columns:1fr 1fr}.portfolio-projects{grid-template-columns:1fr}.portfolio-portrait-wrap{order:-1} }
@media (max-width:768px){ .portfolio-hero{padding:125px 20px 70px}.portfolio-section{padding:75px 20px}.portfolio-hero h1{letter-spacing:-2px}.portfolio-section-head{gap:12px}.expertise-grid{grid-template-columns:1fr}.profile-facts{grid-template-columns:1fr 1fr}.portrait-card{width:82%} }
@media (max-width:520px){ .profile-facts{grid-template-columns:1fr}.portfolio-project{grid-template-columns:45px 1fr}.portrait-card{width:90%}.portfolio-hero h1{font-size:3.6rem} }

/* Business-first homepage: personal profile is intentionally reserved for portfolio.html */
.portfolio-home-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  min-height:280px;
}
.portfolio-home-icon{
  width:96px;
  height:96px;
  border-radius:28px;
  display:grid;
  place-items:center;
  font-size:2.4rem;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
}
.portfolio-home-card > span{
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Portfolio profile image: circular presentation */
.portfolio-profile-img,
.portfolio-hero .profile-img,
.portfolio-page .profile-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-inline: auto;
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}


/* Home hero real-world IT image — preserves the existing hero layout */
.profile-img.portfolio-home-card {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-img.portfolio-home-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}


/* Final visual refinement: full-width real-world IT background on the homepage */
.hero.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(5,11,18,.96) 0%, rgba(5,11,18,.86) 38%, rgba(5,11,18,.52) 68%, rgba(5,11,18,.30) 100%), url('home-hero-it.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2,7,12,.18), rgba(2,7,12,.38));
  pointer-events: none;
}
.hero.section .profile-container {
  display: none;
}
.hero.section .content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* Keep the light theme readable over the hero photograph */
html[data-theme="light"] .hero.section {
  background-image: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.91) 40%, rgba(255,255,255,.66) 72%, rgba(255,255,255,.42) 100%), url('home-hero-it.png');
}
html[data-theme="light"] .hero.section::before {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.18));
}

/* Portfolio portrait: tall oval presentation instead of a rectangular card */
.portfolio-portrait-wrap {
  width: min(430px, 88vw);
  aspect-ratio: .78;
}
.portfolio-portrait-wrap .portrait-card {
  width: 72%;
  height: 86%;
  aspect-ratio: auto;
  padding: 0;
  border-radius: 50% / 48%;
  overflow: hidden;
  transform: none;
  background: transparent;
  border: 3px solid rgba(42,252,133,.30);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 55px rgba(42,252,133,.10);
}
.portfolio-portrait-wrap .portrait-card::after,
.portfolio-portrait-wrap .portrait-topline,
.portfolio-portrait-wrap .portrait-caption {
  display: none;
}
.portfolio-portrait-wrap .portfolio-portrait,
.portfolio-portrait-wrap .portfolio-profile-img {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 50% / 48%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (max-width: 1000px) {
  .hero.section { background-position: 62% center; }
  .hero.section .content { max-width: 800px; }
}
@media (max-width: 600px) {
  .hero.section {
    background-position: 65% center;
    background-image: linear-gradient(90deg, rgba(5,11,18,.94), rgba(5,11,18,.72)), url('home-hero-it.png');
  }
  html[data-theme="light"] .hero.section {
    background-image: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.72)), url('home-hero-it.png');
  }
  .portfolio-portrait-wrap .portrait-card { width: 76%; height: 84%; }
}

/* ===== PORTFOLIO PHOTO: MATCHES THE ORIGINAL PORTFOLIO DESIGN ===== */
.portfolio-portrait-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  min-height:300px;
}
.portfolio-portrait-wrap .profile-container{
  position:relative;
  width:330px;
  height:330px;
  filter:drop-shadow(0 25px 45px rgba(0,0,0,.22));
}
.portfolio-portrait-wrap .profile-img{
  width:265px;
  height:265px;
  object-fit:cover;
  border-radius:50%;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:10;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  border:4px solid #0c0f17;
  transition:all .5s ease;
}
.portfolio-portrait-wrap .profile-img:hover{
  transform:translate(-50%,-50%) scale(1.05);
}
@media (max-width:1000px){
  .portfolio-portrait-wrap .profile-container{width:285px;height:285px}
  .portfolio-portrait-wrap .profile-img{width:230px;height:230px}
}
@media (max-width:520px){
  .portfolio-portrait-wrap .profile-container{width:225px;height:225px}
  .portfolio-portrait-wrap .profile-img{width:180px;height:180px}
}

/* ===== HOME HERO: LARGE RIGHT-SIDE IMAGE ===== */
@media (min-width: 769px) {
  .hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, .88fr) !important;
    align-items: center !important;
    gap: 45px !important;
    max-width: 1280px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .hero .content {
    min-width: 0 !important;
    max-width: 720px !important;
    text-align: left !important;
  }

  .hero .content h1,
  .hero .content h2,
  .hero .content .eyebrow {
    text-align: left !important;
  }

  .hero .cta-buttons {
    justify-content: flex-start !important;
  }

  .hero .profile-container {
    width: 100% !important;
    max-width: 540px !important;
    height: auto !important;
    min-height: 390px !important;
    margin: 0 0 0 auto !important;
    transform: none !important;
    filter: drop-shadow(0 25px 45px rgba(0,0,0,.22));
  }

  .hero .profile-img.portfolio-home-card {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 836 / 530 !important;
    object-fit: cover !important;
    border-radius: 28px !important;
    border: 1px solid rgba(56,189,248,.25) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,.35) !important;
    transform: none !important;
    z-index: 10 !important;
  }

  .hero .profile-img.portfolio-home-card:hover {
    transform: scale(1.02) !important;
  }

  /* The circular profile rings belong to the old portrait layout. */
  .hero .profile-container .border-outer,
  .hero .profile-container .border-middle,
  .hero .profile-container .border-inner,
  .hero .profile-container .border-container,
  .hero .profile-container .pulse-ring {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr) !important;
    gap: 28px !important;
    padding-top: 105px !important;
  }

  .hero .profile-container {
    min-height: 280px !important;
    max-width: 390px !important;
  }
}

@media (max-width: 768px) {
  .hero .profile-img.portfolio-home-card {
    width: min(92vw, 520px) !important;
    height: auto !important;
    aspect-ratio: 836 / 530 !important;
    border-radius: 22px !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }

  .hero .profile-container {
    width: min(92vw, 520px) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero .profile-container .border-outer,
  .hero .profile-container .border-middle,
  .hero .profile-container .border-inner,
  .hero .profile-container .border-container,
  .hero .profile-container .pulse-ring {
    display: none !important;
  }
}


/* ===== HOME HERO: CLEAN TWO-COLUMN LAYOUT ===== */
.hero.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: none !important;
  background: transparent !important;
}

.hero.section::before {
  display: none !important;
}

@media (min-width: 769px) {
  .hero.section {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr) !important;
    align-items: center !important;
    gap: 55px !important;
    max-width: 1280px !important;
    padding: 120px 32px 60px !important;
    min-height: 100vh !important;
  }

  .hero.section .content {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 680px !important;
    text-align: left !important;
  }

  .hero.section .eyebrow,
  .hero.section .site-name,
  .hero.section .hero-positioning,
  .hero.section .hero-title {
    text-align: left !important;
  }

  .hero.section .hero-title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 25px !important;
  }

  .hero.section .typing-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .hero.section .profile-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 560px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 0 auto !important;
    transform: none !important;
    filter: drop-shadow(0 25px 45px rgba(0,0,0,.22));
  }

  .hero.section .profile-img.portfolio-home-card {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 836 / 530 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 26px !important;
    border: 1px solid rgba(56,189,248,.25) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,.35) !important;
    transform: none !important;
  }

  .hero.section .profile-img.portfolio-home-card:hover {
    transform: scale(1.02) !important;
  }

  .hero.section .profile-container .border-outer,
  .hero.section .profile-container .border-middle,
  .hero.section .profile-container .border-inner,
  .hero.section .profile-container .border-container,
  .hero.section .profile-container .pulse-ring {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .hero.section {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr) !important;
    gap: 32px !important;
    padding-top: 105px !important;
  }

  .hero.section .profile-container {
    max-width: 430px !important;
  }
}

@media (max-width: 768px) {
  .hero.section {
    background: transparent !important;
  }

  .hero.section .profile-container {
    width: min(92vw, 520px) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero.section .profile-img.portfolio-home-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 836 / 530 !important;
    border-radius: 22px !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }

  .hero.section .profile-container .border-outer,
  .hero.section .profile-container .border-middle,
  .hero.section .profile-container .border-inner,
  .hero.section .profile-container .border-container,
  .hero.section .profile-container .pulse-ring {
    display: none !important;
  }

  .hero.section .hero-title,
  .hero.section .typing-text {
    text-align: center !important;
  }
}


/* ===== HOME HERO: CENTER THE LEFT CONTENT ===== */
@media (min-width: 769px) {
  .hero.section .content {
    text-align: center !important;
    margin-inline: auto !important;
  }
  .hero.section .eyebrow,
  .hero.section .site-name,
  .hero.section .hero-positioning,
  .hero.section .hero-title,
  .hero.section .typing-text,
  .hero.section .content > p {
    text-align: center !important;
  }
  .hero.section .typing-text {
    margin-inline: auto !important;
  }
  .hero.section .cta-buttons,
  .hero.section .social-icons {
    justify-content: center !important;
  }
  .hero.section .hero-service-badge {
    margin-inline: auto !important;
  }
}

@media (max-width: 768px) {
  .hero.section .content,
  .hero.section .eyebrow,
  .hero.section .site-name,
  .hero.section .hero-positioning,
  .hero.section .hero-title,
  .hero.section .typing-text,
  .hero.section .content > p {
    text-align: center !important;
  }
  .hero.section .cta-buttons,
  .hero.section .social-icons {
    justify-content: center !important;
  }
}

/* ===== HOME HERO IMAGE: MODERATE VERTICAL SPACE (IMAGE SIDE ONLY) ===== */
@media (min-width: 769px) {
  .hero.section .profile-container {
    align-self: center !important;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .hero.section .profile-img.portfolio-home-card {
    aspect-ratio: 1.42 / 1 !important;
  }
}

/* ===== MOBILE HOME HERO: BLURRED IT WORKSPACE BACKGROUND ===== */
@media (max-width: 768px) {
  .hero.section {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  /* Bring the IT workspace back as a soft background on mobile only. */
  .hero.section::after {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -2;
    background-image: url('home-hero-it.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(9px);
    transform: scale(1.04);
    opacity: .62;
    pointer-events: none;
  }

  /* Keep the text readable without hiding the background completely. */
  .hero.section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      180deg,
      rgba(4,12,22,.78) 0%,
      rgba(4,12,22,.66) 48%,
      rgba(4,12,22,.80) 100%
    ) !important;
    pointer-events: none;
  }

  /* The desktop image card is replaced by the blurred background on phones. */
  .hero.section .profile-container {
    display: none !important;
  }
}

/* ===== MOBILE HERO: SHOW THE FULL IT WORKSPACE VIBE ===== */
@media (max-width: 768px) {
  .hero.section {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  /* Use the complete workspace image as a soft blurred backdrop instead of
     cropping tightly onto the mug/cup. */
  .hero.section::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: -18px !important;
    z-index: -2 !important;
    background-image: url('home-hero-it.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    filter: blur(7px) !important;
    transform: scale(1.04) !important;
  }

  .hero.section::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    background: linear-gradient(180deg, rgba(5,11,18,.78) 0%, rgba(5,11,18,.68) 45%, rgba(5,11,18,.82) 100%) !important;
    pointer-events: none !important;
  }

  html[data-theme="light"] .hero.section::after {
    background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.68) 45%, rgba(255,255,255,.82) 100%) !important;
  }

  .hero.section .content,
  .hero.section .profile-container {
    position: relative !important;
    z-index: 2 !important;
  }
}

/* ===== MOBILE LIGHT THEME: KEEP HOME HERO VISIBLE ===== */
@media (max-width: 768px) {
  html[data-theme="light"] .hero.section {
    color: #10233d !important;
  }

  html[data-theme="light"] .hero.section::after {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.52) 0%,
      rgba(255,255,255,.40) 48%,
      rgba(255,255,255,.58) 100%
    ) !important;
  }

  /* Clean, high-contrast mobile light theme: no text glow/shadow. */
  html[data-theme="light"] .hero.section .content {
    background: rgba(255,255,255,.92) !important;
    border-radius: 22px !important;
    padding: 24px 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
  }

  html[data-theme="light"] .hero.section .eyebrow,
  html[data-theme="light"] .hero.section .hero-positioning,
  html[data-theme="light"] .hero.section .hero-title,
  html[data-theme="light"] .hero.section .senior-title,
  html[data-theme="light"] .hero.section .content > p {
    color: #10233d !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] .hero.section .typing-text {
    color: #006fa8 !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] .hero.section .hero-service-badge {
    color: #29445d !important;
    background: rgba(255,255,255,.72) !important;
    border-color: rgba(8,125,179,.24) !important;
    box-shadow: 0 8px 24px rgba(30,65,95,.12);
  }

  html[data-theme="light"] .hero.section .site-name {
    color: #081a30 !important;
    -webkit-text-fill-color: #081a30 !important;
    text-shadow: none !important;
  }
}

/* ===== MOBILE LIGHT THEME: NO CONTENT BOX, CLEAR TEXT ===== */
@media (max-width: 768px) {
  html[data-theme="light"] .hero.section::after {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.72) 0%,
      rgba(255,255,255,.64) 50%,
      rgba(255,255,255,.74) 100%
    ) !important;
  }

  html[data-theme="light"] .hero.section .content {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 24px 18px !important;
  }

  html[data-theme="light"] .hero.section .eyebrow,
  html[data-theme="light"] .hero.section .hero-positioning,
  html[data-theme="light"] .hero.section .hero-title,
  html[data-theme="light"] .hero.section .senior-title,
  html[data-theme="light"] .hero.section .content > p {
    color: #081a30 !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] .hero.section .typing-text {
    color: #005f91 !important;
    text-shadow: none !important;
  }

  html[data-theme="light"] .hero.section .site-name {
    color: #061526 !important;
    -webkit-text-fill-color: #061526 !important;
    text-shadow: none !important;
  }
}


/* ===== PORTFOLIO MOBILE SPACING + LIGHT THEME CLARITY ===== */
@media (max-width: 768px) {
  .portfolio-hero {
    gap: 14px !important;
    padding-top: 105px !important;
    padding-bottom: 48px !important;
  }
  .portfolio-portrait-wrap {
    width: min(330px, 88vw) !important;
    margin-bottom: -2px !important;
  }
  .portfolio-hero-copy {
    margin-top: 0 !important;
  }
  .portfolio-hero h1 {
    margin-top: 8px !important;
    margin-bottom: 10px !important;
  }

  /* Portfolio light theme: solid, high-contrast text without glow effects. */
  html[data-theme="light"] .portfolio-page {
    background: #f5f9fd !important;
    color: #17263a !important;
  }
  html[data-theme="light"] .portfolio-page::before {
    opacity: .45;
  }
  html[data-theme="light"] .portfolio-page .portfolio-hero h1 {
    color: #10233d !important;
  }
  html[data-theme="light"] .portfolio-page .portfolio-hero h1 .name-first { color:#10233d !important; }
  html[data-theme="light"] .portfolio-page .portfolio-hero h1 .name-space { width:.24em !important; }
  html[data-theme="light"] .portfolio-page .portfolio-hero h1 .name-last { color:#087db3 !important; }
  html[data-theme="light"] .portfolio-page .portfolio-hero h2 {
    color: #24364d !important;
  }
  html[data-theme="light"] .portfolio-page .portfolio-hero h2 strong {
    color: #087db3 !important;
  }
  html[data-theme="light"] .portfolio-page .portfolio-lead {
    color: #334b65 !important;
  }
  html[data-theme="light"] .portfolio-page .portfolio-roles span {
    color: #19324d !important;
    background: rgba(255,255,255,.82) !important;
    border-color: rgba(8,125,179,.22) !important;
  }
  html[data-theme="light"] .portfolio-page .portfolio-roles i,
  html[data-theme="light"] .portfolio-page .portfolio-mini-contact i,
  html[data-theme="light"] .portfolio-page .portfolio-section-head > span {
    color: #087db3 !important;
  }
  html[data-theme="light"] .portfolio-page .portfolio-mini-contact {
    color: #52677d !important;
  }
  html[data-theme="light"] .portfolio-page .portfolio-section-head h2 {
    color: #10233d !important;
  }
  html[data-theme="light"] .portfolio-page .eyebrow {
    color: #087db3 !important;
  }
  html[data-theme="light"] .portfolio-page .glass-card {
    background: rgba(255,255,255,.86) !important;
    border-color: rgba(8,125,179,.16) !important;
    box-shadow: 0 16px 38px rgba(30,65,95,.10) !important;
  }
  html[data-theme="light"] .portfolio-page .profile-story h3,
  html[data-theme="light"] .portfolio-page .expertise-card h3,
  html[data-theme="light"] .portfolio-page .portfolio-project h3,
  html[data-theme="light"] .portfolio-page .fact-card strong,
  html[data-theme="light"] .portfolio-page .cta-panel h2 {
    color: #10233d !important;
  }
  html[data-theme="light"] .portfolio-page .profile-story p,
  html[data-theme="light"] .portfolio-page .expertise-card p,
  html[data-theme="light"] .portfolio-page .portfolio-project p,
  html[data-theme="light"] .portfolio-page .fact-card p,
  html[data-theme="light"] .portfolio-page .cta-panel > p:not(.eyebrow) {
    color: #40566d !important;
  }
  html[data-theme="light"] .portfolio-page .project-label,
  html[data-theme="light"] .portfolio-page .fact-card span,
  html[data-theme="light"] .portfolio-page .expertise-card .expertise-number {
    color: #557089 !important;
  }
  html[data-theme="light"] .portfolio-page .project-index,
  html[data-theme="light"] .portfolio-page .expertise-card > i {
    color: #087db3 !important;
  }
  html[data-theme="light"] .portfolio-page .cta-panel {
    background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(235,245,252,.94)) !important;
    border-color: rgba(8,125,179,.18) !important;
    box-shadow: 0 20px 55px rgba(30,65,95,.12) !important;
  }
  html[data-theme="light"] .portfolio-page .theme-toggle {
    background: rgba(255,255,255,.9) !important;
    color: #203047 !important;
    border-color: rgba(8,125,179,.22) !important;
  }
  html[data-theme="light"] .portfolio-page .theme-toggle i {
    color: #087db3 !important;
  }
}


/* ===== PORTFOLIO LIGHT THEME: HIGH-CONTRAST READABILITY ===== */
html[data-theme="light"] .portfolio-page {
  background: #f5f9fd !important;
  color: #203047 !important;
}
html[data-theme="light"] .portfolio-page::before {
  background: radial-gradient(circle at 12% 18%, rgba(8,125,179,.08), transparent 28%),
              radial-gradient(circle at 88% 35%, rgba(104,68,199,.07), transparent 25%);
}
html[data-theme="light"] .portfolio-hero h1,
html[data-theme="light"] .portfolio-section-head h2,
html[data-theme="light"] .portfolio-hero h2,
html[data-theme="light"] .portfolio-hero h2 strong,
html[data-theme="light"] .profile-story h3,
html[data-theme="light"] .fact-card strong,
html[data-theme="light"] .expertise-card h3,
html[data-theme="light"] .portfolio-project h3,
html[data-theme="light"] .cta-panel h2 {
  color: #10233d !important;
}
html[data-theme="light"] .portfolio-hero h1 span,
html[data-theme="light"] .portfolio-section-head > span,
html[data-theme="light"] .portfolio-section-head .eyebrow,
html[data-theme="light"] .fact-card span,
html[data-theme="light"] .expertise-card > i,
html[data-theme="light"] .project-index,
html[data-theme="light"] .cta-panel .eyebrow,
html[data-theme="light"] .portfolio-roles i,
html[data-theme="light"] .portfolio-mini-contact i {
  color: #087db3 !important;
}
html[data-theme="light"] .portfolio-lead,
html[data-theme="light"] .profile-story p,
html[data-theme="light"] .fact-card p,
html[data-theme="light"] .expertise-card p,
html[data-theme="light"] .portfolio-project p,
html[data-theme="light"] .cta-panel > p:not(.eyebrow) {
  color: #40566d !important;
}
html[data-theme="light"] .portfolio-roles span {
  color: #18344b !important;
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(8,125,179,.20) !important;
}
html[data-theme="light"] .portfolio-mini-contact {
  color: #52677b !important;
}
html[data-theme="light"] .portfolio-page .glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,247,253,.94)) !important;
  border-color: rgba(8,125,179,.18) !important;
  box-shadow: 0 18px 45px rgba(30,65,95,.12) !important;
}
html[data-theme="light"] .portfolio-page .project-label,
html[data-theme="light"] .portfolio-page .expertise-number {
  color: #52677b !important;
}
html[data-theme="light"] .portfolio-page .cta-panel {
  background: radial-gradient(circle at 50% 0%, rgba(8,125,179,.10), transparent 45%),
              linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,247,253,.94)) !important;
  border-color: rgba(8,125,179,.18) !important;
  box-shadow: 0 25px 65px rgba(30,65,95,.12) !important;
}
html[data-theme="light"] .portfolio-page footer {
  color: #52677b !important;
  border-top-color: rgba(8,125,179,.16) !important;
}
html[data-theme="light"] .portfolio-page footer strong {
  color: #203047 !important;
}
html[data-theme="light"] .portfolio-page .theme-toggle {
  color: #075f88 !important;
  background: rgba(8,125,179,.07) !important;
  border-color: rgba(8,125,179,.20) !important;
}
html[data-theme="light"] .portfolio-page .profile-img {
  border-color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(30,65,95,.25) !important;
}

/* ===== PORTFOLIO HERO COPY CENTERING ===== */
.portfolio-hero-copy {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.portfolio-hero-copy .portfolio-lead {
  margin-left: auto;
  margin-right: auto;
}
.portfolio-hero-copy .portfolio-roles,
.portfolio-hero-copy .portfolio-actions {
  justify-content: center;
}
.portfolio-hero-copy .portfolio-mini-contact {
  text-align: center;
}

/* ===== SAFE MODERN PORTFOLIO MOTION SYSTEM ===== */
/* Content remains visible by default. Motion is an enhancement, never a
   requirement for the page to render. This prevents blank/hidden sections
   if JavaScript or IntersectionObserver is unavailable. */
.portfolio-page .portfolio-hero-copy > *,
.portfolio-page .portfolio-portrait-wrap,
.portfolio-page .portfolio-section-head,
.portfolio-page .profile-grid > *,
.portfolio-page .expertise-card,
.portfolio-page .portfolio-project,
.portfolio-page .portfolio-cta .cta-panel {
  will-change: transform, opacity;
}

.portfolio-page .motion-in {
  animation: portfolioReveal .72s cubic-bezier(.16,1,.3,1) both;
  animation-delay: var(--motion-delay, 0ms);
}

.portfolio-page .portfolio-portrait-wrap.motion-in {
  animation-name: portfolioPortraitReveal;
}

@keyframes portfolioReveal {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes portfolioPortraitReveal {
  from { opacity: 0; transform: translate3d(28px, 12px, 0) scale(.96); }
  70% { opacity: 1; transform: translate3d(-3px, 0, 0) scale(1.01); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.portfolio-page .portfolio-section-head::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(42,252,133,.8), rgba(42,252,133,0));
  margin-top: 18px;
  transition: width .8s cubic-bezier(.16,1,.3,1);
}
.portfolio-page .portfolio-section-head.motion-in::after { width: min(180px, 22vw); }

.portfolio-page .expertise-card,
.portfolio-page .portfolio-project,
.portfolio-page .fact-card,
.portfolio-page .profile-story {
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease, box-shadow .4s ease;
}

.portfolio-page .expertise-card:hover,
.portfolio-page .portfolio-project:hover,
.portfolio-page .fact-card:hover,
.portfolio-page .profile-story:hover {
  transform: translate3d(0,-7px,0);
  border-color: rgba(42,252,133,.28);
  box-shadow: 0 22px 50px rgba(0,0,0,.22);
}

.portfolio-page .skill-list span {
  display: inline-block;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.portfolio-page .skill-list span:hover {
  transform: translateY(-3px);
  background: rgba(42,252,133,.09);
  border-color: rgba(42,252,133,.3);
}

.portfolio-page .portfolio-actions .btn {
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.portfolio-page .portfolio-actions .btn:hover { transform: translateY(-4px); }
.portfolio-page .portfolio-actions .btn:active { transform: translateY(-1px) scale(.985); }

.portfolio-page .portfolio-portrait-wrap .profile-container {
  transition: transform .45s cubic-bezier(.16,1,.3,1), filter .45s ease;
}
.portfolio-page .portfolio-portrait-wrap:hover .profile-container {
  transform: translateY(-5px) scale(1.015);
}

@media (max-width: 768px) {
  .portfolio-page .motion-in { animation-duration: .6s; }
  .portfolio-page .portfolio-section-head.motion-in::after { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-page .motion-in { animation: none !important; }
  .portfolio-page .portfolio-section-head::after { width: 110px !important; transition: none !important; }
  .portfolio-page .expertise-card,
  .portfolio-page .portfolio-project,
  .portfolio-page .fact-card,
  .portfolio-page .profile-story,
  .portfolio-page .portfolio-actions .btn,
  .portfolio-page .portfolio-portrait-wrap .profile-container {
    transition: none !important;
  }
}


/* ===== PORTFOLIO LIGHT THEME VISIBILITY ===== */
html[data-theme="light"] .portfolio-page {
  background: #f5f9fd;
  color: #203047;
}
html[data-theme="light"] .portfolio-page::before {
  background: radial-gradient(circle at 12% 18%, rgba(8,125,179,.07), transparent 28%), radial-gradient(circle at 88% 35%, rgba(104,68,199,.06), transparent 25%);
}
html[data-theme="light"] .portfolio-page .portfolio-hero h1 {
  color: #10233d !important;
  -webkit-text-fill-color: #10233d !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .portfolio-page .portfolio-hero h1 span {
  color: #087db3 !important;
  -webkit-text-fill-color: #087db3 !important;
  opacity: 1 !important;
}
html[data-theme="light"] .portfolio-hero h2 {
  color: #203047;
}
html[data-theme="light"] .portfolio-lead {
  color: #4b6176;
}
html[data-theme="light"] .portfolio-roles span {
  color: #29445d;
  background: rgba(8,125,179,.06);
  border-color: rgba(8,125,179,.18);
}
html[data-theme="light"] .portfolio-mini-contact {
  color: #52677b;
}
html[data-theme="light"] .portfolio-section-head h2 {
  color: #10233d;
}
html[data-theme="light"] .profile-story h3,
html[data-theme="light"] .expertise-card h3,
html[data-theme="light"] .portfolio-project h3 {
  color: #10233d;
}
html[data-theme="light"] .profile-story p,
html[data-theme="light"] .expertise-card p,
html[data-theme="light"] .portfolio-project p,
html[data-theme="light"] .fact-card p {
  color: #4b6176;
}
html[data-theme="light"] .fact-card strong {
  color: #10233d;
}
html[data-theme="light"] .expertise-card .expertise-number {
  color: #718196;
}
html[data-theme="light"] .project-label {
  color: #52677b;
}
html[data-theme="light"] .cta-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,243,250,.96));
  border-color: rgba(8,125,179,.18);
  box-shadow: 0 25px 70px rgba(30,65,95,.12);
}
html[data-theme="light"] .cta-panel h2 {
  color: #10233d;
}
html[data-theme="light"] .cta-panel > p:not(.eyebrow) {
  color: #4b6176;
}
html[data-theme="light"] .portfolio-page .theme-toggle {
  color: #075f88;
  background: rgba(8,125,179,.07);
  border-color: rgba(8,125,179,.18);
}
html[data-theme="light"] .portfolio-page footer {
  background: rgba(255,255,255,.72);
  color: #52677b;
  border-top-color: rgba(8,125,179,.15);
}
html[data-theme="light"] .portfolio-page footer strong {
  color: #10233d;
}


/* ===== ENHANCED PORTFOLIO MOTION — CSS ONLY, SAFE BY DEFAULT ===== */
/* These effects never hide content and do not depend on JavaScript. */
.portfolio-page .portfolio-hero-copy > * {
  animation: portfolioHeroItem .8s cubic-bezier(.16,1,.3,1) both;
}
.portfolio-page .portfolio-hero-copy > *:nth-child(1){animation-delay:.05s}
.portfolio-page .portfolio-hero-copy > *:nth-child(2){animation-delay:.14s}
.portfolio-page .portfolio-hero-copy > *:nth-child(3){animation-delay:.23s}
.portfolio-page .portfolio-hero-copy > *:nth-child(4){animation-delay:.32s}
.portfolio-page .portfolio-hero-copy > *:nth-child(5){animation-delay:.41s}
.portfolio-page .portfolio-hero-copy > *:nth-child(6){animation-delay:.50s}

@keyframes portfolioHeroItem {
  from { opacity:0; transform:translate3d(0,18px,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}

.portfolio-page .portfolio-hero-copy h1 span {
  display:inline-block;
  animation: titleAccent 1.1s .35s cubic-bezier(.16,1,.3,1) both;
}
@keyframes titleAccent {
  from { opacity:0; transform:translate3d(12px,0,0); }
  to { opacity:1; transform:none; }
}

.portfolio-page .portfolio-roles span {
  transition:transform .35s cubic-bezier(.16,1,.3,1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.portfolio-page .portfolio-roles span:hover {
  transform:translateY(-5px) scale(1.025);
  box-shadow:0 12px 28px rgba(42,252,133,.10);
}
.portfolio-page .portfolio-roles span i {
  transition:transform .35s ease;
}
.portfolio-page .portfolio-roles span:hover i {
  transform:rotate(-8deg) scale(1.15);
}

.portfolio-page .portfolio-section-head {
  transition:transform .5s cubic-bezier(.16,1,.3,1);
}
.portfolio-page .portfolio-section-head:hover {
  transform:translateX(4px);
}
.portfolio-page .portfolio-section-head > span {
  transition:transform .45s cubic-bezier(.16,1,.3,1), color .3s ease;
}
.portfolio-page .portfolio-section-head:hover > span {
  transform:translateX(6px);
}

.portfolio-page .profile-story,
.portfolio-page .fact-card,
.portfolio-page .expertise-card,
.portfolio-page .portfolio-project {
  position:relative;
  overflow:hidden;
}
.portfolio-page .profile-story::after,
.portfolio-page .fact-card::after,
.portfolio-page .expertise-card::after,
.portfolio-page .portfolio-project::after {
  content:"";
  position:absolute;
  top:0;
  left:-130%;
  width:55%;
  height:100%;
  background:linear-gradient(105deg, transparent, rgba(255,255,255,.075), transparent);
  transform:skewX(-18deg);
  transition:left .75s cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
.portfolio-page .profile-story:hover::after,
.portfolio-page .fact-card:hover::after,
.portfolio-page .expertise-card:hover::after,
.portfolio-page .portfolio-project:hover::after {
  left:145%;
}

.portfolio-page .fact-card:nth-child(1),
.portfolio-page .fact-card:nth-child(2),
.portfolio-page .fact-card:nth-child(3),
.portfolio-page .fact-card:nth-child(4),
.portfolio-page .expertise-card:nth-child(1),
.portfolio-page .expertise-card:nth-child(2),
.portfolio-page .expertise-card:nth-child(3),
.portfolio-page .expertise-card:nth-child(4),
.portfolio-page .portfolio-project:nth-child(1),
.portfolio-page .portfolio-project:nth-child(2),
.portfolio-page .portfolio-project:nth-child(3),
.portfolio-page .portfolio-project:nth-child(4) {
  animation: cardFloatIn .75s cubic-bezier(.16,1,.3,1) both;
}
.portfolio-page .fact-card:nth-child(1), .portfolio-page .expertise-card:nth-child(1), .portfolio-page .portfolio-project:nth-child(1){animation-delay:.08s}
.portfolio-page .fact-card:nth-child(2), .portfolio-page .expertise-card:nth-child(2), .portfolio-page .portfolio-project:nth-child(2){animation-delay:.16s}
.portfolio-page .fact-card:nth-child(3), .portfolio-page .expertise-card:nth-child(3), .portfolio-page .portfolio-project:nth-child(3){animation-delay:.24s}
.portfolio-page .fact-card:nth-child(4), .portfolio-page .expertise-card:nth-child(4), .portfolio-page .portfolio-project:nth-child(4){animation-delay:.32s}
@keyframes cardFloatIn {
  from { opacity:0; transform:translate3d(0,22px,0) scale(.985); }
  to { opacity:1; transform:none; }
}

.portfolio-page .expertise-card > i {
  transition:transform .45s cubic-bezier(.16,1,.3,1), filter .45s ease;
}
.portfolio-page .expertise-card:hover > i {
  transform:translateY(-4px) rotate(-6deg) scale(1.12);
  filter:drop-shadow(0 6px 12px rgba(42,252,133,.20));
}
.portfolio-page .expertise-number,
.portfolio-page .project-index {
  transition:transform .4s cubic-bezier(.16,1,.3,1), color .3s ease;
}
.portfolio-page .expertise-card:hover .expertise-number,
.portfolio-page .portfolio-project:hover .project-index {
  transform:translateX(5px);
}

.portfolio-page .portfolio-project > div:last-child {
  transition:transform .4s cubic-bezier(.16,1,.3,1);
}
.portfolio-page .portfolio-project:hover > div:last-child {
  transform:translateX(5px);
}
.portfolio-page .project-label {
  transition:letter-spacing .35s ease;
}
.portfolio-page .portfolio-project:hover .project-label {
  letter-spacing:.14em;
}

.portfolio-page .portfolio-mini-contact i {
  transition:transform .3s ease;
}
.portfolio-page .portfolio-mini-contact:hover i {
  transform:translateY(-2px) scale(1.1);
}

.portfolio-page .cta-panel {
  position:relative;
  overflow:hidden;
}
.portfolio-page .cta-panel::before {
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border:1px solid rgba(42,252,133,.10);
  border-radius:50%;
  right:-80px;
  top:-110px;
  animation:ctaOrbit 8s ease-in-out infinite;
  pointer-events:none;
}
.portfolio-page .cta-panel::after {
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border:1px solid rgba(42,252,133,.08);
  border-radius:50%;
  right:20px;
  bottom:-70px;
  animation:ctaOrbit 6s ease-in-out infinite reverse;
  pointer-events:none;
}
@keyframes ctaOrbit {
  0%,100% { transform:translate3d(0,0,0) rotate(0deg); }
  50% { transform:translate3d(-10px,8px,0) rotate(10deg); }
}

.portfolio-page .portfolio-portrait-wrap .pulse-ring {
  animation-duration:3.8s;
}
.portfolio-page .portfolio-portrait-wrap:hover .pulse-ring {
  animation-duration:2.2s;
}

@media (max-width:768px){
  .portfolio-page .portfolio-section-head:hover { transform:none; }
  .portfolio-page .cta-panel::before { right:-120px; }
  .portfolio-page .cta-panel::after { right:-10px; }
}

@media (prefers-reduced-motion: reduce){
  .portfolio-page .portfolio-hero-copy > *,
  .portfolio-page .portfolio-hero-copy h1 span,
  .portfolio-page .fact-card,
  .portfolio-page .expertise-card,
  .portfolio-page .portfolio-project,
  .portfolio-page .cta-panel::before,
  .portfolio-page .cta-panel::after {
    animation:none !important;
  }
}

/* ===== SUBTLE PORTFOLIO POLISH ===== */
/* Small, safe interactions only — no content is hidden and no JS is required. */
.portfolio-page .portfolio-hero-copy h1 {
  transition: transform .45s cubic-bezier(.16,1,.3,1), letter-spacing .45s ease;
}
.portfolio-page .portfolio-hero-copy h1:hover {
  transform: translateY(-2px);
  letter-spacing: .01em;
}
.portfolio-page .portfolio-hero-copy h1 span {
  transition: transform .4s cubic-bezier(.16,1,.3,1), color .35s ease;
}
.portfolio-page .portfolio-hero-copy h1:hover span {
  transform: translateX(3px);
}
.portfolio-page .portfolio-lead {
  transition: transform .45s ease, opacity .35s ease;
}
.portfolio-page .portfolio-hero-copy:hover .portfolio-lead {
  transform: translateY(-1px);
}
.portfolio-page .portfolio-section {
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.portfolio-page .portfolio-section:hover {
  transform: translateY(-1px);
}
.portfolio-page .portfolio-section-head h2 {
  transition: letter-spacing .4s ease, transform .4s cubic-bezier(.16,1,.3,1);
}
.portfolio-page .portfolio-section-head:hover h2 {
  transform: translateX(3px);
  letter-spacing: .01em;
}

@media (max-width:768px){
  .portfolio-page .portfolio-section:hover { transform:none; }
}

@media (prefers-reduced-motion: reduce){
  .portfolio-page .portfolio-hero-copy h1,
  .portfolio-page .portfolio-hero-copy h1 span,
  .portfolio-page .portfolio-lead,
  .portfolio-page .portfolio-section,
  .portfolio-page .portfolio-section-head h2 { transition:none !important; }
}

/* ===== STABLE PORTFOLIO MOTION ===== */
.portfolio-page .portfolio-hero-copy > *,
.portfolio-page .portfolio-portrait-wrap,
.portfolio-page .portfolio-section-head,
.portfolio-page .profile-grid > *,
.portfolio-page .expertise-card,
.portfolio-page .portfolio-project,
.portfolio-page .portfolio-cta .cta-panel {
  animation: portfolioSoftIn .7s cubic-bezier(.16,1,.3,1) both;
}
.portfolio-page .portfolio-hero-copy > *:nth-child(1){animation-delay:.05s}.portfolio-page .portfolio-hero-copy > *:nth-child(2){animation-delay:.12s}.portfolio-page .portfolio-hero-copy > *:nth-child(3){animation-delay:.19s}.portfolio-page .portfolio-hero-copy > *:nth-child(4){animation-delay:.26s}.portfolio-page .portfolio-hero-copy > *:nth-child(5){animation-delay:.33s}.portfolio-page .portfolio-hero-copy > *:nth-child(6){animation-delay:.40s}
.portfolio-page .portfolio-portrait-wrap{animation-name:portfolioPortraitIn;animation-delay:.18s}
.portfolio-page .profile-grid > *:nth-child(2){animation-delay:.12s}
.portfolio-page .expertise-card:nth-child(2),.portfolio-page .portfolio-project:nth-child(2){animation-delay:.10s}
.portfolio-page .expertise-card:nth-child(3),.portfolio-page .portfolio-project:nth-child(3){animation-delay:.18s}
.portfolio-page .expertise-card:nth-child(4),.portfolio-page .portfolio-project:nth-child(4){animation-delay:.26s}
@keyframes portfolioSoftIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes portfolioPortraitIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
.portfolio-page .portfolio-section-head::after{transition:width .7s cubic-bezier(.16,1,.3,1)}
.portfolio-page .expertise-card,.portfolio-page .portfolio-project,.portfolio-page .fact-card,.portfolio-page .profile-story{transition:transform .35s cubic-bezier(.16,1,.3,1),border-color .35s ease,box-shadow .35s ease}
.portfolio-page .expertise-card:hover,.portfolio-page .portfolio-project:hover,.portfolio-page .fact-card:hover,.portfolio-page .profile-story:hover{transform:translateY(-6px);border-color:rgba(42,252,133,.28);box-shadow:0 20px 44px rgba(0,0,0,.20)}
.portfolio-page .portfolio-portrait-wrap .profile-container{transition:transform .4s cubic-bezier(.16,1,.3,1)}
.portfolio-page .portfolio-portrait-wrap:hover .profile-container{transform:translateY(-4px) scale(1.01)}
@media(prefers-reduced-motion:reduce){.portfolio-page *{animation:none!important;transition:none!important}}


/* ===== FINAL PORTFOLIO NAME + STABILITY FIX ===== */
/* Definitive portfolio name treatment: separated in both themes. */
.portfolio-page .portfolio-hero h1.portfolio-name {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  letter-spacing: -3px !important;
  gap: 0 !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name .name-space {
  display: none !important;
  width: 0 !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name .name-first {
  color: #f1f5fa !important;
  -webkit-text-fill-color: #f1f5fa !important;
  margin-right: .22em !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name .name-last {
  color: #2afc85 !important;
  -webkit-text-fill-color: #2afc85 !important;
}
html[data-theme="light"] .portfolio-page .portfolio-hero h1.portfolio-name .name-first {
  color: #10233d !important;
  -webkit-text-fill-color: #10233d !important;
}
html[data-theme="light"] .portfolio-page .portfolio-hero h1.portfolio-name .name-last {
  color: #087db3 !important;
  -webkit-text-fill-color: #087db3 !important;
}

/* Stability: portfolio content is never hidden by animation. */
.portfolio-page .portfolio-hero-copy > *,
.portfolio-page .portfolio-hero-copy h1 span,
.portfolio-page .portfolio-portrait-wrap,
.portfolio-page .portfolio-section-head,
.portfolio-page .profile-grid > *,
.portfolio-page .expertise-card,
.portfolio-page .portfolio-project,
.portfolio-page .portfolio-cta .cta-panel {
  animation: none !important;
  opacity: 1 !important;
}

/* Safe CSS-only motion: no JavaScript or scroll observer required. */
/* Keep the portfolio name aligned with the professional title and remove its hover effect. */
.portfolio-page .portfolio-hero h1.portfolio-name,
.portfolio-page .portfolio-hero h2 {
  text-align: center !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name {
  justify-content: center !important;
  transition: none !important;
  transform: none !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name:hover {
  transform: none !important;
  letter-spacing: -3px !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name .name-first,
.portfolio-page .portfolio-hero h1.portfolio-name .name-last {
  transition: none !important;
  transform: none !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name:hover .name-first,
.portfolio-page .portfolio-hero h1.portfolio-name:hover .name-last {
  transform: none !important;
}
.portfolio-page .portfolio-hero h1.portfolio-name .name-first,
.portfolio-page .portfolio-hero h1.portfolio-name .name-last {
  transition: color .3s ease, -webkit-text-fill-color .3s ease;
}
.portfolio-page .portfolio-hero .portfolio-roles .role,
.portfolio-page .portfolio-hero .portfolio-actions .btn,
.portfolio-page .portfolio-mini-contact,
.portfolio-page .profile-story,
.portfolio-page .fact-card,
.portfolio-page .expertise-card,
.portfolio-page .portfolio-project,
.portfolio-page .cta-panel {
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.portfolio-page .fact-card:hover,
.portfolio-page .expertise-card:hover,
.portfolio-page .portfolio-project:hover,
.portfolio-page .profile-story:hover {
  transform: translateY(-4px);
}
.portfolio-page .portfolio-hero .portfolio-actions .btn:hover {
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .portfolio-page .portfolio-hero h1.portfolio-name {
    justify-content: center !important;
    letter-spacing: -1.8px !important;
  }
  .portfolio-page .portfolio-hero h1.portfolio-name .name-first {
    margin-right: .16em !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-page * { transition: none !important; animation: none !important; }
}
