:root {
    --bg-color: #000;
    --text-color: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    background: var(--bg-color);
    overflow: hidden;
    color: var(--text-color);
}

/* Incoming Call Screen */
#incoming-call-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.background-blur {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('assets/avatar.png') center/cover no-repeat;
    filter: blur(40px) brightness(0.7);
    z-index: 0;
}

.ios-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 20px 40px;
    align-items: center;
}

/* Top Info */
.top-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.caller-contact-icon {
    width: 60px;
    height: 60px;
    background: #a9a9a9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    margin-bottom: 30px;
    display: none;
}

.caller-name {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.call-source {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Avatar Pulse */
.caller-avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.caller-avatar-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    border: none;
    box-shadow: none;
    margin: 0;
}

.caller-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sticky sides for cats */
.stickers-left,
.stickers-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100px;
    z-index: 10;
}

.stickers-left {
    left: 10px;
}

.stickers-right {
    right: 10px;
}

.stickers-left .sticker-gif,
.stickers-right .sticker-gif {
    width: 100%;
}

/* Bottom Controls */
.bottom-controls {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.helper-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.helper-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    gap: 5px;
    cursor: pointer;
}

.helper-btn .icon {
    font-size: 24px;
}

.helper-btn span:last-child {
    font-size: 12px;
}

.call-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: filter 0.2s;
}

.action-btn:active {
    filter: brightness(0.8);
}

.action-btn .icon {
    font-size: 32px;
}

.accept {
    background-color: #34c759;
}

.decline {
    background-color: #ff3b30;
    transform: rotate(135deg);
}

/* Button Labels */
.label {
    font-size: 14px;
    font-weight: 500;
}

/* Landing Page (Page 2) */
#hny-screen {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.fireworks-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.landing-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    animation: zoom-in 1s ease-out;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hny-title {
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: #ffd700;
    text-shadow: 4px 4px 0px #ff0000;
    letter-spacing: 2px;
}

.meme-container img {
    width: 250px;
    /* Reference size increase */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.message-text {
    font-family: 'Courier New', Courier, monospace;
    /* Typewriter font */
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
    min-height: 1.5em;
    /* Prevent layout shift */
    display: inline-block;
    border-right: 3px solid white;
    /* Cursor */
    animation: blink-cursor 0.75s step-end infinite;
}

.click-hint {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 15px;
    animation: pulse 1.5s infinite;
}

/* Video Screen */
#video-screen {
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

#meme-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes zoom-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@keyframes blink-cursor {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: white;
    }
}

/* Animations */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .caller-name {
        font-size: 2rem;
    }

    .stickers-left,
    .stickers-right {
        width: 70px;
        gap: 10px;
    }

    .stickers-left {
        left: 0;
    }

    .stickers-right {
        right: 0;
    }

    .hny-title {
        font-size: 3.5rem;
    }

    .hny-title {
        font-size: 3.5rem;
    }

    .message-text {
        font-size: 1.5rem;
    }
}