/* WhatsApp Section - Optimized Responsive Design */
.iphone-contact-section {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, 
        rgba(71, 115, 175, 0.12) 0%, 
        rgba(255, 215, 0, 0.06) 25%,
        rgba(42, 69, 112, 0.18) 50%, 
        rgba(71, 115, 175, 0.12) 75%,
        rgba(255, 215, 0, 0.04) 100%),
        #0a0a0f;
    overflow: hidden;
    min-height: 100vh;
}

/* Animated background */
.iphone-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(71, 115, 175, 0.08) 0%, transparent 50%);
    animation: floatGradient 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatGradient {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.iphone-section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.iphone-section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.iphone-section-header p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
}

/* Desktop Layout */
.iphone-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 480px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Left Info Panel */
.info-panel {
    animation: fadeInLeft 1s ease;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 35px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.feature-check {
    color: #25d366;
    font-size: 1.3rem;
    margin-right: 12px;
    margin-top: 2px;
    font-weight: bold;
    flex-shrink: 0;
}

.schedule-box {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-box p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.schedule-box span {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

/* iPhone Container */
.iphone-container {
    position: relative;
    animation: fadeInUp 1s ease;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.iphone-device {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 860px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-radius: 55px;
    padding: 14px;
    box-shadow: 
        inset 0 0 3px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background: #000;
    border-radius: 22px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

/* Side Buttons */
.power-button {
    position: absolute;
    right: -3px;
    top: 200px;
    width: 3px;
    height: 100px;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    border-radius: 0 2px 2px 0;
}

.volume-up, .volume-down {
    position: absolute;
    left: -3px;
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    border-radius: 2px 0 0 2px;
}

.volume-up { top: 180px; }
.volume-down { top: 250px; }

/* iPhone Screen */
.iphone-screen {
    background: #111b21;
    border-radius: 45px;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* WhatsApp Header */
.whatsapp-header {
    background: #1f2c34;
    padding: 55px 20px 15px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.whatsapp-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-info h4 {
    color: #ffffff;
    font-size: 17px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.profile-info p {
    color: #8696a0;
    font-size: 14px;
    margin: 3px 0 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #31c94d;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Chat Container */
.chat-container {
    flex: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='pattern' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Crect width='100' height='100' fill='%230b141a'/%3E%3Cpath d='M0 50h100M50 0v100' stroke='%23151f27' stroke-width='0.5' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23pattern)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 400px;
    max-height: 550px;
}

/* Custom Scrollbar */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Messages */
.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: messageSlide 0.3s ease;
}

.message-bot {
    align-self: flex-start;
}

.message-user {
    align-self: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.message-bot .message-bubble {
    background: #1f2c34;
    border-bottom-left-radius: 4px;
}

.message-user .message-bubble {
    background: #005c4b;
    border-bottom-right-radius: 4px;
}

.message-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.message-time {
    font-size: 12px;
    color: #8696a0;
    margin-top: 5px;
    display: block;
}

.message-bot .message-time {
    text-align: left;
}

.message-user .message-time {
    text-align: right;
}

/* Typing Indicator */
.typing-indicator {
    align-self: flex-start;
    display: none;
}

.typing-indicator.active {
    display: block;
}

.typing-indicator .message-bubble {
    padding: 12px 16px;
    background: #1f2c34;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8696a0;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
    padding: 0 5px;
}

.quick-reply-btn {
    padding: 10px 16px;
    background: rgba(37, 211, 102, 0.15);
    border: 1.5px solid #25d366;
    color: #25d366;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 1 auto;
}

.quick-reply-btn:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.quick-reply-btn.urgent {
    background: rgba(255, 87, 87, 0.15);
    border-color: #ff5757;
    color: #ff5757;
}

.quick-reply-btn.urgent:hover {
    background: #ff5757;
    color: white;
}

/* WhatsApp Input Bar */
.whatsapp-input-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #1f2c34;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.whatsapp-input {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: background 0.3s ease;
}

.whatsapp-input:focus {
    background: #33444f;
}

.whatsapp-input::placeholder {
    color: #8696a0;
}

.send-btn {
    width: 45px;
    height: 45px;
    background: #00a884;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.3);
    flex-shrink: 0;
}

.send-btn:hover {
    background: #00bf95;
    transform: scale(1.05);
}

/* Right CTA Panel */
.cta-panel {
    animation: fadeInRight 1s ease;
    text-align: center;
}

.cta-panel h3 {
    color: #ffd700;
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 2rem;
}

.phone-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.phone-display p:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-number {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.online {
    color: #25d366;
    margin-right: 8px;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* Background Elements */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 115, 175, 0.05), transparent);
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

.bg-circle-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -250px;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

/* WhatsApp Button in Chat */
.whatsapp-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    animation: fadeInUp 0.5s ease;
}

.whatsapp-chat-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-chat-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-chat-button:hover::before {
    left: 100%;
}

.whatsapp-chat-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #22c55e, #0d9f56);
}

.whatsapp-chat-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-chat-button span {
    font-size: 16px;
    letter-spacing: 0.3px;
}

.whatsapp-button-note {
    margin-top: 8px;
    font-size: 14px;
    color: #8696a0;
    text-align: center;
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-button-container {
        padding: 12px;
        margin: 15px 0;
    }
    
    .whatsapp-chat-button {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .whatsapp-chat-button svg {
        width: 22px;
        height: 22px;
    }
    
    .whatsapp-chat-button span {
        font-size: 15px;
    }
    
    .whatsapp-button-note {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .whatsapp-chat-button {
        padding: 12px 24px;
        font-size: 14px;
        width: 90%;
        justify-content: center;
    }
    
    .whatsapp-chat-button svg {
        width: 20px;
        height: 20px;
    }
    
    .whatsapp-chat-button span {
        font-size: 14px;
    }
}

/* Animations */
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    .iphone-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .iphone-container {
        order: 1;
        margin-bottom: 40px;
    }
    
    .info-panel {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .cta-panel {
        order: 3;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .iphone-device {
        height: 750px;
    }
}

/* Mobile Responsive - Optimized */
@media (max-width: 768px) {
    .iphone-contact-section {
        padding: 60px 15px;
    }
    
    .iphone-section-header {
        margin-bottom: 30px;
    }
    
    .iphone-device {
        width: 100%;
        max-width: 380px;
        height: 700px;
        border-radius: 45px;
        padding: 10px;
    }
    
    .dynamic-island {
        width: 100px;
        height: 30px;
        top: 22px;
    }
    
    .iphone-screen {
        border-radius: 38px;
    }
    
    .whatsapp-header {
        padding: 45px 15px 12px;
    }
    
    .profile-pic {
        width: 40px;
        height: 40px;
    }
    
    .profile-info h4 {
        font-size: 16px;
    }
    
    .profile-info p {
        font-size: 13px;
    }
    
    .chat-container {
        padding: 15px;
        min-height: 350px;
        max-height: 450px;
    }
    
    .message-bubble {
        padding: 10px 14px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .quick-replies {
        gap: 6px;
        margin: 8px 0;
    }
    
    .quick-reply-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .whatsapp-input-bar {
        padding: 10px 12px;
    }
    
    .whatsapp-input {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .send-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .glass-card {
        padding: 25px;
        border-radius: 20px;
    }
    
    .phone-display {
        padding: 25px;
    }
    
    .cta-button {
        padding: 15px 35px;
    }
    
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-whatsapp svg {
        width: 26px;
        height: 26px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .iphone-contact-section {
        padding: 50px 10px;
    }
    
    .iphone-device {
        max-width: 340px;
        height: 650px;
        border-radius: 40px;
        padding: 8px;
    }
    
    .dynamic-island {
        width: 90px;
        height: 26px;
        top: 20px;
    }
    
    .iphone-screen {
        border-radius: 35px;
    }
    
    .whatsapp-header {
        padding: 40px 12px 10px;
    }
    
    .chat-container {
        padding: 12px;
        min-height: 320px;
        max-height: 420px;
    }
    
    .message {
        max-width: 80%;
    }
    
    .message-bubble {
        padding: 9px 12px;
    }
    
    .message-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .quick-replies {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-reply-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
        text-align: center;
    }
    
    .whatsapp-input-bar {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .whatsapp-input {
        padding: 9px 14px;
        font-size: 14px;
    }
    
    .send-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .glass-card {
        padding: 20px;
        border-radius: 18px;
    }
    
    .feature-list li {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .phone-display {
        padding: 20px;
        border-radius: 20px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .iphone-device {
        max-width: 300px;
        height: 600px;
    }
    
    .chat-container {
        min-height: 280px;
        max-height: 380px;
    }
    
    .message-text {
        font-size: 13px;
    }
    
    .quick-reply-btn {
        font-size: 13px;
        padding: 9px 14px;
    }
}