@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    font-family: 'Orbitron', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.container {
    position: relative;
    z-index: 1;
}

.clock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.clock {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(102, 126, 234, 0.4);
    position: relative;
    border: 8px solid rgba(255, 255, 255, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow:
            0 0 60px rgba(0, 0, 0, 0.5),
            inset 0 0 40px rgba(0, 0, 0, 0.3),
            0 0 100px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow:
            0 0 80px rgba(0, 0, 0, 0.5),
            inset 0 0 40px rgba(0, 0, 0, 0.3),
            0 0 120px rgba(102, 126, 234, 0.6);
    }
}

/* Marcadores de horas */
.hour-markers {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.marker {
    position: absolute;
    width: 5px;
    height: 25px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    left: 50%;
    top: 12px;
    transform-origin: 2.5px 238px;
    transform: translateX(-50%) rotate(calc(var(--i) * 30deg));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Números de las horas */
.numbers {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.number {
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

/* Posicionamiento de números usando coordenadas absolutas */
.number:nth-child(1) {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.number:nth-child(2) {
    top: 72px;
    right: 105px;
}

.number:nth-child(3) {
    top: 135px;
    right: 60px;
}

.number:nth-child(4) {
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
}

.number:nth-child(5) {
    bottom: 135px;
    right: 60px;
}

.number:nth-child(6) {
    bottom: 72px;
    right: 105px;
}

.number:nth-child(7) {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.number:nth-child(8) {
    bottom: 72px;
    left: 105px;
}

.number:nth-child(9) {
    bottom: 135px;
    left: 60px;
}

.number:nth-child(10) {
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
}

.number:nth-child(11) {
    top: 135px;
    left: 60px;
}

.number:nth-child(12) {
    top: 72px;
    left: 105px;
}

/* Branding Omega */
.omega-branding {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: -95px;
    z-index: 0;
}

.omega-symbol {
    font-size: 29px;
    font-weight: 900;
    color: #00ff88;
    text-shadow:
        0 0 15px rgba(0, 255, 136, 0.8),
        0 0 30px rgba(0, 255, 136, 0.5);
    font-family: 'Times New Roman', serif;
    line-height: 1;
}

.omega-text {
    font-size: 10px;
    font-weight: 700;
    color: #00ff88;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.6),
        0 0 20px rgba(0, 255, 136, 0.4);
    letter-spacing: 3px;
    line-height: 1;
}

/* Manecillas del reloj */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hour-hand {
    width: 10px;
    height: 125px;
    background: linear-gradient(180deg, #ffffff, #667eea);
    margin-left: -5px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    z-index: 3;
}

.minute-hand {
    width: 8px;
    height: 175px;
    background: linear-gradient(180deg, #ffffff, #764ba2);
    margin-left: -4px;
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.8);
    z-index: 2;
}

.second-hand {
    width: 4px;
    height: 200px;
    background: linear-gradient(180deg, #ff6b6b, #ee5a6f);
    margin-left: -2px;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    z-index: 1;
    transition: transform 0.05s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Centro del reloj */
.center-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ffffff, #667eea);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(102, 126, 234, 0.6);
    animation: centerPulse 2s ease-in-out infinite;
}

@keyframes centerPulse {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(102, 126, 234, 0.6);
    }

    50% {
        box-shadow:
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(102, 126, 234, 0.8);
    }
}

/* Reloj digital */
.digital-clock {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(102, 126, 234, 0.8),
        0 0 40px rgba(118, 75, 162, 0.6);
    letter-spacing: 4px;
    background: rgba(30, 30, 46, 0.6);
    padding: 25px 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(102, 126, 234, 0.1);
    font-variant-numeric: tabular-nums;
    width: 380px;
    text-align: center;
    display: inline-block;
}

/* Responsive Design */

/* 4K Screens (2560px and above) */
@media (min-width: 2560px) {
    .clock {
        width: 600px;
        height: 600px;
    }

    .marker {
        width: 6px;
        height: 30px;
        top: 15px;
        transform-origin: 3px 285px;
    }

    .number {
        font-size: 34px;
        width: 42px;
        height: 42px;
    }

    .number:nth-child(1) {
        top: 48px;
    }

    .number:nth-child(2) {
        top: 86px;
        right: 126px;
    }

    .number:nth-child(3) {
        top: 162px;
        right: 72px;
    }

    .number:nth-child(4) {
        right: 48px;
    }

    .number:nth-child(5) {
        bottom: 162px;
        right: 72px;
    }

    .number:nth-child(6) {
        bottom: 86px;
        right: 126px;
    }

    .number:nth-child(7) {
        bottom: 48px;
    }

    .number:nth-child(8) {
        bottom: 86px;
        left: 126px;
    }

    .number:nth-child(9) {
        bottom: 162px;
        left: 72px;
    }

    .number:nth-child(10) {
        left: 48px;
    }

    .number:nth-child(11) {
        top: 162px;
        left: 72px;
    }

    .number:nth-child(12) {
        top: 86px;
        left: 126px;
    }

    .hour-hand {
        width: 12px;
        height: 150px;
        margin-left: -6px;
    }

    .minute-hand {
        width: 10px;
        height: 210px;
        margin-left: -5px;
    }

    .second-hand {
        width: 5px;
        height: 240px;
        margin-left: -2.5px;
    }

    .center-dot {
        width: 30px;
        height: 30px;
    }

    .digital-clock {
        font-size: 58px;
        padding: 30px 60px;
        font-variant-numeric: tabular-nums;
        width: 450px;
        text-align: center;
        display: inline-block;
    }

    .omega-branding {
        margin-top: -115px;
    }

    .omega-symbol {
        font-size: 36px;
    }

    .omega-text {
        font-size: 12px;
    }
}

/* Large HD Screens (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .clock {
        width: 550px;
        height: 550px;
    }

    .marker {
        width: 5px;
        height: 28px;
        top: 13px;
        transform-origin: 2.5px 262px;
    }

    .number {
        font-size: 30px;
        width: 38px;
        height: 38px;
    }

    .number:nth-child(1) {
        top: 44px;
    }

    .number:nth-child(2) {
        top: 79px;
        right: 115px;
    }

    .number:nth-child(3) {
        top: 148px;
        right: 66px;
    }

    .number:nth-child(4) {
        right: 44px;
    }

    .number:nth-child(5) {
        bottom: 148px;
        right: 66px;
    }

    .number:nth-child(6) {
        bottom: 79px;
        right: 115px;
    }

    .number:nth-child(7) {
        bottom: 44px;
    }

    .number:nth-child(8) {
        bottom: 79px;
        left: 115px;
    }

    .number:nth-child(9) {
        bottom: 148px;
        left: 66px;
    }

    .number:nth-child(10) {
        left: 44px;
    }

    .number:nth-child(11) {
        top: 148px;
        left: 66px;
    }

    .number:nth-child(12) {
        top: 79px;
        left: 115px;
    }

    .hour-hand {
        width: 11px;
        height: 138px;
        margin-left: -5.5px;
    }

    .minute-hand {
        width: 9px;
        height: 193px;
        margin-left: -4.5px;
    }

    .second-hand {
        width: 4px;
        height: 220px;
        margin-left: -2px;
    }

    .center-dot {
        width: 28px;
        height: 28px;
    }

    .digital-clock {
        font-size: 54px;
        padding: 28px 56px;
        font-variant-numeric: tabular-nums;
        width: 420px;
        text-align: center;
        display: inline-block;
    }

    .omega-branding {
        margin-top: -105px;
    }

    .omega-symbol {
        font-size: 34px;
    }

    .omega-text {
        font-size: 11px;
    }
}

/* Standard HD Screens (1024px - 1919px) - Default 500px clock */

/* Tablets Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .clock {
        width: 450px;
        height: 450px;
    }

    .marker {
        width: 4px;
        height: 23px;
        top: 11px;
        transform-origin: 2px 214px;
    }

    .number {
        font-size: 26px;
        width: 32px;
        height: 32px;
    }

    .number:nth-child(1) {
        top: 36px;
    }

    .number:nth-child(2) {
        top: 65px;
        right: 95px;
    }

    .number:nth-child(3) {
        top: 122px;
        right: 54px;
    }

    .number:nth-child(4) {
        right: 36px;
    }

    .number:nth-child(5) {
        bottom: 122px;
        right: 54px;
    }

    .number:nth-child(6) {
        bottom: 65px;
        right: 95px;
    }

    .number:nth-child(7) {
        bottom: 36px;
    }

    .number:nth-child(8) {
        bottom: 65px;
        left: 95px;
    }

    .number:nth-child(9) {
        bottom: 122px;
        left: 54px;
    }

    .number:nth-child(10) {
        left: 36px;
    }

    .number:nth-child(11) {
        top: 122px;
        left: 54px;
    }

    .number:nth-child(12) {
        top: 65px;
        left: 95px;
    }

    .hour-hand {
        width: 9px;
        height: 113px;
        margin-left: -4.5px;
    }

    .minute-hand {
        width: 7px;
        height: 158px;
        margin-left: -3.5px;
    }

    .second-hand {
        width: 3px;
        height: 180px;
        margin-left: -1.5px;
    }

    .center-dot {
        width: 23px;
        height: 23px;
    }

    .digital-clock {
        font-size: 44px;
        padding: 22px 45px;
        font-variant-numeric: tabular-nums;
        width: 350px;
        text-align: center;
        display: inline-block;
    }

    .omega-branding {
        margin-top: -85px;
    }

    .omega-symbol {
        font-size: 27px;
    }

    .omega-text {
        font-size: 9px;
    }
}

/* Tablets Portrait & Large Phones (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .clock {
        width: 380px;
        height: 380px;
    }

    .marker {
        width: 4px;
        height: 20px;
        top: 10px;
        transform-origin: 2px 180px;
    }

    .number {
        font-size: 22px;
        width: 28px;
        height: 28px;
    }

    .number:nth-child(1) {
        top: 30px;
    }

    .number:nth-child(2) {
        top: 55px;
        right: 80px;
    }

    .number:nth-child(3) {
        top: 103px;
        right: 46px;
    }

    .number:nth-child(4) {
        right: 30px;
    }

    .number:nth-child(5) {
        bottom: 103px;
        right: 46px;
    }

    .number:nth-child(6) {
        bottom: 55px;
        right: 80px;
    }

    .number:nth-child(7) {
        bottom: 30px;
    }

    .number:nth-child(8) {
        bottom: 55px;
        left: 80px;
    }

    .number:nth-child(9) {
        bottom: 103px;
        left: 46px;
    }

    .number:nth-child(10) {
        left: 30px;
    }

    .number:nth-child(11) {
        top: 103px;
        left: 46px;
    }

    .number:nth-child(12) {
        top: 55px;
        left: 80px;
    }

    .hour-hand {
        width: 8px;
        height: 95px;
        margin-left: -4px;
    }

    .minute-hand {
        width: 6px;
        height: 133px;
        margin-left: -3px;
    }

    .second-hand {
        width: 3px;
        height: 152px;
        margin-left: -1.5px;
    }

    .center-dot {
        width: 20px;
        height: 20px;
    }

    .digital-clock {
        font-size: 38px;
        padding: 18px 38px;
        font-variant-numeric: tabular-nums;
        width: 300px;
        text-align: center;
        display: inline-block;
    }

    .omega-branding {
        margin-top: -72px;
    }

    .omega-symbol {
        font-size: 22px;
    }

    .omega-text {
        font-size: 8px;
    }
}

/* Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
    .clock {
        width: 280px;
        height: 280px;
    }

    .marker {
        width: 3px;
        height: 15px;
        top: 8px;
        transform-origin: 1.5px 132px;
    }

    .number {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }

    .number:nth-child(1) {
        top: 22px;
    }

    .number:nth-child(2) {
        top: 40px;
        right: 59px;
    }

    .number:nth-child(3) {
        top: 76px;
        right: 34px;
    }

    .number:nth-child(4) {
        right: 22px;
    }

    .number:nth-child(5) {
        bottom: 76px;
        right: 34px;
    }

    .number:nth-child(6) {
        bottom: 40px;
        right: 59px;
    }

    .number:nth-child(7) {
        bottom: 22px;
    }

    .number:nth-child(8) {
        bottom: 40px;
        left: 59px;
    }

    .number:nth-child(9) {
        bottom: 76px;
        left: 34px;
    }

    .number:nth-child(10) {
        left: 22px;
    }

    .number:nth-child(11) {
        top: 76px;
        left: 34px;
    }

    .number:nth-child(12) {
        top: 40px;
        left: 59px;
    }

    .hour-hand {
        width: 6px;
        height: 70px;
        margin-left: -3px;
    }

    .minute-hand {
        width: 5px;
        height: 98px;
        margin-left: -2.5px;
    }

    .second-hand {
        width: 2px;
        height: 112px;
        margin-left: -1px;
    }

    .center-dot {
        width: 16px;
        height: 16px;
    }

    .digital-clock {
        font-size: 28px;
        padding: 12px 25px;
        letter-spacing: 2px;
        font-variant-numeric: tabular-nums;
        width: 230px;
        text-align: center;
        display: inline-block;
    }

    .omega-branding {
        margin-top: -53px;
    }

    .omega-symbol {
        font-size: 17px;
    }

    .omega-text {
        font-size: 6px;
        letter-spacing: 2px;
    }
}

/* Extra Small Phones (below 320px) */
@media (max-width: 319px) {
    .clock {
        width: 240px;
        height: 240px;
    }

    .marker {
        width: 2px;
        height: 12px;
        top: 6px;
        transform-origin: 1px 114px;
    }

    .number {
        font-size: 14px;
        width: 20px;
        height: 20px;
    }

    .number:nth-child(1) {
        top: 18px;
    }

    .number:nth-child(2) {
        top: 34px;
        right: 50px;
    }

    .number:nth-child(3) {
        top: 65px;
        right: 29px;
    }

    .number:nth-child(4) {
        right: 18px;
    }

    .number:nth-child(5) {
        bottom: 65px;
        right: 29px;
    }

    .number:nth-child(6) {
        bottom: 34px;
        right: 50px;
    }

    .number:nth-child(7) {
        bottom: 18px;
    }

    .number:nth-child(8) {
        bottom: 34px;
        left: 50px;
    }

    .number:nth-child(9) {
        bottom: 65px;
        left: 29px;
    }

    .number:nth-child(10) {
        left: 18px;
    }

    .number:nth-child(11) {
        top: 65px;
        left: 29px;
    }

    .number:nth-child(12) {
        top: 34px;
        left: 50px;
    }

    .hour-hand {
        width: 5px;
        height: 60px;
        margin-left: -2.5px;
    }

    .minute-hand {
        width: 4px;
        height: 84px;
        margin-left: -2px;
    }

    .second-hand {
        width: 2px;
        height: 96px;
        margin-left: -1px;
    }

    .center-dot {
        width: 14px;
        height: 14px;
    }

    .digital-clock {
        font-size: 22px;
        padding: 10px 20px;
        letter-spacing: 1px;
        font-variant-numeric: tabular-nums;
        width: 180px;
        text-align: center;
        display: inline-block;
    }

    .omega-branding {
        margin-top: -45px;
    }

    .omega-symbol {
        font-size: 14px;
    }

    .omega-text {
        font-size: 6px;
        letter-spacing: 1px;
    }
}