/* AGI Clock Specific Styles */
.agi-clock-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    padding: 100px 0 80px;
}

.clock-header {
    text-align: center;
    margin-bottom: 60px;
}

.clock-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333333;
}

.clock-header .subtitle {
    font-size: 1.1rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto 15px;
    line-height: 1.8;
}

.clock-maintainer {
    font-size: 0.9rem;
    color: #999999;
    font-style: italic;
}

/* Clock Container */
.clock-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 50px auto;
    background: radial-gradient(circle, #ffffff 0%, #f5f5f5 100%);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px #333333,
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Clock Center */
.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #d32f2f;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

/* Hour Markers */
.hour-marker {
    position: absolute;
    width: 2px;
    height: 15px;
    background-color: #333333;
    top: 20px;
    left: 50%;
    transform-origin: center 230px;
    transform: translateX(-50%) rotate(var(--rotation));
}

.hour-marker.major {
    width: 3px;
    height: 25px;
    background-color: #000000;
}

.hour-marker.rotation-0 { --rotation: 0deg; }
.hour-marker.rotation-30 { --rotation: 30deg; }
.hour-marker.rotation-60 { --rotation: 60deg; }
.hour-marker.rotation-90 { --rotation: 90deg; }
.hour-marker.rotation-120 { --rotation: 120deg; }
.hour-marker.rotation-150 { --rotation: 150deg; }
.hour-marker.rotation-180 { --rotation: 180deg; }
.hour-marker.rotation-210 { --rotation: 210deg; }
.hour-marker.rotation-240 { --rotation: 240deg; }
.hour-marker.rotation-270 { --rotation: 270deg; }
.hour-marker.rotation-300 { --rotation: 300deg; }
.hour-marker.rotation-330 { --rotation: 330deg; }

/* Hour Numbers */
.hour-number {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    transform: translate(-50%, -50%);
}

.hour-number.hour-number-12 {
    top: 55px;
    left: 50%;
}

.hour-number.hour-number-3 {
    top: 50%;
    right: 50px;
}

.hour-number.hour-number-6 {
    bottom: 30px;
    left: 50%;
}

.hour-number.hour-number-9 {
    top: 50%;
    left: 55px;
}

/* Clock Hand */
.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 4px;
    height: 180px;
    background: linear-gradient(to top, #d32f2f, #b71c1c);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(358deg);
    border-radius: 2px 2px 0 0;
    z-index: 5;
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
    animation: tick 2s ease-in-out infinite;
}

@keyframes tick {
    0%, 100% { transform: translateX(-50%) rotate(358deg); }
    50% { transform: translateX(-50%) rotate(359deg); }
}

/* Current Time Display */
.current-time {
    text-align: center;
    margin-top: 40px;
    font-family: 'Playfair Display', serif;
}

.time-value {
    font-size: 4rem;
    font-weight: 700;
    color: #d32f2f;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(211, 47, 47, 0.2);
}

.time-description {
    font-size: 1.2rem;
    color: #666666;
    margin-top: 10px;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.timeline-header p {
    font-size: 1.1rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-section .disclaimer {
    max-width: 900px;
    margin: 15px auto 50px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border-left: 3px solid #4a6fa0;
    box-shadow: none; /* remove the red shadow */
}

.timeline-section .disclaimer p {
    color: #666666;
    font-size: 10px;
    line-height: 1.8;
    margin: 0;
}

.timeline-section .disclaimer a {
    color: #4a6fa0;
    text-decoration: none;
    font-weight: 500;
}

.timeline-section .disclaimer a:hover {
    text-decoration: underline;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #e0e0e0, #d32f2f);
}

.timeline-event {
    position: relative;
    margin-bottom: 60px;
    width: 45%;
}

.timeline-event.left {
    left: 0;
    text-align: right;
    padding-right: 50px;
}

.timeline-event.right {
    left: 55%;
    text-align: left;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 4px solid #333333;
    box-shadow: 0 0 0 4px #ffffff, 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-event.left .timeline-marker {
    right: -12px;
}

.timeline-event.right .timeline-marker {
    left: -12px;
}

.timeline-event.critical .timeline-marker {
    border-color: #ff9800;
    background-color: #fff3e0;
}

.timeline-event.danger .timeline-marker {
    border-color: #d32f2f;
    background-color: #ffebee;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px #ffffff, 0 0 10px rgba(211, 47, 47, 0.3); }
    50% { box-shadow: 0 0 0 4px #ffffff, 0 0 20px rgba(211, 47, 47, 0.6); }
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 0;
}

.timeline-clock-time {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    background-color: #333333;
    color: #ffffff;
    font-size: 0.85rem;
    border-radius: 3px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.timeline-event.critical .timeline-clock-time {
    background-color: #ff9800;
}

.timeline-event.danger .timeline-clock-time {
    background-color: #d32f2f;
}

/* Interpretation Section */
.interpretation-section {
    padding: 80px 0;
    background-color: #f8fafb;
}

.interpretation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.interpretation-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.interpretation-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.interpretation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333333;
}

.interpretation-card p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
}

.why-matters {
    margin-top: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-matters-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.why-matters-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666666;
}

.why-matters-actions {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clock-container {
        width: 350px;
        height: 350px;
    }

    .clock-hand {
        height: 130px;
    }

    .hour-marker {
        transform-origin: center 155px;
    }

    .time-value {
        font-size: 3rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-event {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-event .timeline-marker {
        left: 18px !important;
    }

    .clock-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .clock-container {
        width: 260px;
        height: 260px;
    }

    .clock-hand {
        height: 95px;
    }

    .hour-marker {
        transform-origin: center 115px;
    }

    .time-value {
        font-size: 2.2rem;
    }

    .clock-header h1 {
        font-size: 1.6rem;
    }

    .timeline-event {
        padding-left: 60px;
    }

    .why-matters-title {
        font-size: 1.25rem;
    }
}
