/* ========================================
   THE TEAM PAGE - INTRICATE STYLING
   The most special page on the site
   ======================================== */

/* Page-wide Background System */
.team-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;

    /* Radial mesh with DNA helix pattern */
    background:
        /* Central spotlight */
        radial-gradient(ellipse at 50% 20%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        /* Floating orbs */
        radial-gradient(circle at 15% 40%, rgba(199, 21, 133, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 85% 60%, rgba(138, 43, 226, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 30% 80%, rgba(220, 20, 60, 0.06) 0%, transparent 15%),
        radial-gradient(circle at 70% 30%, rgba(199, 21, 133, 0.06) 0%, transparent 15%);
    animation: teamBackgroundFloat 50s ease-in-out infinite;
}

@keyframes teamBackgroundFloat {

    0%,
    100% {
        background-position: 50% 20%, 15% 40%, 85% 60%, 30% 80%, 70% 30%;
    }

    50% {
        background-position: 50% 25%, 20% 45%, 80% 55%, 35% 75%, 65% 35%;
    }
}

/* Geometric overlay */
.team-page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(220, 20, 60, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(220, 20, 60, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

/* Vignette */
.team-page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow:
        inset 0 0 300px rgba(0, 0, 0, 0.4),
        inset 0 0 150px rgba(220, 20, 60, 0.05);
}

/* ========================================
   HERO SECTION
   ======================================== */
/* ========================================
   HERO SECTION - DAZZLE EFFECT
   ======================================== */
.team-hero {
    padding: 12rem 0 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
}

.dazzle-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.team-hero .hero-content {
    margin: 0 auto;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    color: var(--garnet-main);
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the lines around the text */
    gap: 2rem;
    width: 100%;
    /* Ensure it spans the container for centering */
    opacity: 0;
    animation: labelDazzleIn 1s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.hero-label::before,
.hero-label::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--garnet-main), transparent);
}

@keyframes labelDazzleIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        letter-spacing: 1.5rem;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.5rem;
    }
}

.dazzle-heading {
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d-row {
    display: block;
    background: linear-gradient(90deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.7) 40%,
            var(--garnet-main) 50%,
            rgba(255, 255, 255, 0.7) 60%,
            #ffffff 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    animation:
        rowReveal 1.2s cubic-bezier(0.2, 0, 0.2, 1) forwards,
        shimmerSweep 6s linear infinite,
        textDazzlePulse 3s ease-in-out infinite;
}

.d-row:nth-child(1) {
    animation-delay: 0.2s, 0s, 0s;
}

.d-row:nth-child(2) {
    animation-delay: 0.4s, 1s, 0.5s;
}

.d-row:nth-child(3) {
    animation-delay: 0.6s, 2s, 1s;
}

@keyframes rowReveal {
    0% {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes shimmerSweep {
    0% {
        background-position: -300% center;
    }

    100% {
        background-position: 300% center;
    }
}

@keyframes textDazzlePulse {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(220, 20, 60, 0.2);
    }

    50% {
        text-shadow: 0 0 60px rgba(220, 20, 60, 0.6), 0 0 20px rgba(220, 20, 60, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.2s;
}

/* ========================================
   PROFILE SHOWCASE
   ======================================== */
.profile-showcase {
    padding: 6rem 0;
    position: relative;
}

.profile-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 170deg,
            rgba(220, 20, 60, 0.1) 180deg,
            transparent 190deg,
            transparent 360deg);
    animation: profileCardRotate 10s linear infinite;
}

@keyframes profileCardRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.3) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.profile-image {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(138, 43, 226, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(220, 20, 60, 0.5);
    z-index: 2;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

/* Animated Rings */
.profile-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 50%;
    animation: ringExpand 6s ease-out infinite;
}

.ring-1 {
    width: 260px;
    height: 260px;
    animation-delay: 0s;
}

.ring-2 {
    width: 280px;
    height: 280px;
    animation-delay: 2s;
}

.ring-3 {
    width: 300px;
    height: 300px;
    animation-delay: 4s;
}

@keyframes ringExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* Profile Info */
.profile-info {
    text-align: center;
    position: relative;
    z-index: 2;
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(220, 20, 60, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-title {
    font-size: 1.3rem;
    color: var(--garnet-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(220, 20, 60, 0.2);
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

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

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--garnet-main);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* LinkedIn Button */
.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--garnet-main), hsl(320, 80%, 50%));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.linkedin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

/* Philosophy Panel */
.philosophy-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.philosophy-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.philosophy-panel h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--garnet-main);
}

.philosophy-content {
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.philosophy-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #fff;
    padding: 0 2rem;
    margin: 0 0 3rem 0;
    position: relative;
    border-left: none;
    /* Removed the left border for centered look */
}

.philosophy-content blockquote::before,
.philosophy-content blockquote::after {
    content: '"';
    font-size: 4rem;
    color: var(--garnet-main);
    opacity: 0.3;
    position: absolute;
}

.philosophy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* ========================================
   EXPERTISE CONSTELLATION
   ======================================== */
/* Expertise Constellation Centralized */
.expertise-constellation {
    padding: 8rem 0;
    position: relative;
    text-align: center;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 4rem auto 0;
}

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

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

.skill-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity, border-color, box-shadow;
}

.skill-node:hover {
    transform: translateY(-10px);
    border-color: var(--garnet-main);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.2);
}

.skill-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-node:hover::before {
    opacity: 1;
}

.node-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.5));
}

.skill-node h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--garnet-main);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, rgba(220, 20, 60, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   SOLO ADVANTAGE SECTION
   ======================================== */
/* Solo Advantage Centered */
.solo-advantage {
    padding: 10rem 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.advantage-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.advantage-content {
    text-align: center;
}

.advantage-intro {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.advantage-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.advantage-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--garnet-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    opacity: 0.3;
}

.advantage-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.advantage-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Brain Visualization */
.advantage-visual {
    position: relative;
    height: 500px;
}

.brain-visualization {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-core {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.3) 0%, rgba(138, 43, 226, 0.2) 100%);
    border-radius: 50%;
    position: relative;
    animation: brainPulse 3s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(220, 20, 60, 0.5);
}

@keyframes brainPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.neuron {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 20px;
    height: 20px;
    background: var(--garnet-main);
    border-radius: 50%;
    animation: neuronPulse 2s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
}

@keyframes neuronPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* ========================================
   JOURNEY TIMELINE
   ======================================== */
.journey-timeline {
    padding: 8rem 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-left: 2rem;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--garnet-main) 10%,
            var(--garnet-main) 90%,
            transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: absolute;
    left: -4rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--garnet-main);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    }

    50% {
        box-shadow: 0 0 40px rgba(220, 20, 60, 1);
    }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 10px;
    padding: 2rem;
}

.timeline-content h4 {
    font-size: 1.5rem;
    color: var(--garnet-main);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ========================================
   TEAM CTA SECTION
   ======================================== */
/* Footer Fixes */
.footer-logo img {
    width: 120px;
    /* Adjusted to a more reasonable but still premium size */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.5));
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-grid {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Base Performance */
.reveal,
.d-row,
.hero-label,
.profile-card,
.skill-node,
.advantage-card,
.timeline-item {
    will-change: transform, opacity;
}

.team-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    animation: ctaPulse 10s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.team-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.team-cta p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.cta-button.primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--garnet-main), hsl(320, 80%, 50%));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.5);
}

.cta-button.secondary {
    padding: 1.2rem 2.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid var(--garnet);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button.secondary:hover {
    background: var(--garnet);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {

    .profile-grid,
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .team-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 8rem 0 4rem;
    }

    .team-hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

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

    .profile-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .advantage-visual {
        height: 300px;
    }

    .brain-core {
        width: 150px;
        height: 150px;
    }

    .timeline {
        padding-left: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .team-cta h2 {
        font-size: 2.5rem;
    }
}

/* Performance Optimizations */
.team-page-background,
.profile-glow,
.brain-core {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ========================================
   ARCHITECT RIBBON - ULTRA-SLIM DATA STRIP
   ======================================== */
.architect-ribbon {
    background: #020202;
    padding: 2.2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(220, 20, 60, 0.15);
}

.ribbon-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ribbon-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(220, 20, 60, 0.2) 20%,
            var(--garnet-main) 50%,
            rgba(220, 20, 60, 0.2) 80%,
            transparent 100%);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
}

/* Scanning light effect */
.ribbon-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 200px;
    height: 1px;
    background: #fff;
    box-shadow: 0 0 20px #fff, 0 0 40px var(--garnet-main);
    animation: ribbonScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ribbonScan {
    0% {
        left: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

.ribbon-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.ribbon-branding {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.ribbon-logo {
    width: 26px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.3));
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.architect-ribbon:hover .ribbon-logo {
    transform: rotate(90deg);
}

.ribbon-title {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.15rem;
    color: #fff;
    opacity: 0.9;
}

.ribbon-title strong {
    font-weight: 900;
    color: var(--garnet-main);
}

.ribbon-meta {
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
}

.ribbon-nav {
    display: flex;
    gap: 4rem;
    flex-grow: 1;
    justify-content: center;
}

.nav-segment {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.segment-label {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--garnet-main);
    letter-spacing: 0.1rem;
    opacity: 0.7;
    font-weight: 700;
}

.nav-segment a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-segment a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--garnet-main);
    transition: width 0.3s ease;
}

.nav-segment a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.nav-segment a:hover::after {
    width: 100%;
}

.ribbon-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.status-code {
    font-family: monospace;
    font-size: 0.7rem;
    color: #00ff88;
    letter-spacing: 0.1rem;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.status-pulse {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse-mini 2s infinite;
}

@keyframes pulse-mini {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.ribbon-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ribbon-bottom .legal,
.ribbon-bottom .tagline {
    font-size: 0.7rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.12rem;
}

@media (max-width: 1200px) {
    .ribbon-nav {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .ribbon-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .ribbon-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-segment {
        justify-content: center;
    }

    .ribbon-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========================================
   ARCHITECT QUANTUM CORE - CSS-ONLY 3D LOGO
   ======================================== */
.arch-logo-v2 {
    width: 36px;
    height: 36px;
    position: relative;
    perspective: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: none;
    margin-right: 1rem;
}

.logo-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: logo-master-spin 15s linear infinite;
}

.core-nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--garnet-main);
    transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg);
    box-shadow:
        0 0 15px var(--garnet-main),
        inset 0 0 5px rgba(255, 255, 255, 0.8);
    animation: nucleus-pulse 3s ease-in-out infinite;
}

.grid-shell {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.shell-plane {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 2px;
}

.shell-plane:nth-child(1) {
    transform: rotateY(0deg);
}

.shell-plane:nth-child(2) {
    transform: rotateY(60deg);
}

.shell-plane:nth-child(3) {
    transform: rotateY(120deg);
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
}

.orbit-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff;
    animation: orbit-dot 4s linear infinite;
}

@keyframes logo-master-spin {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes nucleus-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg) scale(1.3);
        opacity: 1;
        filter: brightness(1.5);
    }
}

@keyframes orbit-dot {
    from {
        transform: translateX(-50%) rotate(0deg) translateY(-22px);
    }

    to {
        transform: translateX(-50%) rotate(360deg) translateY(-22px);
    }
}

/* Adjustments for the slim footer */
.ribbon-branding .arch-logo-v2 {
    width: 28px;
    height: 28px;
    transform: scale(0.8);
    margin-right: 0.8rem;
}

/* Added Timeline Details */
.timeline-year {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--garnet-main);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.timeline-role {
    display: block;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ensure centering on mobile for other elements if needed */
@media (max-width: 768px) {
    .timeline {
        padding-left: 2.5rem;
        /* Slight adjustment */
    }

    .profile-showcase {
        min-width: 100%;
        width: 100%;
        padding: 1rem;
    }

    .mastery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Enhanced Mobile Adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-node {
        width: auto;
        max-width: 100%;
        margin-left: 0;
        padding-left: 2rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .timeline-content {
        width: 100%;
        min-width: 0;
    }

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

    .grid-overlay {
        display: none;
        /* Often causes overflow issues on mobile */
    }
}
/* ========================================
   EDUCATION CREDENTIALS - HOLOGRAPHIC
   ======================================== */

.education-section {
    padding: 6rem 0;
    position: relative;
    z-index: 5;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.holo-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.7s;
    pointer-events: none;
}

.holo-card:hover::before {
    left: 150%;
}

.holo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(220, 20, 60, 0.2),
                inset 0 0 20px rgba(220, 20, 60, 0.05);
    border-color: rgba(220, 20, 60, 0.3);
}

.holo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.uni-logo-placeholder {
    font-size: 2.5rem;
    opacity: 0.8;
}

.degree-meta {
    text-align: right;
}

.degree-year {
    display: block;
    color: var(--garnet-main);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.degree-gpa {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.holo-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.holo-card h4 {
    font-size: 1.2rem;
    color: var(--garnet-main);
    font-weight: 500;
    margin-bottom: 2rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.holo-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.holo-card:hover .holo-tag {
    background: rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.3);
    color: #fff;
}

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

/* ========================================
   ORIGIN STORY - TIMELINE
   ======================================== */
.origin-story {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(220, 20, 60, 0.5), 
        var(--garnet-main), 
        rgba(220, 20, 60, 0.5), 
        transparent
    );
    box-shadow: 0 0 15px var(--garnet-main);
}

.timeline-node {
    position: relative;
    margin-bottom: 6rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.node-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--obsidian-dark);
    border: 2px solid var(--garnet-main);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--garnet-main);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-node:hover .node-marker {
    background: var(--garnet-main);
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 30px var(--garnet-main);
}

.node-content {
    width: 45%;
    padding: 2rem;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
}

.timeline-node:nth-child(odd) .node-content {
    margin-right: auto; /* Left side */
    text-align: right;
    border-right: 2px solid var(--garnet-main);
}

.timeline-node:nth-child(even) .node-content {
    margin-left: auto; /* Right side */
    text-align: left;
    border-left: 2px solid var(--garnet-main);
}

.timeline-node:hover .node-content {
    background: rgba(40, 40, 50, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(220, 20, 60, 0.3);
}

.node-year {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -1.5rem;
    line-height: 1;
}

.timeline-node:nth-child(odd) .node-year {
    right: 2rem;
}

.timeline-node:nth-child(even) .node-year {
    left: 2rem;
}

.node-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--garnet-main);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.node-desc {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.node-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.timeline-node:nth-child(even) .node-tags {
    justify-content: flex-start;
}

.story-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 20px;
    color: var(--garnet-main);
    font-family: 'Inter', monospace;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-node {
        justify-content: flex-start;
        padding-left: 60px;
    }
    
    .node-marker {
        left: 30px;
    }
    
    .node-content {
        width: 100%;
        text-align: left !important;
        border-right: none !important;
        border-left: 2px solid var(--garnet-main) !important;
    }

    .node-year {
        right: auto !important;
        left: 2rem !important;
    }

    .node-tags {
        justify-content: flex-start !important;
    }
}
