/* DBMS Advantages Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-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 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Advantages Overview */
.advantages-overview {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.advantage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.stat-item h3 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-item p {
    font-size: 1.2rem;
    color: #555;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Comparison Table */
.comparison-table {
    padding: 80px 0;
}

.comparison-table h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.professional-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.professional-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.professional-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.professional-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.professional-table tbody tr {
    transition: all 0.3s ease;
}

.professional-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.file-system {
    background: linear-gradient(90deg, rgba(255, 99, 99, 0.1), transparent);
    border-left: 4px solid #ff6b6b;
    font-weight: 500;
    color: #d63031;
}

.dbms-system {
    background: linear-gradient(90deg, rgba(85, 187, 130, 0.1), transparent);
    border-left: 4px solid #55bb82;
    font-weight: 500;
    color: #00b894;
}

.impact {
    font-weight: 600;
    color: #333;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    border-left: 4px solid #667eea;
}

/* Enterprise Benefits */
.enterprise-benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.enterprise-benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.benefit-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-examples span {
    font-size: 0.9rem;
    color: #555;
    padding-left: 1rem;
    position: relative;
}

.benefit-examples span::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 600;
}

/* Case Studies */
.case-studies {
    padding: 80px 0;
}

.case-studies h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.case-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    text-align: center;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.company-logo.netflix { background: #e50914; }
.company-logo.amazon { background: #ff9900; }
.company-logo.uber { background: #000000; }

.case-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.industry {
    font-size: 0.9rem;
    opacity: 0.8;
}

.case-content {
    padding: 2rem;
}

.challenge, .solution, .results {
    margin-bottom: 1.5rem;
}

.challenge h4, .solution h4, .results h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.challenge p {
    color: #666;
    font-style: italic;
}

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

.solution li {
    padding: 0.3rem 0;
    color: #555;
}

.solution strong {
    color: #667eea;
    font-weight: 600;
}

.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metric {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ROI Calculator */
.roi-calculator {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.roi-calculator h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.calculator-inputs {
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.input-group select,
.input-group input[type="range"] {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.input-group input[type="range"] {
    background: white;
    height: 8px;
    appearance: none;
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.range-value {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem;
    border-radius: 5px;
}

.calculate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.calculator-results {
    padding: 3rem;
}

.calculator-results h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.result-item.highlight {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border: 2px solid #667eea;
}

.result-label {
    font-weight: 600;
    color: #333;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.result-item.highlight .result-value {
    font-size: 1.5rem;
    color: #28a745;
}

/* Page Navigation */
.page-navigation {
    padding: 60px 0;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .advantage-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .advantage-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 3rem;
    }
    
    .benefits-grid,
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }
    
    .calculator-inputs,
    .calculator-results {
        padding: 2rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        justify-content: center;
    }
    
    .professional-table {
        font-size: 0.8rem;
    }
    
    .professional-table th,
    .professional-table td {
        padding: 0.8rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}