/* ========== FROM: newsletter-section.css ========== */
/* --------------------------------
   File: newsletter-section.css for homepage2
   Description: Styles for the Newsletter section of homepage2
   Author: GitHub Copilot
   Date: April 25, 2025
   -------------------------------- */

/*------------------------------------*\
  #NEWSLETTER SECTION
\*------------------------------------*/
.home2-newsletter-section {
    position: relative;
    padding: var(--home2-section-spacing) 0;
    background-color: var(--home2-color-white);
    overflow: hidden;
}

.home2-newsletter-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 4rem 3rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    max-width: 1000px;
    margin: 0 auto;
    animation: home2-newsletter-reveal 0.8s ease-out;
}

.home2-newsletter-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.02), rgba(37, 99, 235, 0.05));
    z-index: 0;
}

.home2-newsletter-glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
    animation: home2-orb-float 15s ease-in-out infinite;
    filter: blur(40px);
}

.home2-newsletter-glow-orb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: home2-orb-pulse 4s ease-in-out infinite;
}

@keyframes home2-orb-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.home2-newsletter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.15));
    color: var(--home2-color-primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(59, 130, 246, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: home2-badge-float 6s ease-in-out infinite;
}

@keyframes home2-badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.home2-newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--home2-color-text);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.home2-newsletter-description {
    color: var(--home2-color-text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.home2-newsletter-benefits {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.home2-benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--home2-color-text);
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: home2-benefit-item 0.4s ease-out forwards;
}

.home2-benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.home2-benefit-item:hover {
    transform: translateY(-3px);
    color: var(--home2-color-primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.home2-benefit-item:hover::before {
    left: 100%;
}

/* Shine effect for button */
.home2-shine-effect {
    position: relative;
    overflow: hidden;
}

.home2-shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: home2-shine 6s infinite;
    pointer-events: none;
}

@keyframes home2-shine {
    0% {
        transform: rotate(30deg) translateX(-300%);
    }
    20%, 100% {
        transform: rotate(30deg) translateX(300%);
    }
}

/* Pulse effect for buttons */
.home2-pulse-effect {
    position: relative;
}

.home2-pulse-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    opacity: 0.7;
    animation: home2-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes home2-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Social Proof Section */
.home2-newsletter-social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--home2-radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.home2-social-proof-item {
    text-align: center;
    position: relative;
    padding: 0.5rem;
    transition: transform var(--home2-transition);
}

.home2-social-proof-item:hover {
    transform: translateY(-3px);
}

.home2-social-proof-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.home2-proof-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--home2-color-primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--home2-color-primary), var(--home2-color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home2-proof-text {
    display: block;
    font-size: 0.875rem;
    color: var(--home2-color-text-light);
    font-weight: 500;
}

/* Enhanced button with hover effect */
.home2-button-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.home2-newsletter-button:hover .home2-button-hover-bg {
    transform: scaleX(1);
}

/* Enhanced form styling */
.home2-form-group {
    display: flex;
    border-radius: 3rem;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: white;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.home2-form-group:focus-within {
    border-color: var(--home2-color-primary);
    box-shadow: 
        0 10px 15px -3px rgba(59, 130, 246, 0.2),
        0 4px 6px -2px rgba(59, 130, 246, 0.1);
}

.home2-newsletter-input {
    flex-grow: 1;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 3rem 0 0 3rem;
    outline: none;
    font-size: 1rem;
    color: var(--home2-color-text);
    background: transparent;
    transition: all 0.3s ease;
}

.home2-newsletter-input::placeholder {
    color: rgba(107, 114, 128, 0.7);
    transition: color 0.3s ease;
}

.home2-newsletter-input:focus::placeholder {
    color: rgba(107, 114, 128, 0.5);
}

.home2-newsletter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    color: white !important;
    font-weight: 600;
    border: none;
    border-radius: 0 3rem 3rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home2-newsletter-button:hover {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.home2-newsletter-button:active {
    transform: translateY(0);
}

/* Button text elements */
.home2-button-text,
.home2-button-arrow {
    color: white !important;
    position: relative;
    z-index: 2;
}

.home2-button-text {
    font-weight: 600;
    font-size: 1rem;
}

.home2-button-arrow {
    font-size: 1.25rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.home2-newsletter-button:hover .home2-button-arrow {
    transform: translateX(4px);
}

/* Tech badges enhancement */
.home2-newsletter-tech-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

.home2-tech-badge {
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    color: var(--home2-color-text-light);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.home2-tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--home2-color-primary), var(--home2-color-accent));
    transition: left 0.3s ease;
    z-index: -1;
}

.home2-tech-badge:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.home2-tech-badge:hover::before {
    left: 0;
}

/* Privacy text styling */
.home2-newsletter-privacy {
    margin-top: 1.5rem;
}

/* Privacy link styling */
.home2-newsletter-privacy a {
    color: var(--home2-color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.home2-newsletter-privacy a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--home2-color-primary);
    transition: width 0.3s ease;
}

.home2-newsletter-privacy a:hover::after {
    width: 100%;
}

/* Loading animation for button */
@keyframes home2-button-loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.home2-newsletter-button.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: home2-button-loading 1.5s infinite;
}

/* Advanced animations and interactions */
@keyframes home2-newsletter-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home2-newsletter-container {
    animation: home2-newsletter-reveal 0.8s ease-out;
}

/* Stagger animation for benefits */
.home2-benefit-item:nth-child(1) { animation-delay: 0.1s; }
.home2-benefit-item:nth-child(2) { animation-delay: 0.2s; }
.home2-benefit-item:nth-child(3) { animation-delay: 0.3s; }
.home2-benefit-item:nth-child(4) { animation-delay: 0.4s; }

/* Form validation states */
.home2-newsletter-input:invalid {
    border-color: #ef4444;
}

.home2-newsletter-input:valid {
    border-color: #10b981;
}

.home2-form-group.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.home2-form-group.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Success state for button */
.home2-newsletter-button.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.home2-newsletter-button.success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Focus improvements for accessibility */
.home2-newsletter-input:focus {
    outline: 2px solid var(--home2-color-primary);
    outline-offset: 2px;
}

.home2-newsletter-button:focus {
    outline: 2px solid var(--home2-color-primary);
    outline-offset: 2px;
}

.home2-tech-badge:focus {
    outline: 2px solid var(--home2-color-primary);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .home2-newsletter-container,
    .home2-benefit-item,
    .home2-tech-badge,
    .home2-social-proof-item,
    .home2-newsletter-glow-orb,
    .home2-newsletter-eyebrow {
        animation: none !important;
        transition: none !important;
    }
    
    .home2-benefit-item:hover,
    .home2-tech-badge:hover,
    .home2-social-proof-item:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .home2-newsletter-container {
        border: 2px solid;
        background: #fff;
    }
    
    .home2-newsletter-input {
        border: 2px solid;
    }
    
    .home2-newsletter-button {
        border: 2px solid;
    }
    
    .home2-tech-badge {
        border: 2px solid;
    }
}

/* Print styles */
@media print {
    .home2-newsletter-section {
        break-inside: avoid;
    }
    
    .home2-newsletter-glow-orb,
    .home2-newsletter-background {
        display: none;
    }
    
    .home2-newsletter-container {
        background: #fff !important;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .home2-newsletter-button {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .home2-newsletter-container {
        padding: 3rem 2rem;
        border-radius: 1.5rem;
    }
    
    .home2-newsletter-title {
        font-size: 1.75rem;
    }
    
    .home2-newsletter-benefits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .home2-newsletter-social-proof {
        gap: 1.5rem;
    }
    
    .home2-proof-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .home2-newsletter-container {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }
    
    .home2-newsletter-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .home2-newsletter-description {
        font-size: 0.95rem;
    }
    
    .home2-newsletter-benefits {
        margin-bottom: 2rem;
    }
    
    .home2-benefit-item {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
        text-align: center;
    }
    
    .home2-form-group {
        flex-direction: column;
        border-radius: 1rem;
    }
    
    .home2-newsletter-input {
        border-radius: 1rem 1rem 0 0;
        border-right: 1px solid var(--home2-color-gray-200);
        border-bottom: none;
        padding: 1rem 1.5rem;
    }
    
    .home2-newsletter-button {
        border-radius: 0 0 1rem 1rem;
        justify-content: center;
        padding: 1rem;
    }
    
    .home2-newsletter-social-proof {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .home2-social-proof-item:not(:last-child)::after {
        display: none;
    }
    
    .home2-social-proof-item {
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        padding-bottom: 0.75rem;
    }
    
    .home2-social-proof-item:last-child {
        border-bottom: none;
        padding-bottom: 0.5rem;
    }
    
    .home2-newsletter-tech-indicators {
        gap: 0.5rem;
    }
    
    .home2-tech-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .home2-newsletter-container {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    
    .home2-newsletter-title {
        font-size: 1.25rem;
    }
    
    .home2-newsletter-form {
        max-width: 100%;
    }
    
    .home2-newsletter-input {
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
    
    .home2-newsletter-button {
        font-size: 0.875rem;
        padding: 0.875rem;
    }
    
    .home2-newsletter-benefits {
        gap: 0.5rem;
    }
    
    .home2-benefit-item {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .home2-proof-number {
        font-size: 1.125rem;
    }
    
    .home2-proof-text {
        font-size: 0.8125rem;
    }
}

/* Fallback styles for button if CSS variables fail */
.home2-newsletter-button {
    /* Fallback colors if variables don't load */
    background: linear-gradient(135deg, #1E40AF, #3B82F6) !important;
}

.home2-newsletter-button:hover {
    background: linear-gradient(135deg, #3B82F6, #1E40AF) !important;
}

/* Ensure button text is always visible */
.home2-newsletter-button * {
    color: white !important;
}

