/* ==========================================
   UX STYLES - Combined Portfolio Styles
   Includes: Portfolio Base + FedEx Case Study
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.blue-text {
    color: #4a89f3;
}

.highmark-blue {
    color: #0066CC;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

nav a:hover {
    color: #333;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
}

/* ==========================================
   HERO SECTION (Index Page)
   ========================================== */

.hero {
    margin-top: 80px;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #222;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0 0.5rem;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-content > * {
    margin: 0 2rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    color: #222;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

/* ==========================================
   COMPANY LOGOS (Index Page)
   ========================================== */

.company-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.company-logos > * {
    margin: 0.75rem;
}

.company-logos a {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    overflow: hidden;
}

.company-logos a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.company-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

/* Interactive Keywords */
.keywords {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.keywords .keyword {
    margin: 0 1rem;
}

.keyword {
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.keyword:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.keyword:active {
    transform: translateY(0);
}

.keyword-label {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
    font-style: italic;
}

/* ==========================================
   PORTFOLIO SECTION (Index Page)
   ========================================== */

.portfolio {
    padding: 80px 0;
    background: #f9f9f9;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.portfolio-grid > * {
    margin: 1.5rem;
}

.portfolio-item {
    overflow: hidden;
    scroll-margin-top: 100px;
    padding-top: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-item img {
    max-width: 100%;
    padding: 8px 8px 0px 8px;
    height: auto;
    display: block;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 1rem;
}

.portfolio-content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.portfolio-content a:hover {
    text-decoration: underline;
}

/* ==========================================
   CASE STUDY PAGE STYLES
   ========================================== */

.hero-left {
    text-align: left;
}

.hero-left h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-meta {
    margin-bottom: 2rem;
    text-align: left;
}

.hero-meta h4 {
    font-size: 1rem;
    color: #0066CC;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.hero-meta p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-right {
    position: relative;
    align-self: flex-start;
}

.final-design-preview {
    background: linear-gradient(135deg, #0066CC 0%, #4a90e2 100%);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(0,102,204,0.2);
}

.final-design-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,102,204,0.3);
}

.final-design-preview img {
    width: 100%;
    border-radius: 8px;
}

/* ==========================================
   GENERAL SECTION STYLES
   ========================================== */

section {
    padding: 0;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0066CC;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
    text-align: center;
}

/* ==========================================
   FEDEX CASE STUDY OVERVIEW SECTION
   ========================================== */

.overview_area {
    margin-top: 80px;
    padding: 60px 0;
}

.overview_area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.overview_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.overview_left {
    text-align: center;
}

.overview_left img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.overview_right {
    text-align: right;
}

.overview_right .title {
    font-size: 95px;
    font-weight: 700;
    line-height: 1.0;
    margin: 0;
}

.overview_right .title2 {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.0;
    margin: 0;
}

.overview_right .title3 {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.0;
    margin: 0;
}

.overview_right .title2 .blue {
    color: #317EFF;
}

.overview_right .title3 .blue {
    color: #317EFF;
}

.overview_right .title .blue {
    color: #317EFF;
}

.project_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project_header h3,
.project_header .duration {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
}

.project_header .duration {
    font-weight: 100;
}

.project_cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project_card {
    padding: 1.2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #D7DAEA;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project_card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181F27;
    margin: 0;
    margin-bottom: 0.5rem;
}

.project_card p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #343C46;
    line-height: 1.5;
    margin: 0;
}

.project_cards2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ==========================================
   REDESIGN SOLUTION SECTION
   ========================================== */

.redesign_solution {
    padding: 60px 0;
}

.redesign_solution .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.redesign_title {
    margin-bottom: 2rem;
}

.redesign_title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
}

.redesign_title .blue {
    color: #317EFF;
}

.redesign_image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.redesign_image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   WHAT IS SURROUND SECTION
   ========================================== */

.what_is_surround {
    padding-top: 60px;
}

.what_is_surround .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

.surround_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.surround_header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0;
}

.surround_header .badge {
    font-size: 2.5rem;
    font-weight: 100;
    color: #000;
    line-height: 1.2;
    margin: 0;
}

.surround_description {
    font-size: 2rem;
    font-weight: 300;
    color: #132238;
    line-height: 1.75;
	margin-bottom: 16px;
}

/* ==========================================
   PROBLEM SECTION
   ========================================== */

.problem_area {
    padding: 60px 0;
    background: #f9f9f9;
}

.problem_area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.problem_title1 {
    font-size: 48px;
	margin-bottom: 0px;
    color: #ff5c5d;
    font-weight: 700;
    
}

.problem_title2  {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    line-height: 1.3;
	margin-bottom: 16px;
}

.problem_title3  {
    font-size: 2.5rem;
    font-weight: 200;
    color: #000000;
    line-height: 1.3;
	margin-bottom: 16px;
}

.problem_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.problem_text {
    order: 2;
}

.problem_text.reverse {
    order: 1;
}

.problem_image {
    order: 1;
}

.problem_image.reverse {
    order: 2;
}

.problem_image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.object_box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #D7DAEA;
}

.object_box img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.object_box svg {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    display: block;
}

.object_box h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #181F27;
    margin: 0 0 1rem 0;
}

.object_box p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   MARKETING ISSUE SECTION
   ========================================== */

.marketing_issue {
    padding: 60px 0;
}

.marketing_issue .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.marketing_title {
    margin-bottom: 3rem;
}

.marketing_title h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #317EFF;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.marketing_title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
    line-height: 1.3;
}

.marketing_content {
    margin-bottom: 3rem;
}

.marketing_content .object_box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #D7DAEA;
    margin-bottom: 2rem;
}

.marketing_content .object_box h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #181F27;
    margin: 0 0 1rem 0;
}

.marketing_content .object_box p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.marketing_images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.marketing_image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.marketing_image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   HEURISTIC EVALUATIONS SECTION
   ========================================== */

.heuristic_area {
    padding: 60px 0;
    background: #f9f9f9;
}

.heuristic_area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.heuristic_title {
    margin-bottom: 3rem;
}

.heuristic_title h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #317EFF;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.heuristic_title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
    line-height: 1.3;
}

.heuristic_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.heuristic_card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #D7DAEA;
    display: flex;
    flex-direction: column;
}

.heuristic_card img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.heuristic_card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    display: block;
}

.heuristic_card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181F27;
    margin: 0 0 1rem 0;
}

.heuristic_card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.heuristic_flow {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.heuristic_flow img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   RESEARCH SECTION (UXR)
   ========================================== */

.research_section {
    padding: 60px 0;
    background: white;
}

.research_section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.research_section_title {
    margin-bottom: 3rem;
}

.research_section_title h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #317EFF;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.research_section_title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
    line-height: 1.3;
}

.research_items_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.research_item_card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.research_item_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.research_item_card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.research_item_card_content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.research_item_card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181F27;
    margin: 0 0 1rem 0;
}

.research_item_card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   IDEATION SECTION
   ========================================== */

.ideation_section {
    padding: 60px 0;
    background: #f9f9f9;
}

.ideation_section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ideation_title {
    margin-bottom: 3rem;
}

.ideation_title h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #317EFF;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.ideation_title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
    line-height: 1.3;
}

.ideation_items_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ideation_item_card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.ideation_item_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.ideation_item_card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.ideation_item_card_content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ideation_item_card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181F27;
    margin: 0 0 1rem 0;
}

.ideation_item_card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   USABILITY TESTING & DESIGN UPDATES SECTION
   ========================================== */

.usability_section {
    padding: 60px 0;
    background: white;
}

.usability_section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.usability_title {
    margin-bottom: 3rem;
}

.usability_title h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #317EFF;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.usability_title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
    line-height: 1.3;
}

.usability_items_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.usability_item_card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.usability_item_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.usability_item_card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.usability_item_card_content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.usability_item_card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181F27;
    margin: 0 0 1rem 0;
}

.usability_item_card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   RESEARCH OUTCOME SECTION
   ========================================== */

.research_area {
    padding: 60px 0;
    background: #f9f9f9;
}

.research_title {
    text-align: left;
    margin-bottom: 3rem;
}

.research_title h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #317EFF;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.research_title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #132238;
    margin: 0;
}

.research_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.research_item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.research_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.research_item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.develop_bottombx {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.develop_btmcnt h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #181F27;
    margin: 0 0 0.5rem 0;
}

.develop_btmcnt p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.develop_btmright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.develop_btmright h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

/* ==========================================
   CONCLUSION SECTION
   ========================================== */

.conclusion_area {
    padding: 60px 0;
    background: white;
}

.conclusion_area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.conclusion_item {
    margin-bottom: 2rem;
}

.conclusion_item p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.conclusion_bottom {
    margin-bottom: 3rem;
}

.conclusion_bottom h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #132238;
    margin: 0 0 1.5rem 0;
}

.conclusion_bottom ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.conclusion_bottom li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

.conclusion_bottom .number {
    font-weight: 700;
    color: #317EFF;
    min-width: 30px;
}

.conclusion_bottom p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* --- Stacked Card Layout --- */
.phase-one-container .item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phase-one-container .stacked-card {
    margin-top: 20px; /* Space between text and image */
    width: 100%;
    height: 180px; /* Standard height for the stacked preview */
    flex-shrink: 0;
}

.phase-one-container .card-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Matches your reference image style */
    z-index: 1;
}

/* --- Responsive Media Queries --- */

/* Tablet & Smaller Desktop (Under 1024px) */
@media (max-width: 1024px) {
    .phase-one-container .grid-two {
        gap: 30px;
    }
    .phase-one-container .number-col {
        font-size: 80px; /* Shrink the large number slightly */
        min-width: 60px;
    }
}

/* Mobile Devices (Under 768px) */
@media (max-width: 768px) {
    .phase-one-container .phase-row {
        flex-direction: column; /* Stack Number on top of content */
        gap: 20px;
    }

    .phase-one-container .number-col {
        font-size: 60px;
        line-height: 1;
    }

    .phase-one-container .grid-two {
        grid-template-columns: 1fr; /* Stack the two columns into one */
        gap: 40px;
    }

    .phase-one-container .content-area {
        padding-top: 0;
    }

    .phase-one-container .stacked-card {
        height: 200px; /* Give images more room on mobile */
    }
}







/* ==========================================
   SUBSCRIBERS SECTION
   ========================================== */

.subscribe_part {
    margin-top: 3rem;
}

.subscribe_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.subscribe_item {
    padding: 3rem;
    background: linear-gradient(135deg, #317EFF 0%, #0052a3 100%);
    border-radius: 8px;
    text-align: center;
    color: white;
}

.subscribe_item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.subscribe_item span {
    font-size: 0.95rem;
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    background: #555;
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
    text-align: center;
}

.footer_area .footer_cnt h3,
.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer_area .footer_cnt p,
.footer-content p {
    margin-bottom: 2rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #999;
}


/* Refinement for Scroll-To-Top Icon */
.scroll-to-top svg {
    width: 24px;
    height: 24px;
    pointer-events: none; /* Ensures the click registers on the div */
}

/* Enable smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}


/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0066CC;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background: #0052a3;
    transform: translateY(-5px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   PHASE ONE DESIGN SYSTEM (SCOPED)
   Namespace: .phase-one-container
   Prevents conflicts with existing portfolio styles
   ============================================================ */

.phase-one-container {
    --phase-blue: #2563eb;
    --phase-text-dark: #111827;
    --phase-text-gray: #6b7280;
    --phase-border: #e5e7eb;
    font-family: 'Inter', sans-serif;
    color: var(--phase-text-dark);
    padding: 40px 0 80px 0;
}

.phase-one-container .phase-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.phase-one-container .number-col {
    font-size: 110px;
    font-weight: 700;
    line-height: 0.8;
    color: #000;
    min-width: 80px;
}

.phase-one-container .content-area {
    padding-top: 15px;
    width: 100%;
}

/* Section Layouts */
.phase-one-container .grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.phase-one-container .flex-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Keeps items aligned at the top */
    gap: 40px;
    width: 100%;
}

/* UI Elements */
.phase-one-container .item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.phase-one-container h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--phase-text-dark);
    margin-left: 14px;
    margin-top: 0;
}

.phase-one-container .description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--phase-text-gray);
}

.phase-one-container .icon-check {
    width: 28px;
    height: 28px;
    background: var(--phase-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phase-one-container .separator {
    border-top: 2px dashed var(--phase-border);
    margin: 60px 0;
    width: 100%;
}

/* Image Card & Modal */
.phase-one-container .image-card {
    width: 100%; /* Ensures it fills the 380px column */
    height: 150px;
    background: #f9fafb;
    border: 1px solid var(--phase-border);
    border-radius: 12px;
    display: flex;
    align-items: center; 
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.phase-one-container .text-side {
    flex: 1;
    min-width: 0; /* Prevents text from pushing beyond container */
    max-width: 550px; /* Limits how far the text can extend */
}

.phase-one-container .image-side {
    flex: 0 0 380px; /* The '0 0' prevents the box from shrinking or growing */
    width: 380px;
}

.phase-one-container .view-btn {
    background: var(--phase-blue);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

/* ============================================================
   MODAL LIGHTBOX - FIXED ALIGNMENT
   ============================================================ */
/* Fix to hide broken image text/icons in the modal */
.modal-body img:not([src]), 
.modal-body img[src=""] {
    visibility: hidden;
    opacity: 0;
}

.modal-body img {
    /* Ensures the image is crisp and centered */
    display: block;
    margin: auto;
    border-radius: 4px;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-window {
    background: #ffffff;
    width: 800px;
    height: 800px;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    display: flex !important; /* Force flexbox */
    flex-direction: column !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-body {
    flex: 1 !important;
    padding: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}




.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    font-size: 32px !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    cursor: pointer;
    z-index: 1010;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1 !important;
}
/* Responsive Overrides */
@media (max-width: 900px) {
    .phase-one-container .number-col { font-size: 80px; }
    .phase-one-container .image-side { flex: 0 0 320px; }
}

@media (max-width: 650px) {
    .phase-one-container .phase-row { flex-direction: column; align-items: center; text-align: center; }
    .phase-one-container .grid-two { grid-template-columns: 1fr; }
    .phase-one-container .flex-split { flex-direction: column; align-items: center; }
    .phase-one-container .item-header { justify-content: center; }
}

/* ============================================================
   END _ END - PHASE ONE DESIGN SYSTEM (SCOPED)
   Namespace: .phase-one-container
   Prevents conflicts with existing portfolio styles
   ============================================================ */




/* ==========================================
   RESPONSIVE DESIGN - 1024px and below
   ========================================== */

@media screen and (max-width: 1024px) {
    .hero-content > * {
        margin: 0 1.5rem;
    }
    
    .hero h1,
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero p,
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .company-logos > * {
        margin: 0.5rem;
    }
    
    .company-logos a {
        width: 85px;
        height: 85px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }

    .overview_content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overview_right {
        text-align: left;
    }

    .overview_right .title {
        font-size: 2.5rem;
    }

    .project_header {
        flex-direction: column;
        gap: 1rem;
    }

    .project_header h3,
    .project_header .duration {
        font-size: 2rem;
    }

    .project_cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .redesign_title h2 {
        font-size: 2rem;
    }

    .surround_header {
        flex-direction: column;
        gap: 1rem;
    }

    .surround_header h3,
    .surround_header .badge {
        font-size: 2rem;
    }

    .surround_description {
        font-size: 1.5rem;
    }

    .problem_title  {
        font-size: 2rem;
    }

    .problem_content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problem_text {
        order: auto;
    }

    .problem_text.reverse {
        order: auto;
    }

    .problem_image {
        order: auto;
    }

    .problem_image.reverse {
        order: auto;
    }

    .marketing_title h3 {
        font-size: 2rem;
    }

    .marketing_images {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .heuristic_title h3 {
        font-size: 2rem;
    }

    .heuristic_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .research_section_title h3 {
        font-size: 2rem;
    }

    .research_items_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ideation_title h3 {
        font-size: 2rem;
    }

    .ideation_items_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .usability_title h3 {
        font-size: 2rem;
    }

    .usability_items_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .research_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .conclusion_bottom h4 {
        font-size: 1.5rem;
    }

    .subscribe_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subscribe_item {
        padding: 2rem;
    }

    .subscribe_item h3 {
        font-size: 2.5rem;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - 768px and below
   ========================================== */

@media screen and (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
        display: flex;
    }
    
    .nav-menu.active {
        left: 0;
        display: flex;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-content > * {
        margin: 1.25rem 0;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-text p {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .company-logos {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    
    .company-logos > * {
        margin: 0.5rem;
    }
    
    .company-logos a {
        width: 80px;
        height: 80px;
    }
    
    .keywords .keyword {
        margin: 0 0.75rem;
    }
    
    .keyword {
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid > * {
        margin: 1rem 0;
    }
    
    .portfolio h2 {
        font-size: 2rem;
    }

    .overview_area {
        padding: 40px 0;
    }

    .overview_content {
        margin-bottom: 2rem;
    }

    .overview_right .title {
        font-size: 2rem;
    }

    .project_header h3,
    .project_header .duration {
        font-size: 1.5rem;
    }

    .project_cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project_card {
        padding: 1.2rem;
        gap: 1.5rem;
    }

    .project_card h4 {
        font-size: 1.2rem;
    }

    .project_card p {
        font-size: 0.95rem;
    }

    .redesign_title h2 {
        font-size: 1.8rem;
    }

    .surround_header {
        flex-direction: column;
        gap: 1rem;
    }

    .surround_header h3,
    .surround_header .badge {
        font-size: 1.8rem;
    }

    .surround_description {
        font-size: 1.2rem;
    }

    .problem_title  {
        font-size: 1.8rem;
    }

    .problem_content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .object_box {
        padding: 1.5rem;
    }

    .object_box h4 {
        font-size: 1.3rem;
    }

    .object_box p {
        font-size: 0.95rem;
    }

    .marketing_title h3 {
        font-size: 1.8rem;
    }

    .marketing_images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .heuristic_title h3 {
        font-size: 1.8rem;
    }

    .heuristic_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .heuristic_card {
        padding: 1.5rem;
    }

    .heuristic_card h4 {
        font-size: 1.2rem;
    }

    .heuristic_card p {
        font-size: 0.9rem;
    }

    .research_section_title h3 {
        font-size: 1.8rem;
    }

    .research_items_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .research_item_card img {
        height: 200px;
    }

    .research_item_card_content {
        padding: 1.5rem;
    }

    .research_item_card h4 {
        font-size: 1.2rem;
    }

    .research_item_card p {
        font-size: 0.9rem;
    }

    .ideation_title h3 {
        font-size: 1.8rem;
    }

    .ideation_items_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ideation_item_card img {
        height: 200px;
    }

    .ideation_item_card_content {
        padding: 1.5rem;
    }

    .ideation_item_card h4 {
        font-size: 1.2rem;
    }

    .ideation_item_card p {
        font-size: 0.9rem;
    }

    .usability_title h3 {
        font-size: 1.8rem;
    }

    .usability_items_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .usability_item_card img {
        height: 200px;
    }

    .usability_item_card_content {
        padding: 1.5rem;
    }

    .usability_item_card h4 {
        font-size: 1.2rem;
    }

    .usability_item_card p {
        font-size: 0.9rem;
    }

    .research_area {
        padding: 40px 0;
    }

    .research_title h3 {
        font-size: 2rem;
    }

    .research_grid {
        grid-template-columns: 1fr;
    }

    .research_item img {
        height: 200px;
    }

    .develop_bottombx {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .develop_btmright {
        align-self: flex-start;
    }

    .conclusion_bottom h4 {
        font-size: 1.5rem;
    }

    .conclusion_bottom li {
        font-size: 0.95rem;
        gap: 1rem;
    }

    .subscribe_item {
        padding: 1.5rem;
    }

    .subscribe_item h3 {
        font-size: 2rem;
    }

    .footer_area .footer_cnt h3,
    .footer-content h3 {
        font-size: 1.5rem;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - 480px and below
   ========================================== */

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        margin: 0.5rem 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .company-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-logos > * {
        margin: 0.375rem;
    }
    
    .company-logos a {
        width: 70px;
        height: 70px;
    }
    
    .keywords {
        flex-wrap: wrap;
    }
    
    .keywords .keyword {
        margin: 0.5rem;
    }
    
    .keyword {
        font-size: 0.85rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .logo {
        font-size: 1rem;
    }

    .overview_area {
        margin-top: 80px;
        padding: 30px 0;
    }

    .overview_left img {
        max-width: 300px;
    }

    .overview_right .title {
        font-size: 1.5rem;
    }

    .project_header h3,
    .project_header .duration {
        font-size: 1.3rem;
    }

    .project_cards {
        grid-template-columns: 1fr;
    }

    .project_card {
        padding: 1rem;
    }

    .project_card h4 {
        font-size: 1.1rem;
    }

    .redesign_title h2 {
        font-size: 1.5rem;
    }

    .surround_header h3,
    .surround_header .badge {
        font-size: 1.5rem;
    }

    .surround_description {
        font-size: 1rem;
    }

    .problem_title  {
        font-size: 1.5rem;
    }

    .problem_content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .object_box {
        padding: 1rem;
    }

    .object_box img {
        width: 40px;
        height: 40px;
    }

    .object_box svg {
        width: 40px;
        height: 40px;
    }

    .object_box h4 {
        font-size: 1.2rem;
    }

    .object_box p {
        font-size: 0.9rem;
    }

    .marketing_title h3 {
        font-size: 1.5rem;
    }

    .marketing_images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .heuristic_title h3 {
        font-size: 1.5rem;
    }

    .heuristic_grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .heuristic_card {
        padding: 1rem;
    }

    .heuristic_card svg {
        width: 40px;
        height: 40px;
    }

    .heuristic_card h4 {
        font-size: 1.1rem;
    }

    .heuristic_card p {
        font-size: 0.85rem;
    }

    .research_section_title h3 {
        font-size: 1.5rem;
    }

    .research_items_grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .research_item_card img {
        height: 150px;
    }

    .research_item_card_content {
        padding: 1rem;
    }

    .research_item_card h4 {
        font-size: 1.1rem;
    }

    .research_item_card p {
        font-size: 0.85rem;
    }

    .ideation_title h3 {
        font-size: 1.5rem;
    }

    .ideation_items_grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ideation_item_card img {
        height: 150px;
    }

    .ideation_item_card_content {
        padding: 1rem;
    }

    .ideation_item_card h4 {
        font-size: 1.1rem;
    }

    .ideation_item_card p {
        font-size: 0.85rem;
    }

    .usability_title h3 {
        font-size: 1.5rem;
    }

    .usability_items_grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .usability_item_card img {
        height: 150px;
    }

    .usability_item_card_content {
        padding: 1rem;
    }

    .usability_item_card h4 {
        font-size: 1.1rem;
    }

    .usability_item_card p {
        font-size: 0.85rem;
    }

    .research_title h3 {
        font-size: 1.5rem;
    }

    .research_item img {
        height: 150px;
    }

    .develop_btmcnt h4 {
        font-size: 1rem;
    }

    .develop_btmcnt p {
        font-size: 0.9rem;
    }

    .conclusion_bottom h4 {
        font-size: 1.3rem;
    }

    .conclusion_bottom li {
        font-size: 0.9rem;
    }

    .subscribe_item {
        padding: 1rem;
    }

    .subscribe_item h3 {
        font-size: 1.8rem;
    }

    .subscribe_item span {
        font-size: 0.85rem;
    }

    .footer_area .footer_cnt h3,
    footer .footer-content h3 {
        font-size: 1.5rem;
    }
}
