:root {
    --bg-color: #f7f7f7;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-light: #777777;
    --border-color: rgba(255, 255, 255, 0.1);
    --neon-green: #2ecc71; /* The vibrant green */
    --neon-green-dim: rgba(46, 204, 113, 0.15);
    --font-main: 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.split-layout {
    display: flex; height: 100vh; width: 100vw;
}

/* Left Column - Dark Mode Background */
.left-column {
    width: 40%; height: 100vh;
    overflow-y: auto; overflow-x: hidden;
    padding: 60px 80px 80px 60px;
    background-color: #080a08;
    background-image: radial-gradient(circle at 50% 0%, rgba(46, 204, 113, 0.05), transparent 60%);
    color: var(--text-primary);
    border-right: 1px solid rgba(0,0,0,0.8);
}
.left-column::-webkit-scrollbar { width: 0px; background: transparent; }
.right-column::-webkit-scrollbar { width: 6px; background: transparent; }
.right-column::-webkit-scrollbar-thumb { background-color: var(--neon-green); border-radius: 10px; }
.right-column::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }

/* Advanced CSS Fake 3D Glass Card */
.glass-card {
    position: relative;
    /* Deep translucent background */
    background: linear-gradient(135deg, rgba(20, 35, 20, 0.4), rgba(5, 10, 5, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 50px;
    
    /* 3D Bevel using complex box-shadows */
    border: 1px solid rgba(46, 204, 113, 0.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8), /* Physical drop shadow */
        0 0 60px rgba(46, 204, 113, 0.1), /* Ambient volumetric green glow */
        inset 1.5px 1.5px 2px rgba(46, 204, 113, 0.7), /* Top-left highlight rim */
        inset 3px 3px 15px rgba(46, 204, 113, 0.2), /* Soft inner top glow */
        inset -2px -2px 6px rgba(0, 0, 0, 0.6); /* Bottom-right dark shadow */
}

/* Volumetric Light Bleed behind the card */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(46,204,113,0.4) 0%, transparent 50%);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
    transform: translate(-5px, -5px);
}

/* Floating 3D Icons */
.floating-tile {
    position: absolute;
    background: linear-gradient(135deg, rgba(25, 45, 25, 0.8), rgba(5, 10, 5, 0.95));
    backdrop-filter: blur(12px);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    border: 1px solid rgba(46,204,113,0.05);
    box-shadow: 
        0 15px 25px rgba(0,0,0,0.6),
        0 0 20px rgba(46,204,113,0.1),
        inset 1.5px 1.5px 2px rgba(46,204,113,0.9),
        inset -1px -1px 4px rgba(0,0,0,0.9);
    color: var(--neon-green);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}
.tile-1 { top: -20px; right: -20px; width: 56px; height: 56px; animation-delay: 0s; }
.tile-2 { top: 35%; left: -28px; width: 64px; height: 64px; animation-delay: -2s; border-radius: 16px; }
.tile-3 { top: -30px; left: 20%; width: 40px; height: 40px; animation-delay: -4s; border-radius: 10px; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* Rest of left column elements */
.profile-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; position: relative; z-index: 5;}
.avatar { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; filter: grayscale(100%) contrast(1.2); border: 1px solid rgba(255, 255, 255, 0.1); }
h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; position: relative; z-index: 5; margin-bottom: 4px; line-height: 1;}
.title-role { font-size: 1.1rem; line-height: 1.5; font-weight: 500; color: var(--neon-green); position: relative; z-index: 5;}
.bio-intro { font-size: 1.15rem; line-height: 1.5; font-weight: 400; margin-bottom: 32px; color: var(--text-secondary); position: relative; z-index: 5;}
.bio-intro strong { color: #ffffff; font-weight: 500; }
.status-badge { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 32px; position: relative; z-index: 5;}
.dot-green { width: 6px; height: 6px; background-color: var(--neon-green); border-radius: 50%; box-shadow: 0 0 10px rgba(46, 204, 113, 0.8); }
.btn-primary { display: inline-block; background-color: #ffffff; color: #000000; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 12px 28px; border-radius: 100px; transition: all 0.3s ease; box-shadow: 0 0 20px rgba(255,255,255,0.1); position: relative; z-index: 5;}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 0 30px rgba(255,255,255,0.3); }

h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 32px; color: var(--neon-green); position: relative; z-index: 5; text-transform: uppercase; letter-spacing: 0.12em; text-shadow: 0 0 15px rgba(46, 204, 113, 0.5); }
.body-text { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 30px; position: relative; z-index: 5;}
.stats-list { list-style: none; font-size: 0.9rem; color: var(--text-secondary); position: relative; z-index: 5;}
.stats-list li { margin-bottom: 12px; display: flex; gap: 8px; }
.stats-list li strong { color: #ffffff; min-width: 40px; }
.numbered-list { list-style-position: inside; counter-reset: my-counter; list-style: none; position: relative; z-index: 5;}
.numbered-list li { margin-bottom: 24px; counter-increment: my-counter; position: relative; padding-left: 24px; }
.numbered-list li::before { content: counter(my-counter) "."; position: absolute; left: 0; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
.numbered-list li strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: #ffffff; }
.numbered-list li p { font-size: 0.9rem; color: var(--text-secondary); }
.timeline-row { display: flex; gap: 24px; margin-bottom: 32px; position: relative; z-index: 5;}
.time-col { font-size: 0.85rem; font-weight: 500; min-width: 90px; color: var(--neon-green); }
.details-col strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: #ffffff; }
.details-col p { font-size: 0.9rem; color: var(--text-secondary); }
.footer { margin-top: 40px; font-size: 0.85rem; color: var(--text-secondary); text-align: center; }

/* Right Column (Dark Mode) */
.right-column { width: 60%; height: 100vh; overflow-y: auto; padding: 40px; background-color: #0a0a0a; color: #ffffff; }
.project-grid { display: flex; gap: 12px; align-items: flex-start; }
.grid-col { display: flex; flex-direction: column; gap: 12px; flex: 1; }
/* Stagger the right column just like the Framer reference */
.grid-col-right { margin-top: 80px; }
.project-item { display: flex; flex-direction: column; gap: 6px; cursor: pointer; background: transparent; }
.project-image-wrapper { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.project-image-wrapper img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease; }
.project-item:hover .project-image-wrapper img { transform: scale(1.05); }
.project-details { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    padding: 24px 16px 16px 16px; 
    display: flex; justify-content: space-between; align-items: flex-end; 
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    opacity: 0; transition: opacity 0.4s ease;
}
.project-item:hover .project-details { opacity: 1; }
.project-title { font-size: 1rem; font-weight: 700; color: #ffffff; }
.project-category { font-size: 0.8rem; color: #dddddd; font-weight: 500; text-align: right; }

/* Cinematic color correction for your image */
.my-profile-pic { filter: grayscale(80%) contrast(1.15) brightness(0.9) sepia(10%); }
.project-item:hover .my-profile-pic { filter: grayscale(0%) contrast(1.05) brightness(1.05) sepia(0%); }

/* Subtle harmony filter for standard portfolio images */
.portfolio-img { filter: grayscale(20%) contrast(1.05) brightness(0.95); }
.project-item:hover .portfolio-img { filter: grayscale(0%) contrast(1.05) brightness(1.05); }

.expertise-section-title {
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 24px; 
    color: var(--neon-green); 
    text-transform: uppercase; 
    letter-spacing: 0.12em; 
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
    position: relative;
    z-index: 5;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.expertise-card {
    background: linear-gradient(135deg, rgba(20, 35, 20, 0.4), rgba(5, 10, 5, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(46, 204, 113, 0.05);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(46, 204, 113, 0.05),
        inset 1px 1px 2px rgba(46, 204, 113, 0.4),
        inset -1px -1px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 204, 113, 0.2);
}

.expertise-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.expertise-card ul {
    list-style: none;
    padding-left: 0;
}

.expertise-card ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}

.expertise-card ul li::before {
    content: "▶";
    color: var(--neon-green);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8em;
    padding-top: 3px;
}

.stack-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.stack-section-title {
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 30px; 
    color: #ffffff; 
    letter-spacing: -0.02em;
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stack-icon {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.stack-icon svg {
    width: 100%;
    height: 100%;
}

.stack-info h4 {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stack-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

@media (max-width: 900px) {
    body { overflow: auto; }
    .split-layout { flex-direction: column; height: auto; }
    .left-column { width: 100%; height: auto; overflow-y: visible; padding: 40px 20px; border-right: none; }
    .right-column { width: 100%; height: auto; overflow-y: visible; padding: 20px; }
    .project-grid { flex-direction: column; }
    .feature-large, .feature-tall, .feature-wide { grid-column: span 1; grid-row: span 1; }
}

/* LLM Tags */
.llm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.llm-list li {
    padding: 8px 16px;
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #e0e0e0;
    background: rgba(113, 255, 64, 0.05);
    white-space: nowrap;
}


/* Carousel Styles */
.carousel-container {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none; /* Firefox */
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.carousel-wrapper {
    position: relative;
    width: 100%;
}
.carousel-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0.9;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.carousel-container.active {
    scroll-snap-type: none;
    cursor: grabbing;
}
.carousel-container { cursor: grab; }

/* IG Phone Slider Styles */
.ig-slider-container {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #6A90B2; /* Matches the blue bg from the reference */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}
.ig-slider-track {
    display: flex;
    gap: 20px;
    height: 55%;
    position: absolute;
    left: 0;
    align-items: center;
    animation: igSlide 15s linear infinite;
}
.ig-slider-track:hover {
    animation-play-state: paused;
}
.ig-slider-track img {
    height: 100%;
    width: auto;
    object-fit: cover;
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
    border-radius: 4px;
    flex-shrink: 0;
}
.ig-phone-overlay {
    position: absolute;
    height: 90%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ig-phone-overlay img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
@keyframes igSlide {
    0% { transform: translateX(0); }
    /* Slide left by exactly half the track width */
    100% { transform: translateX(calc(-50% - 10px)); }
}
