/* Case Study Responsive Styles */

:root {
    --page-bg: #f8f5c1;
    --nav-bg: #ffff94;
    --text-dark: #2d3748;
    --text-body: #4a5568;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent-green: #16f0c0;
    --accent-pink: #fb55b1;
    --card-bg: #ffffff;
    --soft-bg: #f8f9fa;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --space-section: clamp(48px, 8vw, 80px);
    --space-container: clamp(16px, 4vw, 32px);
}

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

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--page-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    overflow-wrap: anywhere;
}

.container,
.container-narrow {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
}

.container-narrow {
    max-width: 900px;
}

/* Navigation */
.navbar {
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: clamp(46px, 8vw, 60px);
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 4vw, 35px);
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu a {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 16px);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}
.resume-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 18px;
    background-color: #667eea;
    color: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.resume-btn:hover {
    background-color: #5568d8;
    transform: translateY(-2px);
}

/* Shared Sections */
section,
.wireframe-section {
    background: var(--page-bg);
}

.about-content,
.quant-research,
.product-users,
.user-persona,
.task-mapping,
.info-arch,
.sketches,
.usability,
.reflection {
    padding: var(--space-section) 0;
}

.section-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: clamp(28px, 5vw, 50px);
    text-align: center;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-dark);
    text-align: center;
    margin: -24px auto 40px;
    max-width: 850px;
}

/* Hero */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 48px);
    background: var(--page-bg);
    border-radius: 24px;
    overflow: hidden;
    padding: clamp(20px, 5vw, 48px);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    display: block;
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    object-fit: cover;
}

.about-text {
    color: var(--text-dark);
}

.about-text h2 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subheading,
.about-text h3 {
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.35;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.about-text p,
.users-text p,
.testing-intro,
.reflection-content p {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.8;
    color: var(--text-body);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary,
.button-primary,
.btn-button-primary {
    background: #667eea;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.30);
}

/* Quantitative Research */
.stats-grid,
.features-grid,
.process-steps,
.sketch-grid,
.wireframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(20px, 4vw, 30px);
}

.stats-grid {
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--accent-green);
    padding: clamp(24px, 5vw, 35px);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.stat-number {
    font-size: clamp(42px, 8vw, 56px);
    line-height: 1;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
}

/* Product Users */
.users-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(28px, 6vw, 60px);
    align-items: center;
}

.users-images {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}

.user-img {
    width: clamp(110px, 20vw, 150px);
    height: clamp(110px, 20vw, 150px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.users-text {
    max-width: 900px;
    margin: 0 auto;
}

.users-text h3 {
    font-size: clamp(28px, 5vw, 32px);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

/* Persona */
.persona-card {
    background: var(--card-bg);
    padding: clamp(24px, 5vw, 50px);
    border: 2px solid var(--accent-pink);
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}

.persona-photo {
    width: clamp(84px, 18vw, 100px);
    height: clamp(84px, 18vw, 100px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.persona-intro h4 {
    font-size: clamp(24px, 4vw, 28px);
    font-weight: 600;
    color: var(--text-dark);
}

.persona-content {
    display: grid;
    gap: 24px;
}

.persona-section {
    display: block;
}

.persona-details {
    padding: 10px 0;
}

.persona-section h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.persona-section ul {
    list-style: none;
    margin-top: 15px;
}

.persona-section li {
    font-size: 16px;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.persona-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 20px;
}

.persona-quote {
    background: var(--soft-bg);
    padding: clamp(18px, 4vw, 25px);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.persona-quote p {
    font-size: clamp(15px, 2vw, 17px);
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 40px;
    -webkit-overflow-scrolling: touch;
    border: 2px solid var(--accent-green);
    border-radius: var(--radius-md);
}

.mapping-table {
    width: 100%;
    min-width: 720px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: collapse;
}

.mapping-table thead {
    background: var(--primary);
    color: white;
}

.mapping-table th,
.mapping-table td {
    padding: clamp(12px, 2vw, 18px);
    text-align: left;
    font-size: 15px;
    vertical-align: top;
}

.mapping-table td {
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-body);
}

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

.mapping-table tbody tr:hover {
    background: var(--soft-bg);
}

/* IA Image */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.diagram-wrap {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 40px;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.10);
  width: 100%;
  max-width: 1400px;
  overflow-x: auto;
      border: 2px solid var(--accent-pink);
    border-radius: var(--radius-md);
}

.diagram-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: 'Poppins', sans-serif;
}

.diagram-wrap svg text {
  font-family: 'Poppins', sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
}

.conn {
  stroke: #000000;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-pink rect {
  fill: #fb55b1;
  stroke: none;
}

.node-pink text {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.node-cyan rect {
  fill: #16f0c0;
  stroke: none;
}

.node-cyan text {
  fill: #000000;
  font-size: 13px;
  font-weight: 500;
}

.node-white rect {
  fill: #ffffff;
  stroke: #16f0c0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.node-white text {
  fill: #000000;
  font-size: 12px;
  font-weight: 400;
}


/* Sketches and Final Screens */
.sketch-grid,
.wireframe-grid {
    justify-items: center;
    align-items: start;
    margin-bottom: 40px;
}

.wireframe-section {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-section) 0;
}

.wireframe-section h3 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    margin-bottom: 40px;
    color: #1f2937;
}

.wireframe-grid {
    width: min(100% - 32px, 1100px);
    margin-left: auto;
    margin-right: auto;
}

.sketch-img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    width: 100%;
    gap: 30px;
    justify-items: center;
}

.sketch-item,
.wireframe-item {
    background: white;
    width: 100%;
    max-width: 360px;
    padding: clamp(14px, 3vw, 20px) clamp(14px, 3vw, 20px) 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--accent-pink);
}

.wireframe-grid .sketch-item {
    max-width: 260px;
}

.sketch-item img,
.wireframe-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #e2e8f0;

    display: block;
}

.sketch-item p,
.wireframe-item p {
    text-align: center;
    font-size: 15px;
    color: var(--text-body);
    font-weight: 500;
    padding: 10px;
}

/* Optional screen styles if you use these classes elsewhere */
.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(24px, 5vw, 40px);
    justify-items: center;
}

.screen-item {
    text-align: center;
    width: 100%;
}

.screen-frame {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screen-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto 20px;
    background: #e2e8f0;
}

.screen-item p {
    font-size: 16px;
    color: var(--text-body);
    font-weight: 500;
}

/* Usability */
.testing-content {
    width: 100%;
}

.testing-intro {
    margin: 0 auto 40px;
    text-align: center;
    max-width: 900px;
}

.finding-box {
    margin-bottom: 60px;
}

.testing-findings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.finding {
    width: 100%;
    background: var(--card-bg);
    padding: clamp(22px, 4vw, 30px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary);
}

.finding h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.finding p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 10px;
}

.finding p strong {
    color: var(--text-dark);
}

/* Limitations and Reflection */
.reflection-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.reflection-content h4 {
    font-size: clamp(21px, 3vw, 24px);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 30px;
}

.reflection-content h4:first-child {
    margin-top: 0;
}

/* CTA */
.case-cta {
    padding: var(--space-section) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.case-cta h3 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    margin-bottom: 30px;
}

/* Contact */
.contact {
    padding: 60px 0;
    background: #ffff94;
    text-align: center;
    border-radius: 12px;
}

.contact-container {
    width: 80%;
    border: 12px solid #000;
}

.contact-subtitle {
    font-size: 18px;
    color: #718096;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.contact-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
}

.contact-item a {
    text-align: center;
    text-decoration: none;
    color: #2d3748;
}

.contact-item a:hover {
    color: #6366f1;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.social-link:hover {
    color: #666;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #f8f5c1;
    color: #010101;
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* Tablet */
@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        max-width: 720px;
        margin: 0 auto;
    }

    .users-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .users-images {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .persona-header {
        justify-content: center;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .container,
    .container-narrow,
    .nav-container,
    .info-arch .container {
        width: min(100% - 24px, 1200px);
    }

    .nav-container {
        min-height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 18px;
    }

    .about-layout {
        padding: 20px 0;
        border-radius: 0;
    }

    .about-image img {
        max-width: 280px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 13px 20px;
    }

    .section-subtitle {
        margin-top: -12px;
    }

    .persona-header {
        flex-direction: column;
    }

    .persona-card {
        border-radius: 14px;
    }

    .stats-grid,
    .features-grid,
    .process-steps,
    .sketch-grid,
    .wireframe-grid,
    .testing-findings {
        grid-template-columns: 1fr;
    }

    .sketch-item,
    .wireframe-item,
    .wireframe-grid .sketch-item {
        max-width: 320px;
    }

    .mapping-table {
        min-width: 680px;
    }

    .contact-info,
    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .mapping-table {
        min-width: 620px;
    }

    .sketch-item,
    .wireframe-item,
    .wireframe-grid .sketch-item {
        max-width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (hover: none) {
    .btn:hover,
    .stat-card:hover,
    .social-btn:hover {
        transform: none;
    }
}
