* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98); 
    border-radius: 20px;
   box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); 
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>'); 
    opacity: 0.3;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.main-diagram {
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%); 
}

.applications-section {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(231, 76, 60, 0.1); 
}

.section-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.app-item {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.app-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
}

.app-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.app-item:hover::before {
    left: 100%;
}

.app-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
}

.app-name {
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.app-description {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.4;
}

.connection-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
}

.flow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.flow-label {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.flow-arrow {
    width: 40px;
    height: 6px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 3px;
    position: relative;
    transform: rotate(90deg)!important;
    animation: flowPulse 2s infinite;
    margin-top: 15px;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 20px solid #c0392b;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.7; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

.driver-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    margin: 40px 0;
    position: relative;
   box-shadow: 0 20px 40px rgba(231, 76, 60, 0.3); 
    cursor: pointer;
    transition: all 0.3s ease;
}

.driver-section:hover {
    transform: translateY(-5px);
   box-shadow: 0 25px 50px rgba(231, 76, 60, 0.4); 
}

.driver-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
    opacity: 0.95;
}

.driver-title {
    font-size: 2.2em;
    font-weight: 300;
    margin-bottom: 15px;
}

.driver-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 25px;
}

.driver-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    text-align: left;
}

.driver-feature {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.driver-feature h4 {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.driver-feature p {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.4;
}

.backend-platform {
    background: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); 
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.backend-platform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.02));
    z-index: 1;
}

.backend-platform > * {
    position: relative;
    z-index: 2;
}

.backend-layers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.backend-layer {
    width: 120px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.backend-layer:hover {
    transform: translateY(-5px) scale(1.05);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.layer-api { background: linear-gradient(135deg, #3498db, #2980b9); }
.layer-business { background: linear-gradient(135deg, #e67e22, #d35400); }
.layer-data { background: linear-gradient(135deg, #27ae60, #229954); }

.backend-title {
    font-size: 2.5em;
    color: #e74c3c;
    font-weight: 300;
    margin: 20px 0;
}

.backend-description {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.info-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-panel {
    background: white;
    border-radius: 18px;
    padding: 30px;
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); 
    border-top: 5px solid #e74c3c;
    transition: all 0.3s ease;
}

.info-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.info-panel h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-panel p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

.toggle-details {
    background: linear-gradient(135deg, #e74c3c, #c0392b); 
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.toggle-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.detailed-info {
    margin-top: 20px;
    padding: 25px;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 15px;
    border-left: 4px solid #e74c3c;
    display: none;
    animation: slideIn 0.3s ease;
}

.detailed-info.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.use-case {
    background: rgba(52, 152, 219, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.use-case h4 {
    color: #2980b9;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.use-case p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .connection-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
        width: 80px;
    }
    
    .backend-layers {
        flex-direction: column;
        gap: 15px;
    }
    
    .app-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .info-panel, .use-case {
        width:80%
    }
}
