:root {
    --time-fabric: #37474F;
    --temporal-light: #E3F2FD;
    --time-slow: #4CAF50;
    --time-fast: #FF9800;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--time-fabric);
    color: var(--temporal-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--time-fabric) 0%, #263238 100%);
    padding: 12px 0;
    text-align: center;
    border-bottom: 2px solid var(--temporal-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-bar p {
    color: var(--temporal-light);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Header */
.header {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--time-fabric) 0%, #263238 50%, var(--time-fabric) 100%);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.building-hourglass-logo {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 20px rgba(227, 242, 253, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: radial-gradient(ellipse at center, #455A64 0%, var(--time-fabric) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--temporal-light);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(227, 242, 253, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--temporal-light);
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--time-fast) 0%, #F57C00 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
    background: linear-gradient(135deg, #F57C00 0%, var(--time-fast) 100%);
}

/* Temporal Demo */
.temporal-demo {
    padding: 20px;
}

.demo-container {
    background: rgba(55, 71, 79, 0.6);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(227, 242, 253, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.time-control-panel h3 {
    color: var(--temporal-light);
    margin-bottom: 25px;
    text-align: center;
}

.time-slider-container {
    margin-bottom: 30px;
}

.time-slider-container label {
    display: block;
    color: var(--temporal-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.time-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--time-slow) 0%, var(--temporal-light) 50%, var(--time-fast) 100%);
    outline: none;
    -webkit-appearance: none;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--temporal-light);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(227, 242, 253, 0.8);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--temporal-light);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(227, 242, 253, 0.8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--temporal-light);
    opacity: 0.8;
}

.current-speed {
    text-align: center;
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--temporal-light);
    font-weight: 600;
}

#speedValue {
    color: var(--time-fast);
    font-size: 1.4rem;
}

.visual-demo {
    position: relative;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
}

.time-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--time-fast);
    box-shadow: 0 0 15px var(--time-fast);
}

#particle1 {
    left: 20%;
    top: 20%;
    animation: particleMove1 3s linear infinite;
}

#particle2 {
    left: 50%;
    top: 40%;
    animation: particleMove2 2.5s linear infinite;
}

#particle3 {
    left: 80%;
    top: 60%;
    animation: particleMove3 3.5s linear infinite;
}

@keyframes particleMove1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(100px, 150px); }
    100% { transform: translate(0, 0); }
}

@keyframes particleMove2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-80px, 120px); }
    100% { transform: translate(0, 0); }
}

@keyframes particleMove3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(60px, -100px); }
    100% { transform: translate(0, 0); }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--time-fabric) 0%, #263238 100%);
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: rgba(55, 71, 79, 0.4);
    border-radius: 20px;
    border: 2px solid rgba(227, 242, 253, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(227, 242, 253, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(227, 242, 253, 0.5));
}

.feature-card h3 {
    color: var(--temporal-light);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--temporal-light);
    opacity: 0.85;
    line-height: 1.8;
    font-size: 1rem;
}

/* Modal Styles */
.modal-content {
    background: var(--time-fabric);
    color: var(--temporal-light);
    border: 2px solid rgba(227, 242, 253, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(227, 242, 253, 0.2);
}

.modal-title {
    color: var(--temporal-light);
}

.btn-close {
    filter: invert(1);
}

.configurator-container {
    padding: 20px 0;
}

.space-layout h4,
.temporal-settings h4,
.preview-area h4 {
    color: var(--temporal-light);
    margin-bottom: 20px;
}

.space-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.space-btn {
    padding: 12px 24px;
    background: rgba(227, 242, 253, 0.1);
    border: 2px solid rgba(227, 242, 253, 0.3);
    color: var(--temporal-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.space-btn:hover,
.space-btn.active {
    background: var(--time-fast);
    border-color: var(--time-fast);
    color: var(--time-fabric);
    transform: translateY(-2px);
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    color: var(--temporal-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.setting-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--time-slow) 0%, var(--temporal-light) 50%, var(--time-fast) 100%);
    outline: none;
    -webkit-appearance: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--temporal-light);
    cursor: pointer;
}

.setting-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--temporal-light);
    cursor: pointer;
    border: none;
}

.setting-value {
    display: inline-block;
    margin-left: 15px;
    color: var(--time-fast);
    font-weight: 600;
    font-size: 1.1rem;
}

.preview-visualization {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    min-height: 200px;
}

.preview-building {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
    height: 150px;
}

.preview-zone {
    width: 80px;
    height: 100px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(227, 242, 253, 0.2);
}

.btn-secondary {
    background: rgba(227, 242, 253, 0.1);
    border: 2px solid rgba(227, 242, 253, 0.3);
    color: var(--temporal-light);
}

.btn-secondary:hover {
    background: rgba(227, 242, 253, 0.2);
    border-color: rgba(227, 242, 253, 0.4);
}

/* Bottom Bar */
.bottom-bar {
    background: linear-gradient(135deg, #263238 0%, var(--time-fabric) 100%);
    padding: 25px 0;
    text-align: center;
    border-top: 2px solid var(--temporal-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.bottom-bar p {
    color: var(--temporal-light);
    font-size: 1rem;
    opacity: 0.9;
}

.bottom-bar .rivertheme-link {
    color: var(--time-fast);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.bottom-bar .rivertheme-link:hover {
    color: var(--temporal-light);
    background: var(--time-fast);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .building-hourglass-logo {
        width: 120px;
        height: 120px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .space-options {
        justify-content: center;
    }
}

