.newsletter {
    padding: 120px 0;
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 50%, #38ef7d 100%);
    background-size: 300% 300%;
    animation: newsletterWave 12s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(0, 0, 0, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(0, 0, 0, 0.15) 0%, transparent 60%),
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%);
    animation: newsletterOverlay 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes newsletterWave {
    0%, 100% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 100% 0%;
    }
    66% {
        background-position: 0% 100%;
    }
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.title-line {
    display: block;
    opacity: 0;
    animation: slideInLeft 0.8s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.newsletter-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 600;
    animation: fadeInUp 0.8s 0.6s forwards;
    opacity: 0;
}

.newsletter-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s 0.8s forwards;
    opacity: 0;
}

.newsletter-form {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s 1s forwards;
    opacity: 0;
}

.form-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.form-input-group:focus-within {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1rem;
    color: white;
    outline: none;
}

.form-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-subscribe {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-subscribe:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.newsletter-privacy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-follow {
    animation: fadeInUp 0.8s 1.2s forwards;
    opacity: 0;
}

.social-follow p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-weight: 500;
}

.social-platforms {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.platform-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.platform-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.platform-link.linkedin:hover {
    background: #0077b5;
}

.platform-link.youtube:hover {
    background: #ff0000;
}

.newsletter-visual {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s 0.5s forwards;
    opacity: 0;
}

.phone-mockup {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 250px;
    height: 450px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 35px;
    padding: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Status Bar */
.phone-status {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 3px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Profile Section */
.phone-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.profile-image {
    position: relative;
    margin-bottom: 15px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/profile-picture.jpg') center/cover;
    border-radius: 50%;
    z-index: 1;
}

/* Fallback avatar if no image */
.avatar-circle::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="15" fill="white"/><path d="M20 80 Q50 60 80 80" fill="white"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    z-index: 0;
}

/* If you have an actual profile image */
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.profile-info {
    color: white;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-handle {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.follower-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
    color: white;
}

.follow-button {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.recent-post {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-text {
    font-size: 0.7rem;
    color: white;
    opacity: 0.9;
    line-height: 1.3;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 15px;
    padding: 8px 12px;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.badge-content {
    text-align: center;
}

.badge-text {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-subtext {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.float-icon.email {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.float-icon.bell {
    top: 60%;
    right: -15%;
    animation-delay: 1s;
}

.float-icon.heart {
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 900px) {
    .newsletter-content {
        flex-direction: column;
        gap: 30px;
    }
    .newsletter-visual {
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .newsletter-title {
        font-size: 2.5rem;
    }
    
    .form-input-group {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 20px;
    }
    
    .btn-subscribe {
        border-radius: 15px;
        justify-content: center;
    }
    
    .newsletter-visual {
        height: 400px;
    }
    
    .phone-frame {
        width: 200px;
        height: 350px;
    }
    
    .avatar-circle {
        width: 60px;
        height: 60px;
    }
    
    .avatar-circle i {
        font-size: 2.5rem;
    }
}
@media (max-width: 600px) {
    .newsletter-title {
        font-size: 1.2rem;
    }
    .newsletter-description {
        font-size: 0.95rem;
    }
    .newsletter-content {
        padding: 0 5px;
    }
}
