/* ── SageFlow Site Styles ──────────────────────────────────────────
   Page-specific layout styles for the portfolio site.
   Requires sageflow/sageflow.css to be loaded first for --sf-* tokens.
   ─────────────────────────────────────────────────────────────── */



/* ===== Theme Transitions ===== */
html.no-theme-transition *,
html.no-theme-transition *::before,
html.no-theme-transition *::after {
    transition: none !important;
}

/* Smooth theme transitions */
body,
.site-header,
.site-nav,
.sf-btn,
.portfolio-item,
.t-card,
.award-row,
.skill-group,
.site-footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sf-font-body);
    font-weight: 500;
    color: var(--sf-text);
    background: var(--sf-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='31' fill='none' viewBox='0 0 26 31'%3E%3Cpath fill='%23fff' fill-rule='evenodd' stroke='%23010101' stroke-linecap='square' stroke-width='2.5' d='M21.993 14.425 2.549 2.935l4.444 23.108 4.653-10.002 10.347-1.616Z' clip-rule='evenodd'/%3E%3C/svg%3E"), auto;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    /* border: 10px solid #1a1a2e; */
}

/* Custom Cursor Styles */
a,
button,
input[type="submit"],
input[type="button"],
.sf-btn,
.portfolio-item,
.project-card-link,
.award-row,
.t-card,
.menu-toggle,
.back-to-top {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='29' fill='none' viewBox='0 0 28 29'%3E%3Cpath fill='%23fff' d='M6.84 21.83c-.47-.6-1.05-1.82-2.07-3.34-.58-.83-2.01-2.41-2.45-3.23a2.1 2.1 0 0 1-.25-1.67 2.2 2.2 0 0 1 2.39-1.67c.85.18 1.63.6 2.25 1.2.43.41.82.85 1.18 1.32.27.34.33.47.63.85.3.39.5.77.35.2-.11-.83-.31-2.23-.6-3.48-.21-.95-.26-1.1-.46-1.82s-.32-1.32-.54-2.13c-.2-.8-.35-1.62-.46-2.44a4.7 4.7 0 0 1 .43-3.08c.58-.55 1.44-.7 2.17-.37a4.4 4.4 0 0 1 1.57 2.17c.43 1.07.72 2.19.86 3.33.27 1.67.79 4.1.8 4.6 0-.61-.11-1.91 0-2.5.12-.6.54-1.1 1.12-1.33.5-.15 1.02-.19 1.53-.1.52.1.98.4 1.29.83.38.98.6 2 .63 3.05.04-.91.2-1.82.47-2.7.28-.39.68-.67 1.15-.8.55-.1 1.11-.1 1.66 0 .46.15.85.44 1.14.82.35.88.56 1.82.63 2.77 0 .23.12-.65.48-1.24a1.67 1.67 0 1 1 3.17 1.07v3.77c-.06.97-.2 1.94-.4 2.9-.29.85-.7 1.65-1.2 2.38-.8.9-1.48 1.92-1.98 3.02a6.67 6.67 0 0 0 .03 3.2c-.68.07-1.37.07-2.05 0-.65-.1-1.45-1.4-1.67-1.8a.63.63 0 0 0-1.13 0c-.37.64-1.18 1.79-1.75 1.85-1.12.14-3.42 0-5.23 0 0 0 .3-1.66-.39-2.27-.68-.6-1.38-1.3-1.9-1.76l-1.4-1.6Z'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='M6.84 21.83c-.47-.6-1.05-1.82-2.07-3.34-.58-.83-2.01-2.41-2.45-3.23a2.1 2.1 0 0 1-.25-1.67 2.2 2.2 0 0 1 2.39-1.67c.85.18 1.63.6 2.25 1.2.43.41.82.85 1.18 1.32.27.34.33.47.63.85.3.39.5.77.35.2-.11-.83-.31-2.23-.6-3.48-.21-.95-.26-1.1-.46-1.82s-.32-1.32-.54-2.13c-.2-.8-.35-1.62-.46-2.44a4.7 4.7 0 0 1 .43-3.08c.58-.55 1.44-.7 2.17-.37a4.4 4.4 0 0 1 1.57 2.17c.43 1.07.72 2.19.86 3.33.27 1.67.79 4.1.8 4.6 0-.61-.11-1.91 0-2.5.12-.6.54-1.1 1.12-1.33.5-.15 1.02-.19 1.53-.1.52.1.98.4 1.29.83.38.98.6 2 .63 3.05.04-.91.2-1.82.47-2.7.28-.39.68-.67 1.15-.8.55-.1 1.11-.1 1.66 0 .46.15.85.44 1.14.82.35.88.56 1.82.63 2.77 0 .23.12-.65.48-1.24a1.67 1.67 0 1 1 3.17 1.07v3.77c-.06.97-.2 1.94-.4 2.9-.29.85-.7 1.65-1.2 2.38-.8.9-1.48 1.92-1.98 3.02a6.67 6.67 0 0 0 .03 3.2c-.68.07-1.37.07-2.05 0-.65-.1-1.45-1.4-1.67-1.8a.63.63 0 0 0-1.13 0c-.37.64-1.18 1.79-1.75 1.85-1.12.14-3.42 0-5.23 0 0 0 .3-1.66-.39-2.27-.68-.6-1.38-1.3-1.9-1.76l-1.4-1.6Z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M20.65 22.3v-6.24c0-.38-.31-.68-.7-.68-.37 0-.68.3-.68.68v6.23c0 .38.3.68.69.68.38 0 .69-.3.69-.68ZM17.2 22.3l-.04-6.25a.67.67 0 1 0-1.34.01l.04 6.24a.67.67 0 1 0 1.34 0ZM12.37 16.07l.04 6.22c0 .38.3.68.67.68.37 0 .67-.3.67-.68l-.04-6.23c0-.38-.3-.68-.67-.68-.37 0-.67.31-.67.69Z'/%3E%3C/svg%3E"), pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
.lead-text,
.body-text {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='25' fill='none' viewBox='0 0 13 25'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.75' d='M8 18.48v-4.23h1.27v-3H8V5.8c.2-.44.5-.82.87-1.14.23-.16.52-.32.83-.44a5.4 5.4 0 0 1 1.17-.05l.87.05.05-.87.08-1.27.06-.87-.88-.06c-.7-.04-1.4 0-2.1.14l-.05.01-.06.02c-.7.25-1.29.56-1.82.95L7 2.28l-.03.02c-.16.13-.31.28-.46.42a6.93 6.93 0 0 0-.39-.38l-.03-.03-.03-.02a5.86 5.86 0 0 0-1.85-.97l-.04-.01-.04-.01a8.1 8.1 0 0 0-2.19-.16l-.87.06.06.87.08 1.27.06.88.87-.06c.43-.03.85 0 1.27.08.23.08.5.21.74.4.33.3.63.72.84 1.19v5.42H3.72v3h1.27v4.2c-.21.47-.51.89-.88 1.24-.2.14-.46.28-.75.37-.36.07-.8.1-1.22.06l-.87-.05-.06.87-.08 1.27-.06.88.87.05c.71.05 1.42 0 2.12-.14h.04l.04-.02a5.83 5.83 0 0 0 1.88-.95l.03-.02.03-.03.44-.43c.14.14.28.27.44.4l.02.02.02.01c.55.42 1.14.73 1.76.95l.05.02.06.01c.77.17 1.47.22 2.17.18l.88-.05-.05-.87-.07-1.27-.05-.87-.87.04c-.42.03-.83 0-1.24-.08-.24-.1-.52-.25-.8-.45A3.4 3.4 0 0 1 8 18.48Z'/%3E%3C/svg%3E"), text;
}

/* Background Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(
            circle at 20px 20px,
            rgba(122, 158, 138, 0.03) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 80px 80px,
            rgba(255, 179, 71, 0.02) 1px,
            transparent 1px
        );
    background-size:
        100px 100px,
        160px 160px;
    pointer-events: none;
    z-index: 0;
}

/* ===== Magic Cursor ===== */
/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--sf-dark);
}

.display-1 {
    font-family: var(--sf-font-display);
    font-size: clamp(42px, 8vw, 130px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.display-2 {
    font-family: var(--sf-font-display);
    font-size: clamp(34px, 6vw, 100px);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.02em;
}

.heading-1 {
    font-family: var(--sf-font-display);
    font-size: clamp(28px, 4.5vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.body-large {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
}

.text-primary {
    color: var(--sf-primary);
}

/* ===== Layout ===== */
.container {
    max-width: var(--sf-container);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.container-xl {
    max-width: var(--sf-container-lg);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.container-md {
    max-width: var(--sf-container-sm);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.section {
    padding: 160px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ===== Decorative Elements ===== */
.section-decoration {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* Remove entrance animation but allow parallax */
.section-decoration.fade-in {
    opacity: 1;
    transform: none;
    animation: none;
}

.decoration-circle {
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(122, 158, 138, 0.1),
        rgba(255, 179, 71, 0.1)
    );
    filter: blur(60px);
}

.decoration-shape {
    background: rgba(168, 230, 207, 0.15);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
}

.accent-shape {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    opacity: 0.2;
    mix-blend-mode: multiply;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform-style: preserve-3d;
}

/* Remove entrance animation but allow parallax */
.accent-shape.fade-in {
    opacity: 0.2;
    transform: none;
    animation: none;
}

.accent-shape img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Floating Images */
.floating-image {
    position: absolute;
    pointer-events: none;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); */
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform-style: preserve-3d;
}

/* Remove entrance animation but allow parallax */
.floating-image.fade-in {
    opacity: 1;
    transform: none;
    animation: none;
}

.floating-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(122, 158, 138, 0.2),
        rgba(255, 179, 71, 0.2)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sf-font-display);
    font-size: 24px;
    color: var(--sf-primary);
    opacity: 0.7;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 130px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    background-color: #F2F4F0;
    background-image:
        linear-gradient(rgba(242, 244, 240, 0.91), rgba(242, 244, 240, 0.91)),
        url('../images/shapes/sage-leaf-pattern.jpg');
    background-size: cover;
    background-position: center;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 64px 0;
    border-top: 1px solid var(--sf-border);
    border-bottom: 1px solid var(--sf-border);
}

.stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-family: var(--sf-font-display);
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 700;
    color: var(--sf-primary);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.stat-label {
    font-family: var(--sf-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sf-text-2);
}

.stat-divider {
    width: 1px;
    height: 56px;
    background: var(--sf-border);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .stats-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .stat-divider {
        display: none;
    }
}

.hero-label {
    font-family: var(--sf-font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--sf-text-2);
    margin-bottom: 22px;
}

.hero-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sf-text);
    font-family: var(--sf-font-mono);
    letter-spacing: 0.5px;
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: pulse-dot 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.08); }
}

/* Headline area */
.hero-headline-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 60px 0;
}

.hero-mega-title {
    font-family: var(--sf-font-display);
    font-size: clamp(58px, 11vw, 160px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--sf-text);
    position: relative;
    z-index: 2;
}

.hero-title-line {
    display: block;
}

.hero-title-outline {
    -webkit-text-stroke: 1.5px var(--sf-text);
    color: transparent;
}

/* Floating project images */
.hero-float {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-float-1 {
    width: clamp(160px, 16vw, 240px);
    height: clamp(190px, 19vw, 290px);
    top: 8%;
    right: 14%;
    transform: rotate(3deg);
    animation: heroFloatA 7s ease-in-out infinite;
}

.hero-float-2 {
    width: clamp(140px, 13vw, 200px);
    height: clamp(160px, 15vw, 230px);
    bottom: 12%;
    right: 5%;
    transform: rotate(-4deg);
    animation: heroFloatB 8s ease-in-out infinite 1.2s;
}

.hero-float-3 {
    width: clamp(120px, 11vw, 170px);
    height: clamp(140px, 13vw, 200px);
    top: 15%;
    right: 3%;
    transform: rotate(1.5deg);
    animation: heroFloatC 6s ease-in-out infinite 0.6s;
}

@keyframes heroFloatA {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-18px); }
}
@keyframes heroFloatB {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-14px); }
}
@keyframes heroFloatC {
    0%, 100% { transform: rotate(1.5deg) translateY(0); }
    50% { transform: rotate(1.5deg) translateY(-20px); }
}

/* Marquee strip */
.hero-marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--sf-border);
    border-bottom: 1px solid var(--sf-border);
    padding: 13px 0;
    margin-top: 30px;
}

.hero-marquee-inner {
    display: flex;
    gap: 36px;
    width: max-content;
    animation: heroMarquee 22s linear infinite;
    font-family: var(--sf-font-mono);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sf-text-2);
    align-items: center;
}

.hero-marquee-inner .mq-sep {
    color: var(--sf-primary);
    font-size: 10px;
}

@keyframes heroMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Bottom bar */
.hero-bottombar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 60px 36px;
    border-top: 1px solid var(--sf-border);
}

.hero-bottombar-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
}

.hero-bottombar-desc {
    font-family: var(--sf-font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--sf-text);
}

.hero-bottombar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.hero-social-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hero-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-text-2);
    transition: color 0.2s, border-color 0.2s;
}

.hero-social-link svg {
    width: 18px;
    height: 18px;
}

.hero-social-link:hover {
    color: var(--sf-primary);
    border-color: var(--sf-primary);
}

/* Scroll circle indicator */
.hero-scroll-cta {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-scroll-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--sf-text-2);
    animation: heroScrollSpin 12s linear infinite;
}

.hero-scroll-arrow {
    width: 18px;
    height: 18px;
    color: var(--sf-text);
    flex-shrink: 0;
}

@keyframes heroScrollSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Hero Glass Objects ===== */
.hero-objects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-object-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 20px 24px;
    pointer-events: auto;
    min-width: 170px;
}

.hero-object-card-1 {
    top: 31%;
    right: 7%;
    animation: hero-float 6s ease-in-out infinite;
    animation-delay: 0.4s;
}

.hero-object-card-2 {
    top: 43%;
    right: 20%;
    animation: hero-float 7s ease-in-out infinite;
    animation-delay: 1.2s;
}

.hero-object-card-3 {
    top: 21%;
    right: 19%;
    animation: hero-float 8s ease-in-out infinite;
    animation-delay: 0.8s;
}

.hero-object-card-4 {
    top: 50%;
    right: 6%;
    animation: hero-float 6.5s ease-in-out infinite;
    animation-delay: 1.8s;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-object-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(122, 158, 138, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-object-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--sf-primary);
    stroke-width: 2;
}

.hero-object-number {
    font-family: var(--sf-font-display);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--sf-text);
    margin-bottom: 5px;
}

.hero-object-label {
    font-family: var(--sf-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sf-text-2);
    white-space: nowrap;
}

[data-theme="dark"] .hero-object-card {
    background: rgba(18, 29, 26, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero-object-icon {
    background: rgba(143, 180, 160, 0.12);
}

@media (max-width: 1100px) {
    .hero-objects {
        display: none;
    }
}


/* ===== About Section ===== */
.about-section {
    padding: 160px 0;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-label {
    font-family: var(--sf-font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3d6652;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.8;
}


/* ===== About Photo Divider ===== */
.about-photo-divider {
    width: 94%;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #d4ddd8;
    position: relative;
}

/* Film grain overlay */
.about-photo-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Vignette overlay */
.about-photo-divider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at 55% 40%, transparent 30%, rgba(0, 0, 0, 0.22) 70%, rgba(0, 0, 0, 0.42) 100%);
    pointer-events: none;
}

/* Oversized track allows image to parallax without gaps */
.apd-img-track {
    position: absolute;
    left: 0;
    width: 100%;
    top: -15%;
    height: 130%;
    will-change: transform;
}

.about-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Floating frosted-glass badges */
.apd-float {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.about-photo-divider.visible .apd-float {
    opacity: 1;
}

.apd-float--tl {
    top: 32px;
    left: 32px;
    transition-delay: 0.25s;
}

.apd-float--br {
    bottom: 32px;
    right: 32px;
    text-align: right;
    transition-delay: 0.45s;
}

.apd-float-eyebrow {
    font-family: var(--sf-font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    display: block;
}

.apd-float-value {
    font-family: var(--sf-font-display);
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: block;
}

/* L-bracket corner accents */
.apd-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.65s;
}

.about-photo-divider.visible .apd-corner {
    opacity: 1;
}

.apd-corner--tl {
    top: 18px;
    left: 18px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.45);
    border-left: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px 0 0 0;
}

.apd-corner--br {
    bottom: 18px;
    right: 18px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
    border-right: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 0 0 3px 0;
}

@media (max-width: 768px) {
    .about-photo-divider {
        width: 100%;
        border-radius: 0;
        aspect-ratio: 4 / 3;
    }

    .apd-float { padding: 10px 14px; }
    .apd-float--tl { top: 18px; left: 18px; }
    .apd-float--br { bottom: 18px; right: 18px; }
    .apd-float-value { font-size: 14px; }
    .apd-corner { width: 22px; height: 22px; }
}

/* ===== Portfolio Grid ===== */
.portfolio-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: inset 4px 0 0 var(--sf-primary), 0 20px 52px rgba(0, 0, 0, 0.08);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--sf-bg-2);
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.04);
}

.portfolio-info {
    padding: 20px 24px 24px;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--sf-text-2);
    font-family: var(--sf-font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-item-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portfolio-title {
    font-family: var(--sf-font-display);
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 600;
    color: var(--sf-text);
    text-decoration: none;
    transition: color 0.25s ease;
    margin: 0;
    letter-spacing: -0.02em;
}

.portfolio-arrow {
    width: 18px;
    height: 18px;
    color: var(--sf-primary);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-item:hover .portfolio-title {
    color: var(--sf-primary);
}

.portfolio-item:hover .portfolio-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Skills Section ===== */
.skills-section {
    padding: 100px 0;
    background: #E4F0EA;
    position: relative;
    overflow: hidden;
    width: 94%;
    margin: 0 auto 80px;
    border-radius: 28px;
}

/* Section header */
.skills-header {
    margin-bottom: 70px;
}

.skills-section .section-label {
    color: var(--sf-text-2);
}

.skills-section .heading-1 {
    color: var(--sf-text);
}

.section-label {
    font-family: var(--sf-font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #595959;
    margin-bottom: 16px;
}

/* Skill Categories Grid */
.skill-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.skill-category-icon {
    width: 44px;
    height: 44px;
    background: rgba(122, 158, 138, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.skill-category-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--sf-primary);
}

.skill-category h3 {
    font-family: var(--sf-font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category ul li {
    font-size: 14px;
    font-weight: 400;
    color: var(--sf-text-2);
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.4;
}

.skill-category ul li:last-child {
    border-bottom: none;
}

/* Toolbox */
.toolbox {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 48px;
}

.toolbox-title {
    font-family: var(--sf-font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: var(--sf-bg);
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tool-item:hover {
    border-color: var(--sf-primary);
    box-shadow: 0 6px 20px rgba(122, 158, 138, 0.1);
    transform: translateY(-2px);
}

.tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tool-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tool-name {
    font-family: var(--sf-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sf-dark);
    letter-spacing: -0.3px;
    line-height: 1;
}

.tool-level {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--sf-font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 100px;
}

.tool-level--expert {
    background: rgba(122, 158, 138, 0.15);
    color: var(--sf-primary);
}

.tool-level--proficient {
    background: rgba(0, 0, 0, 0.06);
    color: var(--sf-text);
}

.tool-level--familiar {
    background: rgba(0, 0, 0, 0.04);
    color: var(--sf-text-2);
}

/* Responsive */
@media (max-width: 1200px) {
    .skill-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .toolbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-section,
    .testimonials-section {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .skill-categories {
        grid-template-columns: 1fr;
    }

    .toolbox {
        padding: 32px 24px;
    }

    .toolbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {
    .toolbox-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Footer - Light Rayo Style ===== */
.site-footer {
    padding: 100px 0 40px;
    background: var(--sf-bg-2);
    color: var(--sf-text);
    position: relative;
    overflow: hidden;
}

/* Large Branding with CTA */
.footer-branding-section {
    margin-bottom: 80px;
    max-width: 800px;
}

.footer-brand-heading {
    font-family: var(--sf-font-display);
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 700;
    line-height: 1.0;
    color: var(--sf-text);
    margin: 0 0 30px 0;
    letter-spacing: -0.03em;
}

.footer-brand-subtext {
    font-size: 20px;
    line-height: 1.6;
    color: var(--sf-text);
    max-width: 650px;
    margin-bottom: 40px;
}

.footer-cta-btn {
    display: inline-flex;
    margin-top: 10px;
}

/* Footer Grid - 3 Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--sf-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--sf-primary);
    transform: translateX(3px);
}

/* Contact Column */
.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-email,
.footer-phone {
    font-size: 16px;
    color: var(--sf-dark);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-email:hover,
.footer-phone:hover {
    color: var(--sf-primary);
}

.footer-availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sf-text);
    margin-bottom: 12px;
}

.footer-status-note {
    font-size: 13px;
    color: var(--sf-text-2);
    margin: 0;
}

.footer-location {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-location p {
    font-size: 15px;
    color: var(--sf-text-2);
    margin: 0;
}

/* Ecosystem Column */
.footer-heading {
    font-family: var(--sf-font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--sf-dark);
}

.ecosystem-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecosystem-links a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecosystem-links a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.footer-legal a {
    color: var(--sf-text);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--sf-dark);
}

.footer-credit {
    font-family: var(--sf-font-mono);
    font-size: 13px;
    color: var(--sf-text-2);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-credit-sep {
    opacity: 0.4;
}

.footer-ds-link {
    color: var(--sf-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-ds-link:hover {
    opacity: 0.75;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sf-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.back-to-top:hover {
    background: var(--sf-primary);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    stroke: var(--sf-white);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Footer Grid - Tablet */
    .footer-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 50px;
    }

    .footer-ecosystem {
        grid-column: span 2;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--sf-white);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    width: 100%;
    padding: 120px 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mobile-menu-content a {
    font-family: var(--sf-font-display);
    font-size: 32px;
    color: var(--sf-dark);
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-menu-content a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-content a:nth-child(1) {
    transition-delay: 0.1s;
}
.mobile-menu-content a:nth-child(2) {
    transition-delay: 0.15s;
}
.mobile-menu-content a:nth-child(3) {
    transition-delay: 0.2s;
}
.mobile-menu-content a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-content a:hover {
    color: var(--sf-primary);
    transform: translateX(10px);
}

@media (max-width: 1024px) {
    .hero-headline-area,
    .hero-bottombar {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
        font-size: 16px;
    }

    .container,
    .container-xl {
        padding: 0 20px;
    }

    .section {
        padding: 50px 0;
    }

    .hero-section {
        min-height: 100svh;
        padding-top: 90px;
    }

    .hero-headline-area,
    .hero-bottombar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-headline-area {
        padding-top: 16px;
        padding-bottom: 0;
    }

    .hero-bottombar {
        flex-wrap: wrap;
        gap: 20px;
        padding-bottom: 28px;
    }

    .hero-bottombar-desc {
        max-width: 100%;
        width: 100%;
    }

    .hero-scroll-cta {
        display: none;
    }

    .site-header {
        top: 20px;
        left: 20px;
    }

    .header-inner {
        padding: 12px 20px;
        gap: 15px;
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-title {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .skills-section {
        padding: 50px 0;
    }

    .skills-grid {
        gap: 40px;
    }

    /* Portfolio Header - Mobile */
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        margin-bottom: 50px;
    }

    .portfolio-section {
        padding: 50px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .floating-image,
    .accent-shape {
        display: none;
    }

    /* Awards Section - Mobile */
    .awards-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .award-table-header {
        display: none;
    }

    .awards-list {
        border-top: 2px solid var(--sf-border);
    }

    .award-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 25px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--sf-border);
    }

    .award-row:last-child {
        border-bottom: 2px solid var(--sf-border);
    }

    .award-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .award-year {
        font-size: 14px;
        order: 1;
    }

    .award-year::before {
        content: "Year ";
        font-family: var(--sf-font-body);
        font-weight: 500;
        font-size: 12px;
        color: var(--sf-text-2);
        margin-right: 5px;
    }

    .award-title-col {
        font-size: 18px;
        order: 2;
        margin-top: 5px;
    }

    .award-platform {
        font-size: 14px;
        order: 3;
    }

    .award-platform::before {
        content: "Platform: ";
        font-weight: 600;
        color: var(--sf-text);
        margin-right: 5px;
    }

    .award-project {
        font-size: 14px;
        order: 4;
    }

    .award-project::before {
        content: "Project: ";
        font-weight: 600;
        color: var(--sf-text);
        margin-right: 5px;
    }

    /* Hide awards after 5th and Show More button */
    .award-row:nth-child(n+6) {
        display: none;
    }

    .awards-show-more {
        display: none;
    }

    /* Logo inside Navigation - Mobile */
    .site-logo {
        width: 32px;
    }

    .site-header {
        left: 20px;
        top: 20px;
    }

    .header-inner {
        gap: 15px;
    }

    /* Footer - Mobile */
    .site-footer {
        padding: 60px 0 30px;
    }

    .footer-branding-section {
        margin-bottom: 50px;
    }

    .footer-brand-heading {
        font-size: 40px;
    }

    .footer-brand-subtext {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-legal {
        justify-content: center;
    }

    .back-to-top {
        order: -1;
    }

    /* Improved Font Sizes for Mobile Legibility */
    p,
    .body-large {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-label,
    .about-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .hero-bottombar-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.7;
    }

    .stat-label {
        font-size: 16px;
        line-height: 1.5;
    }

    .portfolio-meta,
    .project-meta {
        font-size: 13px;
    }

    .sf-btn,
    .sf-btn-primary {
        padding: 16px 32px;
        font-size: 15px;
    }

    .footer-brand-subtext {
        font-size: 15px;
        line-height: 1.6;
    }

    .footer-links a,
    .footer-social a {
        font-size: 15px;
    }
}

/* Extra Small Mobile - 576px */
@media (max-width: 576px) {
    /* Awards Section - Extra Small Mobile */
    .awards-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .award-row {
        padding: 20px 15px;
        gap: 10px;
    }

    .award-title-col {
        font-size: 16px;
        line-height: 1.3;
    }

    .award-year {
        font-size: 13px;
    }

    .award-platform,
    .award-project {
        font-size: 13px;
    }

    .btn-show-more {
        padding: 12px 20px;
        font-size: 13px;
    }

}

/* ===== Awards & Recognitions Section ===== */
.awards-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.awards-section .heading-1 {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    font-family: var(--sf-font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sf-primary);
    margin-bottom: 20px;
    display: block;
}

.award-table-header {
    display: grid;
    grid-template-columns: 100px 2fr 1.5fr 1.5fr;
    gap: 30px;
    padding: 16px 30px;
    background: #f2f4f0;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: var(--sf-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--sf-text-2);
}

.award-row {
    display: grid;
    grid-template-columns: 100px 2fr 1.5fr 1.5fr;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid var(--sf-border);
    transition: all 0.3s;
    align-items: center;
}

.award-row:hover {
    background: rgba(122, 158, 138, 0.03);
}

.award-row.award-hidden {
    display: none;
}

.award-row.award-visible,
.award-row.award-hidden.award-visible {
    display: grid !important;
}

.award-col {
    display: flex;
    align-items: center;
}

.awards-show-more {
    text-align: center;
    margin-top: 40px;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid var(--sf-dark);
    border-radius: 50px;
    font-family: var(--sf-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--sf-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-show-more:hover {
    background: var(--sf-dark);
    color: var(--sf-white);
}

.btn-show-more i,
.btn-show-more svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-show-more.active i,
.btn-show-more.active svg {
    transform: rotate(180deg);
}

.award-year {
    font-family: var(--sf-font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--sf-primary);
}

.award-title-col {
    font-family: var(--sf-font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--sf-text);
    letter-spacing: -0.01em;
}

.award-platform {
    font-size: 15px;
    color: var(--sf-text-2);
}

.award-project {
    font-size: 15px;
    color: var(--sf-text);
}

/* Certificate Preview Modal - Click to Open */
.certificate-preview-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 60px !important;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-preview-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
}

.certificate-preview-inner {
    position: relative;
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-preview-modal.active .certificate-preview-inner {
    transform: scale(1);
}

.certificate-preview-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    border: 5px solid var(--sf-white);
    background: var(--sf-white);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(122, 158, 138, 0.25);
}

/* Close Button */
.certificate-close-btn {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 50px;
    height: 50px;
    background: var(--sf-white);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    color: var(--sf-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.certificate-close-btn:hover {
    background: var(--sf-primary);
    color: var(--sf-white);
    transform: rotate(90deg) scale(1.1);
}

/* Add pointer cursor to award rows with certificates */
.award-row[data-certificate] {
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.award-row[data-certificate]:hover {
    background: rgba(122, 158, 138, 0.05) !important;
    transform: translateX(5px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .certificate-preview-inner {
        width: 95%;
        max-width: none;
    }

    .certificate-close-btn {
        top: -45px;
        right: 0;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
}

/* Add indicator to rows with certificates */
.award-row[data-certificate] {
    position: relative;
    cursor: pointer;
}

.award-row[data-certificate]::after {
    content: '👁';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.award-row[data-certificate]:hover::after {
    opacity: 0.5;
}

@keyframes certificateFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Disable on mobile to avoid issues */
@media (max-width: 768px) {
    .certificate-preview-modal {
        display: none;
    }

    .award-row[data-certificate]::after {
        display: none;
    }
}

/* Awards Section - Tablet Responsive (968px) */
@media (max-width: 968px) {
    .awards-section {
        padding: 80px 0;
    }

    .awards-section .heading-1 {
        margin-bottom: 40px;
    }

    .award-table-header {
        grid-template-columns: 80px 1.5fr 1fr 1fr;
        gap: 20px;
        padding: 15px 20px;
        font-size: 11px;
    }

    .award-row {
        grid-template-columns: 80px 1.5fr 1fr 1fr;
        gap: 20px;
        padding: 25px 20px;
    }

    .award-year {
        font-size: 14px;
    }

    .award-title-col {
        font-size: 16px;
    }

    .award-platform,
    .award-project {
        font-size: 14px;
    }

    .btn-show-more {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 100px 0;
    background: #E4F0EA;
    position: relative;
    overflow: hidden;
    width: 94%;
    margin: 0 auto 80px;
    border-radius: 28px;
}

.testimonials-section .section-label {
    color: #5a5a5a;
}

.testimonials-section .heading-1 {
    color: var(--sf-text);
}

.testimonials-header {
    margin-bottom: 60px;
}

/* ===== Testimonials Grid ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    counter-reset: t-num;
}

.t-card {
    counter-increment: t-num;
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

/* Large decorative quote watermark */
.t-card::before {
    content: '\201C';
    position: absolute;
    top: -16px;
    right: 16px;
    font-family: var(--sf-font-display);
    font-size: 180px;
    line-height: 1;
    color: var(--sf-primary);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    user-select: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* "Read full story →" hint */
.t-read-hint {
    font-family: var(--sf-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sf-primary);
    opacity: 0.45;
    margin-top: -8px;
    transition: opacity 0.3s ease, letter-spacing 0.3s ease;
    user-select: none;
}

.t-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 4px 0 0 var(--sf-primary), 0 20px 52px rgba(0, 0, 0, 0.1);
}

.t-card:hover::before {
    opacity: 0.2;
    transform: translateY(-6px) scale(1.05);
}

.t-card:hover .t-read-hint {
    opacity: 1;
    letter-spacing: 0.16em;
}

.t-quote {
    font-size: 16px;
    line-height: 1.8;
    color: var(--sf-text);
    flex: 1;
    font-style: italic;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 1;
}

.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.t-card:hover .t-avatar {
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 3px rgba(122, 158, 138, 0.15);
}

.t-author-info strong {
    display: block;
    font-family: var(--sf-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: 3px;
}

.t-author-info span {
    font-size: 11px;
    color: var(--sf-text-2);
    font-family: var(--sf-font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 968px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonial Modal */
.t-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.t-modal.is-open {
    pointer-events: all;
    opacity: 1;
}

.t-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 12, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.t-modal-box {
    position: relative;
    z-index: 1;
    background: #0f1c12;
    border: 1px solid rgba(122, 158, 138, 0.18);
    border-radius: 24px;
    padding: 52px 50px 48px;
    max-width: 620px;
    width: 100%;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 4px 0 0 #7A9E8A, 0 32px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.t-modal.is-open .t-modal-box {
    transform: translateY(0) scale(1);
}

.t-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.t-modal-close:hover {
    background: rgba(122, 158, 138, 0.15);
    border-color: #7A9E8A;
    color: #7A9E8A;
}

.t-modal-close svg {
    width: 14px;
    height: 14px;
}

.t-modal-quote-mark {
    font-family: var(--sf-font-display);
    font-size: 108px;
    line-height: 0.65;
    color: #7A9E8A;
    opacity: 0.55;
    margin-bottom: 20px;
    display: block;
    user-select: none;
}

.t-modal-scroll {
    overflow-y: auto;
    flex: 1;
    padding-bottom: 28px;
}

.t-modal-text {
    font-family: var(--sf-font-body);
    font-size: 1.05rem;
    line-height: 1.95;
    color: #b8d0c4;
    margin-bottom: 0;
    white-space: pre-line;
}

.t-modal-author {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 28px;
    border-top: 1px solid rgba(122, 158, 138, 0.2);
    flex-shrink: 0;
}

.t-modal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #7A9E8A;
    box-shadow: 0 0 0 4px rgba(122, 158, 138, 0.15);
}

.t-modal-name {
    display: block;
    font-family: var(--sf-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 5px;
}

.t-modal-role {
    font-family: var(--sf-font-mono);
    font-size: 0.67rem;
    color: #7A9E8A;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .t-modal-box {
        padding: 40px 28px 36px;
    }
    .t-modal-quote-mark {
        font-size: 72px;
    }
}

/* Modal is always dark — same in both themes */
[data-theme="dark"] .t-modal-box {
    background: #0f1c12;
    border-color: rgba(122, 158, 138, 0.18);
}

[data-theme="dark"] .t-modal-name {
    color: #ffffff;
}

[data-theme="dark"] .t-modal-text {
    color: #b8d0c4;
}

/* ===== Page Transition Loader (Desktop Only) ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(122, 158, 138, 0.98) 0%,
        rgba(255, 179, 71, 0.98) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader.loader-active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loader-shapes {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-shape {
    position: absolute;
    border-radius: 50%;
    animation: shapeRotate 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-shape.shape-1 {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--sf-white);
    animation: shapeRotate 1.5s linear infinite;
}

.loader-shape.shape-2 {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-right-color: var(--sf-white);
    animation: shapeRotate 2s linear infinite reverse;
}

.loader-logo {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    animation: logoFade 2s ease-in-out infinite;
}

.logo-image {
    width: 60px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Makes the logo white to match the loader theme */
}

@keyframes shapeRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shapePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

@keyframes logoFade {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.loader-text {
    font-family: var(--sf-font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--sf-white);
    letter-spacing: -0.02em;
    animation: loaderTextFade 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* Hide loader on mobile devices */
@media (max-width: 768px) {
    .page-loader {
        display: none !important;
    }
}

/* ===== Portfolio Page - Featured Projects ===== */
.featured-projects-section {
    padding: 80px 0;
    position: relative;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.featured-project-card {
    position: relative;
}

.project-card-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-card-link:hover {
    transform: translateY(-5px);
}

.project-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--sf-font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--sf-white);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: box-shadow 0.3s;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card-link:hover .project-image {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.image-gradient {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Gradient backgrounds for each project */
.gradient-aktiv {
    background: linear-gradient(
        135deg,
        rgba(168, 230, 207, 0.2),
        rgba(122, 158, 138, 0.15)
    );
}

.gradient-aktivgrid {
    background: linear-gradient(
        135deg,
        rgba(255, 179, 71, 0.2),
        rgba(168, 230, 207, 0.15)
    );
}

.gradient-beeback {
    background: linear-gradient(
        135deg,
        rgba(122, 158, 138, 0.15),
        rgba(255, 179, 71, 0.15)
    );
}

.gradient-nursingce {
    background: linear-gradient(
        135deg,
        rgba(168, 230, 207, 0.25),
        rgba(255, 179, 71, 0.2)
    );
}

.gradient-gravit {
    background: linear-gradient(
        135deg,
        rgba(255, 179, 71, 0.25),
        rgba(122, 158, 138, 0.2)
    );
}

.project-content {
    padding: 0;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--sf-text-2);
    font-family: var(--sf-font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-family: var(--sf-font-display);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 600;
    color: var(--sf-text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.project-card-link:hover .project-title {
    color: var(--sf-primary);
}

.project-description {
    display: none;
}

.project-tags {
    display: none;
}

.project-cta {
    display: none;
}

/* Portfolio Page Responsive */
@media (max-width: 1200px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-projects-section {
        padding: 60px 0;
    }

    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-title {
        font-size: 24px;
    }
}

/* ===== First Visit Notification ===== */
.theme-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    max-width: 380px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.theme-notification.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.theme-notification-inner {
    background: var(--sf-surface);
    border: 2px solid var(--sf-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.theme-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.theme-notification-icon {
    width: 24px;
    height: 24px;
    stroke: var(--sf-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.theme-notification p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sf-text);
}

.theme-notification-close {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--sf-text-2);
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-notification-close:hover {
    color: var(--sf-primary);
    transform: scale(1.1);
}

.theme-notification-close svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .theme-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .theme-notification-inner {
        padding: 16px;
    }

    .theme-notification p {
        font-size: 13px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .theme-toggle-thumb,
    .theme-icon,
    .theme-notification {
        transition-duration: 0.01ms !important;
    }
}

/* ===== Dark Mode Section Overrides ===== */

/* Typography - Override black headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .display-1,
[data-theme="dark"] .display-2,
[data-theme="dark"] .heading-1 {
    color: var(--sf-text);
}

[data-theme="dark"] p,
[data-theme="dark"] .body-large,
[data-theme="dark"] .body-text {
    color: var(--sf-text);
}

[data-theme="dark"] .section-label {
    color: var(--sf-text-2);
}

/* Hero - dark mode */
[data-theme="dark"] .hero-mega-title {
    color: var(--sf-text);
}

[data-theme="dark"] .hero-title-outline {
    -webkit-text-stroke-color: var(--sf-text);
}

[data-theme="dark"] .hero-label {
    color: var(--sf-text-2);
}

[data-theme="dark"] .hero-availability {
    color: var(--sf-text);
}

[data-theme="dark"] .hero-bottombar-desc {
    color: var(--sf-text);
}

[data-theme="dark"] .hero-social-link {
    border-color: var(--sf-border);
    color: var(--sf-text-2);
}

[data-theme="dark"] .hero-scroll-ring,
[data-theme="dark"] .hero-marquee-inner {
    color: var(--sf-text-2);
}

[data-theme="dark"] .hero-scroll-arrow {
    color: var(--sf-text);
}

/* Main and Section Elements */
[data-theme="dark"] main {
    background: var(--sf-bg);
    color: var(--sf-text);
}

[data-theme="dark"] section {
    background: var(--sf-bg);
}

[data-theme="dark"] .section {
    background: var(--sf-bg);
}

/* Header & Navigation */
[data-theme="dark"] .site-header {
    background: rgba(10, 18, 13, 0.92);
    border-color: var(--sf-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .site-logo img {
    filter: invert(1);
}

[data-theme="dark"] .site-nav a {
    color: var(--sf-text);
}

[data-theme="dark"] .site-nav a svg {
    color: var(--sf-text);
    stroke: var(--sf-text);
}

[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .site-nav a.active {
    color: var(--sf-primary);
}

[data-theme="dark"] .site-nav a:hover svg,
[data-theme="dark"] .site-nav a.active svg {
    color: var(--sf-white);
    stroke: var(--sf-white);
}

[data-theme="dark"] .nav-tooltip {
    background: var(--sf-surface);
    color: var(--sf-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
[data-theme="dark"] .hero-section {
    background-color: var(--sf-bg);
    background-image: none;
}

[data-theme="dark"] .hero-section .lead-text {
    color: var(--sf-text-2);
}

/* About Section */
[data-theme="dark"] .about-section {
    background: var(--sf-bg);
}

[data-theme="dark"] .about-section .about-label {
    color: var(--sf-text-2);
}

[data-theme="dark"] .about-section p {
    color: var(--sf-text);
}

/* Portfolio Section */
[data-theme="dark"] .portfolio-section {
    background: var(--sf-bg);
}

[data-theme="dark"] .portfolio-header h2 {
    color: var(--sf-text);
}

[data-theme="dark"] .portfolio-item {
    background: var(--sf-surface);
    border-color: var(--sf-border);
}

[data-theme="dark"] .portfolio-image {
    background: var(--sf-bg-2);
}

[data-theme="dark"] .portfolio-item:hover {
    box-shadow: inset 4px 0 0 #8FB4A0, 0 20px 52px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .portfolio-title {
    color: var(--sf-text);
}

[data-theme="dark"] .portfolio-item:hover .portfolio-title {
    color: var(--sf-primary);
}

[data-theme="dark"] .portfolio-info {
    color: var(--sf-text);
}

[data-theme="dark"] .portfolio-meta {
    color: var(--sf-text-2);
}

[data-theme="dark"] .project-card-link {
    background: var(--sf-surface);
    border-color: var(--sf-border);
}

[data-theme="dark"] .project-card-link:hover {
    border-color: var(--sf-primary);
}

[data-theme="dark"] .project-content {
    background: transparent;
}

[data-theme="dark"] .project-title,
[data-theme="dark"] .project-meta,
[data-theme="dark"] .project-description {
    color: var(--sf-text);
}

[data-theme="dark"] .project-image {
    background: var(--sf-surface);
}

/* Skills Section - dark mode */
[data-theme="dark"] .skills-section {
    background: #1a3a2d;
}

[data-theme="dark"] .skills-section .heading-1 {
    color: #ffffff;
}

[data-theme="dark"] .skills-section .section-label {
    color: var(--sf-text-2);
}

[data-theme="dark"] .skill-category {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-category:hover {
    background: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .skill-category-icon {
    background: rgba(143, 180, 160, 0.15);
}

[data-theme="dark"] .skill-category-icon svg {
    stroke: var(--sf-primary);
}

[data-theme="dark"] .skill-category h3 {
    color: #ffffff;
}

[data-theme="dark"] .skill-category ul li {
    color: var(--sf-text-2);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .toolbox {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .toolbox-title {
    color: #ffffff;
}

[data-theme="dark"] .tool-item {
    background: var(--sf-surface);
    border-color: var(--sf-border);
}

[data-theme="dark"] .tool-item:hover {
    border-color: var(--sf-primary);
    box-shadow: 0 6px 20px rgba(122, 158, 138, 0.08);
}

[data-theme="dark"] .tool-name {
    color: var(--sf-text);
}

[data-theme="dark"] .tool-level--proficient {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sf-text-2);
}

[data-theme="dark"] .tool-level--familiar {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sf-text-2);
}

[data-theme="dark"] .section-label {
    color: var(--sf-text-2);
}


[data-theme="dark"] .stat-number {
    color: var(--sf-primary);
}

[data-theme="dark"] .stat-label {
    color: var(--sf-text-2);
}

/* Testimonials Section - dark mode */
[data-theme="dark"] .testimonials-section {
    background: #1a3a2d;
}

[data-theme="dark"] .testimonials-section .section-label {
    color: var(--sf-text-2);
}

[data-theme="dark"] .testimonials-section .heading-1 {
    color: #ffffff;
}

[data-theme="dark"] .t-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .t-card::before {
    color: #8FB4A0;
    opacity: 0.12;
}

[data-theme="dark"] .t-card:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 4px 0 0 #8FB4A0, 0 20px 52px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .t-card:hover::before {
    opacity: 0.22;
}

[data-theme="dark"] .t-quote {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .t-author {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .t-avatar {
    border-color: transparent;
}

[data-theme="dark"] .t-author-info strong {
    color: #ffffff;
}

[data-theme="dark"] .t-author-info span {
    color: var(--sf-text-2);
}

/* Awards Section */
[data-theme="dark"] .awards-section {
    background: var(--sf-bg);
}

[data-theme="dark"] .award-header {
    background: var(--sf-surface);
    border-bottom-color: var(--sf-border);
}

[data-theme="dark"] .award-header .award-col {
    color: var(--sf-text-2);
}

[data-theme="dark"] .award-row {
    border-bottom-color: var(--sf-border);
}

[data-theme="dark"] .award-row:hover {
    background: rgba(255, 90, 141, 0.05);
}

[data-theme="dark"] .award-table-header {
    background: var(--sf-surface);
    color: var(--sf-text);
}

[data-theme="dark"] .award-table-header .award-col {
    color: var(--sf-text-2);
}

[data-theme="dark"] .award-year,
[data-theme="dark"] .award-title-col,
[data-theme="dark"] .award-platform,
[data-theme="dark"] .award-project {
    color: var(--sf-text);
}

[data-theme="dark"] .btn-show-more {
    color: var(--sf-text);
    border-color: var(--sf-border);
}

[data-theme="dark"] .btn-show-more:hover {
    background: var(--sf-surface);
}

/* Footer - Lighter for better visual separation */
[data-theme="dark"] .site-footer {
    background: var(--sf-bg-3);
    border-top: 1px solid var(--sf-border);
}

[data-theme="dark"] .footer-brand-heading,
[data-theme="dark"] .footer-heading {
    color: var(--sf-text);
}

[data-theme="dark"] .footer-brand-subtext,
[data-theme="dark"] .footer-location p,
[data-theme="dark"] .footer-credit {
    color: var(--sf-text-2);
}

[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-email,
[data-theme="dark"] .footer-phone {
    color: var(--sf-text);
}

[data-theme="dark"] .footer-col a:hover,
[data-theme="dark"] .footer-email:hover,
[data-theme="dark"] .footer-phone:hover {
    color: var(--sf-primary);
}

[data-theme="dark"] .footer-bottom-bar {
    border-top-color: var(--sf-border);
}

[data-theme="dark"] .footer-legal,
[data-theme="dark"] .footer-legal a {
    color: var(--sf-text-2);
}

[data-theme="dark"] .footer-legal a:hover {
    color: var(--sf-text);
}

[data-theme="dark"] .footer-cta-btn {
    background: var(--sf-primary);
    color: #ffffff;
}

/* Portfolio Items */
[data-theme="dark"] .portfolio-image {
    background: var(--sf-surface);
}

/* Buttons */
[data-theme="dark"] .sf-btn {
    color: var(--sf-text);
}

[data-theme="dark"] .sf-btn-primary {
    background: #ffffff;
    color: #0f0f0e;
    border-color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--sf-text);
    color: var(--sf-text);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--sf-text);
    color: var(--sf-bg);
}

/* Forms & Contact */
[data-theme="dark"] .contact-section {
    background: var(--sf-bg);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--sf-surface);
    border-color: var(--sf-border);
    color: var(--sf-text);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--sf-primary);
    background: var(--sf-surface);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--sf-text-2);
}

[data-theme="dark"] label {
    color: var(--sf-text);
}

[data-theme="dark"] .form-group label {
    color: var(--sf-text);
}

/* Case Studies & Content Pages */
[data-theme="dark"] .case-study-hero,
[data-theme="dark"] .case-study-section,
[data-theme="dark"] .project-details {
    background: var(--sf-bg);
}

[data-theme="dark"] .case-study-content p,
[data-theme="dark"] .case-study-content li,
[data-theme="dark"] .project-description {
    color: var(--sf-text);
}

/* Error Pages (404) */
[data-theme="dark"] .error-section-creative {
    background: var(--sf-bg);
}

[data-theme="dark"] .error-title,
[data-theme="dark"] .error-message {
    color: var(--sf-text);
}

[data-theme="dark"] .error-stats .error-stat-number {
    color: var(--sf-text);
}

[data-theme="dark"] .error-stats .error-stat-label {
    color: var(--sf-text-2);
}

/* Links - Better contrast */
[data-theme="dark"] a {
    color: var(--sf-primary);
}

[data-theme="dark"] a:hover {
    color: var(--sf-primary);
    opacity: 0.8;
}

[data-theme="dark"] .body-text a,
[data-theme="dark"] .about-section a,
[data-theme="dark"] .case-study-section a {
    color: var(--sf-primary);
    text-decoration: underline;
}

[data-theme="dark"] .body-text a:hover,
[data-theme="dark"] .about-section a:hover,
[data-theme="dark"] .case-study-section a:hover {
    color: var(--sf-accent);
}

/* Mobile Menu */
[data-theme="dark"] .mobile-menu-overlay {
    background: var(--sf-bg);
}

[data-theme="dark"] .mobile-menu-content a {
    color: var(--sf-text);
}

[data-theme="dark"] .menu-toggle span {
    background: var(--sf-text);
}

/* Decorative Images - Adjust for dark background */
[data-theme="dark"] .accent-shape img,
[data-theme="dark"] .floating-image img {
    opacity: 0.4;
    filter: brightness(1.2);
}

/* Modals */
[data-theme="dark"] .certificate-preview-modal {
    background: rgba(15, 15, 30, 0.92);
}

/* Page Loader */
[data-theme="dark"] .page-loader {
    background: linear-gradient(
        135deg,
        rgba(15, 15, 30, 0.98) 0%,
        rgba(26, 26, 46, 0.98) 100%
    );
}

[data-theme="dark"] .loader-text {
    color: var(--sf-text);
}

/* Portfolio Page Specific */
[data-theme="dark"] .portfolio-main {
    background: var(--sf-bg);
}

[data-theme="dark"] .page-header {
    background: var(--sf-bg);
}

[data-theme="dark"] .page-title {
    color: var(--sf-text);
}

[data-theme="dark"] .title-line {
    color: var(--sf-text);
}

[data-theme="dark"] .page-subtitle {
    color: var(--sf-text-2);
}

[data-theme="dark"] .header-eyebrow {
    color: var(--sf-text-2);
}

[data-theme="dark"] .header-number {
    color: var(--sf-text-2);
    opacity: 0.5;
}

[data-theme="dark"] .scroll-indicator {
    color: var(--sf-text-2);
}

[data-theme="dark"] .scroll-indicator svg {
    stroke: var(--sf-text-2);
}

[data-theme="dark"] .featured-projects-section {
    background: var(--sf-bg);
}

[data-theme="dark"] .bg-decoration {
    opacity: 0.3;
}

/* Contact Page Specific */
[data-theme="dark"] .contact-section {
    background: var(--sf-bg);
}

[data-theme="dark"] .contact-grid {
    background: var(--sf-bg);
}

[data-theme="dark"] .contact-form-wrapper {
    background: var(--sf-surface);
}

[data-theme="dark"] .contact-form-wrapper h2,
[data-theme="dark"] .contact-card h3 {
    color: var(--sf-text);
}

[data-theme="dark"] .contact-form-wrapper p,
[data-theme="dark"] .contact-card p {
    color: var(--sf-text);
}

[data-theme="dark"] .contact-form {
    background: var(--sf-surface);
}

[data-theme="dark"] .contact-card {
    background: var(--sf-surface);
    border-color: var(--sf-border);
}

[data-theme="dark"] .contact-item strong {
    color: var(--sf-text);
}

[data-theme="dark"] .contact-item p {
    color: var(--sf-text);
}

[data-theme="dark"] .contact-item a {
    color: var(--sf-primary);
}

[data-theme="dark"] .contact-item a:hover {
    color: var(--sf-accent);
}

[data-theme="dark"] .social-link {
    color: var(--sf-text);
    border-color: var(--sf-border);
}

[data-theme="dark"] .social-link:hover {
    background: var(--sf-surface);
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

[data-theme="dark"] .social-links-list a {
    color: var(--sf-text);
}

[data-theme="dark"] .form-note {
    color: var(--sf-text-2);
}

[data-theme="dark"] .animate-on-scroll {
    color: var(--sf-text);
}

/* Print Styles - Force light mode */
@media print {
    [data-theme="dark"] {
        --color-bg-primary: #ffffff;
        --color-text-primary: #000000;
        --color-surface: #ffffff;
    }
}
