/* ==========================================================================
   1. GLOBAL SYSTEM VARIABLES & CANVASES
   ========================================================================== */
:root {
    --bg-main: #06070d;
    --bg-surface: rgba(18, 20, 32, 0.65);
    --border-glow: rgba(255, 42, 95, 0.2);
    --border-hover: rgba(255, 42, 95, 0.5);
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --gradient-brand: linear-gradient(135deg, #ff2a5f 0%, #ff7e40 100%);
}

/* Base Universal Sizing Document Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 42, 95, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 126, 64, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 1.5rem;
}

/* Master Grid Alignment Wrapper Container */
.container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 6rem; /* Delivers clean spacious layout separation */
}

/* ==========================================================================
   2. HEADING ARCHITECTURE & DISPLAY SCALING
   ========================================================================== */
.profile-header {
    text-align: center;
}

.glow-text {
    font-size: clamp(3rem, 8vw, 5.5rem); /* Auto-scales title perfectly across device screens */
    font-weight: 900;
    letter-spacing: -3px;
    text-transform: uppercase;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(255, 42, 95, 0.15));
    line-height: 1;
}

/* ==========================================================================
   3. MODERN BENTO GRID GALLERY IMAGE SHOWCASE
   ========================================================================== */
.gallery-section h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr; /* Asymmetrical modern editorial framing columns */
    gap: 2rem;
}

/* Smooth structural degradation paths on phone screen sizes */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.image-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

/* Widescreen aspect map profile wrapper template targets */
.image-card:nth-child(1) { aspect-ratio: 16 / 10; }
/* Portrait framing template target variables */
.image-card:nth-child(2) { aspect-ratio: 4 / 5; }

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(90%); /* Editorial dark styling */
    transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(255, 42, 95, 0.3);
}

.image-card:hover img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.04);
}

/* ==========================================================================
   4. ENHANCED EXTENDED CLOUD COUNTER BOX INTERFACES
   ========================================================================== */
.counter-section {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.counter-box {
    position: relative;
    background: rgba(18, 20, 32, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 32px;
    text-align: center;
    width: 100%;
    
    /* 💡 WIDTH FIXED: Expanded container bounds here to accommodate wider horizontal cards */
    max-width: 460px; 
    
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.counter-title {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    letter-spacing: 4px;
    margin-bottom: 0.5rem !important;
}

#counter-display {
    font-size: 5.5rem;
    font-weight: 900;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.emoji-selector-deck {
    display: flex;
    
    /* 💡 DISTRIBUTION FIXED: Forces flexible balanced row paths */
    justify-content: space-between; 
    align-items: center;
    gap: 0.5rem;
    
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem; /* Expanded structural interior padding lines */
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.emoji-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 💡 SCALING FIXED: Dynamically matches all elements into identical row width columns */
    flex: 1; 
    padding: 0.6rem 0; 
    border-radius: 14px;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Visual mechanical layout recoil bounce called via JS arrays upon click actions */
.emoji-btn.pop-active {
    transform: scale(0.85);
    background: rgba(255, 42, 95, 0.2);
}

.counter-instruction {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: rgba(148, 163, 184, 0.7) !important;
    margin-top: 1.5rem;
}

/* ==========================================================================
   5. CLOUD EMISSION VISUAL PARTICLE GRAPHICS LAYER
   ========================================================================== */
.floating-particle {
    position: absolute;
    bottom: 50%;
    font-size: 2.2rem;
    pointer-events: none; /* Prevents visual clipping with mouse tracking */
    user-select: none;
    z-index: 100;
    animation: upwardFloatBurst 1.2s cubic-bezier(0.06, 0.71, 0.55, 1) forwards;
}

@keyframes upwardFloatBurst {
    0% {
        transform: translate(-50%, 0) scale(0.4) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.2) rotate(-10deg);
    }
    100% {
        transform: translate(-50%, -220px) scale(0.8) rotate(15deg);
        opacity: 0;
    }
}
