/* Custom IASER Website Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Architecture Section */
.arch-box {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.arch-box:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #dee2e6;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* Download Cards */
.download-card {
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Progress bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: 5px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1e21 100%);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

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

/* Code blocks */
pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    overflow-x: auto;
}

code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
    font-size: 0.9em;
}

/* Tables */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.table-custom th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
}

.table-custom td {
    border-color: #f8f9fa;
    vertical-align: middle;
}

/* Documentation specific styles */
.doc-sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.doc-content {
    padding-left: 30px;
}

@media (max-width: 992px) {
    .doc-content {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .doc-sidebar {
        position: relative;
        top: 0;
    }
}

.doc-nav {
    list-style: none;
    padding: 0;
}

.doc-nav li {
    margin-bottom: 8px;
}

.doc-nav a {
    color: #495057;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    display: block;
    transition: all 0.3s ease;
}

.doc-nav a:hover,
.doc-nav a.active {
    background: var(--primary-color);
    color: white;
}

/* Section headers */
.section-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Alert boxes */
.alert-custom {
    border: none;
    border-left: 4px solid;
    border-radius: 0 8px 8px 0;
}

.alert-info.alert-custom {
    border-left-color: var(--info-color);
    background: rgba(23, 162, 184, 0.1);
}

.alert-success.alert-custom {
    border-left-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.alert-warning.alert-custom {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.1);
}

.alert-danger.alert-custom {
    border-left-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}