/* ============================================
   SECTIONS - Page Section Specific Styles
   ============================================ */

/* ========== SECTION 1: HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    animation: videoZoom 20s var(--ease-smooth) infinite alternate;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.9) 0%,
            /* Dark top */
            rgba(10, 10, 10, 0.6) 15%,
            /* Fade out starts */
            transparent 30%,
            /* Clear middle starts (above label) */
            transparent 60%,
            /* Clear middle ends (above text) */
            rgba(10, 10, 10, 0.8) 85%,
            /* Dark bottom starts */
            rgba(10, 10, 10, 1) 100%
            /* Solid black bottom */
        );

}

.hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    /* Above overlay (z-index of overlay is auto/0 if not set, but we set video to -1, overlay absolute) */
    /* Update: hero__overlay doesn't have z-index exposed in previous snippet but is in hero__bg (-1).
       Let's check hierarchy:
       .hero__bg (z-index -1)
          video
          .hero__overlay
          canvas
       So inside hero__bg, we just need canvas to be on top of video/overlay.
       Video is default. Overlay is default. Canvas is default. DOM order handles it.
       But let's be safe.
    */
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-secondary);
    margin-bottom: var(--space-8);
}

.hero__label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--color-secondary);
}

.hero__title {
    font-size: var(--text-hero);
    line-height: var(--leading-none);
    text-transform: uppercase;
    margin-bottom: var(--space-8);
}

.hero__title span {
    display: block;
}

.hero__title .accent {
    background-image: linear-gradient(90deg, #38BDF8, #3B82F6, #6366F1, #38BDF8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: background-position 0.8s ease, filter 0.3s ease;
}

.hero__title .accent:hover {
    background-position: 100% center;
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.hero__subtitle {
    max-width: 600px;
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-12);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
}

@media (min-width: 768px) {
    .hero__stats {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
    white-space: nowrap;
}

.hero__stat-number span {
    color: var(--color-secondary);
}

.hero__stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-top: var(--space-1);
    white-space: nowrap;
}

/* Scroll Indicator */
.hero__scroll {
    position: relative;
    margin-top: var(--space-12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    animation: float 2s var(--ease-smooth) infinite;
}

.hero__scroll-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-secondary), transparent);
}

/* ========== SECTION 2: ABOUT ========== */
.about {
    background: var(--color-surface);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.about__grid {
    display: grid;
    gap: var(--space-16);
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: 40% 1fr;
        align-items: center;
    }
}

.about__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s var(--ease-smooth);
}

.about__image:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.about__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 10, 10, 0.8) 0%,
            transparent 50%);
    pointer-events: none;
}

.about__content {
    max-width: 800px;
}

.about__headline {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
}

.about__headline span {
    color: var(--color-secondary);
}

.about__text {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.about__quote {
    font-family: var(--font-accent);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--color-text-primary);
    line-height: var(--leading-snug);
    padding-left: var(--space-6);
    border-left: 3px solid var(--color-secondary);
    margin: var(--space-10) 0;
}

.about__signature {
    width: 200px;
    opacity: 0.8;
    margin-top: var(--space-8);
}

/* ========== SECTION 3: EXPERTISE ========== */
.expertise {
    position: relative;
}

.expertise__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.expertise__title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
}

.expertise__title span {
    color: var(--color-secondary);
}

.expertise__grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .expertise__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .expertise__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.expertise__card {
    background: var(--color-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.expertise__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 111, 181, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.expertise__card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.expertise__card:hover::before {
    opacity: 1;
}

.expertise__number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.expertise__card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.expertise__card-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    position: relative;
    z-index: 1;
}

.expertise__card-icons {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    z-index: 1;
}

.expertise__card:hover .expertise__card-icons {
    opacity: 1;
    transform: translateY(0);
}

.expertise__icon {
    width: 28px;
    height: 28px;
    padding: 4px;
    background: var(--color-surface-lighter);
    border-radius: var(--radius-sm);
}

/* ========== SECTION 4: IMPACT ========== */
.impact {
    background: var(--color-primary);
    overflow: hidden;
}

.impact__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.impact__title {
    font-size: var(--text-5xl);
    text-transform: uppercase;
}

/* Carousel Container */
.impact__carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    position: relative;
    padding: var(--space-8) 0;
}

/* Navigation Buttons */
.impact__nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    transition: all 0.3s var(--ease-smooth);
    z-index: 10;
    flex-shrink: 0;
    cursor: pointer;
}

.impact__nav:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(46, 111, 181, 0.5);
}

.impact__nav:active {
    transform: scale(0.95);
}

.impact__nav svg {
    width: 22px;
    height: 22px;
}

/* Cards Track - 3 Card View */
.impact__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 460px;
}

/* Glass Card - Base */
.impact__card.glass-card {
    width: 320px;
    min-height: 420px;
    position: absolute;
    border-radius: var(--radius-2xl);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.7) translateX(0);
    pointer-events: none;
    filter: blur(4px);
    overflow: hidden;
}

/* Previous Card (Left) */
.impact__card.glass-card[data-position="prev"] {
    opacity: 0.35;
    transform: scale(0.85) translateX(-350px);
    z-index: 1;
    filter: blur(3px);
    pointer-events: none;
}

/* Active/Center Card */
.impact__card.glass-card[data-position="active"] {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 5;
    filter: blur(0);
    pointer-events: auto;
}

/* Next Card (Right) */
.impact__card.glass-card[data-position="next"] {
    opacity: 0.35;
    transform: scale(0.85) translateX(350px);
    z-index: 1;
    filter: blur(3px);
    pointer-events: none;
}

/* Hidden Cards */
.impact__card.glass-card[data-position="hidden"] {
    opacity: 0;
    transform: scale(0.7) translateX(0);
    z-index: 0;
    pointer-events: none;
}

/* Glass Background */
.impact__card.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 0;
}

/* Liquid Glow Effect */
.impact__card-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg,
            rgba(46, 111, 181, 0.4) 0%,
            rgba(163, 230, 53, 0.3) 50%,
            rgba(46, 111, 181, 0.2) 100%);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s var(--ease-smooth);
    z-index: -1;
}

.impact__card.glass-card[data-position="active"]:hover .impact__card-glow {
    opacity: 1;
}

/* Hover effect only for active card */
.impact__card.glass-card[data-position="active"]:hover {
    transform: scale(1.02) translateX(0) translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Card Inner Content */
.impact__card-inner {
    position: relative;
    z-index: 1;
    padding: var(--space-8);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Visual */
.impact__card-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.impact__card-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(46, 111, 181, 0.3);
}

.impact__card-content {
    text-align: center;
}

.impact__card-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.impact__card-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* Pagination Dots */
.impact__pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-16);
}

.impact__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s var(--ease-smooth);
}

.impact__dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.impact__dot.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(46, 111, 181, 0.6);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .impact__nav {
        width: 44px;
        height: 44px;
    }

    .impact__nav svg {
        width: 20px;
        height: 20px;
    }

    .impact__card.glass-card {
        width: min(80vw, 320px);
        min-height: 350px;
    }

    .impact__card-inner {
        padding: var(--space-6);
    }

    .impact__card-number {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}

/* ========== SECTION 5: PORTFOLIO ========== */
.portfolio {
    background: var(--color-surface);
}

.portfolio__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.portfolio__title {
    font-size: var(--text-5xl);
}

.portfolio__filters {
    display: flex;
    gap: var(--space-4);
}

.portfolio__filter {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-smooth);
}

.portfolio__filter:hover,
.portfolio__filter.active {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.portfolio__grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .portfolio__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio__item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
}

.portfolio__item:nth-child(3n + 1) {
    aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
    .portfolio__item:nth-child(3n + 1) {
        grid-row: span 2;
    }
}

.portfolio__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s var(--ease-smooth);
}

.portfolio__item:hover .portfolio__thumbnail {
    transform: scale(1.1);
}

.portfolio__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.portfolio__item:hover .portfolio__video {
    opacity: 1;
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 10, 10, 0.9) 0%,
            transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__item-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-smooth);
}

.portfolio__item:hover .portfolio__item-title {
    transform: translateY(0);
}

.portfolio__item-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-smooth) 0.1s;
}

.portfolio__item:hover .portfolio__item-tag {
    transform: translateY(0);
}

.portfolio__cta {
    text-align: center;
    margin-top: var(--space-12);
}

/* ========== SECTION 6: PHILOSOPHY ========== */
.philosophy {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.philosophy__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 15vw;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-text-stroke: 1px var(--color-surface-lighter);
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.philosophy__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy__quote {
    font-family: var(--font-accent);
    font-size: var(--text-4xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-16);
}

.philosophy__quote em {
    color: var(--color-secondary);
}

.philosophy__process {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
    overflow-x: auto;
    padding: var(--space-4) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.philosophy__process::-webkit-scrollbar {
    display: none;
}

.philosophy__step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}

.philosophy__step:hover {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.philosophy__step-arrow {
    color: var(--color-secondary);
}

.philosophy__desc {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* ========== SECTION 7: CONTACT ========== */
.contact {
    background: var(--color-surface);
}

.contact__grid {
    display: grid;
    gap: var(--space-16);
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.contact__info {
    max-width: 500px;
}

.contact__title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
}

.contact__title span {
    color: var(--color-secondary);
}

.contact__subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
}

.contact__details {
    margin-top: var(--space-10);
}

.contact__detail-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.contact__detail-value {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.contact__detail-value a {
    transition: color 0.3s var(--ease-smooth);
}

.contact__detail-value a:hover {
    color: var(--color-secondary);
}

.contact__form {
    background: var(--color-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
}

.contact__form-row {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .contact__form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact__submit {
    width: 100%;
    margin-top: var(--space-4);
}

.contact__submit.success {
    background: #10B981;
}

/* ========== SECTION 8: INTERACTIVE FOOTER ========== */
.footer {
    padding: var(--space-20) var(--section-padding-x) var(--space-8);
    position: relative;
    overflow: hidden;
    --mx: 50%;
    --my: 50%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

/* Spotlight following mouse */
.footer__spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx) var(--my),
            rgba(46, 111, 181, 0.08) 0%,
            rgba(163, 230, 53, 0.03) 30%,
            transparent 60%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.1s ease-out;
}

/* Particles canvas */
.footer__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Content above decorative layers */
.footer__content {
    position: relative;
    z-index: 2;
}

.footer__name {
    font-family: var(--font-display);
    font-size: var(--text-giant);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    text-align: center;
    line-height: var(--leading-none);
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-12);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

/* Base link */
.footer__link {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-secondary);
    position: relative;
    transition: color 0.3s var(--ease-smooth);
    padding-bottom: 4px;
}

/* Animated gradient underline */
.footer__link--animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-smooth);
}

.footer__link--animated:hover {
    color: var(--color-text-primary);
    text-shadow: 0 0 20px rgba(46, 111, 181, 0.4);
}

.footer__link--animated:hover::after {
    transform: scaleX(1);
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer__tagline {
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-text-secondary);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .footer__spotlight,
    .footer__particles {
        display: none;
    }

    .footer__link--animated::after {
        animation: none;
    }
}

/* Portfolio Watch Action */
.portfolio__action {
    position: absolute;
    /* Initial position center, but will be updated by JS */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    /* Ensure clicks pass through to card */
    transition: opacity 0.3s var(--ease-smooth), transform 0.1s linear;
    /* Fast transform for cursor follow */
}

/* We don't need the hover rule here because JS will handle showing/hiding on mouseenter/leave */
/* .portfolio__item:hover .portfolio__action { opacity: 1; ... } - REMOVED */

.portfolio__watch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: white;
    /* Always white text on blue bg */
    background: var(--color-primary);
    /* Blue circle */
    border-radius: 50%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy scale */
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio__watch svg {
    display: none;
    /* Hide icon, just text 'WATCH' as requested "bubble bulat biru bertuliskan WATCH" */
}

.portfolio__overlay-content {
    width: 100%;
    pointer-events: none;
    /* Let clicks pass through overlay text too */
}

/* Dimmed State for Filter */
.portfolio__item {
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
    cursor: pointer;
    /* Indicate clickable */
}

.portfolio__item.dimmed {
    opacity: 0.3;
    pointer-events: none;
    transform: scale(0.95);
}