/* Premium Dark Theme Variables */
:root {
    --bg-deep: #09090b;
    --bg-card: rgba(24, 24, 27, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #6366f1; /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.3);
    --border-light: rgba(255, 255, 255, 0.08);
    
    --yt-color: #ff0000;
    --wa-color: #25D366;
    --chat-color: #3b82f6;
}

/* Global Reset */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; 
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0; /* Added padding for top/bottom space */
}

/* Ambient Background Glow (Atmosphere) */
.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    filter: blur(120px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

/* Main Card - Glassmorphism Style */
.card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 20px;
}

/* Shine Effect on Card */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

/* Header Section */
header { 
    margin-bottom: 35px; 
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    opacity: 0; /* Animation */
    animation: fadeIn 0.8s ease forwards 0.1s;
}

h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.2;
    background: linear-gradient(180deg, #fff 0%, #e4e4e7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.2s;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.3s;
}

/* Action Grid */
.actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Action Cards */
.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

/* Delays for staggering */
.action-card:nth-child(1) { 
    animation-delay: 0.4s; 
}

.action-card:nth-child(2) { 
    animation-delay: 0.5s; 
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-box.yt { 
    background: rgba(255, 0, 0, 0.1); 
    color: var(--yt-color); 
}

.icon-box.wa { 
    background: rgba(37, 211, 102, 0.1); 
    color: var(--wa-color); 
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    gap: 8px;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-yt { 
    background: var(--yt-color); 
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2); 
}

.btn-yt:hover { 
    background: #cc0000; 
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3); 
}

.btn-wa { 
    background: var(--wa-color); 
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); 
}

.btn-wa:hover { 
    background: #1ebc57; 
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); 
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 30px 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.7s;
}

/* Developer Section */
.dev-section {
    text-align: center;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.8s;
}

.dev-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-light);
    font-size: 1.5rem;
    position: relative;
}

/* Online dot for dev */
.dev-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border: 2px solid var(--bg-deep);
    border-radius: 50%;
}

.dev-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dev-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-chat {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: auto;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-chat:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-primary);
}

/* Footer */
footer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #52525b;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

footer span { 
    color: #ef4444; 
}

/* Animations */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 0.15; 
    }
    100% { 
        transform: scale(1.2); 
        opacity: 0.25; 
    }
}

/* Responsive - Mobile/Android Specific */
@media (max-width: 400px) {
    body {
        padding: 15px 0; /* Ensure top/bottom padding on mobile */
        min-height: 100vh;
        align-items: flex-start; /* Changed from center */
    }
    
    .card { 
        padding: 25px 20px; /* Reduced padding */
        border-radius: 20px; /* Keep rounded corners */
        margin: 15px; /* Margin for breathing space */
        min-height: auto; /* Remove fixed height */
    }
    
    h1 {
        font-size: 1.5rem; /* Slightly smaller heading */
    }
    
    .subtitle {
        font-size: 0.88rem;
    }
    
    .action-card {
        padding: 16px; /* Slightly less padding */
    }
    
    .card-desc {
        font-size: 0.82rem;
    }
    
    .btn {
        padding: 11px; /* Slightly smaller buttons */
        font-size: 0.88rem;
    }
    
    .glow-bg {
        width: 200px;
        height: 200px;
    }
}

/* Extra small devices - Android specific fixes */
@media (max-width: 360px) {
    body {
        padding: 10px 0;
    }
    
    .card {
        margin: 10px;
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    header {
        margin-bottom: 25px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    footer {
        margin-top: 20px;
    }
}