/* ========================================
   NAGIHAN TOKUL - PORTFOLIO
   Soft Elegant Design System
   ======================================== */

:root {
    /* Soft Color Palette */
    --bg-primary: #faf8f5;
    --bg-secondary: #f5ebe0;
    --bg-card: #fff;
    --accent: #d4c4b0;
    --accent-dark: #c9b8a5;
    --text-primary: #2d2d2d;
    --text-secondary: #555;
    --text-muted: #888;
    --border: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 5rem;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(45, 45, 45, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
    transform: translate(-50%, -50%);
}

.cursor-ring.hover {
    width: 28px;
    height: 28px;
    border-color: var(--accent);
    background: rgba(212, 196, 176, 0.1);
}

.cursor-ring.click {
    transform: translate(-50%, -50%) scale(0.8);
}

@media (hover: none) {
    .cursor-dot, .cursor-ring {
        display: none;
    }
}

/* Card Glow Effects */
.persona-card, .stat-card, .moscow-card, .learning-card, .role-item, .metric-card, .decision-card, .roadmap-card, .challenge-card {
    position: relative;
    transition: all 0.3s ease;
}

.persona-card:hover, .stat-card:hover, .learning-card:hover {
    transform: translateY(-4px);
}

.persona-card::after, .stat-card::after, .moscow-card::after, .learning-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212, 196, 176, 0.3), rgba(232, 213, 196, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(12px);
    pointer-events: none;
}

.persona-card:hover::after, .stat-card:hover::after, .moscow-card:hover::after, .learning-card:hover::after {
    opacity: 1;
}

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

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2d2d2d 0%, #444 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.logo-initials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo:hover .logo-initials {
    transform: scale(1.05) rotate(-3deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-dark);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
    border: 1.5px solid var(--text-primary);
}

.btn-primary:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   PROJECT DETAIL PAGE
   ======================================== */
.project-hero {
    padding: 6rem 2rem 1.5rem;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.92) 0%, rgba(245, 235, 224, 0.88) 100%);
}

.project-hero .container {
    position: relative;
    z-index: 1;
}

.back-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
    text-align: left;
}

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

.project-hero h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.project-meta {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Hero Image */
.project-hero-image {
    padding: 0 2rem 4rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.project-hero-image .iphone-mockup {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Project Content */
.project-content {
    padding: var(--section-padding) 2rem;
    background: var(--bg-primary);
}

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

.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

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

.content-section p.lead {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid, .results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-card, .result-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, .result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.stat-number, .result-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label, .result-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Personas */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.persona-card {
    background: rgba(212, 196, 176, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 196, 176, 0.3);
    transition: transform 0.3s ease;
}

.persona-card:hover {
    transform: translateY(-4px);
}

.persona-avatar {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.persona-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.persona-type {
    color: var(--accent-dark);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.persona-card blockquote {
    font-style: italic;
    color: var(--text-secondary);
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.persona-details p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Design Principles */
.design-principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.principle {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.principle:hover {
    transform: translateY(-4px);
}

.principle-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.principle h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.principle p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Features */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-text h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-text p {
    font-size: 0.85rem;
    margin: 0;
}

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

.feature-image .iphone-mockup {
    max-width: 200px;
}

/* Haptic Demo */
.haptic-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.haptic-phone {
    width: 180px;
    height: 320px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.haptic-phone:hover {
    transform: scale(1.02);
}

.haptic-phone.shake {
    animation: hapticShake 0.4s ease-in-out;
}

@keyframes hapticShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    10% { transform: translateX(-8px) rotate(-2deg); }
    20% { transform: translateX(8px) rotate(2deg); }
    30% { transform: translateX(-6px) rotate(-1.5deg); }
    40% { transform: translateX(6px) rotate(1.5deg); }
    50% { transform: translateX(-4px) rotate(-1deg); }
    60% { transform: translateX(4px) rotate(1deg); }
    70% { transform: translateX(-2px) rotate(-0.5deg); }
    80% { transform: translateX(2px) rotate(0.5deg); }
    90% { transform: translateX(-1px) rotate(0); }
}

.haptic-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b9a7d 0%, #6b7a5d 100%);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.haptic-icon {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.haptic-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
}

.haptic-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    animation: bounce 1.5s ease-in-out infinite;
}

.haptic-arrow span:first-child {
    font-size: 1.5rem;
}

.arrow-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Haptic Mockup with Real Screenshot */
.haptic-mockup {
    cursor: pointer;
    position: relative;
}

.haptic-mockup:hover {
    animation: hapticShake 0.5s ease-in-out;
}

.haptic-mockup:hover .haptic-indicator {
    opacity: 1;
    transform: scale(1);
}

.haptic-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(45, 45, 45, 0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vibrate-icon {
    font-size: 2rem;
    animation: vibratePulse 0.3s ease-in-out infinite;
}

@keyframes vibratePulse {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.haptic-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-style: italic;
}

/* VoiceOver Demo */
.voiceover-mockup {
    cursor: pointer;
    position: relative;
}

.voiceover-mockup:hover {
    transform: scale(1.02);
}

.voiceover-mockup.speaking {
    animation: voiceoverPulse 0.5s ease-in-out infinite;
}

.voiceover-mockup.speaking .voiceover-indicator {
    opacity: 1;
    transform: scale(1);
}

@keyframes voiceoverPulse {
    0%, 100% { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(139, 154, 125, 0.4); }
    50% { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(139, 154, 125, 0); }
}

.voiceover-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(139, 154, 125, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.speaker-icon {
    font-size: 2rem;
    animation: speakerPulse 0.6s ease-in-out infinite;
}

@keyframes speakerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.voiceover-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #8b9a7d;
    font-style: italic;
}

/* Screenshots Gallery */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

/* iPhone Mockup Frame */
.iphone-mockup {
    position: relative;
    display: inline-block;
    background: #1a1a1a;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.iphone-mockup:hover {
    transform: scale(1.02);
}

.iphone-mockup::before {
    display: none;
}

.iphone-mockup .screen {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
}

.iphone-mockup .screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
}

.screenshots-gallery .iphone-mockup {
    width: 100%;
}

/* MoSCoW Grid */
.moscow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.moscow-card {
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.moscow-card h4 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.moscow-card ul {
    list-style: none;
}

.moscow-card li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    color: var(--text-secondary);
}

.moscow-card.must { border-left: 3px solid #8b9a7d; background: rgba(139, 154, 125, 0.08); }
.moscow-card.should { border-left: 3px solid #9bb5c4; background: rgba(155, 181, 196, 0.08); }
.moscow-card.could { border-left: 3px solid #d4b896; background: rgba(212, 184, 150, 0.08); }
.moscow-card.wont { border-left: 3px solid #c9a9a6; background: rgba(201, 169, 166, 0.08); }

.tradeoff-box {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent-dark);
    margin-top: 2rem;
}

.tradeoff-box h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tradeoff-box p {
    font-size: 0.85rem;
    margin: 0;
}

/* Competitive Landscape */
.competitive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.competitor-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.competitor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.competitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.competitor-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.competitor-score {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-good {
    background: rgba(139, 154, 125, 0.15);
    color: #6b7a5d;
}

.score-medium {
    background: rgba(212, 184, 150, 0.2);
    color: #a08060;
}

.score-poor {
    background: rgba(201, 169, 166, 0.2);
    color: #9a7a78;
}

.competitor-pros, .competitor-cons {
    margin-bottom: 1rem;
}

.competitor-pros h5, .competitor-cons h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.competitor-pros ul, .competitor-cons ul {
    list-style: none;
}

.competitor-pros li, .competitor-cons li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.competitor-pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b9a7d;
    font-size: 0.7rem;
}

.competitor-cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #c9a9a6;
    font-size: 0.7rem;
}

.competitive-insight {
    background: linear-gradient(135deg, rgba(212, 196, 176, 0.1), rgba(232, 213, 196, 0.15));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    margin-top: 1.5rem;
}

.competitive-insight h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.competitive-insight p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* Risks & Mitigations */
.risks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.risk-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.risk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.risk-icon {
    font-size: 1.25rem;
}

.risk-level {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-level.high {
    background: rgba(201, 120, 120, 0.15);
    color: #a05050;
}

.risk-level.medium {
    background: rgba(212, 184, 150, 0.2);
    color: #a08060;
}

.risk-level.low {
    background: rgba(139, 154, 125, 0.15);
    color: #6b7a5d;
}

.risk-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.risk-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.risk-mitigation {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(139, 154, 125, 0.08);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 2px solid #8b9a7d;
}

.risk-mitigation strong {
    color: #6b7a5d;
}

/* Learnings */
.learnings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.learning-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-4px);
}

.learning-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.learning-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.learning-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Executive Summary with Hero Layout */
.summary-hero-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 3rem;
    align-items: center;
}

.summary-content {
    flex: 1;
}

.summary-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.summary-phone {
    display: flex;
    justify-content: center;
}

.summary-phone .iphone-mockup {
    max-width: 180px;
}

.summary-box {
    background: linear-gradient(135deg, rgba(139, 154, 125, 0.1) 0%, rgba(155, 181, 196, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #8b9a7d;
}

.summary-highlight {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Why This Matters - Impact Points */
.impact-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.impact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.impact-item h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.impact-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* User Cards */
.user-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.user-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.user-card.primary {
    border-left: 3px solid #8b9a7d;
}

.user-card.secondary {
    border-left: 3px solid #9bb5c4;
}

.user-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.user-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.user-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Role Grid */
.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.role-check {
    color: #8b9a7d;
    font-weight: 600;
}

.role-item span:last-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.metric-target {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Decisions Grid */
.decisions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.decision-card {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-dark);
}

.decision-card h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.decision-why {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Screens Showcase */
.screens-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.screen-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.screen-item .iphone-mockup {
    max-width: 180px;
}

.screen-explanation h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.screen-explanation p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Roadmap Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.roadmap-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.roadmap-card.now {
    border-top: 3px solid #8b9a7d;
}

.roadmap-card.next {
    border-top: 3px solid #9bb5c4;
}

.roadmap-card.future {
    border-top: 3px solid #d4b896;
}

.roadmap-card h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.roadmap-card ul {
    list-style: none;
}

.roadmap-card li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
}

/* Challenges Grid */
.challenges-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.challenge-card h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.challenge-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-top: 2rem;
}

.cta-section h2 {
    margin-bottom: 0.75rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
footer {
    padding: 2rem;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid, .results-grid, .design-principles, .moscow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .personas-grid {
        grid-template-columns: 1fr;
    }

    .competitive-grid {
        grid-template-columns: 1fr;
    }

    .risks-grid {
        grid-template-columns: 1fr;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .iphone-mockup {
        border-radius: 24px;
        padding: 6px;
    }

    .iphone-mockup .screen {
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .project-meta {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .learnings-grid {
        grid-template-columns: 1fr;
    }

    .summary-hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .summary-phone {
        order: -1;
    }

    .summary-phone .iphone-mockup {
        max-width: 160px;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .iphone-mockup {
        border-radius: 20px;
        padding: 5px;
    }

    .iphone-mockup .screen {
        border-radius: 16px;
    }

    .iphone-mockup .screen img {
        border-radius: 16px;
    }

    .user-cards {
        grid-template-columns: 1fr;
    }

    .role-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .screen-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .screen-item .iphone-mockup {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .stats-grid, .results-grid, .moscow-grid, .metrics-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ========================================
   SOLUTION ARCHITECTURE
   ======================================== */
.solution-architecture {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.arch-layer {
    background: var(--bg-secondary);
    padding: 1.25rem 2rem;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.arch-layer:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.arch-layer h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.arch-layer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--accent-dark);
}

/* Horizontal layout for solution architecture */
.solution-architecture.horizontal {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.solution-architecture.horizontal .arch-layer {
    max-width: 220px;
    flex: 1 1 0;
    min-width: 150px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solution-architecture.horizontal .arch-layer h4 {
    font-size: 1rem;
}

.solution-architecture.horizontal .arch-layer p {
    font-size: 0.8rem;
}

.solution-architecture.horizontal .arch-arrow {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .solution-architecture.horizontal {
        flex-direction: column;
    }
    .solution-architecture.horizontal .arch-arrow {
        transform: rotate(90deg);
    }
    .solution-architecture.horizontal .arch-layer {
        max-width: 100%;
    }
}

/* ========================================
   PROBLEM GRID
   ======================================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.problem-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.problem-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   TECHNICAL IMPLEMENTATION - COMPACT
   ======================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tech-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-card li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.tech-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FEATURE CARDS GRID (Additional Features)
   ======================================== */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s ease;
}

.feature-card-item:hover {
    transform: translateY(-10px);
}

.feature-card-item .iphone-mockup {
    width: 140px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card-item:hover .iphone-mockup {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card-label {
    margin-top: 1.25rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.feature-card-item:hover .feature-card-label {
    opacity: 1;
}

.feature-card-label h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-card-label p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 992px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card-item .iphone-mockup {
        width: 120px;
    }

    .feature-card-label h4 {
        font-size: 0.85rem;
    }

    .feature-card-label p {
        font-size: 0.75rem;
    }
}

/* ========================================
   FUTURE ROADMAP TIMELINE
   ======================================== */
.future-roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    margin-top: 2rem;
    padding-left: 2rem;
}

.future-roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-dark), var(--accent-light));
}

.timeline-item {
    position: relative;
    padding: 1.5rem 0 1.5rem 2rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.15s);
}

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-dot {
    position: absolute;
    left: -1.65rem;
    top: 1.75rem;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-dark);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    background: var(--accent-dark);
    box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-dark);
}

.timeline-phase {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    background: rgba(139, 90, 43, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .future-roadmap-timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -1.4rem;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1rem 1.25rem;
    }
}

/* ========================================
   ANIMATED ROADMAP GRID (Side-by-Side)
   ======================================== */
.animated-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.animated-roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: slideUpFadeIn 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.15s);
    transition: all 0.3s ease;
}

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

.animated-roadmap-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-dark);
}

.roadmap-phase-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-dark), #a08060);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.animated-roadmap-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.animated-roadmap-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .animated-roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .animated-roadmap-grid {
        grid-template-columns: 1fr;
    }
}
