/* CSS Custom Properties for consistent theming */
:root {
    --primary-gold: #d4af37;
    --secondary-gold: #f4e4a6;
    --deep-navy: #1a1a2e;
    --cosmic-purple: #16213e;
    --accent-blue: #0f3460;
    --text-light: #e8e8e8;
    --text-gold: #d4af37;
    --shadow-glow: rgba(212, 175, 55, 0.3);
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4a6 50%, #d4af37 100%);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rome-time-app {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow-x: hidden;
	  margin:40px 0;
}

/* Hero Section */
.hero-timekeeper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.cosmic-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 52, 96, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    animation: cosmicPulse 8s ease-in-out infinite alternate;
}

@keyframes cosmicPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.time-sanctuary {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* Rome Branding */
.rome-branding {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.city-emblem {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--deep-navy);
    box-shadow: 0 10px 30px var(--shadow-glow);
    animation: emblemRotate 10s linear infinite;
}

@keyframes emblemRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.title-constellation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.2em;
    text-shadow: 0 0 30px var(--shadow-glow);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px var(--primary-gold)); }
    100% { filter: drop-shadow(0 0 20px var(--primary-gold)); }
}

.subtitle-glow {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--secondary-gold);
    opacity: 0.9;
    letter-spacing: 0.1em;
}

/* Clock Constellation */
.clock-constellation {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.rome-timepiece {
    width: 400px;
    height: 400px;
    max-width: 90vw;
    max-height: 90vw;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.2));
}

.clock-rim {
    fill: none;
    stroke: var(--primary-gold);
    stroke-width: 4;
    opacity: 0.8;
}

.clock-face {
    fill: rgba(26, 26, 46, 0.9);
    stroke: var(--secondary-gold);
    stroke-width: 2;
}

.roman-numerals .numeral {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    fill: var(--primary-gold);
    text-anchor: middle;
    dominant-baseline: central;
}

.hour-tick {
    stroke: var(--primary-gold);
    stroke-width: 3;
    stroke-linecap: round;
}

.hand {
    stroke-linecap: round;
    transform-origin: 200px 200px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hour-hand {
    stroke: var(--primary-gold);
    stroke-width: 6;
}

.minute-hand {
    stroke: var(--secondary-gold);
    stroke-width: 4;
}

.second-hand {
    stroke: #ff6b6b;
    stroke-width: 2;
    animation: secondTick 1s linear infinite;
}

@keyframes secondTick {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.center-dot {
    fill: var(--primary-gold);
    stroke: var(--deep-navy);
    stroke-width: 2;
}

/* Digital Chronometer */
.digital-chronometer {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.time-capsules {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.time-cube {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 52, 96, 0.2) 100%);
    border: 2px solid var(--primary-gold);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    animation: cubeFloat 4s ease-in-out infinite;
}

@keyframes cubeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.time-cube:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--shadow-glow);
}

.time-digit {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 0 15px var(--shadow-glow);
    line-height: 1;
}

.time-label {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.time-separator {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: var(--primary-gold);
    animation: separatorBlink 2s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Timezone Info */
.timezone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.timezone-badge {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--primary-gold);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timezone-badge span {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--primary-gold);
}

.date-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* Section Styles */
.info-constellation {
    padding: 5rem 1rem;
    position: relative;
}

.section-cosmos {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.icon-constellation {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--deep-navy);
    box-shadow: 0 10px 30px var(--shadow-glow);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Content Matrix */
.content-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-prism {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 52, 96, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.info-prism:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
}

.prism-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--deep-navy);
}

.prism-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.prism-text {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.7;
}

/* Timeline Constellation */
.timeline-constellation {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-node {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 2px;
    height: calc(100% + 2rem);
    background: linear-gradient(to bottom, var(--primary-gold), transparent);
}

.timeline-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--deep-navy);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.timeline-marker.ancient {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

.timeline-marker.medieval {
    background: linear-gradient(135deg, #4169E1, #87CEEB);
}

.timeline-marker.modern {
    background: var(--gradient-gold);
}

.timeline-content {
    flex: 1;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 52, 96, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.timeline-text {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.7;
}

/* Culture Gallery */
.culture-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.culture-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 52, 96, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--deep-navy);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.7;
}

/* Travel Grid */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.travel-info-panel {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 52, 96, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.travel-info-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.panel-header {
    background: rgba(212, 175, 55, 0.2);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.panel-header i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.panel-header span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.time-comparison-list, .tips-list {
    padding: 2rem;
}

.time-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.time-comparison:last-child {
    border-bottom: none;
}

.city-name {
    color: var(--text-light);
    font-weight: 500;
}

.time-diff {
    font-family: 'Orbitron', monospace;
    color: var(--primary-gold);
    font-weight: 600;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tip-item i {
    color: var(--primary-gold);
    margin-top: 0.3rem;
}

.tip-item span {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.6;
}

/* Business Schedule */
.business-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.schedule-category {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 52, 96, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.schedule-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.category-header span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.hours-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-time {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.hours-note {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* Footer */
.cosmic-footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 52, 96, 0.9) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem 1rem 2rem;
    margin-top: 5rem;
}

.footer-constellation {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.footer-brand span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.footer-text {
    color: var(--text-light);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-timestamp {
    font-family: 'Orbitron', monospace;
    color: var(--primary-gold);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-title {
        font-size: 3rem;
    }
    
    .rome-timepiece {
        width: 350px;
        height: 350px;
    }
    
    .time-digit {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .rome-timepiece {
        width: 300px;
        height: 300px;
    }
    
    .time-capsules {
        gap: 1rem;
    }
    
    .time-cube {
        min-width: 100px;
        padding: 1rem 0.8rem;
    }
    
    .time-digit {
        font-size: 2rem;
    }
    
    .timeline-node {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-node::after {
        display: none;
    }
    
    .travel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-timekeeper {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .subtitle-glow {
        font-size: 1.2rem;
    }
    
    .rome-timepiece {
        width: 250px;
        height: 250px;
    }
    
    .time-capsules {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .time-separator {
        display: none;
    }
    
    .content-matrix {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .culture-gallery {
        grid-template-columns: 1fr;
    }
    
    .business-schedule {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .time-cube {
        min-width: 80px;
        padding: 0.8rem 0.6rem;
    }
    
    .time-digit {
        font-size: 1.8rem;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .info-prism, .culture-card, .travel-info-panel, .schedule-category {
        padding: 1.5rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #ffff00;
        --text-light: #ffffff;
        --deep-navy: #000000;
    }
}
