/* --- CSS Variables & Themes --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

:root {
    /* Palette - Light Mode (Sims Pastel/Mint/Clean) */
    --bg-color: #f0f8ff;
    /* Soft Alice Blue */
    --bg-hero-gradient: linear-gradient(135deg, #e0f7fa 0%, #e1bee7 100%);
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --accent-color: #00cec9;
    /* Minty Teal */
    --accent-hover: #00b894;
    --button-text: #ffffff;
    --border-color: #dfe6e9;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --border-radius: 16px;
    --header-height: 70px;
    --bot-bg: #ffffff;
    --bot-header-bg: #00cec9;

    /* SLIDER THEME (LIGHT DEFAULT) */
    --slider-card-bg: rgba(255, 255, 255, 0.90);
    --slider-card-border: 1px solid rgba(0, 0, 0, 0.05);
    --slider-text-title: #2c3e50;
    --slider-text-desc: #636e72;
    --slider-feat-bg: rgba(0, 0, 0, 0.04);
    --slider-feat-text: #2d3436;
    --slider-img-bg-portrait: #f0f3f6;
    --slider-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    --thumb-bg: rgba(255, 255, 255, 0.8);
    --thumb-text: #2d3436;
    --thumb-border-active: #00cec9;
}

body.dark-mode {
    /* Palette - Dark Mode (Deep Navy, Neon Accents) */
    --bg-color: #1a1a2e;
    --bg-hero-gradient: linear-gradient(135deg, #16213e 0%, #302b63 100%);
    --text-color: #e0e0e0;
    --card-bg: #0f3460;
    --accent-color: #e94560;
    /* Neon Pink/Red */
    --accent-hover: #ff2e63;
    --button-text: #ffffff;
    --border-color: #1f4068;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --bot-bg: #16213e;
    --bot-header-bg: #e94560;

    /* SLIDER THEME (DARK MODE) */
    --slider-card-bg: linear-gradient(135deg, #13151a 0%, #1e272e 100%);
    --slider-card-border: 1px solid rgba(142, 68, 173, 0.3);
    --slider-text-title: #e0e0e0;
    --slider-text-desc: #b2bec3;
    --slider-feat-bg: rgba(255, 255, 255, 0.05);
    --slider-feat-text: #dfe6e9;
    --slider-img-bg-portrait: #111111;
    --slider-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    --thumb-bg: #2d3436;
    --thumb-text: #dfe6e9;
    --thumb-border-active: #e94560;
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* --- Header (Minimalist White) --- */
.main-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    /* Wider padding for minimal look */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    /* Solid White */
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* very subtle border */
    transition: background-color 0.3s;
}

body.dark-mode .main-header {
    background: #1a1a2e;
    /* Dark mode bg matches theme */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    /* reduced size for elegance */
    color: var(--text-color);
    letter-spacing: -0.02em;
    min-width: 120px;
}

/* Center Navigation - Creative & Glowing */
.main-nav {
    flex: 2;
    /* Take up more space */
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    /* Maximum separation */
    align-items: center;
    width: 100%;
    max-width: 800px;
    /* Increased max-width significantly */
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.nav-link {
    font-family: 'Syne', sans-serif;
    /* Creative Font */
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 10px 20px;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.1s ease-out;
    display: inline-block;
}

/* Hover & Active Glow */
.nav-link:hover {
    color: #fd79a8;
    /* Pinkish-Red pop color */
    text-shadow: 0 0 10px rgba(253, 121, 168, 0.6), 0 0 20px rgba(253, 121, 168, 0.4);
    transform: scale(1.1);
}

/* Remove old underline */
.main-nav a::after {
    display: none;
}

.main-nav a:hover::after {
    width: 0;
}

/* Header Right Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 120px;
    justify-content: flex-end;
}

/* Theme Toggle (Subtle) */
#theme-toggle {
    background: none;
    box-shadow: none;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.6;
    padding: 0;
    width: auto;
    height: auto;
}

#theme-toggle:hover {
    opacity: 1;
    transform: rotate(15deg);
}

/* Lang Switcher (Toggle Style) */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.4;
    padding: 0;
    font-size: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 700;
}

.lang-btn:hover {
    opacity: 0.8;
}

.sep {
    color: var(--text-color);
    opacity: 0.2;
    font-size: 0.8rem;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .main-header {
        height: auto;
        padding: 10px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .main-nav {
        order: 3;
        /* Move links to bottom for easy reach or structure */
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .main-nav ul {
        gap: 20px;
        margin: 0 auto;
        padding: 5px 0;
    }

    .header-controls {
        width: 100%;
        justify-content: center;
        order: 2;
        margin-bottom: 5px;
    }
}

/* --- Hero Section (Sims CAS) --- */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: var(--bg-hero-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5%;
    padding-right: 5%;
    overflow: hidden;
    position: relative;
}

/* Hero Left: Avatar Full Body */
.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 80vh;
    position: relative;
    /* Removed negative margin for stability */
}


.sims-control-container {
    position: relative;
    height: 600px;
    /* Fixed height to stabilize layout */
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.plumbob-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: auto;
    /* Enable clicking */
    cursor: pointer;
    /* Show it's clickable */
}

.plumbob {
    width: 90px;
    /* Bigger by default (was 70px) */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(76, 209, 55, 0.6));
    animation: sims-pulse 3s infinite ease-in-out;
    transform-origin: center center;
    transition: transform 0.3s ease, filter 0.5s ease;
}

/* Hover Effect: Grow slightly more */
.plumbob-container:hover .plumbob {
    transform: scale(1.15);
    /* Grows on hover */
}

/* Ruby State (Clicked) */
.plumbob.ruby-state {
    /* hue-rotate to shift green to red/magenta */
    filter: hue-rotate(240deg) drop-shadow(0 0 20px rgba(220, 20, 60, 0.8));
    animation: sims-pulse-ruby 2s infinite ease-in-out;
    /* Faster pulse for 'angry/intense' or just active state */
}

@keyframes sims-pulse-ruby {
    0% {
        transform: translateY(0) scale(1.0);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1.0);
    }
}

.avatar-full-body {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.full-body-img {
    height: 100%;
    width: auto;
    max-height: 500px;
    /* Constrain height */
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.rotation-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 20;
}

.rotate-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotate-btn:hover {
    background: #fff;
    transform: scale(1.1);
}



/* Hero Right: Stats Card */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    /* closer to avatar */
    padding-left: 2rem;
    height: auto;
}

.sims-stats-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 550px;
    /* Increased from 450px for better fit */
    border-radius: 24px;
    padding: 1.5rem;
    /* Slightly reduced padding to give content room */
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-img {
    /* Specific class requested by user */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sims-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.sims-subtitle {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* --- New Sims Skill Bars --- */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 2rem 0;
    /* Add vertical spacing to separate from header and traits */
    width: 100%;
}

.skill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.skill-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    /* Adapted color for theme compatibility */
    min-width: 80px;
}

/* Skill Bar - Sims Style */
.skill-bar {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.skill-track {
    position: relative;
    flex: 1;
    height: 14px;
    background: #444;
    /* Dark background */
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.skill-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--level);
    background: #4cd137;
    /* Sims Bright Green */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(76, 209, 55, 0.6);
}

.skill-knob {
    position: absolute;
    top: 50%;
    /* Center vertically relative to track */
    left: calc(var(--level) - 7px);
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #a3ff95, #4cd137);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.skill-app-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #1f2430;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.skill-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Traits container: 6 cards side-by-side, responsive */
.traits-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 1.5rem;
}

/* Individual Trait Card */
.trait-card {
    width: 120px;
    /* Fixed width all languages */
    height: 110px;
    /* Fixed height */
    padding: 8px 10px;
    border-radius: 18px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    flex: 0 0 auto;
    /* Do not grow/shrink */

    /* Inherit previous style base */
    background: #ffffff;
    border: 3px solid #b2bec3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

/* Specific Moodlet Colors (Sims Style) - adapted for .trait-card */
.trait-card:nth-child(1) {
    border-color: #ffeaa7;
    background: #fffbf0;
}

.trait-card:nth-child(2) {
    border-color: #fab1a0;
    background: #fff0f6;
}

.trait-card:nth-child(3) {
    border-color: #55efc4;
    background: #e0fbf4;
}

.trait-card:nth-child(4) {
    border-color: #74b9ff;
    background: #eaf4ff;
}

.trait-card:nth-child(5) {
    border-color: #a29bfe;
    background: #f0f0fc;
}

.trait-card:nth-child(6) {
    border-color: #ff7675;
    background: #fcece9;
}

.trait-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.trait-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    flex-shrink: 0;
    object-fit: contain;
}

.trait-card .trait-label,
.trait-card [data-i18n] {
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
    word-break: keep-all;
    max-width: 100%;
    max-height: 2.4em;
    /* max ~2 lines */
    overflow: hidden;
    /* containment */
    font-weight: 700;
    color: #444;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .traits-row {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .traits-row {
        justify-content: center;
    }
}

/* Stats Actions (Buttons) */
.stats-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stats-actions .btn-primary,
.stats-actions .btn-secondary {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.stats-actions .btn-primary {
    background: #4cd137;
    color: white;
}

.stats-actions .btn-secondary {
    background: transparent;
    border: 2px solid #ddd;
    color: #555;
}

.stats-actions .btn-primary:hover,
.stats-actions .btn-secondary:hover {
    transform: scale(1.05);
}

/* --- Work Section --- */
.work-section,
.case-studies-section,
.about-section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.work-card:hover {
    transform: translateY(-5px);
}

.card-img-placeholder {
    height: 180px;
    background: #dfe6e9;
    /* Placeholder grey */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636e72;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    min-height: 3.6em;
    /* ensure alignment */
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    background: var(--bg-color);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.btn-secondary {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--button-text);
}

/* --- Case Studies (Accordion style on mobile, list on desktop) --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.case-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.case-title {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.case-role {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
}

.case-desc {
    margin-bottom: 1rem;
}

.case-highlights {
    list-style: disc;
    padding-left: 1.5rem;
}

.case-highlights li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* --- About & Contact --- */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-block {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.email-placeholder {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--button-text);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- ZeynBot Chatbot Widget (Sims Style) --- */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

/* Toggle Button - Pink Bubble */
.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: #fd79a8;
    /* Pink */
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.5);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Chat Window Panel */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 500px;
    background: #2d3436;
    /* Dark background */
    border: 4px solid #fff;
    /* White border Sims style */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Header */
.chatbot-header {
    background: #1e272e;
    /* Slightly darker header */
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.bot-avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #55efc4;
    /* Sims Green border */
    background: #fff;
}

.bot-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bot-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.bot-role {
    font-size: 0.8rem;
    color: #b2bec3;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #2d3436;
    /* Ensure bg match */
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Bubbles */
.message {
    display: flex;
    margin-bottom: 5px;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bot Bubble = Dark Blue */
.message.bot .msg-bubble {
    background: #0984e3;
    /* Sims Interface Blue */
    color: #fff;
    border-top-left-radius: 4px;
}

/* User Bubble = Green */
.message.user .msg-bubble {
    background: #00b894;
    /* Sims Green */
    color: #fff;
    border-top-right-radius: 4px;
}

/* Quick Actions Area (Pills) */
.chatbot-actions {
    padding: 15px;
    background: #1e272e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
}

/* Trait Pill Style */
.action-pill {
    background: #dfe6e9;
    /* Light grey pill */
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    text-align: left;
    flex-shrink: 0;
}

.action-pill:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    color: #0984e3;
    /* Blue text on hover */
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-window {
        width: 90vw;
        right: -10px;
        /* Offset to center partially relative to btn */
        bottom: 70px;
        height: 60vh;
    }
}

/* --- Keyframes --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes sims-pulse {

    0%,
    100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }

    50% {
        transform: scale(1.1) translateY(-10px) rotate(5deg);
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 3rem;
    }

    .hero-left {
        height: 50vh;
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-right {
        width: 100%;
        padding-left: 0;
        justify-content: center;
    }

    .sims-stats-card {
        padding: 1.5rem;
    }

    /* Accordion style for case studies on mobile can be enhanced by JS toggling .expanded class, 
       but for now we just stack them neatly. */
    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}

/* --- METBIC Project Section (New) --- */
.project-section {
    padding: 80px 5% 100px 5%;
    /* Dark gradient blending with hero */
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    /* Navy to Teal, fits Sims vibe */
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.project-inner {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Visual larger */
    gap: 3rem;
    align-items: center;
}

/* Sims Panel Card Style */
.project-inner.sims-panel {
    background: rgba(26, 26, 46, 0.95);
    /* Deep Navy */
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Visual */
.project-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-hero-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

/* Project Info */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
}

.project-cat {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00cec9;
    /* Sims Mint */
    font-weight: 700;
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    font-family: 'Syne', sans-serif;
    /* Consistent with new nav */
}

.project-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Skills */
.project-skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.project-skill-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.project-skill-label {
    font-size: 0.9rem;
    font-weight: 600;
    padding-left: 2px;
}

.project-skill-bar {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #55efc4 0%, #00b894 100%);
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(85, 239, 196, 0.5);
    width: 0;
    /* Animated */
    animation: sims-bar-fill 1.5s ease-out forwards;
}

/* Fill Levels */
.project-skill-fill.level-1 {
    width: 20%;
}

.project-skill-fill.level-2 {
    width: 40%;
}

.project-skill-fill.level-3 {
    width: 60%;
}

.project-skill-fill.level-4 {
    width: 80%;
}

.project-skill-fill.level-5 {
    width: 100%;
}

@keyframes sims-bar-fill {
    from {
        width: 0;
    }
}

/* Highlights */
.project-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-highlights li {
    position: relative;
    padding-left: 1.5rem;
    opacity: 0.9;
    font-size: 1rem;
}

.project-highlights li::before {
    content: '◆';
    /* Diamond shape like Plumbob */
    position: absolute;
    left: 0;
    color: #00cec9;
    font-size: 0.8rem;
    top: 4px;
}

/* Bottom CTA */
.project-bottom {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-sims {
    background: linear-gradient(45deg, #fd79a8, #e17055);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(225, 112, 85, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-sims:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(225, 112, 85, 0.6);
}

.project-meta {
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
}

/* Gallery */
.project-gallery {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-gallery-item {
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 200px;
    /* Fixed height for uniformity */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-gallery-item:hover {
    transform: translateY(-5px);
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 960px) {
    .project-inner {
        grid-template-columns: 1fr;
    }

    .project-visual {
        order: 1;
    }

    .project-info {
        order: 2;
    }

    .project-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .project-section {
        padding: 60px 20px;
    }

    .project-inner.sims-panel {
        padding: 2rem 1.5rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery-item {
        height: 250px;
    }
}

/* --- Restructured Projects Section --- */

/* 1. Featured Section */
.featured-project-section {
    margin-bottom: 5rem;
    /* Separation from other projects */
    position: relative;
    z-index: 2;
}

.reduced-margin {
    margin-bottom: 0.5rem;
    /* Tighter with subtitle */
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    color: var(--text-color);
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

/* Featured Panel (Darker & Glow) */
.featured-glow {
    filter: drop-shadow(0 0 20px rgba(142, 68, 173, 0.2));
    /* Purple soft glow */
    transition: filter 0.4s ease;
}

.featured-glow:hover {
    filter: drop-shadow(0 0 30px rgba(142, 68, 173, 0.4));
}

/* Featured Panel Background (Matches Dark Theme deeply) */
.sims-panel.featured-panel-bg {
    background: linear-gradient(135deg, #13151a 0%, #1e272e 100%);
    border: 1px solid rgba(142, 68, 173, 0.3);
    /* Purple tint border */
    max-width: 900px;
    /* Make it wider/prominent */
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: stretch;
    /* Stretch columns */
    overflow: hidden;
    position: relative;
    /* Reset padding for inner layout */
    padding: 0;
    margin: 0 auto;
    /* Center the card */
}

/* Ensure Inner Project Layout works in this new wrapper */
.project-inner {
    border-radius: 24px;
    /* Ensure radius applies */
}

/* Visual Column */
.project-visual {
    flex: 6;
    /* 60% width */
    position: relative;
    overflow: hidden;
    min-height: 400px;
    /* Add centering */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    /* Dark bg to fill gaps */
}

.project-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover usually best for heroes, but can switch to contain if requested */
    object-position: center;
    /* Crucial for "ortala" */
    transition: transform 0.6s ease;
}

.featured-panel-bg:hover .project-hero-img {
    transform: scale(1.03);
}

/* Info Column */
.project-info {
    flex: 4;
    /* 40% width */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    /* Divider */
}

/* Neon Text Highlight for METBIC */
.neon-text-highlight {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
    color: #fff;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(142, 68, 173, 0.5),
        0 0 20px rgba(142, 68, 173, 0.3);
    margin-bottom: 0.5rem;
}

.featured-desc {
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    font-weight: 300;
}


/* Glowing Button */
.glowing-btn {
    background: var(--accent-color);
    /* Green or Purple depending on theme vars, use accent */
    color: white;
    box-shadow: 0 0 15px rgba(76, 209, 55, 0.4);
    transition: all 0.3s ease;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    margin-top: 1rem;
}

.glowing-btn:hover {
    box-shadow: 0 0 25px rgba(76, 209, 55, 0.7);
    transform: translateY(-2px);
}

/* 2. Other Projects Section */
.other-projects-section {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
}

.small-title {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Work Grid - Enforce 3 columns */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 columns */
    gap: 2rem;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-panel-bg {
        flex-direction: column;
    }

    .project-visual {
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Other Project Cards */
.work-card {
    background: #232a31;
    /* Lighter than #1e272e featured bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.work-card:hover {
    transform: scale(1.02) translateY(-5px);
    /* Grow slightly */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #2a3239;
    /* Lighten on hover */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Card Visuals */
.card-img-placeholder.small-h {
    height: 140px;
    /* Reduce image height */
    background: #2d3436;
}

.card-content.dense {
    padding: 1.25rem;
}

.card-desc.oneline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* --- Project Slider Styles --- */

/* =========================================
   STRICT SLIDER REFACTOR (7/5 Grid & UX)
   ========================================= */

/* 1. Slider Container */
.project-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0;
    /* Outer spacing */
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 10px;
    /* Slight gutter for arrows if needed */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* 2. Slide Component Structure */
/* The main card wrapper */
.slide-inner {
    display: grid;
    grid-template-columns: 7fr 5fr;
    /* 7/5 Split */
    gap: 0;
    /* No gap between panels, handled by border/padding inner */
    width: 100%;
    max-width: 1000px;
    /* Constrain inner content */
    background: var(--slider-card-bg);
    border: var(--slider-card-border);
    border-radius: 20px;
    overflow: hidden;
    min-height: 460px;
    /* Fixed Height */
    box-shadow: var(--slider-shadow);
    position: relative;
    backdrop-filter: blur(10px);
    /* Enhance glass effect for Light mode */
}

/* 3. Left Panel: Image Wrapper */
.slide-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 460px;
    /* Ensure match */
    background: #000;
    /* Dark background for fill */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-position: center;
    transition: transform 0.6s ease;
}

/* Hover Effect */
.slide-inner:hover .slide-image {
    transform: scale(1.03);
}

/* Aspect Ratio Handling Classes */
.slide-image.img-landscape {
    object-fit: cover;
}

.slide-image.img-portrait {
    object-fit: contain;
    padding: 20px;
    /* Inner breathing room for portraits */
    background: var(--slider-img-bg-portrait);
    /* Slightly lighter for portrait background */
}

/* 4. Right Panel: Content Wrapper */
.slide-content-wrapper {
    padding: 32px;
    /* Consistent Padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    /* Spacing */
    height: 100%;
}

/* Typography & Elements */
.slide-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--slider-text-title);
    /* Removed fixed text-shadow to allow clean light mode */
    margin: 0;
}

.slide-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    opacity: 1;
}

.slide-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--slider-text-desc);
    /* Lighter text */
    font-weight: 300;
}

.slide-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-color);
}

/* Buttons */
.slide-btn {
    align-self: flex-start;
    background: linear-gradient(45deg, #fd79a8, #e17055);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 15px rgba(225, 112, 85, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(225, 112, 85, 0.5);
}

/* 5. Responsive Rules */

/* Tablet (< 1024px) */
@media (max-width: 1024px) {
    .slide-inner {
        grid-template-columns: 6fr 6fr;
        /* 50/50 Split */
    }

    .slide-title {
        font-size: 2.2rem;
    }
}

/* Mobile (< 768px) - Stack */
@media (max-width: 768px) {
    .slide-inner {
        grid-template-columns: 1fr;
        /* Stack */
        min-height: auto;
        height: auto;
    }

    .slide-image-wrapper {
        height: 300px;
        /* Fixed height for mobile visual */
        min-height: 300px;
        order: 1;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .slide-content-wrapper {
        order: 2;
        padding: 24px;
        height: auto;
    }

    .slide-title {
        font-size: 2rem;
    }
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

/* Hide arrows on mobile if they interfere, or keep them */
@media (max-width: 768px) {
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* Bottom Thumbnails */
.slider-thumbs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
    flex-wrap: wrap;
}

.thumb-card {
    width: 120px;
    /* Slightly wider */
    height: 90px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 3px solid transparent;
    /* Prepare for border */
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumb-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.thumb-card .thumb-label {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    padding: 4px 0;
    font-weight: 600;
}

.thumb-card:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.thumb-card.active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: scale(1.05);
    /* Slightly bigger */
}