/* ============================================================
   workisez.com - Main Stylesheet
   Theme: Blue + Red + Ai Graphics
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f8f9fa;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.blue { color: #0055a4; }
.red { color: #cc0000; }

/* ---------- NAVIGATION ---------- */
header {
    background: #1a1a2e;
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 1px;
}

.logo:hover {
    color: #ffffff;
    transition: 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: #00d4ff;
    color: #00d4ff;
}

/* ---------- SUB-NAV (Milestone page) ---------- */
.sub-nav {
    background: #e9ecef;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 72px;
    z-index: 999;
    border-bottom: 2px solid #dee2e6;
}

.sub-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-nav ul li a {
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: 0.3s;
}

.sub-nav ul li a:hover {
    background: #0055a4;
    color: white;
}

/* ---------- HERO SECTION (Landing) ---------- */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 .blue {
    color: #0055a4;
    text-shadow: 0 2px 20px rgba(0,85,164,0.15);
}

.hero-content h1 .red {
    color: #cc0000;
    text-shadow: 0 2px 20px rgba(204,0,0,0.15);
}

.ai-graphics {
    font-size: 3rem;
    margin: 1.5rem 0;
    letter-spacing: 2rem;
}

.ai-glow {
    display: inline-block;
    animation: pulse-glow 3s ease-in-out infinite;
}

.ai-glow:nth-child(2) { animation-delay: 0.5s; }
.ai-glow:nth-child(3) { animation-delay: 1s; }

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.subtitle {
    font-size: 1.3rem;
    color: #495057;
    margin: 1rem 0 2rem;
    font-weight: 300;
}

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

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn.primary {
    background: #0055a4;
    color: white;
    box-shadow: 0 4px 15px rgba(0,85,164,0.3);
}

.btn.primary:hover {
    background: #003d7a;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,85,164,0.4);
}

.btn.secondary {
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
}

.btn.secondary:hover {
    background: #1a1a2e;
    color: white;
    transform: translateY(-3px);
}

/* ---------- QUICK STATS (Landing) ---------- */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: -2rem auto 3rem;
    padding: 0 2rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-top: 4px solid #0055a4;
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0055a4;
}

.stat-item .label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

/* ---------- HOME OVERVIEW (Landing) ---------- */
.home-overview {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.home-overview h2 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.home-overview p {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.tech-tags span {
    background: #e9ecef;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a2e;
    transition: 0.3s;
}

.tech-tags span:hover {
    background: #0055a4;
    color: white;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #1a1a2e;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 300;
}

.audience {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #495057;
}

/* ---------- ABOUT PAGE ---------- */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-text {
    font-size: 1.1rem;
    color: #343a40;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 1.2rem;
}

.about-mission {
    background: #f0f4ff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 6px solid #0055a4;
}

.about-mission h3 {
    color: #0055a4;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.mission-tags span {
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---------- MILESTONE SECTIONS ---------- */
.milestone-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.milestone-section:last-of-type {
    border-bottom: none;
}

.milestone-section h2 {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 4px solid #0055a4;
    display: inline-block;
}

/* ---------- ARCHITECTURE GRID ---------- */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.arch-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 4px solid #cc0000;
    transition: 0.3s;
}

.arch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.arch-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.8rem;
}

.arch-card p {
    color: #495057;
    font-size: 0.95rem;
}

.arch-card em {
    color: #6c757d;
    font-size: 0.85rem;
}

/* ---------- DATA PAGE ---------- */
.data-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.data-content h3 {
    color: #0055a4;
    margin-bottom: 1rem;
}

.data-content h4 {
    color: #1a1a2e;
    margin: 1.5rem 0 0.5rem;
}

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

.tech-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tech-list li:last-child {
    border-bottom: none;
}

.data-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.data-metrics .metric {
    background: #f8f9fa;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    border-left: 4px solid #0055a4;
}

/* ---------- LESSONS GRID ---------- */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.lesson-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 6px solid #cc0000;
    transition: 0.3s;
}

.lesson-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.lesson-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.lesson-card p {
    color: #495057;
    font-size: 0.95rem;
}

/* ---------- RESULTS TABLE ---------- */
.results-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.results-table thead {
    background: #1a1a2e;
    color: white;
}

.results-table th,
.results-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table tbody tr td:first-child {
    font-weight: 600;
}

.source-note {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.keyword {
    background: #f0f4ff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    border: 1px solid #dee2e6;
}

.keyword:hover {
    background: #0055a4;
    color: white;
    border-color: #0055a4;
}

/* ---------- USE CASE PAGE ---------- */
.use-case-intro {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.use-case-intro h2 {
    color: #1a1a2e;
    font-size: 2rem;
}

.visual-timeline {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.visual-timeline span {
    padding: 0.3rem 0.8rem;
    background: #1a1a2e;
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

.use-case-element {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.use-case-element h2 {
    color: #0055a4;
    border-bottom: 2px solid #0055a4;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.element-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .element-content {
        grid-template-columns: 1fr 1fr;
    }
}

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

.element-checklist ul,
.timeline-item ul {
    list-style: none;
    padding: 0;
}

.element-checklist li,
.timeline-item li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.element-checklist li:last-child,
.timeline-item li:last-child {
    border-bottom: none;
}

.element-template pre {
    background: #1a1a2e;
    color: #00d4ff;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
}

.use-case-summary {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0055a4;
}

.timeline-item h3 {
    color: #0055a4;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.timeline-item li {
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

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

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

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    text-align: center;
    padding: 2rem 0;
}

.back-to-top a {
    color: #0055a4;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 2px solid #0055a4;
    transition: 0.3s;
}

.back-to-top a:hover {
    background: #0055a4;
    color: white;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 2rem;
    background: #1a1a2e;
    color: #adb5bd;
    margin-top: 2rem;
}

footer .footer-ai {
    color: #00d4ff;
    font-weight: 700;
}

footer a {
    color: #00d4ff;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #ffffff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr 1fr;
        margin-top: 1rem;
    }
    
    .sub-nav ul {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .data-metrics {
        grid-template-columns: 1fr;
    }
    
    .results-table {
        font-size: 0.85rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}