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

:root {
    /* Mature, minimalist color palette */
    --primary: #2c3e50;
    --primary-light: #34495e;
    --accent: #3498db;
    --accent-dark: #2980b9;
    --secondary: #95a5a6;
    --dark: #1a1a1a;
    --dark-gray: #2c2c2c;
    --medium-gray: #6c757d;
    --light-gray: #e9ecef;
    --off-white: #f8f9fa;
    --white: #ffffff;
    --success: #27ae60;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--dark);
    overflow: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background animation - more subtle */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.03;
    background: 
        radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--accent) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--secondary) 0%, transparent 50%);
    animation: bgMove 25s ease infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-15px, -15px) scale(1.05); }
    66% { transform: translate(15px, -10px) scale(0.95); }
}

.presentation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide {
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    max-height: 650px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 40px var(--shadow-dark);
    display: none;
    flex-direction: column;
    padding: 50px 60px;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--light-gray);
}

.slide.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-50px);
}

/* Progress bar - integrated with slide indicators */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    transition: width 0.4s ease;
    border-radius: 0 0 25px 25px;
    opacity: 0.7;
}

/* Slide 1 - Hero with mature styling */
.slide-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slide-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="20" cy="20" r="2"/></g></g></svg>') repeat;
    animation: patternMove 40s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.slide-hero h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.slide-hero .subtitle {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slide-hero .tagline {
    font-size: 18px;
    font-weight: 500;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: inline-block;
    animation: fadeInUp 0.8s ease 0.4s both;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Typography improvements */
h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
    line-height: 1.2;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 2px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.bullet-list li {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 18px;
    padding-left: 32px;
    position: relative;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    color: var(--dark-gray);
}

.bullet-list li:nth-child(1) { animation-delay: 0.1s; }
.bullet-list li:nth-child(2) { animation-delay: 0.2s; }
.bullet-list li:nth-child(3) { animation-delay: 0.3s; }
.bullet-list li:nth-child(4) { animation-delay: 0.4s; }
.bullet-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.highlight-box {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
    color: var(--dark);
    padding: 28px;
    border-radius: 12px;
    margin: 28px 0;
    font-size: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 8px 25px var(--shadow);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--accent);
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    animation: shimmer 4s ease infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.column {
    background: var(--off-white);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow);
}

.column h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.column ul {
    list-style: none;
}

.column li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--dark-gray);
}

.column li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 500;
}

.emphasis {
    font-size: 18px;
    font-style: italic;
    color: var(--medium-gray);
    margin-top: 28px;
    padding: 20px;
    background: var(--off-white);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    position: relative;
}

.emphasis::before {
    content: '"';
    font-size: 48px;
    color: var(--light-gray);
    position: absolute;
    top: -5px;
    left: 20px;
    font-family: serif;
}

.cta-box {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 32px;
    margin-top: 28px;
}

.cta-box h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.cta-box ul {
    list-style: none;
}

.cta-box li {
    font-size: 18px;
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    color: var(--dark-gray);
}

.cta-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 18px;
}

.contact-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 28px;
    border-radius: 12px;
    margin-top: 28px;
    text-align: center;
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.contact-box h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.contact-box p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 12px;
}

/* Navigation improvements - Corner positioned circular buttons */
.nav-btn {
    position: fixed;
    width: 48px;
    height: 48px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 12px var(--shadow);
    font-family: inherit;
}

.nav-btn-prev {
    bottom: 10px;
    left: 30px;
}

.nav-btn-next {
    bottom: 10px;
    right: 30px;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px var(--shadow-dark);
    border-color: var(--primary);
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.nav-btn:disabled {
    background: var(--light-gray);
    color: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px var(--shadow);
    border-color: var(--light-gray);
}

.nav-btn:disabled:hover {
    transform: none;
    scale: 1;
}

.nav-btn svg {
    transition: transform 0.2s ease;
}

.nav-btn:hover svg {
    transform: scale(1.1);
}

/* Slide indicator positioned to avoid content overlap */
.slide-indicator-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slide-indicator {
    display: flex;
    gap: 8px;
    position: relative;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--medium-gray);
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
    opacity: 1;
}

/* Keyboard hint */
.keyboard-hint {
    position: fixed;
    bottom: 10px;
    right: 20px;
    color: var(--white);
    opacity: 0.5;
    font-size: 12px;
    z-index: 100;
}

/* Decision Slide Styles */
.decision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 900px;
}

.decision-card-large {
    background: var(--off-white);
    border: 3px solid var(--primary);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    font-family: inherit;
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.decision-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.decision-card-large:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px -12px rgba(99, 102, 241, 0.4);
    border-color: var(--accent);
}

.decision-card-large:hover::before {
    opacity: 0.08;
}

.decision-icon {
    font-size: 80px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.decision-card-large h3 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.decision-card-large p {
    font-size: 20px;
    color: var(--medium-gray);
    margin-bottom: 32px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.decision-arrow {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 50px;
}

.decision-card-large:hover .decision-arrow {
    background: var(--accent);
    transform: scale(1.05);
}

/* Hide slides based on path */
.developer-slide,
.lender-slide {
    display: none;
}

.developer-slide.active,
.lender-slide.active {
    display: flex;
}

/* Back to choice button */
.back-to-choice {
    position: fixed;
    top: 30px;
    left: 30px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
}

.back-to-choice:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 1024px) {
    .slide {
        width: 95%;
        padding: 40px 50px;
        height: 90vh;
    }
    
    .slide-hero h1 {
        font-size: 60px;
    }
    
    .slide-hero .subtitle {
        font-size: 24px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    .two-column {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .slide {
        width: 98%;
        padding: 30px 35px;
        height: 92vh;
    }
    
    .slide-hero h1 {
        font-size: 48px;
    }
    
    .slide-hero .subtitle {
        font-size: 20px;
    }
    
    .slide-hero .tagline {
        font-size: 16px;
    }
    
    h2 {
        font-size: 30px;
        margin-bottom: 24px;
    }
    
    .bullet-list li {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .nav-btn-prev,
    .nav-btn-next {
        bottom: 8px;
        width: 42px;
        height: 42px;
    }
    
    .nav-btn-prev {
        left: 20px;
    }
    
    .nav-btn-next {
        right: 20px;
    }
    
    .slide-indicator-container {
        bottom: 8px;
        padding: 5px 10px;
    }
    
    .decision-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .decision-card-large {
        padding: 40px 30px;
    }
    
    .decision-icon {
        font-size: 60px;
        margin-bottom: 16px;
    }
    
    .decision-card-large h3 {
        font-size: 26px;
    }
    
    .decision-card-large p {
        font-size: 18px;
        margin-bottom: 24px;
    }
    
    .decision-arrow {
        font-size: 16px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 20px 25px;
        height: 95vh;
    }
    
    .slide-hero h1 {
        font-size: 36px;
    }
    
    .slide-hero .subtitle {
        font-size: 18px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .bullet-list li {
        font-size: 16px;
        padding-left: 24px;
    }
    
    .column {
        padding: 20px;
    }
    
    .highlight-box,
    .cta-box,
    .contact-box {
        padding: 20px;
    }
    
    .nav-btn-prev,
    .nav-btn-next {
        width: 38px;
        height: 38px;
        bottom: 5px;
    }
    
    .nav-btn-prev {
        left: 15px;
    }
    
    .nav-btn-next {
        right: 15px;
    }
    
    .slide-indicator-container {
        bottom: 5px;
        padding: 4px 8px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .dot.active {
        width: 18px;
    }
    
    .decision-card-large {
        padding: 30px 20px;
    }
    
    .decision-icon {
        font-size: 50px;
        margin-bottom: 12px;
    }
    
    .decision-card-large h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .decision-card-large p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .decision-arrow {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .back-to-choice {
        top: 20px;
        left: 20px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-animation {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.nav-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --accent: #0066cc;
        --dark: #000000;
        --white: #ffffff;
        --light-gray: #cccccc;
    }
}

/* Simple Decision Cards */
.simple-decision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.simple-card {
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.simple-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
    border-color: var(--accent);
}

.simple-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.simple-card p {
    font-size: 18px;
    color: var(--medium-gray);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.simple-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.simple-btn:hover {
    background: var(--accent);
    transform: scale(1.02);
}

/* Mobile Responsive for Simple Cards */
@media (max-width: 768px) {
    .simple-decision-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 400px;
    }
    
    .simple-card {
        padding: 32px 24px;
    }
    
    .simple-card h3 {
        font-size: 18px;
    }
    
    .simple-card p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .simple-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}
