/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #1e40af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--gray-900);
    line-height: 1.7;
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow-lg);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 32px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

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

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.hero-meta i {
    font-size: 18px;
}

.hero-description {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 60px;
}

/* Objectives Section */
.objectives {
    background: white;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.objective-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.objective-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    box-shadow: var(--box-shadow);
}

.objective-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.objective-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Methodology Section */
.methodology {
    background: var(--gray-100);
}

.methodology-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phase-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    transition: var(--transition);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.phase-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: var(--box-shadow);
}

.phase-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 20px;
    color: var(--gray-900);
}

.phase-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 14px;
}

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

.phase-card ul li {
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 14px;
    position: relative;
    padding-left: 24px;
}

.phase-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.phase-arrow {
    font-size: 32px;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

/* Architecture Section */
.architecture {
    background: white;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arch-layer {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--box-shadow);
    border-left: 6px solid;
    transition: var(--transition);
}

.arch-layer:hover {
    transform: translateX(8px);
    box-shadow: var(--box-shadow-lg);
}

.arch-layer h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.arch-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.arch-component {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.arch-component:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.business-layer {
    border-left-color: #8b5cf6;
}

.business-layer h3 {
    color: #8b5cf6;
}

.service-layer {
    border-left-color: #3b82f6;
}

.service-layer h3 {
    color: #3b82f6;
}

.application-layer {
    border-left-color: #10b981;
}

.application-layer h3 {
    color: #10b981;
}

.integration-layer {
    border-left-color: #f59e0b;
}

.integration-layer h3 {
    color: #f59e0b;
}

.infrastructure-layer {
    border-left-color: #ef4444;
}

.infrastructure-layer h3 {
    color: #ef4444;
}

/* Principles Section */
.principles {
    background: var(--gray-100);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.principle-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.principle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.principle-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    box-shadow: var(--box-shadow);
}

.principle-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.principle-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-detail {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-detail:hover {
    background: var(--accent-color);
    transform: translateX(4px);
}

/* Case Study Section */
.case-study {
    background: white;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.case-overview,
.case-benefits,
.case-lessons {
    background: var(--gray-100);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.case-overview h3,
.case-benefits h3,
.case-lessons h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.overview-grid {
    display: grid;
    gap: 20px;
}

.overview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.overview-item strong {
    color: var(--primary-color);
    font-size: 16px;
}

.overview-item span {
    color: var(--gray-700);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.benefit-item {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.benefit-metric {
    font-size: 48px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 8px;
}

.benefit-label {
    font-size: 16px;
    color: var(--gray-700);
    font-weight: 500;
}

.lessons-list {
    list-style: none;
}

.lessons-list li {
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}

.lessons-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--box-shadow);
}

.lessons-list i {
    color: var(--success-color);
    font-size: 24px;
    flex-shrink: 0;
}

.lessons-list strong {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 20px;
}

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

.footer h4 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.footer p {
    margin-bottom: 8px;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.footer-contact i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-400);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow-lg);
    animation: slideDown 0.4s ease;
}

.close {
    color: var(--gray-400);
    float: right;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--gray-900);
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .methodology-flow {
        flex-direction: column;
    }

    .phase-arrow {
        transform: rotate(90deg);
    }

    .phase-card {
        max-width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 24px;
        margin: 10% auto;
    }
}

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

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