/* Reset & Variable system */
:root {
    --bg-color: hsl(224, 25%, 7%);
    --card-bg: rgba(13, 17, 28, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: hsl(210, 40%, 96%);
    --text-secondary: hsl(215, 20%, 65%);
    --accent: hsl(210, 100%, 66%);
    --accent-glow: hsla(210, 100%, 66%, 0.15);
    
    /* Gradient palette */
    --primary-grad: linear-gradient(135deg, hsl(210, 100%, 66%) 0%, hsl(260, 100%, 68%) 100%);
    --card-hover-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Background Ambient Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, hsl(210, 100%, 60%) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsl(260, 100%, 55%) 0%, rgba(0,0,0,0) 70%);
    bottom: -15%;
    right: -10%;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, hsl(190, 100%, 50%) 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 60%;
    opacity: 0.3;
}

/* Layout container */
.container {
    width: 100%;
    max-width: 540px;
    z-index: 10;
}

/* Glassmorphic Main Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.avatar-glow {
    position: relative;
    padding: 2px;
    background: var(--primary-grad);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.avatar {
    background-color: hsl(223, 23%, 12%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

/* Interactive Clock Widget */
.widget-container {
    margin-bottom: 35px;
}

.clock-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: inset 0 8px 32px rgba(0, 0, 0, 0.2);
}

.widget-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.time-display {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.date-display {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
}

/* Links Section */
.links-section {
    margin-bottom: 35px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 4px;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-card:hover {
    background: var(--card-hover-grad);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                0 0 15px var(--accent-glow);
}

.link-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.link-card:hover h3 {
    color: var(--accent);
}

.link-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer Section */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    font-size: 11px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--text-primary);
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: hsl(142, 70%, 45%);
    border-radius: 50%;
    box-shadow: 0 0 8px hsl(142, 70%, 45%);
    animation: pulse 2s infinite;
}

.status-text {
    color: hsl(142, 70%, 45%);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Responsive Styles */
@media (max-width: 480px) {
    .glass-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .profile-header {
        margin-bottom: 25px;
    }
    
    .time-display {
        font-size: 34px;
    }
    
    .footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
}
