/* ==========================================================================
   Design System & Core Variables
   ========================================================================== */
:root {
    --bg-primary: #002ee6;
    --bg-secondary: #0022b3;
    --bg-glow: rgba(0, 85, 255, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-accent: #a3c2ff;
    
    --clock-hour-hand: #ff9ebb; /* Pink/peach color from the design */
    --clock-min-hand: #ffffff;  /* White/cream from the design */
    --clock-sec-hand: rgba(255, 255, 255, 0.5); /* Semi-transparent white for high-end minimalist look */
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0022b3;
    font-family: var(--font-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Background & Glows
   ========================================================================== */
body {
    background: radial-gradient(circle at 50% 50%, #0036e6 0%, #001f99 100%);
    position: relative;
}

/* Interactive background glow that adds premium depth */
.background-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bg-glow) 0%, rgba(0, 34, 179, 0) 70%);
    top: 30%;
    left: 60%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: drift 15s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-45%, -45%) scale(1.15);
    }
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
.app-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 100vh;
    padding: 3rem 2rem;
}

.header {
    width: 100%;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    user-select: none;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2rem;
    padding-bottom: 5vh;
}

/* ==========================================================================
   Hero Section (Left Column)
   ========================================================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.title {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

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

/* ==========================================================================
   Neumorphic Clock Section (Right Column)
   ========================================================================== */
.clock-section {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Outer bevel of the clock */
.clock-outer {
    position: relative;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0036e6 0%, #001d8c 100%);
    padding: 24px;
    box-shadow: 
        15px 15px 40px rgba(0, 10, 60, 0.45),
        -15px -15px 40px rgba(255, 255, 255, 0.08);
}

/* Inner sunken face of the clock */
.clock-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #0038e6 0%, #0022b3 100%);
    /* This creates the beautiful 3D inset depth */
    box-shadow: 
        inset 22px 22px 45px rgba(0, 10, 60, 0.75), 
        inset -22px -22px 45px rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

/* Dial Markings - Minimalist Hour Dashes (12, 3, 6, 9) */
.marker {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.marker-12, .marker-6 {
    width: 4px;
    height: 14px;
    left: calc(50% - 2px);
}

.marker-12 { top: 15px; }
.marker-6 { bottom: 15px; }

.marker-3, .marker-9 {
    width: 14px;
    height: 4px;
    top: calc(50% - 2px);
}

.marker-3 { right: 15px; }
.marker-9 { left: 15px; }

/* Clock Hands */
.hand {
    position: absolute;
    bottom: 50%;
    left: calc(50% - var(--width) / 2);
    width: var(--width);
    height: var(--height);
    background: var(--color);
    border-radius: 10px;
    transform-origin: bottom center;
    /* Rotation will be applied via JavaScript inline style */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* We don't apply transitions on transform here to allow smooth frame-by-frame rendering */
}

/* Hour Hand (Thicker, shorter, soft pink) */
.hour-hand {
    --width: 10px;
    --height: 100px;
    --color: var(--clock-hour-hand);
    /* Slightly rounder look */
    border-radius: 6px;
    z-index: 5;
}

/* Minute Hand (Slightly thinner, longer, white) */
.min-hand {
    --width: 7px;
    --height: 145px;
    --color: var(--clock-min-hand);
    border-radius: 5px;
    z-index: 4;
}

/* Second Hand (Thin, elegant, semi-transparent white/glow) */
.sec-hand {
    --width: 2px;
    --height: 165px;
    --color: var(--clock-sec-hand);
    border-radius: 1px;
    z-index: 3;
}

/* Center Cap (Small metallic or matching button pin) */
.clock-cap {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    top: calc(50% - 9px);
    left: calc(50% - 9px);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Design & Media Queries
   ========================================================================== */

/* Large Tablets & Medium Screens */
@media (max-width: 1024px) {
    .app-container {
        padding: 2.5rem 6%;
    }
    
    .title {
        font-size: 3.8rem;
    }
    
    .clock-outer {
        width: 360px;
        height: 360px;
        padding: 20px;
    }
    
    .hour-hand { --height: 80px; --width: 8px; }
    .min-hand { --height: 120px; --width: 6px; }
    .sec-hand { --height: 135px; --width: 2px; }
}

/* Mobile Devices & Small Tablets */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto; /* Allow scroll on small devices if content overflows */
    }
    
    .app-container {
        height: auto;
        min-height: 100vh;
        padding: 2rem 5%;
        display: flex;
        flex-direction: column;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    
    .hero-section {
        align-items: center;
    }
    
    .badge {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .title {
        font-size: 3.2rem;
        letter-spacing: -1.5px;
    }
    
    .background-glow {
        width: 400px;
        height: 400px;
        top: 60%;
        left: 50%;
        opacity: 0.6;
    }
    
    .clock-outer {
        width: 300px;
        height: 300px;
        padding: 16px;
    }
    
    .hour-hand { --height: 65px; --width: 7px; }
    .min-hand { --height: 95px; --width: 5px; }
    .sec-hand { --height: 110px; --width: 1.5px; }
    
    .clock-cap {
        width: 14px;
        height: 14px;
        top: calc(50% - 7px);
        left: calc(50% - 7px);
    }
}

/* Very Small Mobile Devices */
@media (max-width: 375px) {
    .title {
        font-size: 2.6rem;
    }
    
    .clock-outer {
        width: 260px;
        height: 260px;
        padding: 12px;
    }
    
    .hour-hand { --height: 55px; }
    .min-hand { --height: 80px; }
    .sec-hand { --height: 95px; }
}
