/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties */
:root {
    --egypt-gold: #FFD700;
    --egypt-red: #CE1126;
    --egypt-black: #000000;
    --egypt-white: #FFFFFF;
    --desert-sand: #F4E4BC;
    --nile-blue: #0077BE;
    --papyrus: #F7F3E9;
    --hieroglyph-brown: #8B4513;
    --pharaoh-purple: #6B46C1;
    --sunset-orange: #FF6B35;
    
    --gradient-pyramid: linear-gradient(135deg, var(--egypt-gold), var(--sunset-orange));
    --gradient-nile: linear-gradient(135deg, var(--nile-blue), var(--pharaoh-purple));
    --gradient-desert: linear-gradient(135deg, var(--desert-sand), var(--egypt-gold));
    
    --shadow-gold: 0 8px 32px rgba(255, 215, 0, 0.3);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    
    --border-radius: 16px;
    --border-radius-large: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
.egypt-timezone-app {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--egypt-black);
    background: linear-gradient(135deg, var(--papyrus) 0%, var(--desert-sand) 100%);
    min-height: 100vh;
    padding: 20px;
	  margin:40px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.egypt-flag-accent {
    width: 100px;
    height: 60px;
    background: linear-gradient(to bottom, var(--egypt-red) 33.33%, var(--egypt-white) 33.33%, var(--egypt-white) 66.66%, var(--egypt-black) 66.66%);
    margin: 0 auto 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.02); }
    75% { transform: rotate(-1deg) scale(1.02); }
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 900;
    background: var(--gradient-pyramid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--hieroglyph-brown);
    font-weight: 500;
    opacity: 0.9;
}

/* Clock Section */
.clock-section {
    margin-bottom: 50px;
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.analog-clock {
    position: relative;
    width: clamp(250px, 40vw, 350px);
    height: clamp(250px, 40vw, 350px);
}

.clock-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(var(--shadow-gold));
}

.clock-face {
    fill: var(--egypt-white);
    stroke: var(--egypt-gold);
    stroke-width: 3;
}

.clock-inner {
    fill: none;
    stroke: var(--desert-sand);
    stroke-width: 1;
}

.hour-marker {
    stroke: var(--egypt-gold);
    stroke-width: 3;
    stroke-linecap: round;
}

.clock-number {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    fill: var(--hieroglyph-brown);
    dominant-baseline: central;
}

.hour-hand {
    stroke: var(--hieroglyph-brown);
    stroke-width: 4;
    stroke-linecap: round;
    transform-origin: 100px 100px;
    transition: transform 0.5s ease;
}

.minute-hand {
    stroke: var(--egypt-gold);
    stroke-width: 3;
    stroke-linecap: round;
    transform-origin: 100px 100px;
    transition: transform 0.5s ease;
}

.second-hand {
    stroke: var(--egypt-red);
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: 100px 100px;
    transition: transform 0.1s ease;
}

.center-circle {
    fill: var(--egypt-red);
    stroke: var(--egypt-white);
    stroke-width: 2;
}

/* Digital Time Display */
.digital-time {
    text-align: center;
}

.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
/* 
.time-box {
    background: var(--gradient-pyramid);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    animation: timeBoxPulse 2s ease-in-out infinite;
} */

.time-box {
	background: var(--gradient-pyramid);
	border-radius: var(--border-radius);
	padding: 20px 15px;
	box-shadow: var(--shadow-gold);
	position: relative;
	overflow: hidden;
	min-width: 226px;
	animation: timeBoxPulse 2s ease-in-out infinite;
}

@keyframes timeBoxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.time-digit {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--egypt-white);
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.time-label {
    font-size: 0.8rem;
    color: var(--egypt-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.time-separator {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--egypt-gold);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.timezone-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.timezone-name {
    font-weight: 600;
    color: var(--hieroglyph-brown);
    font-size: 1.1rem;
}

.timezone-offset {
    font-family: 'Orbitron', monospace;
    color: var(--egypt-gold);
    font-weight: 700;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Content Cards */
.content-card {
    background: var(--egypt-white);
    border-radius: var(--border-radius-large);
    padding: 30px;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.pyramid-card::before { background: var(--gradient-pyramid); }
.sphinx-card::before { background: var(--gradient-nile); }
.nile-card::before { background: var(--gradient-desert); }
.pharaoh-card::before { background: linear-gradient(135deg, var(--pharaoh-purple), var(--egypt-red)); }
.obelisk-card::before { background: linear-gradient(135deg, var(--hieroglyph-brown), var(--egypt-gold)); }
.temple-card::before { background: linear-gradient(135deg, var(--sunset-orange), var(--egypt-red)); }

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--desert-sand);
}

.card-icon {
    font-size: 2rem;
    padding: 10px;
    background: var(--gradient-pyramid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    box-shadow: var(--shadow-soft);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hieroglyph-brown);
}

.card-content {
    color: var(--egypt-black);
}

/* Info Items */
.info-item, .detail-row, .geo-item, .hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.info-item:last-child, .detail-row:last-child, .geo-item:last-child, .hours-item:last-child {
    border-bottom: none;
}

.info-label, .detail-label, .geo-label, .hours-label {
    font-weight: 600;
    color: var(--hieroglyph-brown);
    flex: 1;
}

.info-value, .detail-value, .geo-value, .hours-value {
    font-weight: 500;
    color: var(--egypt-black);
    text-align: right;
    flex: 1;
}

/* Date Display */
.date-display {
    text-align: center;
    margin-bottom: 20px;
}

.current-date {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--egypt-gold);
    background: var(--gradient-pyramid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.comparison-item {
    background: var(--gradient-desert);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.city-name {
    display: block;
    font-weight: 600;
    color: var(--hieroglyph-brown);
    margin-bottom: 8px;
}

.city-time {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--egypt-black);
    font-size: 1.1rem;
}

/* History Facts */
.fact-item {
    background: rgba(255, 215, 0, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 4px solid var(--egypt-gold);
}

.fact-item:last-child {
    margin-bottom: 0;
}

.fact-title {
    display: block;
    font-weight: 700;
    color: var(--hieroglyph-brown);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.fact-description {
    color: var(--egypt-black);
    line-height: 1.7;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .clock-container {
        gap: 25px;
    }
    
    .time-display {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .egypt-timezone-app {
        padding: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .time-display {
        gap: 8px;
    }
    
    .time-box {
        padding: 15px 12px;
        min-width: 70px;
    }
    
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-section {
        margin-bottom: 30px;
    }
    
    .clock-section {
        margin-bottom: 40px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .info-item, .detail-row, .geo-item, .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value, .detail-value, .geo-value, .hours-value {
        text-align: left;
    }
}

@media (max-width: 400px) {
    .egypt-timezone-app {
        padding: 10px;
    }
    
    .time-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .time-separator {
        display: none;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 15px;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.6s ease-out;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.content-card:focus-visible {
    outline: 3px solid var(--egypt-gold);
    outline-offset: 2px;
}
