/* ============================================
   Blue Messaggio - Index Page Professional Styles
   Modern, Impactful Design for SMS Industry
   ============================================ */

/* Hero Section - Professional SMS Industry Design */
.hero {
    background: linear-gradient(135deg, #0a2647 0%, #144272 50%, #205295 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(44, 116, 179, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 219, 199, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-text h1 .highlight-text {
    background: linear-gradient(135deg, #FFD164 0%, #7CDBC7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-text .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 550px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD164;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.cta-button-primary {
    background: linear-gradient(135deg, #FFD164 0%, #FFC947 100%);
    color: #0a2647;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(255, 209, 100, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 209, 100, 0.4);
    background: linear-gradient(135deg, #FFC947 0%, #FFD164 100%);
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

/* SMS Industry Stats Section */
.sms-industry-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    min-height: 400px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.sms-industry-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 66, 114, 0.2), transparent);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-header .section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #144272, #2C74B3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.stats-header h2,
.stats-header .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0a2647;
    margin-bottom: 20px;
    line-height: 1.2;
}

.stats-header h2 .highlight,
.stats-header .section-title .highlight {
    background: linear-gradient(135deg, #144272 0%, #2C74B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-header p,
.stats-header .section-description {
    font-size: 1.2rem;
    color: #495057;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 0;
    visibility: visible;
    opacity: 1;
}

.stat-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(20, 66, 114, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #144272, #2C74B3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 66, 114, 0.15);
    border-color: rgba(20, 66, 114, 0.2);
}

.stat-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #144272 0%, #2C74B3 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #2C74B3 0%, #FFD164 100%);
}

.stat-card-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0a2647;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-card-label {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-card-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Professional Services Section */
.services-showcase {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
}

.services-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 66, 114, 0.1), transparent);
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 30px;
}

.services-header .section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #144272, #2C74B3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.services-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0a2647;
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-header h2 .highlight {
    background: linear-gradient(135deg, #144272 0%, #2C74B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-header p {
    font-size: 1.2rem;
    color: #495057;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: start; /* Align cards to top, not stretch */
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    border: 2px solid rgba(20, 66, 114, 0.1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #144272, #2C74B3, #FFD164);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(20, 66, 114, 0.15);
    border-color: rgba(20, 66, 114, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #144272 0%, #2C74B3 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #2C74B3 0%, #FFD164 100%);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a2647;
    margin-bottom: 16px;
    line-height: 1.3;
    display: block;
    visibility: visible;
    opacity: 1;
}

.service-card p {
    font-size: 1rem;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 24px;
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px 0;
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: visible;
    flex-grow: 0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: auto;
}

.service-features li i {
    color: #2C74B3;
    font-size: 0.9rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #144272;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 20px;
    visibility: visible;
    opacity: 1;
    flex-shrink: 0;
}

.service-link:hover {
    color: #2C74B3;
    gap: 12px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Enhanced About Section */
.about {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
}

.about-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 30px;
}

.about-header .section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #144272, #2C74B3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.about-header .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0a2647;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-header .section-title .highlight {
    background: linear-gradient(135deg, #144272 0%, #2C74B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-header .section-description {
    font-size: 1.2rem;
    color: #495057;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
}

.about-stats .stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(20, 66, 114, 0.1);
    transition: all 0.3s ease;
}

.about-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(20, 66, 114, 0.1);
    border-color: rgba(20, 66, 114, 0.2);
}

.about-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #144272 0%, #2C74B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.about-stats .stat-label {
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 30px;
}

.about-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(20, 66, 114, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #144272, #2C74B3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 66, 114, 0.15);
    border-color: rgba(20, 66, 114, 0.2);
}

.about-card .card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #144272 0%, #2C74B3 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #2C74B3 0%, #FFD164 100%);
}

.about-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a2647;
    margin-bottom: 16px;
}

.about-card p {
    font-size: 1rem;
    color: #495057;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 30px;
}

.about-features .feature {
    text-align: center;
    padding: 30px 20px;
}

.about-features .feature i {
    font-size: 2.5rem;
    color: #2C74B3;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.about-features .feature:hover i {
    transform: scale(1.2);
    color: #FFD164;
}

.about-features .feature h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a2647;
    margin-bottom: 12px;
}

.about-features .feature p {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sms-industry-stats,
    .services-showcase,
    .about {
        padding: 50px 0;
    }
}

/* Remove excessive spacing between sections */
section + section {
    margin-top: 0;
}

/* Ensure container has proper max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Remove empty space from empty divs */
div:empty,
section:empty {
    display: none;
}

/* Optimize hero content spacing */
.hero-content {
    min-height: auto;
}

.hero-text {
    padding: 20px 0;
}

/* Reduce spacing in hero stats */
.hero-stats {
    margin: 24px 0;
}

/* Optimize card spacing */
.stat-card,
.service-card,
.about-card {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 15px;
        margin: 24px 0;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stat-label {
        font-size: 0.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        margin-top: 30px;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .stats-header h2,
    .services-header h2,
    .about-header .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .sms-industry-stats,
    .services-showcase,
    .about {
        padding: 40px 0;
    }
    
    .stats-header,
    .services-header,
    .about-header {
        margin-bottom: 30px;
    }
}

