/* --- 1. Variables & Global --- */
:root {
    --primary-green: rgb(49, 76, 62);
    --secondary-yellow:rgb(222, 157, 6);
    --bg-light: rgb(229, 231, 228);
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }


/* --- 2. Layout Structure --- */
.container {margin: 0 auto; padding: 0 10%; }
.section-wrapper { width: 100%; padding: 1px 0; }
.light-bg { background-color: var(--bg-light); }
.section-block { margin: 50px 0; }


/* --- 4. Hero Section --- */
.hero { background-color: var(--bg-light); background-image: url("../images/athletX/athletx-mockup.png"); display: flex; align-items: center; padding: 80px 10% 0; overflow: hidden; min-height: 420px; }
.hero-content { flex: 1; padding-bottom: 80px; }
.hero-content h1 { color: var(--primary-green); font-size: 3rem;}
.hero-content .subtitle { font-weight: 700; letter-spacing: 1.5px; font-size: 16px; text-transform: capitalize; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { width: 120%; transform: rotate(-10deg) translateY(50px) translateX(30px); box-shadow: -20px 20px 40px rgba(0,0,0,0.1); }
.description { color: var(--secondary-yellow); font-weight:600; }

/* --- 5. Component Styles --- */
.section-title { color: var(--primary-green); font-size: 22px; text-transform: capitalize; margin-bottom: 30px; font-weight: 700; }
.green-title { color: var(--primary-green); font-size: 22px; margin: 40px 0 20px; }
.faded-title { color: var(--text-faded); font-size: 22px; text-transform: uppercase; font-weight: 700; }
.emphasis-centered { text-align: center; font-weight: 700; margin: 40px 0; font-size: 16px; }

/* Progress Bars */
.insights-progress-section { margin-top: 40px; display:flex; align-items:center; flex-direction:column}
.progress-item { margin-bottom: 40px; width:70%;}
.progress-bar-container { height: 25px; background: #e0e0e0; border-radius: 12px; margin: 10px 0; overflow: hidden;   }
.progress-fill { height: 100%; }
.progress-fill.orange { background-color: #f69c69; }
.progress-fill.red { background-color: #cd5c4d; }
.progress-fill.green { background-color: #63854d; }

/* Survey Circle Layout */
.circle-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 40px 0; text-align: center; }
.circle-item { background: #fff; border: 2px solid var(--primary-green); padding: 20px; border-radius: 50%; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-main); margin: 0 auto; }

/* Grids & Flex */
.problem-solution, .project-details, .content-flex { display: flex; gap: 95px; }
.overview-text { width: 50% }
.col, .text-side { flex: 2; }
.img-side { flex: 1; text-align:center; margin:20px 0px;}
.img-side img {max-width: 600px; border: 1px dashed #ccc; border-radius: 4px; padding: 10px;}
.metadata { flex: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.meta-item h3 { font-size: 18px; color: var(--primary-green); margin-bottom: 10px; }
.meta-item ul { list-style:none; }
.bullet-list { list-style: disc; padding-left: 20px; margin-top: 15px; }
.problem-solution .bullet-list li { padding-bottom: 20px; }

/* Sticky Notes */
.sticky-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.sticky { padding: 25px; min-height: 180px; box-shadow: 4px 4px 12px rgba(0,0,0,0.06); font-size: 14px; display: flex; align-items: center; text-align: center; }
.sticky.yellow { background: #fff9c4; }
.sticky.orange { background: #ffe0b2; }
.sticky.green { background: #c8e6c9; }
.sticky.purple { background: #e1bee7; }

/* Survey & Takeaways & Target Users*/
.stat-row { display: flex; gap: 40px; align-items: center; margin-bottom: 40px; }
.stat-row img { max-width: 400px; height: auto; }
.takeaway-grid, .targetUsers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 40px; }
.takeaway-item, .targetUsers-item { text-align: center; background: var(--white); padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.takeaway-item .number { display: block; font-size: 40px; color: var(--primary-green); font-weight: 700; margin-bottom: 15px; }

.targetUsers-item img { width:50%; }
.targetUsers-section .star-badge {
    color: var(--secondary-yellow);
    font-size: 30px;
}

/* --- Competitor Comparison --- */
.analysis-intro p {
    margin-bottom: 25px;
}

.influence-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.competitor-comparison-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    margin-top: 30px;
}

.comp-card {
    background-color: #fff; 
    padding: 30px 15px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comp-logo {
    height: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.comp-list {
    list-style: none;
    padding: 0;
}

.comp-list li {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .competitor-comparison-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .competitor-comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Tailored Solutions Components --- */
.solution-challenge-block {
    margin-bottom: 50px;
}

.challenge-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.challenge-badge {
    background-color: var(--secondary-yellow);
    color: var(--primary-green);
    font-weight: 700;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.challenge-label, .solution-label {
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Open Sans', sans-serif;
}

.solution-label {
    color: var(--secondary-yellow);
    text-transform: none;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.solution-content-wide {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.solution-text-box p {
    line-height: 1.6;
}

.solution-mockups {
    text-align: center;
    cursor: zoom-in;
    margin-top: 20px;
}

.solution-mockups img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.inner-divider {
    border: 0;
    border-top: 1px dashed var(--primary-green);
    margin: 30px 0;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .solution-content, .solution-content-wide {
        grid-template-columns: 1fr;
    }
}

/* --- Sketch Gallery Grid --- */
.sketch-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive columns */
    gap: 20px;
    margin-top: 30px;
}

.sketch-item {
    cursor: zoom-in;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sketch-item img {
    width: 100%;
    height: 250px; /* Shorter height for sketches */
    object-fit: contain; /* Crops slightly to keep the grid perfectly square/uniform */
    border-radius: 4px;
    border: 1px solid #ddd;
    filter: grayscale(20%); /* Subtle stylistic choice for sketches */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.sketch-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
    border-color: var(--primary-green);
}

.sketch-item .img-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* --- AthleteX Iteration Styles --- */
.athletex-iteration .section-title {
    margin-top: 50px;
}
.iteration-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Images take up more width than text */
    gap: 40px;
    align-items: start;
}

.iteration-images .labels {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 16px;
}

.comparison-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.comparison-img {
    flex: 1;
}

.comparison-img img {
    width: 100%;
    height: auto;
    border: 1px dashed #ccc; /* Matches the dashed red border style in the image */
    border-radius: 4px;
    margin-top:10px;
}

.comparison-img-selected {
    display: flex;
    gap: 15px;
}

.comparison-img-selected img {
    border:0;
    width:30px;
    margin-top:0px;
}

/* Annotations */
.iteration-annotations {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 50px;
}

.annotation-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.annotation-item .badge, .iteration-ab-testing .badge {
    background-color: var(--secondary-yellow); 
    color: var(--primary-green);
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.annotation-item p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .iteration-layout {
        grid-template-columns: 1fr;
    }
    
    .iteration-annotations {
        padding-top: 20px;
    }
}
/* Mobile Tweak */
@media (max-width: 600px) {
    .sketch-gallery {
        grid-template-columns: 1fr; /* Single column on small phones */
    }
}

/* Delivered Items */
.delivered-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto; /* Enables horizontal scrolling */
    padding: 20px;
    scroll-snap-type: x mandatory; /* Makes images snap into place */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    align-items: flex-start; /* Aligns all items to the top */
}

.delivered-item {
    flex: 0 0 auto; /* Shows 70% of the image, hinting that there is more to see */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: zoom-in;
}

.delivered-item img {
    height: 450px; 
    width: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the whole screen is visible without cropping */
    border-radius: 8px;
    background-color: #fcfcfc; /* Subtle background for transparency */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.delivered-item:hover img {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* --- Captions --- */
.img-caption {
    margin: 8px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-muted); 
    text-align: center;
}

/* Hover effect to make it interactive */
.delivered-item:hover {
    transform: translateY(-5px);
}

/* Custom Scrollbar Styling */
.delivered-slider::-webkit-scrollbar {
    height: 8px;
}

.delivered-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.delivered-slider::-webkit-scrollbar-thumb {
    background: var(--primary-green); 
    border-radius: 10px;
}

/* Swipe Hint */
.scroll-hint {
    text-align: right;
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above the "Back to top" button */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    padding-top: 50px;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    animation: zoom 0.3s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: 'Merriweather', serif;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}



@media (max-width: 768px) {
    .delivered-item img {
        height: 320px;
    }
}

@keyframes zoom {
    from {transform: scale(0.9)} 
    to {transform: scale(1)}
}

.delivered-item {
    cursor: zoom-in;
}

.prototype-showcase { display:flex; align-items:center; flex-direction:column; justify-content:center; text-align:center;}
.laptop-img { max-width: 40%; height: auto; display:block;}
.btn-prototype { display: inline-block; background-color: #d1d1d1; padding: 15px 40px; text-decoration: none; color: #000; border-radius: 6px; transition: #d1d1d1 0.3s ease; margin-top:-90px; }
.btn-prototype:hover {
    background-color: #bbbbbb; 
}

/* .main-footer { padding: 60px 0; border-top: 1px solid #eee; }
.footer-content { display: flex; justify-content: space-between; }
.footer-right { margin-left: 100px;}
.footer-logo img { width: 45%; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 280px; margin-top: 15px;}
.footer-btn { border: 1px solid #ccc; padding: 8px; text-align: center; text-decoration: none; color: #333; border-radius: 24px; font-size: 14px; } */
.proj-card { display: flex; align-items: center; gap: 15px; background: #fff; padding: 10px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); width:content; margin-top: 10px; }
.proj-card img { width: 60px; border-radius: 2px; }
.proj-text h4 {font-size: 12px;}
.proj-text p {font-size: 11px;}

/* Utility */
.centered-image-container { text-align: center; margin: 40px 0; }
.centered-image-container img { max-width: 100%; border: 1px dashed #ccc; border-radius: 4px; padding: 10px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 8px; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }


/* Responsive */
@media (max-width: 768px) {
    .problem-solution, .project-details, .content-flex, .takeaway-grid, .stat-row, .footer-content { flex-direction: column; }
    .hero { flex-direction: column; text-align: center; }
    .hero-image img { width: 100%; transform: none; margin-top: 40px; }
    .delivered-grid, .takeaway-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar { flex-direction: column; gap: 20px; }
    .proj-card { width: 100%; }
}