/* ==================================================
   SHARED STYLES FOR AI-ENHANCED UX PROTOTYPES
   ================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-size: 16px;
}

ul, ol { padding-left:20px;}

.container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-button-container {
            position: absolute;
            width:200px;
            top: 20px;
            left: 20px;
            z-index: 10;
            
}
.back-button-container a {color: #dc187a;position: absolute;
            top: 20px;
            left: 20px;
            z-index: 10;}

.success-toast {
      position: fixed;
      top: 20px;
      right: 20px;
      background: linear-gradient(135deg, #68d391 0%, #38a169 100%);
      color: white;
      padding: 16px 20px;
      border-radius: 12px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      z-index: 1000;
      transform: translateX(400px);
      opacity: 0;
      transition: all 0.3s ease;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .success-toast.show {
      transform: translateX(0);
      opacity: 1;
    }

/* ==================================================
   NAVIGATION STYLES
   ================================================== */

.nav {
    margin-bottom: 40px;
}

.nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover {
    color: #333;
}

.nav a::before {
    content: "←";
    font-weight: bold;
}

/* ==================================================
   HEADER STYLES
   ================================================== */

.header {
    margin-bottom: 0px;
}

.header-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.why-section {
    display: flex;
    align-items: flex-start;
}

.why-section .innovation-box {
    margin: 0;
    height: auto;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.header .subtitle {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Project Number Badge */
.project-number {
    background: #333;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* For smaller project numbers in lists */
.project-number.small {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.project-thumbnail {
    width:200px;
    margin-left:45px;
    margin-bottom:15px;
    
   
}

.project-thumbnail img{
    width:100%;
    border:1px solid #aaa;
   
}

/* Business Impact Callout */
.business-impact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #333;
}

.business-impact h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.business-impact p {
    color: #555;
    font-weight: 500;
}

/* ==================================================
   STATS SECTION
   ================================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    display: block;
}

.stat-item .label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* ==================================================
   SECTION STYLES
   ================================================== */

.section {
    margin: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* For main page sections */
.section-title.main {
    margin: 60px 0 30px 0;
}

.section-description {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.section-content {
    color: #666;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   PROJECT LISTING STYLES (for index page)
   ================================================== */

   /* ==================================================
   MODAL AND TOAST STYLES
   ================================================== */

/* Confirmation Modal */
.confirmation-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2000 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    background: white !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    max-width: 450px !important;
    width: 90% !important;
    text-align: center !important;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirmation-modal.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.modal-description {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.modal-btn.primary {
    background: #4299e1;
    color: white;
}

.modal-btn.primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.modal-btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.modal-btn.secondary:hover {
    background: #cbd5e0;
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #68d391 0%, #38a169 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
}

.project {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #aaaaaa;
}

/* ==================================================
   PROJECTS GRID LAYOUT
   ================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.project.coming-soon {
    position: relative;
    opacity: 0.6;
    border:0;
}

.project.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

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

.project:last-child {
    border-bottom: none;
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 0px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.project-title a {
    color: #dc187a;
    text-decoration: underline;
}

.project-title a:hover {
    color: #666;
}

.project-description {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
    margin-left:45px;
}

.project .business-impact {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-left:45px;
}

.project .business-impact h3 {
    display: none;
}

.project .business-impact p {
    color: #333;
    font-weight: 500;
}

/* ==================================================
   INNOVATION HIGHLIGHT BOX
   ================================================== */

.innovation-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.innovation-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.innovation-box p {
    opacity: 0.95;
    line-height: 1.6;
}

/* ==================================================
   STRATEGY GRID LAYOUT
   ================================================== */

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.strategy-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid #333;
}

.strategy-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.strategy-item ul {
    list-style: none;
    padding: 0;
}

.strategy-item li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.strategy-item li::before {
    content: "•";
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==================================================
   VALUE GRID (for index page)
   ================================================== */

.value-section {
    margin: 80px 0 60px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.value-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.value-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================================================
   IMPLEMENTATION STEPS
   ================================================== */

.steps-list {
    counter-reset: step-counter;
}

.step-item {
    background: #fff;
    border: 1px solid #aaaaaa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    counter-increment: step-counter;
    position: relative;
    padding-left: 70px;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 25px;
    background: #333;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.step-item p {
    color: #666;
    margin: 0;
}

/* ==================================================
   CALL TO ACTION SECTIONS
   ================================================== */

.cta-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
}

.cta-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.cta-section p {
    color: #666;
    margin-bottom: 25px;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid #333;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: #333;
    color: white;
}

.cta-link.secondary {
    border-color: #ccc;
    color: #666;
}

.cta-link.secondary:hover {
    border-color: #333;
    color: #333;
    background: transparent;
}

/* ==================================================
   CONTACT SECTION (for index page)
   ================================================== */

.contact {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #aaa;
    text-align: center;
}

.contact h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.contact p {
    color: #666;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-link:hover {
    border-bottom-color: #333;
}

/* ==================================================
   PROJECT NAVIGATION (for project pages)
   ================================================== */

.project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #aaa;
}

.project-nav-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-nav-link:hover {
    color: #333;
    background: #f8f9fa;
}

.project-nav-link.prev::before {
    content: "←";
}

.project-nav-link.next::after {
    content: "→";
}

/* ==================================================
   TWO-COLUMN LAYOUT FOR PROJECT PAGES
   ================================================== */

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.content-column {
    /* Left column for descriptive content */
}

.code-column {
    /* Right column for interactive demos and code */
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #aaa;
}

.code-column h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.code-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

.code-column h4:first-of-type {
    margin-top: 0;
}

.demo-container {
    background: white;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

       /* Instruction box */
        .demo-instructions {
            background: #e6fffa;
            border: 2px solid #38b2ac;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
        }

        .demo-instructions h4 {
            color: #234e52;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .demo-instructions ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .demo-instructions li {
            color: #2c5282;
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
            line-height: 1.4;
        }

        .demo-instructions li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: #38b2ac;
            font-weight: bold;
        }

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block .comment {
    color: #718096;
}

.code-block .keyword {
    color: #63b3ed;
}

.code-block .string {
    color: #68d391;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: #333;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.implementation-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.implementation-note strong {
    color: #856404;
}

/* Single column override for sections that should span full width */
.full-width-section {
    grid-column: 1 / -1;
}

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .code-column {
        padding: 20px;
        order: -1; /* Show demo/code first on mobile */
    }
    
    .step-item {
        padding-left: 25px;
        padding-top: 60px;
    }
    
    .step-item::before {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-number {
        align-self: flex-start;
    }
    
    .innovation-box {
        padding: 20px;
    }
    
    .strategy-item {
        padding: 20px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
}
