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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #0E5632 0%, #27AD6A 100%);
}

.call-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(14, 86, 50, 0.95) 0%, 
        rgba(39, 173, 106, 0.95) 100%);
    backdrop-filter: blur(20px);
    z-index: 1;
}

.call-screen {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 400px;
    width: 90%;
    padding: 2rem;
    margin-bottom: 15vh;
}

.call-header {
    margin-bottom: 3rem;
    opacity: 0.9;
}

.call-header h2 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.call-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

.caller-info {
    margin-bottom: 4rem;
}

.caller-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.caller-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    z-index: 3;
    position: relative;
}

.pulse-ring, .pulse-ring-2 {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse-ring {
    width: 160px;
    height: 160px;
}

.pulse-ring-2 {
    width: 180px;
    height: 180px;
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.caller-name {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.caller-status {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.call-animation {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 1rem;
}

.wave {
    width: 4px;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: wave 1.5s infinite ease-in-out;
}

.wave:nth-child(2) {
    animation-delay: 0.2s;
}

.wave:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(2);
    }
}

.call-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
    gap: 1rem;
}

.action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.decline-btn {
    background: linear-gradient(135deg, #DC3545, #C82333);
}

.decline-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
}

.message-btn {
    background: linear-gradient(135deg, #128C7E, #075E54);
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
}

.message-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(18, 140, 126, 0.4);
}

.accept-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.accept-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0.8;
}

.quick-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-action:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.call-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    padding: 1rem 2rem;
    color: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
    .call-screen {
        padding: 1rem;
    }
    
    .caller-avatar {
        width: 150px;
        height: 150px;
    }
    
    .caller-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .pulse-ring {
        width: 130px;
        height: 130px;
    }
    
    .pulse-ring-2 {
        width: 150px;
        height: 150px;
    }
    
    .caller-name {
        font-size: 1.8rem;
    }
    
    .action-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .message-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .call-actions {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .call-notification {
        left: 10px;
        right: 10px;
        transform: none;
        border-radius: 15px;
        padding: 0.8rem 1.5rem;
    }
    
    .notification-content {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .call-screen {
        padding: 0.8rem;
    }
    
    .caller-name {
        font-size: 1.6rem;
    }
    
    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .message-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .call-actions {
        padding: 0 0.3rem;
        gap: 0.8rem;
    }
}

@media (max-width: 320px) {
    .call-screen {
        padding: 0.5rem;
    }
    
    .caller-name {
        font-size: 1.4rem;
    }
    
    .caller-status {
        font-size: 0.9rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .message-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .call-actions {
        padding: 0;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Additional animations for enhanced user experience */
.call-screen {
    animation: fadeInUp 0.8s ease;
}

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

.action-btn {
    animation: buttonPop 0.6s ease;
    animation-fill-mode: both;
}

.action-btn:nth-child(1) {
    animation-delay: 0.2s;
}

.action-btn:nth-child(2) {
    animation-delay: 0.4s;
}

.action-btn:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes buttonPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Height-based media queries for landscape and small screens */
@media (max-height: 700px) {
    .call-screen {
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    .call-header {
        margin-bottom: 1.5rem;
    }
    
    .caller-info {
        margin-bottom: 2rem;
    }
    
    .caller-avatar {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }
    
    .caller-avatar img {
        width: 110px;
        height: 110px;
    }
    
    .pulse-ring {
        width: 120px;
        height: 120px;
    }
    
    .pulse-ring-2 {
        width: 140px;
        height: 140px;
    }
    
    .caller-name {
        font-size: 1.8rem;
    }
    
    .call-actions {
        margin-bottom: 1rem;
    }
    
    .action-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-height: 500px) {
    .call-screen {
        margin-bottom: 0;
        padding: 0.5rem;
    }
    
    .call-header {
        margin-bottom: 0.5rem;
    }
    
    .call-header h2 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .caller-info {
        margin-bottom: 1rem;
    }
    
    .caller-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }
    
    .caller-avatar img {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .pulse-ring {
        width: 90px;
        height: 90px;
    }
    
    .pulse-ring-2 {
        width: 100px;
        height: 100px;
    }
    
    .caller-name {
        font-size: 1.4rem;
    }
    
    .caller-status {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .call-actions {
        margin-bottom: 0.5rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
