:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-yellow: #fac007;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(250, 192, 7, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(5,5,5,0.9) 100%);
    z-index: 1;
}

.lang-switcher {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 15px;
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-color);
}

.lang-btn.active {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(250, 192, 7, 0.5);
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeIn 1.5s ease-out;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--accent-yellow);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.line-decorator {
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
    margin: 0 auto 30px auto;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(250, 192, 7, 0.5);
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #ccc;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

/* Pulsing effect */
.pulse-ring {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
}

.core {
    width: 10px;
    height: 10px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-yellow);
    animation: pulse 2s infinite;
}

.core::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    opacity: 0;
    animation: ripple 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes ripple {
    0% { width: 10px; height: 10px; opacity: 1; }
    100% { width: 60px; height: 60px; opacity: 0; }
}

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

/* Tracking Section UI */
.tracking-section {
    margin-top: 40px;
    width: 100%;
}

.tracking-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#tracking-input {
    flex-grow: 1;
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#tracking-input:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 10px rgba(250, 192, 7, 0.3);
}

#track-btn {
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    background: var(--accent-yellow);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#track-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(250, 192, 7, 0.5);
}

#track-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hidden {
    display: none !important;
}

.tracking-status {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--accent-yellow);
}

.tracking-results {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    max-height: 250px;
    overflow-y: auto;
}

.tracking-results::-webkit-scrollbar {
    width: 8px;
}
.tracking-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.tracking-results::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 10px;
}

.timeline-event {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-event:last-child {
    border-left: 2px solid transparent;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-yellow);
}

.timeline-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 600px) {
    .glass-card {
        padding: 40px 20px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }

    .lang-switcher {
        top: 20px;
        right: 20px;
    }
}
