/* Variables */
:root {
    --primary-color: #6e8efb;
    --secondary-color: #a777e3;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Indie Flower', cursive;
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
}

/* Typography */
.text-shadow {
    text-shadow: 2px 2px 1px rgba(0,0,0,0.5);
}

.text-white {
    color: #fff !important;
}

/* Layout */
.container-fluid {
    padding: 0;
}

/* Top Box */
.top-box {
    background: linear-gradient(135deg, #fff, #e685b5);
    padding: 40px 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

#topcontrol {
    right: 0 !important;
    bottom: 0 !important;
}

.top-box h1,
.top-box p {
    color: #fff !important;
}

.colorgraph {
    height: 5px;
    margin: 50px 0;
    border-top: 0;
    background: #c4e17f;
    border-radius: 5px;
    background-image: linear-gradient(to right, 
        #c4e17f, #c4e17f 12.5%, 
        #f7fdca 12.5%, #f7fdca 25%, 
        #fecf71 25%, #fecf71 37.5%, 
        #f0776c 37.5%, #f0776c 50%, 
        #db9dbe 50%, #db9dbe 62.5%, 
        #c49cde 62.5%, #c49cde 75%, 
        #669ae1 75%, #669ae1 87.5%, 
        #62c2e4 87.5%, #62c2e4
    );
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background-color: var(--border-color);
}

.timeline > li {
    position: relative;
    margin-bottom: 50px;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    background-color: #fd7e14;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-badge:hover {
    transform: scale(1.1);
}

.timeline-panel {
    position: relative;
    width: 46%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-panel:hover {
    box-shadow: var(--shadow-md);
}

.timeline > li.timeline-inverted .timeline-panel {
    float: right;
}

.timeline > li.timeline-inverted .timeline-badge {
    background-color: #e685b5;
}

.featurette .col-md-5,
.featurette .col-md-7 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Featurette */
.featurette-divider {
    margin: 40px 0;
    border-color: var(--border-color);
}

.featurette-heading {
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
}

.rounded {
    border-radius: 1rem !important;
}

/* Footer */
footer {
    background-color: var(--light-bg);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.lb-data .lb-number {
    font-size: 14px;
    color: #fff;
}

.lb-closeContainer {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline:before {
        left: 40px;
    }
    
    .timeline > li {
        margin-bottom: 30px;
    }
    
    .timeline-badge {
        left: 40px;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        margin-left: 90px;
    }
    
    .timeline > li.timeline-inverted .timeline-panel {
        float: left;
    }
    
    .timeline > li.timeline-inverted {
        text-align: left;
    }
    
    .top-box {
        padding: 20px 0;
    }
}