
:root {
    --bg-base: #030305;
    --text-main: #FFFFFF;
    --text-muted: #A0A0AB;
    
    --accent-orange: #FF5E00;
    --accent-red: #EF4444;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    
    --card-bg: rgba(255, 255, 255, 0.02);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   PORTFOLIO EXCLUSIVE STYLES
   ========================================================================== */

/* --- General Section Formatting --- */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 100px 0;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-color);
}

.center-align {
    text-align: center;
    margin-bottom: 60px;
}

.highlight {
    color: var(--accent-color);
}

.inline-link {
    color: var(--accent-color);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.inline-link:hover { 
    opacity: 0.8; 
}

/* ==========================================================================
   1. SPLIT HERO SECTION & GLOW ORB
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 60vh;
}

.hero-content {
    flex: 1.2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-summary {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: inline-block;
}

/* The ambient orange glowing orb */
.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(80px); /* Deep, soft diffusion */
    z-index: 0;
    opacity: 0.5; /* Keeps it subtle */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* The transparent image sitting on top */
.hero-img-transparent {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); /* Adds shadow to the silhouette */
}

.image-wrapper:hover .glow-orb {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1); /* Orb pulses out on hover */
}

/* ==========================================================================
   2. THE STICKY SCROLL JOURNEY
   ========================================================================== */
.journey-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    position: relative;
}

.journey-sticky-left {
    position: sticky;
    top: 30vh; /* Pins it neatly below the navbar */
    flex: 1;
}

.journey-context {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 300px;
}

.journey-scroll-right {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 10vh;
    padding-bottom: 30vh; /* Ensures the last node can hit the center */
}

/* Node Default State */
.journey-node {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    opacity: 0.3;
    transform: scale(0.95) translateX(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Node Pop & Highlight State via GSAP */
.journey-node.is-active {
    opacity: 1;
    transform: scale(1) translateX(0);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(255, 94, 0, 0.1);
}

.node-date {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.node-role {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 8px 0 16px;
}

/* ==========================================================================
   3. DYNAMIC 3-COLUMN GRID & HOVER FX
   ========================================================================== */
.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-column {
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.skill-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px; /* Space between cards in the column */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Creates a sweeping light reflection effect on hover */
.skill-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 0, 0.05), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.skill-group h4, .skill-group p {
    position: relative;
    z-index: 1; /* Keeps text above the hover glare */
}

.skill-group:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-group:hover::before {
    left: 100%; /* Sweeps the gradient across the card */
}

.skill-group h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.skill-group p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   4. RESEARCH & ASSETS SLIDER
   ========================================================================== */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.slider-instructions {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 8px;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding-bottom: 40px;
    scrollbar-width: none; /* Firefox */
}

.slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.slider-card {
    scroll-snap-align: start;
    min-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

a.slider-card:hover {
    background: #1A1A1E;
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.card-status {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slider-card.published .card-status { color: var(--accent-color); }
.slider-card.review .card-status { color: #4A90E2; }
.slider-card.pending .card-status { color: var(--text-muted); }

.card-title {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* ==========================================================================
   5. RESPONSIVE LAYOUT OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section { 
        flex-direction: column-reverse; 
        text-align: center; 
    }
    
    .hero-visual { 
        width: 100%; 
    }
    
    .journey-wrapper { 
        flex-direction: column; 
        gap: 40px; 
    }
    
    .journey-sticky-left { 
        position: relative; 
        top: 0; 
    }
    
    .journey-scroll-right { 
        padding-top: 0; 
        padding-bottom: 10vh; 
    }
    
    .dynamic-grid { 
        grid-template-columns: 1fr; 
    }
    
    .slider-card { 
        min-width: 300px; 
    }
    
    .slider-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 16px; 
    }
}