/* ==========================================
   INDEX PAGE STYLES - ERP Implementation Report
   ========================================== */

/* === Base Styles === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #2c3e50;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.page-wrapper {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header Styles === */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 50%, #0d8a70 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26, 188, 156, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite;
}

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

.header-content {
    position: relative;
    z-index: 1;
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Navigation === */
nav.top-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

nav.top-nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav.top-nav a:hover,
nav.top-nav a:focus {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.4);
    outline: none;
}

/* === TOC Section === */
.toc-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.toc-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    text-align: center;
}

.toc-description {
    text-align: center;
    color: #7f8c8d;
    margin: 0 0 30px 0;
    font-size: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.toc-list a:hover,
.toc-list a:focus {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.3);
    outline: none;
}

.toc-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1abc9c;
    background: rgba(26, 188, 156, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.toc-list a:hover .toc-number,
.toc-list a:focus .toc-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toc-title {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.toc-list a:hover .toc-title,
.toc-list a:focus .toc-title {
    color: white;
}

.toc-arrow {
    font-size: 1.2rem;
    color: #bdc3c7;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.toc-list a:hover .toc-arrow,
.toc-list a:focus .toc-arrow {
    color: white;
    opacity: 1;
    transform: translateX(0);
}

/* === Highlights Section === */
.highlights-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.highlights-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 30px 0;
    text-align: center;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.highlight-card {
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.highlight-card h3 {
    font-size: 2rem;
    color: #1abc9c;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.highlight-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* === Footer === */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
}

.footer-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.footer-tagline {
    margin-top: 8px !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    font-style: italic;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 20px 15px;
    }

    header {
        padding: 40px 20px;
        border-radius: 16px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav.top-nav {
        gap: 10px;
    }

    nav.top-nav a {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .toc-section,
    .highlights-section {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .toc-list a {
        padding: 15px 18px;
    }

    .toc-number {
        min-width: 35px;
        padding: 6px 10px;
        margin-right: 15px;
    }

    .toc-title {
        font-size: 0.95rem;
    }

    .highlight-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    .header-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    nav.top-nav {
        flex-direction: column;
        align-items: center;
    }

    nav.top-nav a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .toc-list a {
        flex-wrap: wrap;
    }

    .toc-number {
        margin-bottom: 8px;
    }
}
