/*======================================================================
    P A G E   S P E C I F I C   S T Y L E S   ( H O M E )
======================================================================*/
/* Reset default margins/padding and set box-sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #D32F2F;
    /* A vibrant red */
    --secondary-color: #B71C1C;
    /* A darker red */
    --background-dark: #121212;
    /* A dark charcoal */
    --background-light: rgb(30, 30, 30);
    /* A slightly lighter charcoal */
    --background-lightest: #3c3c3c;
    /* Lightest background color */
    --text-primary: #ffffff;
    /* White text */
    --text-secondary: #b0b0b0;
    /* Light gray text */
    --card-bg: #1e1e1e;
    --subtle-glow-shadow: 0 0 30px rgba(183, 28, 28, 0.5);
    --natural-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* NEW: Variables for case study page specific colors */
    --card-bg-overlay: rgba(30, 30, 30, 0.8);
    --highlight-bg: #D32F2F;
    --highlight-text: #fff;
    --alert-color-bg: rgba(127, 18, 14, 0.5);
    --alert-color: rgba(255, 158, 61, 0.75);
    --success-color-bg: rgba(14, 127, 36, 0.5);
    --success-color: rgba(28, 224, 67, 0.75);
    /* A new variable to define the fixed navbar's height for consistent spacing */
    --navbar-height: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/abstract art.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--background-dark);
    /* This is the key change to solve the fixed navbar issue. */
    /* It adds space to the top of the body, pushing content down. */
    padding-top: var(--navbar-height);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

body.menu-open {
    overflow: hidden;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background-color: transparent;
}


#project1,
#project2,
#project3 {
    padding: 0;
    scroll-margin-top: 200px;
}

.section-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-color: rgba(18, 18, 18, 0.9);
    z-index: -1;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

ul {
    list-style: disc;
    margin-left: 1em;
    font-weight: 700;
}

b {
    color: var(--primary-color);
    font-weight: 900;
    font-style: italic;
}

/* ---
/* S E C T I O N :   N A V B A R */
/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: 0;
    max-width: 1520.8px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 990;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin: 0 auto;
}

.logo {
    height: 45px;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 70px;
    height: 50px;
    display: block;
    margin-left: 1vw;
    margin: 0 auto;
    filter: brightness(100) saturate(100%) invert(0%);
    transition: all 0.3s ease-in-out;
}

.logo-img:hover {
    filter: brightness(50) saturate(20%) invert(70%) sepia(40%) hue-rotate(310deg) saturate(1000%) drop-shadow(0 0 10px #D32F2F);
    transform: scale(1.05);
}

.nav-links-container {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: var(--text-primary);
    background-color: var(--background-light);
    border-radius: 50px;
}

.navbar .nav-links li a.active {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--subtle-glow-shadow);
}

/* ---
/* S E C T I O N :   H A M B U R G E R   M E N U */
/* ===== HAMBURGER MENU STYLES (for mobile) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: absolute;
    left: 85%;
    z-index: 999;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 2rem;
    height: 0.25rem;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: absolute;
    left: 0;
}

.hamburger::before {
    transform: translateY(-0.75rem);
}

.hamburger::after {
    transform: translateY(0.75rem);
}

.nav-toggle.active .hamburger {
    transform: rotate(45deg);
    bottom: 2.1em;
}

.nav-toggle.active .hamburger::before {
    transform: translateX(20px);
    opacity: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-90deg);
}

/* ---
/* S E C T I O N :   I N T R O */
/* ===== INTRO SECTION ===== */
#intro {
    padding-top: 0%;
}

.intro {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    max-height: calc(100vh - var(--navbar-height));
    height: 600px;
    padding: 0 40px;
    flex-wrap: wrap;
    position: relative;
}

.intro-content {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    padding: 20px;
}

.intro-content a.name {
    color: #ffffff;
    stroke-width: 5.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.intro h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 10px;
    font-weight: 900;
}

.intro .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.intro .description {
    max-width: 1550px;
    align-content: center;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin-bottom: 25px;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---
/* S E C T I O N :   B U T T O N S */
/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.8em 1.5em;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--subtle-glow-shadow);
}

.btn:hover {
    background: var(--secondary-color);
}

.btn.secondary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--subtle-glow-shadow);
}

.btn.secondary:hover {
    background: rgba(63, 81, 181, 0.1);
    color: var(--primary-color);
    box-shadow: none;
}

.btn.tertiary {
    background: none;
    width: 80%;
    text-align: center;
    margin: 0px;
    padding: 1px;
    margin-right: 10%;
    margin-left: 10%;
    font-weight: 500;
    border-color: none;
    color: var(--primary-color);
    box-shadow: none
}

.btn.tertiary:hover {
    color: var(--text-primary);
}


.btn.download {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn.download:hover {
    background: rgba(0, 0, 0, 1);
    scale: 0.95;
    box-shadow: var(--natural-shadow);
}

/* ---
/* S E C T I O N :   W H A T   I   D O */
/* ===== WHAT I DO SECTION ===== */
#what-i-do {
    padding: 60px 20px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--natural-shadow);
    transition: box-shadow 0.3s ease, border 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
}

/* ---
/* S E C T I O N :   P R O J E C T S */
/* ===== PROJECTS PAGE SPECIFIC STYLES ===== */
#project-list {
    padding: 60px 40px;
}

.project-row {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    margin-bottom: 80px;
}

.project-row.project-row-reverse {
    flex-direction: row-reverse;
}

.project-image-container {
    flex: 1;
    min-width: 45%;
    display: block;
}

.project-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--natural-shadow);
    transition: transform 0.3s ease;
}


.project-content {
    flex: 1;
    min-width: 45%;
}

.project-content .project-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.project-content p {
    margin-bottom: 20px;
}

figcaption {
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: content;
    font-style: italic;
}

.concept-image {
    width: 50%;
    border-radius: 12px;
    box-shadow: var(--natural-shadow);
    margin-top: 20px;
}

.problem-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--natural-shadow);
    margin-top: 20px;
}

/* ---
/* S E C T I O N :   A B O U T */
/* ===== ABOUT SECTION ===== */
#about {
    background: transparent;
    padding-bottom: 0;
}

.profile-pic {
    filter: brightness(60%);
    background-size: cover;
    height: 85%;
    width: 85%;
    align-self: center;
    border-radius: 100%;
    object-fit: cover;
    margin:auto;;
    box-shadow: var(--natural-shadow);
}

.about-content {
    justify-content: center;
    text-align: center;
    min-height: calc(10vh - 80px);
    padding: 50px 40px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #00000098;;
    border-radius: 20px 200px 20px 200px;
}


.about-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-content .section-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: left;
}


.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-2px);
    scale: 1.1;
    box-shadow: var(--subtle-glow-shadow);
}

.cta-card {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--natural-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 80%;
    margin: auto;
    margin-top: 50px;
    justify-content: center;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cta-card p {
    margin-bottom: 20px;
}

.cta-card .btn {
    align-self: center;
}

/* ---
/* S E C T I O N :   C O N T A C T */
/* ===== CONTACT SECTION ===== */
#contact {
    padding: 80px 20px;
    text-align: center;
    background: transparent;
}

.contact-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.contact-description {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link i {
    font-size: 1.5rem;
}

/* ---
/* S E C T I O N :   F A D E - I N - O N - S C R O L L */
/* ==================================
    Fade-in-on-scroll styles
================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.services-grid .fade-in:nth-child(1),
.services-grid .fade-in:nth-child(2),
.services-grid .fade-in:nth-child(3) {
    transition-delay: 0.1s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/*======================================================================
    P A G E   S P E C I F I C   S T Y L E S   ( C A S E   S T U D Y )
======================================================================*/
/* ---
/* S E C T I O N :   P R O J E C T   H E R O */
.project-hero {
    padding-top: 10em;
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 480px;
}

.project-hero-image img,
.project-hero-image video {
    width: 100%;
    min-height: 450px;
    border-radius: 12px;
    box-shadow: var(--natural-shadow);
}

.project-hero-content {
    text-align: left;
}

.project-hero h1 {
    font-size: clamp(2.5rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.project-hero .description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* S E C T I O N :   P R O J E C T   D E T A I L S */
.project-details {
    background-color: var(--card-bg-overlay);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--natural-shadow);
    margin-bottom: 10px;
}

.project-download {
    margin-top: 3%;
    display: inline-block;
    border-radius: 50px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
}

.detail-item i {
    min-width: 25px;
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    padding-top: 3px;
}

.detail-item .detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-item .detail-value {
    color: var(--text-secondary);
}

/* S E C T I O N :   B A C K   L I N K */
.back-link-wrapper {
    position: fixed;
    left: 3vw;
    right: 0;
    top: 120px;
    z-index: 800;
    max-width: 1520.8px;
    transform: translateX(-50%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    margin: 0 auto;
}

.back-link-wrapper.is-visible {
    transform: translateX(0%);
    opacity: 1;
}

.back-link {
    position: sticky;
    top: calc(var(--navbar-height) + 1.5rem);
    left: 20px;
    text-decoration: none;
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--subtle-glow-shadow);
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: var(--secondary-color);
}

/* S E C T I O N :   C A S E   S T U D Y   C O N T E N T */

.problem-and-role {
    grid-row: 2;
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 40px;
}

.case-study-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header span,
.card-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.icon-filled {
    font-variation-settings: 'FILL' 1;
}

.role-list {
    padding-top: 5px
}

.role-list-items {
    list-style: outside;
    margin: 15px;
    margin-left: -15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding-left: 30px;
}

.problem-vis {
    display: flex;
    justify-content: center;
    align-items: center;
}

.problem-vis img {
    width: 100%;
    margin: 0;
    margin-top: 10px;
}

/* By default, hide the mobile image */
.mobile-img {
    display: none;
}

.tri-vis {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tri-vis img {
    width: 80%;
    margin: 0;
    margin-top: 10px;
}

.tri-mobile {
    display: none;
}

.tri-desk {
    display: block;
}

.tri-card {
    background-color: var(--card-bg-overlay);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
    /* Use shorthand to set all padding values in one line */
    padding: 20px 5px 5px 30px; 
    margin: 10px 0px 10px 10px;
    transition: ease-in-out 0.2s;
}

.tri-content {
    display: grid;
    grid-template-columns: 0.5fr 10fr 1.5fr;
    align-items: center;
    text-align: left;
    padding-left: 10px;
}

.tri-content span{
    font-size: 2em;
    line-height: 1; 
}

.tri-arrow {
    animation: point 1s infinite ease-in-out;
}

.tri-list {
    font-weight: 400;
    color: var(--text-secondary);
}

.tri-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.tri-link:hover .tri-card {
    background-color: var(--background-lightest);
    border: 3px solid var(--primary-color);
    transition: ease-in-out 0.2s;
}

.content-card {
    background-color: var(--card-bg-overlay);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--natural-shadow);
}

.research-presentation {
    text-align: center;
}

.horizontal-cards {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 40px;
}

.progress_arrow {
    display: flex;
    justify-content: center;
    grid-column: span 2;
    margin: -3em;
}

.progress_arrow span {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.7;
    animation: flicker 2s infinite;
}

/* S E C T I O N :   T H E   J O U R N E Y */
.the-journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}


.journey-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.journey-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.content-card ul {
    gap: 10px;
    margin: 10px;
    margin-left: 30px;
}

.key-finding h4,
.the-change h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.key-finding_1,
.key-finding_2,
.key-finding_3,
.key_change_1,
.key_change_2,
.key_change_3 {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.key-finding_1 h4 {
    color: rgba(251, 191, 36, 1);
    font-size: 1.2em;
}

.key-finding_2 h4 {
    color: rgba(74, 222, 128, 1);
    font-size: 1.2em;
}

.key-finding_3 h4 {
    color: rgba(96, 165, 250, 1);
    font-size: 1.2em;
}

.key_change_1 p {
    color: rgb(251, 190, 36, 1);
    font-weight: 600;
}

.key_change_2 p {
    color: rgba(74, 222, 128, 1);
    font-weight: 600;
}

.key_change_3 p {
    color: rgba(96, 165, 250, 1);
    font-weight: 600;
}

.figma_prototype {
    text-align: center;
    margin: 0;
    margin-top: -1em;
}

.CC_paper_eval {
    background-color: var(--card-bg-overlay);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--natural-shadow);
    margin-bottom: 20px;
    margin-top: 20px;
}

.CC_paper_eval p {
    margin-left: 5px;
}

.CC_paper_strength {
    border-width: 2px;
    border-color: var(--success-color);
    color: var(--success-color);
}

.CC_paper_limit {
    border-width: 2px;
    border-color: var(--alert-color);
    color: var(--alert-color);
}

#CC_ideation {
    text-align: center;
    margin-top: 20px;
}



/* S E C T I O N :   T E C H N O L O G I E S   &   T O O L S */

.tab-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-buttons {
    display: grid;
    justify-content: center;
    background-color: var(--background-lightest);
    grid-template-columns: 1fr 1fr;
    border-radius: 0.75rem;
    padding: 0.25rem;
}

.tab-button {
    flex-grow: 1;
    padding: 0.5rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: transparent;
    border: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.tab-button.active {
    background-color: var(--background-dark);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    padding: 0.3rem 0;
}

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

.tech-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: left;
}

.tech-tag {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    white-space: nowrap;
}

.method-tag {
    background-color: var(--background-lightest);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

/* S E C T I O N :  N E X T  S T E P */
.next-steps-card {
    height: fit-content;
}


/* S E C T I O N :   P E R S O N A   C A R D */
.persona-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.persona-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.persona-header h3 {
    margin: 0;
}

.persona-details {
    display: grid;
    margin-bottom: 1em;
    gap: 1em;
    grid-template-columns: 1fr 1.5fr;
}

.persona-details .label {
    font-weight: 600;
    color: var(--text-primary);
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.persona-details h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.persona-details p {
    margin: 5%;
    font-size: 0.9em;
    color: var(--text-primary);
}

.persona-details ul {
    flex-direction: column;
    margin-left: 10%;
    font-size: 0.9em;
}

.persona-details ul li {
    margin-bottom: 5px;
}

.quote-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    margin-top: 20px;
    margin-bottom: 20px;
    font-style: italic;
}

/* S E C T I O N :   M A R K E T   A N A L Y S I S */
.market-grid {
    display: grid;
    gap: 3px;
    grid-template-columns: 7fr 7fr;
}

.market-content {
    background-color: var(--card-bg-overlay);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--natural-shadow);
    margin: 5px;
}

.market-content h3 {
    font-size: 1em;
}

.market-content h2 {
    text-align: center;
}


.market-content .card-header {
    margin-bottom: 10px;
}

.table-container {
    margin-top: 10px;
}

.table-container table{
    width: 100%;
    border-collapse:separate;
    /* This is the key property for fixed column widths */
    margin-top: 20px;
} 

th, td {
    padding: 0.6rem 0.2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    white-space: none;
    max-width: 100px;
}

th {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

td {
    font-weight: 400;
}


/* S E C T I O N :   S O L U T I O N   G A L L E R Y */
.image-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 10px;
}

.image-gallery-grid img {
    width: 100%;
    border-radius: 12px;
}

/*======================================================================
    P A G E   S P E C I F I C   S T Y L E S   ( P R O J E C T S )
======================================================================*/
/* ---
/* S E C T I O N :   I M A G E   C A R O U S E L */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
    margin-top: 1em;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    align-items: start;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.carousel-slide figure {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-slide img {
    width: auto;
    height: auto;
    align-self: center;
    border-radius: 8px;
    object-fit: cover;
    max-height: 400px;
    max-width: 100%;
}

.carousel-slide figcaption {
    text-align: center;
    padding: 1rem 0;
    color: #f1f1f1;
    font-style: italic;
    font-size: 1.1em;
}

.carousel-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-10%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 20%;
    font-size: 1.5rem;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

#CC_mid_fi_container{
    margin-top: 10px;
    margin-bottom: 10px;
}

#CC_mid_fi_carousel {
    max-width: 280px;
    max-height: 150px;
    width: 100%;
    height: auto;
    background-color: var(--card-bg-overlay);
    border: none;
    border-radius: 12px;
    padding: 10px;
    box-shadow: none;
}

.CC_mid_fi_fix {
    background-color: var(--card-bg-overlay);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-left: 10px;
    margin-right: 10px;
    box-shadow: var(--natural-shadow);
    text-align: center;
}

.CC_mid_fi_fix h4{
    padding-left: 10px;
    padding-right: 10px;
}

#prototype_prev_btn {
    transform: scale(70%);
    left: 0px;
}

#prototype_next_btn {
    transform: scale(70%);
    right: 0px;
}

#CC_mid_prev_btn,
#CC_mid_next_btn {
    position: absolute;
    top: 35%;
    transform: translateY(-10%);
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0px;
    transform: scale(1.5); /* Use transform instead of scale */
}


.OS_ideation_img {
    display: grid;
    align-items: start;
    grid-template-columns: 4fr 5fr;
    gap: 20px;
}

.OS_ideate_grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#OS_ideate_container {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 300px; /* or another valid value */
    text-align: center;
}

#OS_ideate_carousel {
    width: 100%;
    height: auto;
    background-color: var(--card-bg-overlay);
    border: none;
    border-radius: 12px;
    padding: 10px;
    box-shadow: none;
    max-width: 300px;
    /* Remove align-items: start; */
}

.OS_testing h4 {
    padding: 20px;
    font-size: 18px;
    width: 100%;
    margin: auto;
}

.OS_testing .quote-box {
    width: 80%;
    margin: auto;
}

#OS_prev_btn,
#OS_next_btn {
    position: absolute;
    top: 50%;
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0px;
    transform: scale(2); /* Use transform instead of scale */
}

#OS_iterate_container {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 300px; /* or another valid value */
    text-align: center;
}

#OS_iterate_carousel {
    width: 110%;
    height: auto;
    background-color: var(--card-bg-overlay);
    border: none;
    border-radius: 12px;
    padding: 10px;
    box-shadow: none;
    max-width: 300px;
    /* Remove align-items: start; */
}

#OS_iterate_carousel img {
    padding: 10px;
}


#OS_iter_prev_btn,
#OS_iter_next_btn {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    border: none;
    padding: 0px;
    transform: scale(2); /* Use transform instead of scale */
}

.slider-container {
    /* Sets the visible height of the carousel */
    height: auto; 
    overflow-x: scroll; 
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Smooth scrolling for programmatic changes, though not used here */
    border: none;
    border-radius: 8px;
}

.slides-wrapper {
    /* **KEY 3: Arranges slides horizontally** */
    display: flex;
    /* Ensures the wrapper is wide enough to hold both slides */
    width: fit-content; 
    gap: 50px;
}

.slide {
    min-width: 100%; 
    scroll-snap-align: center; 
    background: transparent;
    /* Aesthetic styling for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Hiding the scrollbar for a cleaner look */
.slider-container::-webkit-scrollbar {
    display: none;
}
.slider-container {
    -ms-overflow-style: none;
}

/* Slide specific styles */
.slide-1 .slide-content span{
    animation: point 2s infinite ease-in-out;
}
.slide-2 .slide-content span{
    animation: pointBack 2s infinite ease-in-out;
}

.slide-content {
    align-content: center;
    text-align: center;
    width: 100%;
}

.slide-content img {
    scale: 1;
}

.slide-content span {
    padding: 10px;
    scale: 2;
}


/* ---
/* S E C T I O N :   I M A G E   Z O O M   M O D A L */
.modal {
    display: none;
    position: fixed;
    z-index: 998;
    padding-top: 5%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    touch-action: none;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 999;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
}

.modal-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.modal-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5em;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-controls button:hover,
.modal-controls button:active {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* ---
/* S E C T I O N :   K E Y   P O I N T S   C A R O U S E L */
.key-point-carousel-container {
    width: 100%;
    height: fit-content;
    max-width: 100%;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    align-items: center;
    margin-top: 10px;
}

.key-point-card {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.key-point-card.active {
    display: flex;
}

.key-point-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.card-title {
    color: #ff3366;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 10px;
    margin-bottom: 3px;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.card-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 51, 102, 0.3);
    line-height: 1;
}

.card-description {
    color: #ccc;
    font-weight: 700;
    line-height: 1.5;
    margin: 5px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.dots-container {
    display: flex;
    gap: 0.5rem;
}

.key-point-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.key-point-dot.active {
    background: #ff3366;
    width: 24px;
    border-radius: 4px;
}

.key-point-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.key-point-arrow:hover {
    color: rgba(255, 255, 255, 0.2);
}

.key-point-arrow svg {
    fill: #fff;
    background-color: none;
    width: 50px;
    height: 50px;
}

/* ---
/* S E C T I O N :   F O O T E R */
/* ===== FOOTER STYLES ===== */
.footer {
    color: var(--text-secondary);
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 1520.8px;
    margin: 0 auto;
}

.footer-social {
    margin-bottom: 0;
    order: 2;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-text {
    font-size: 0.9rem;
    order: 1;
}

/* ==================================
    Responsive Adjustments for Mobile
================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }

    .navbar {
        position: fixed;
        height: 4.5em;
        padding-left: 3%;
        z-index: 990;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 10;
        transition: opacity 0.3s ease;
        opacity: 1;
    }

    .navbar .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75vw;
        max-width: 400px;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transform: translateX(120%) translateY(-3.5%);
        transition: transform 0.3s ease-in-out;
        z-index: 998;
        padding-top: 5rem;
        gap: 0;
    }

    .navbar .nav-links.show {
        transform: translateX(10%) translateY(-3.5%);
    }

    .navbar .nav-links li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .navbar .nav-links li a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 1.25rem 2rem;
        color: var(--text-primary);
        font-weight: 500;
        width: 100%;
        transition: background-color 0.3s ease;
    }

    .navbar .nav-links li a:hover,
    .navbar .nav-links li a.active {
        background-color: var(--secondary-color);
        border-radius: 15px;
        box-shadow: var(--subtle-glow-shadow);
    }

    .navbar .nav-links li a i {
        font-size: 1.25rem;
    }

    .intro {
        margin-top: 2em;
        margin-bottom: 0;
        min-height: calc(60vh - var(--navbar-height));
    }

    .intro .fade-in.visible {
        flex: 0%;
        margin: 0;
    }

    .name {
        font-size: 1.22em;
    }

    .about-content {
        border-radius: 20px;
    }

    .profile-pic {
        width: 100%
    }

    .cta-card {
        width: 100%;
    }

    .about-content {
        display: flex;
        flex-direction: column;
    }

    .skills-list {
        justify-content: center;
    }

    .about-content .btn.download {
        margin: 20px auto;
    }

    .concept-image,
    .problem-image {
        width: 100%;
    }

    .project-hero-image img,
    .project-hero-image video {
        min-height: auto;
        width: 100%;
        height: auto;
    }

    .project-card {
        text-align: left;
    }

    .contact-info {
        flex-direction: column;
    }

    .back-link-wrapper {
        top: 120px;
        left: 5%;
    }

    .project-hero {
        padding: 40px 20px 0;
        margin-top: 3em;
    }

    .creative-projects-grid {
        grid-template-columns: 1fr;
    }

    .problem-vis img {
        width: 110%;
    }

    .tri-mobile {
        display: block;
    }

    .tri-desk {
        display: none;
    }
    
    .tri-vis img {
        width: 100%;
    } 

    .tri-card {
        padding: 10px 20px 10px 20px;
        margin: 20px 0px 0px 0px;
    }

    .tri-card h3 {
        padding: 5px;
        padding-bottom: 10px;
    }

    .tri-content {
        grid-template-columns: 2fr 10fr 0.1fr;
        padding: 0px;
        padding-left: 20 px;
    }

    .tri-content ul{
        font-size: 0.2em;
        text-align: center;
    }
    
    .tri-arrow {
        font-size: 1em;
    }

    /* Hide the desktop image */
    .desktop-img {
        display: none;
    }
    /* Show the mobile image */
    .mobile-img {
        display: block; /* or display: inline-block; */
    }

    .project-row,
    .project-row.project-row-reverse {
        flex-direction: column;
        gap: 3rem;
    }

    .project-hero-grid,
    .case-study-grid,
    .image-gallery-grid,
    .horizontal-cards,
    .problem-and-role,
    .the-journey-grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .image-gallery-grid img {
        scale: 90%;
    }

    .project-hero-content {
        text-align: center;
    }

    .persona-details {
        display: flex;
        flex-direction: column;
    }

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

    .carousel-nav-btn {
        top: 30%;
        transform: translateY(-10%);
        margin-left: -3%;
        margin-right: -3%;
        font-size: 0.5em;
    }

    #prototype_prev_btn,
    #prototype_next_btn {
        top: 45%;
        transform: scale(100%);
    }


    #CC_mid_next_btn {
        scale: 3;
        transform: translateY(20%) translateX(-25%);
    }

    #CC_mid_prev_btn {
        scale: 3;
        transform: translateY(20%) translateX(25%);
    }

    #OS_next_btn {
        scale: 3;
        transform:  translateX(-25%);
    }

    #OS_prev_btn {
        scale: 3;
        transform: translateX(25%);
    }

    .carousel-slide img {
        width: 100%;
        max-height: 200px;
    }

    .prev-btn {
        left: 6px;
    }

    .next-btn {
        right: 6px;
    }

    .key-point-card {
        height: 350px;
    }

    .key-point-arrow {
        width: 60px;
        height: 60px;
    }

    .modal {
        padding-top: 50%;
    }

    .modal-controls {
        bottom: 120px;
    }

        .footer {
        flex-direction: column;
        gap: 20px;
    }

    .footer-text,
    .footer-social {
        order: initial;
    }
}

/* Animations */
@keyframes flicker {
    0%, 100% {
        opacity: 0.6;
        text-shadow: var(--subtle-glow-shadow);
    }
    50% {
        opacity: 0.4;
        text-shadow: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes point {
    0%, 100% {
        opacity: 0.8;
        text-shadow: none;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

@keyframes pointBack{
    0%, 100% {
        opacity: 0.8;
        text-shadow: none;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-5px);
    }
}

