:root {
    --primary-color: #0636AF;
    --secondary-color: #6c757d;

    /* Light Theme */
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --toggle-bg-active: #eaf2ff;
    --toggle-text-active: #0052cc;
    --testimonial-gradient: linear-gradient(145deg, #f9f9f9, #e6e6e6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(31, 38, 135, 0.37);
    --experience-card-bg: #f0f7ff;

    --font-family: 'Arial', sans-serif;
}

body.dark-theme {
    --primary-color: #92B1FE;
    --secondary-color: #adb5bd;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --toggle-bg-active: #003366;
    --toggle-text-active: #e0e0e0;
    --testimonial-gradient: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    --glass-bg: rgba(40, 40, 40, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.37);
    --experience-card-bg: #1c2a3a;
}

/* Reset and Base Responsive Adjustments */
* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s ease-in-out;
}

header.scrolled {
    box-shadow: 0 2px 4px var(--shadow-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease, transform 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
    /* Retain hover text color change */
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0%;
    /* Line starts invisible */
    height: 3px;
    bottom: 0;
    left: 50%;
    /* Line starts from the center */
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
    border-radius: 2px;
}

/* On hover, expand the line across the full width */
nav ul li a:hover:after {
    width: 100%;
    left: 0;
}

/* Make the active link text the primary color */
nav ul li a.active {
    color: var(--primary-color);
    font-weight: 700;
    transform: translateY(-1px);
}

/* For the active link, keep the line permanently expanded */
nav ul li a.active:after {
    width: 100%;
    left: 0;
}

.theme-switcher img {
    cursor: pointer;
    width: 30px;
    height: 30px;
    transition: transform 0.2s;
}

/* --- 1. Add Styles for the Hamburger Button --- */
.hamburger-menu {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
    /* Keep it above the mobile menu overlay */
    order: 4;
    /* Place it after the theme switcher */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 9px;
    opacity: 1;
}

.hamburger-menu span:nth-child(3) {
    top: 18px;
}

/* --- 2. Animate Hamburger to an 'X' when active --- */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- 3. Prevent background scroll when menu is open --- */
body.menu-open {
    overflow: hidden;
}

main {
    padding-top: 80px;
}

section {
    padding: 4rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    scroll-margin-top: 100px;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#intro {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.intro-text {
    max-width: 50%;
}

.greeting-text {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.greeting-text .line1 {
    display: block;
    font-weight: 400;
}

.greeting-text .line2 {
    display: block;
    font-weight: 700;
}

.intro-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.intro-text .description {
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--secondary-color);
    max-width: 50ch;
}

.intro-image img {
    width: 500px;
    height: auto;
    border-radius: 20px;
}

#experience {
    transition: background-color 0.3s;
}

#experience h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.experience-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--experience-card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: background-color 0.3s, box-shadow 0.3s;
    height: 600px;
}

.company-logos {
    flex: 1;
}

/* ... (company-logos list and items follow below) ... */

.experience-details {
    flex: 3;
    overflow-y: hidden;
    padding-left: 2rem;
}

.details-content {
    display: none;
}

.details-content.active {
    display: block;
}

.role-toggle {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
    background-color: transparent;
    border: none;
    justify-content: flex-start;
}

.role-toggle:has(.toggle-btn:nth-child(2)):not(:has(.toggle-btn:nth-child(3))) {
    flex: 1;
}

.role-toggle:has(.toggle-btn:nth-child(2)):not(:has(.toggle-btn:nth-child(3))) .toggle-btn {
    flex: 1;
    min-width: 0;
}

.role-toggle:not(:has(.toggle-btn:nth-child(2))) .toggle-btn {
    width: 48.5%;
    min-width: 0;
}

.toggle-btn {
    width: auto;
    flex-grow: 0;
    flex-shrink: 0;
    min-width: 250px;

    background: transparent;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-weight: 600;
    transition: all 0.3s ease;

    /* FIX 2: Ensure no border in base state */
    border: none;
}


.company-logos ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.company-logos li {
    background: transparent;
    border-radius: 14px;
    min-width: 180px;
    padding: 0.7rem 2rem 0.7rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    border: none;
    transition: box-shadow 0.2s, background 0.2s, border 0.2s, transform 0.2s;
}

.company-logos li img {
    max-width: 120px;
    min-width: 70px;
    max-height: 70px;
    height: auto;
    margin-right: 0rem;
    display: block;
}

.company-logos li.active {
    box-shadow: 0 4px 16px rgba(0, 46, 125, 0.16);
    background: var(--card-bg);
    transform: translateY(-2px) scale(1.06);
    padding: 1.5rem 2rem;
    width: 90%;
}

.company-logos li[data-company="ex-founder"] {
    font-size: 1.2rem;
    font-weight: 700;
}

.company-logos li.active[data-company="ex-founder"] {
    font-weight: 700;
}

#voicemaker-details .toggle-btn {
    flex: 1;
    min-width: 0;
}

#yedap-details .toggle-btn {
    flex: 1;
    min-width: 0;
}

.toggle-btn:hover:not(.active) {
    color: var(--text-color);
    transform: translateY(-2px);
}

.toggle-btn:hover:not(.active) .date {
    color: var(--text-color);
}

.toggle-btn.active {
    background-color: var(--toggle-bg-active);
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.1);
}

.toggle-btn .date {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.toggle-btn.active .date {
    color: var(--primary-color);
}

.role-content {
    display: none;
    position: relative;
}

.role-content.active {
    display: block;
    max-height: 400px;
    overflow-y: auto;
    transition: overflow-y 0.2s ease;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #0636AF) transparent;
}

/* WebKit scrollbar styling */
.role-content.active::-webkit-scrollbar {
    width: 8px;
}
.role-content.active::-webkit-scrollbar-track {
    background: transparent;
}
.role-content.active::-webkit-scrollbar-button { display: none; height: 0; }
.role-content.active::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color, #0636AF), rgba(6,54,175,0.85));
    border-radius: 4px;
    min-height: 24px;
    opacity: 0.9;
    transition: opacity 0.12s ease;
}
.role-content.active::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

.role-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.role-details ul {
    list-style: none;
    padding-left: 0;
}

.role-details li strong {
    display: block;
    margin-bottom: 0.25rem;
}

.role-details li {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

#skills {
    padding: 2rem;
}

#skills h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    max-width: 1200px;
    margin: 0 auto 1rem auto;
}

.skills-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;

}

.tools-and-softwares {
    grid-column: span 2;
}

.tools-and-softwares h3,
.technical-proficiency h3,
.certifications h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.tools-and-softwares h3 {
    text-align: center;
    /* Override to center just this heading */
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* --- Updated Tool Card Block --- */

.tool-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-color);
    transform: translateZ(0);
    transition: background-color 0.3s,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    width: 276px;
}

/* 3. Added a subtle "lift" on hover */
.tool-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 12px 32px var(--shadow-color);
}

.tool-card img {
    max-height: 30px;
    /* Was 30px. Gives the icon more presence. */
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    /* Was 1rem. Better spacing. */
}

.tool-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    min-height: 2.5em;
}

/* 4. Added new rule to style the description text */
.tool-card p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
    /* Removes default paragraph margin */
    min-height: 4.1em;
}

/* --- End Updated Block --- */

.technical-proficiency,
.certifications {
    display: flex;
    margin-top: 2rem;
    flex-direction: column;
    height: 100%;
}

.technical-proficiency ul,
.certifications ul {
    flex-grow: 1;
    list-style: none;
    padding: 0;
    display: flex;
    /* Make the UL a Flex container */
    flex-direction: column;
    /* Stack the list items vertically */
    justify-content: space-between;
}

.technical-proficiency ul li:last-child,
.certifications ul li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    /* Ensuring no padding remains either */
}

.technical-proficiency li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.technical-proficiency li span {
    width: 120px;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.certifications ul li {
    display: flex;
    align-items: center;
    /* Vertically aligns the logo with the text */
    justify-content: center;
    /* Centers the whole item (logo + text) horizontally */
    width: 100%;
    /* Ensures the list item takes up full width for centering to work */
}

.certifications li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.certifications img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.certifications a {
    margin-left: auto;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
}

#cs {
    padding: 4rem 2rem;
    transition: background-color 0.3s;
}

#cs h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    max-width: 1200px;
    /* Aligns with content container */
    margin: 0 auto 3rem auto;
    /* Centers the block, keeps bottom margin */
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-studies-grid a {
    text-decoration: none;
}

.case-study-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.case-study-card img {
    height: 50px;
    width: 50px;
    border-radius: 10px;
}

.case-study-text h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: var(--text-color);
}

.case-study-text p {
    margin: 0;
    color: var(--secondary-color);
}

#cs .more-cs {
    text-align: center;
    margin: 3rem 0 0 0;
    color: var(--secondary-color);
}

/* Testimonials Section */
#testimonials {
    padding: 2rem;
    transition: background-color 0.3s;
}

#testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.testimonials-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonialSwiper {
    width: 100%;
    padding: 2rem 0 4rem 0;
}

.testimonialSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.testimonial-company {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    flex-grow: 1;
}

.testimonialSwiper .swiper-button-next,
.testimonialSwiper .swiper-button-prev {
    display: none;
}

.testimonialSwiper .swiper-pagination {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    width: auto !important;
}

.testimonialSwiper .swiper-pagination-bullet {
    background: var(--secondary-color);
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
    margin: 0 !important;
    cursor: pointer;
}

.testimonialSwiper .swiper-pagination-bullet:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

.testimonialSwiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

#contact {
    padding: 1rem;
    transition: background-color 0.3s;
}

#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--primary-color);
}

.contact-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.email-card .contact-icon {
    background: rgba(6, 54, 175, 0.1);
    color: var(--primary-color);
}

.linkedin-card .contact-icon {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-info {
    flex-grow: 1;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.3rem 0;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 0;
}

.contact-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-arrow {
    transform: translateX(5px);
}

.contact-footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.contact-footer p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.contact-footer strong {
    color: var(--text-color);
    font-weight: 600;
}

.availability {
    color: var(--primary-color) !important;
    font-weight: 500;
    font-size: 1rem !important;
}

footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 4rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary-color);
    margin: 0;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-column ul li a svg {
    transition: transform 0.3s ease;
}

.footer-column ul li a:hover svg {
    transform: scale(1.1);
}

.footer-middle {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.footer-skills-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.badge-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.footer-location svg {
    color: var(--primary-color);
}

/* 1. Animation for LEFTWARD Scroll (Top Row) */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    /* Moves exactly the width of the original content */
    100% {
        transform: translateX(-50%);
    }
}

/* 2. Animation for RIGHTWARD Scroll (Bottom Row) */
@keyframes scroll-right {

    /* Starts at the duplicated content */
    0% {
        transform: translateX(-50%);
    }

    /* Ends at the start of the original content */
    100% {
        transform: translateX(0);
    }
}

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    nav ul {
        gap: 1rem;
    }

    .intro-content {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    .intro-text {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .greeting-text {
        font-size: 2rem;
    }

    .intro-text h1 {
        font-size: 2.5rem;
    }

    .intro-text .description {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .intro-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .intro-image img {
        width: 400px;
        max-width: 100%;
    }

    #experience h2,
    #skills h2,
    #cs h2,
    #testimonials h2,
    #contact h2 {
        font-size: 2rem;
    }

    .experience-container {
        flex-direction: column;
        gap: 2rem;
        height: auto;
        padding: 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .company-logos {
        width: 100%;
    }

    .experience-container .company-logos li {
        height: 60px;
    }

    .company-logos li.active {
        transform: translateY(0px) scale(1);
        padding: 1.5rem 2rem;
    }

    .company-logos ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
    }

    .company-logos li {
        min-width: 150px;
        max-width: 180px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        row-gap: 3rem;
        width: 100%;
    }

    .tools-and-softwares {
        grid-column: span 1;
        width: 100%;
    }

    .tools-grid {
        gap: 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .tool-card {
        width: calc(50% - 1rem);
        min-width: 240px;
        box-sizing: border-box;
    }

    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }

    .case-study-card {
        width: 100%;
        box-sizing: border-box;
    }

    .testimonialSwiper {
        padding: 1.5rem 0 3rem 0;
        width: 100%;
    }

    .testimonial-card {
        padding: 2rem;
        box-sizing: border-box;
    }

    .contact-methods {
        gap: 1.5rem;
        width: 100%;
    }

    .contact-card {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 920px) {
    .company-logos {
        width: 100%;
        display: flexbox;
        align-items: flex-start;
        columns: 2;
    }

    .company-logos ul {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
        padding: 0;
    }

    .company-logos li {
        min-width: 100%;
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        margin: 0;
    }

    .company-logos li.active {
        padding: 1.25rem;
    }

    .company-logos li img {
        max-width: 100px;
        max-height: 50px;
    }
}

@media (max-width: 855px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-study-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .case-study-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .case-study-text h4,
    .case-study-text p {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    nav {
        padding: 1rem;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .logo {
        font-size: 1.3rem;
        order: 1;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        padding: 2rem;
        box-sizing: border-box;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s forwards;
        width: 100%;
        text-align: center;
    }

    nav ul.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    nav ul.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    nav ul.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    nav ul.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    nav ul.active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    nav ul.active li:nth-child(6) {
        animation-delay: 0.6s;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav ul li a {
        font-size: 1.5rem;
        display: block;
        width: 100%;
    }

    .theme-switcher {
        order: 2;
    }

    .theme-switcher img {
        width: 26px;
        height: 26px;
    }

    .hamburger-menu {
        display: block;
        order: 3;
    }

    main {
        padding-top: 70px;
        width: 100%;
        overflow-x: hidden;
    }

    section {
        padding: 3rem 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #intro {
        padding: 3rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .intro-content {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        align-items: center;
        box-sizing: border-box;
    }

    .intro-text {
        max-width: 100%;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .greeting-text {
        font-size: 1.5rem;
        width: 100%;
    }

    .intro-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        width: 100%;
        word-wrap: break-word;
    }

    .intro-text .description {
        font-size: 1rem;
        max-width: 100%;
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .intro-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .intro-image img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    #experience,
    #skills,
    #cs,
    #testimonials,
    #contact {
        width: 100%;
        overflow-x: hidden;
    }

    #experience h2,
    #skills h2,
    #cs h2,
    #testimonials h2,
    #contact h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .experience-container {
        flex-direction: column;
        gap: 2rem;
        height: auto;
        padding: 1.5rem 1rem;
        border-radius: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .company-logos {
        width: 100%;
        display: flexbox;
        align-items: flex-start;
        columns: 2;
    }

    .company-logos ul {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
        padding: 0;
    }

    .company-logos li {
        min-width: 100%;
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        margin: 0;
    }

    .company-logos li.active {
        padding: 1.25rem;
    }

    .company-logos li img {
        max-width: 100px;
        max-height: 50px;
    }

    .experience-details {
        padding-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .details-content {
        width: 100%;
    }

    .role-toggle {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .role-toggle:not(:has(.toggle-btn:nth-child(2))) .toggle-btn {
        width: 100%;
        min-width: 0;
    }

    .toggle-btn {
        font-size: 1rem;
        padding: 0.875rem 1rem;
        box-sizing: border-box;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .toggle-btn .date {
        font-size: 0.8rem;
    }

    .role-details {
        width: 100%;
    }

    .role-details ul {
        padding-left: 0;
        width: 100%;
        margin: 0;
    }

    .role-details li {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        width: 100%;
        word-wrap: break-word;
    }

    .skills-container {
        grid-template-columns: 1fr;
        row-gap: 3rem;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .tools-and-softwares {
        grid-column: span 1;
        width: 100%;
        box-sizing: border-box;
    }

    .tools-and-softwares h3,
    .technical-proficiency h3,
    .certifications h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
        width: 100%;
    }

    .tools-grid {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
    }

    .tool-card {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
        margin: 0;
    }

    .tool-card h4 {
        font-size: 1rem;
        min-height: auto;
        word-wrap: break-word;
    }

    .tool-card p {
        font-size: 0.9rem;
        min-height: auto;
        word-wrap: break-word;
    }

    .technical-proficiency,
    .certifications {
        width: 100%;
        box-sizing: border-box;
    }

    .technical-proficiency ul,
    .certifications ul {
        width: 100%;
        padding: 0;
    }

    .technical-proficiency li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .technical-proficiency li span {
        width: 100%;
    }

    .progress-bar {
        width: 100%;
    }

    .certifications li {
        font-size: 1rem;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
    }

    .certifications img {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .certifications a {
        margin-left: auto;
        flex-shrink: 0;
    }

    .testimonials-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .testimonialSwiper {
        padding: 1rem 0 3rem 0;
        width: 100%;
        overflow: hidden;
    }

    .testimonialSwiper .swiper-wrapper {
        width: 100%;
    }

    .testimonialSwiper .swiper-slide {
        width: 100%;
        box-sizing: border-box;
    }

    .testimonial-card {
        padding: 1.5rem;
        height: 100%;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .testimonial-header {
        gap: 1rem;
        width: 100%;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .testimonial-info {
        width: 100%;
    }

    .testimonial-name {
        font-size: 1.1rem;
        word-wrap: break-word;
    }

    .testimonial-role {
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    .testimonial-company {
        font-size: 0.8rem;
        word-wrap: break-word;
    }

    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.6;
        width: 100%;
        word-wrap: break-word;
    }

    .testimonialSwiper .swiper-pagination {
        width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .contact-container {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-intro {
        margin-bottom: 3rem;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .contact-tagline {
        font-size: 1.25rem;
        word-wrap: break-word;
    }

    .contact-description {
        font-size: 1rem;
        word-wrap: break-word;
        max-width: 100%;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 3rem;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .contact-card {
        padding: 1.5rem;
        flex-direction: row;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .contact-icon svg {
        width: 28px;
        height: 28px;
    }

    .contact-info {
        flex-grow: 1;
        min-width: 0;
    }

    .contact-info h3 {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .contact-info p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-arrow {
        flex-shrink: 0;
    }

    .contact-footer {
        width: 100%;
        padding: 3rem 1rem 0 1rem;
        box-sizing: border-box;
    }

    .contact-footer p {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .availability {
        font-size: 0.95rem !important;
    }

    footer {
        padding: 3rem 1rem 1.5rem 1rem;
        margin-top: 3rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer-container {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        width: 100%;
    }

    .footer-brand {
        text-align: center;
        width: 100%;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-tagline {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        word-wrap: break-word;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }

    .footer-column {
        width: 100%;
    }

    .footer-column h4 {
        font-size: 0.95rem;
    }

    .footer-column ul {
        width: 100%;
    }

    .footer-column ul li a {
        font-size: 0.9rem;
        word-wrap: break-word;
    }

    .footer-middle {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .footer-skills-badge {
        gap: 0.6rem;
        justify-content: center;
        width: 100%;
    }

    .badge-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        width: 100%;
    }

    .copyright {
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    .footer-location {
        font-size: 0.85rem;
        justify-content: center;
        word-wrap: break-word;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    section {
        padding: 2.5rem 0.75rem;
    }

    #intro {
        padding: 2.5rem 0.75rem;
    }

    .greeting-text {
        font-size: 1.3rem;
    }

    .intro-text h1 {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }

    .intro-text .description {
        font-size: 0.95rem;
        padding: 0 0.25rem;
    }

    .intro-image img {
        max-width: 250px;
    }

    #experience h2,
    #skills h2,
    #cs h2,
    #testimonials h2,
    #contact h2 {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }

    .experience-container {
        padding: 1rem 0.75rem;
    }

    .company-logos {
        width: 100%;
        display: flexbox;
        align-items: flex-start;
        columns: 1;
    }

    .company-logos li {
        padding: 0.875rem;
    }

    .company-logos li.active {
        padding: 1rem;
    }

    .toggle-btn {
        font-size: 0.95rem;
        padding: 0.75rem 0.875rem;
    }

    .role-details li {
        font-size: 0.9rem;
    }

    .tools-and-softwares h3,
    .technical-proficiency h3,
    .certifications h3 {
        font-size: 1.3rem;
    }

    .tool-card {
        padding: 1.25rem;
    }

    .case-study-card {
        padding: 1.25rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .contact-intro {
        padding: 0 0.5rem;
    }

    .contact-tagline {
        font-size: 1.15rem;
    }

    .contact-description {
        font-size: 0.95rem;
    }

    .contact-methods {
        padding: 0 0.5rem;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .contact-footer {
        padding: 2.5rem 0.5rem 0 0.5rem;
    }

    footer {
        padding: 2.5rem 0.75rem 1.5rem 0.75rem;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-tagline {
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile Devices (max-width: 360px) */
@media (max-width: 360px) {
    nav {
        padding: 0.875rem 0.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    section {
        padding: 2rem 0.5rem;
    }

    #intro {
        padding: 2rem 0.5rem;
    }

    .greeting-text {
        font-size: 1.2rem;
    }

    .intro-text h1 {
        font-size: 1.6rem;
    }

    .intro-text .description {
        font-size: 0.9rem;
    }

    .intro-image img {
        max-width: 220px;
    }

    #experience h2,
    #skills h2,
    #cs h2,
    #testimonials h2,
    #contact h2 {
        font-size: 1.5rem;
    }

    .experience-container {
        padding: 0.875rem 0.5rem;
    }

    .toggle-btn {
        font-size: 0.9rem;
        padding: 0.675rem 0.75rem;
    }

    .role-details li {
        font-size: 0.85rem;
    }

    .tool-card {
        padding: 1rem;
    }

    .contact-card {
        padding: 1rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .contact-info h3 {
        font-size: 0.95rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    footer {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
}

/* Case Study Page Styles */

.hero-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-hero {
    background: var(--bg-color);
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.case-study-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.case-study-hero .subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.case-study-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

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

.meta-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.case-study-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0rem 2rem;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.content-section h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
}

.highlight-box {
    background: var(--highlight-bg);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
    table-layout: auto;
}

.data-table thead {
    background: var(--primary-color);
    color: #ffffff;
}

.data-table th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Body Styling */
.data-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    vertical-align: top;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background: var(--highlight-bg);
}

/* RICE Framework Table */
.rice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
}

.rice-table thead {
    background: var(--primary-color);
    color: #ffffff;
}

/* 1. First Column: Fixed Width (40%) */
.rice-table th:first-child,
.rice-table td:first-child {
    width: 40%; 
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

/* Header specific style for first column */
.rice-table th:first-child {
    border-bottom: none;
}

/* 2. Remaining Columns: Equal Width (60% / 5 columns = 12% each) */
.rice-table th:not(:first-child),
.rice-table td:not(:first-child) {
    width: 12%;
    text-align: center;
    padding: 1.2rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* Remove bottom border for last row */
.rice-table tbody tr:last-child td {
    border-bottom: none;
}

/* Score badges */
.score-high {
    background: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.score-medium {
    background: #ffc107;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.score-low {
    background: #dc3545;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

/* User Journey */
.journey-stage {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.journey-stage::before {
    content: '';
    position: absolute;
    left: 20px;
    top: -15px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-stage h4 {
    color: var(--primary-color);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.journey-actions {
    margin-bottom: 1rem;
}

.journey-actions strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.journey-pain strong {
    color: #dc3545;
    display: block;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.back-link:hover {
    transform: translateX(-5px);
}

.cta-section {
    background: var(--highlight-bg);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color); 
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(6, 54, 175, 0.3);
}


/* Responsive Design */
@media (max-width: 768px) {
    .case-study-hero {
        padding: 6rem 1rem 3rem 1rem;
    }

    .case-study-hero h1 {
        font-size: 2rem;
    }

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

    .case-study-meta {
        gap: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .content-section h3 {
        font-size: 1.4rem;
    }

    .content-section p,
    .content-section li {
        font-size: 1rem;
    }

    .case-study-content {
        padding: 3rem 1rem;
    }

    .persona-header {
        flex-direction: column;
        text-align: center;
    }

    .persona-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .persona-details {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }

    .data-table th,
    .data-table td {
        padding: 0.8rem 1rem;
    }

    .rice-table {
        font-size: 0.85rem;
    }

    .rice-table th,
    .rice-table td {
        padding: 0.6rem 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h3 {
        font-size: 1.6rem;
    }
}