/* ======================================================================= */
/*                               HERO SECTION                              */
/* ======================================================================= */

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    transition: all 0.3s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    margin-top: -118px; /* Remove gap with header - consistent with other pages */
    padding: 150px 2rem 4rem; /* Consistent padding with other pages */
    filter: brightness(1.2); /* Consistent filter with other pages */
}

#hero-background {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1;
    transition: all 0.3s ease-in-out;
}

/* Remove background padding and shades for homepage hero */
#hero .hero-content {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 2s ease-in-out;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    /* Consistent styling with other pages */
    background: rgba(0, 0, 0, 0.08); /* Reduced from 0.15 for better background visibility */
    padding: 2.2rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.hero-tagline {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    font-family: 'Amaranth', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #00aaff; /* Changed to requested color */
    text-shadow: none; /* Remove text shadow */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: #00aaff; /* Changed to requested color */
    line-height: 1.4;
    text-shadow: none; /* Remove text shadow */
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.stat-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    min-width: 120px;
}

/* Update stat items to match */
.stat-number { 
    font-size: clamp(2rem, 5vw, 2.5rem); 
    font-weight: 700; 
    color: #00aaff; /* Changed to requested color */
    line-height: 1;
}

.stat-label { 
    font-size: clamp(0.9rem, 2vw, 1rem); 
    color: #00aaff; /* Changed to requested color */
    text-align: center;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Update CTA buttons to match */
.hero-cta-group .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #fff;
    color: #00aaff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #00aaff;
    cursor: pointer;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffffff;
    color: #00aaff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #00aaff;
    cursor: pointer;
}
.cta-button span { color: #00aaff; }
.cta-futureglob-logo { height: 24px; width: auto; vertical-align: middle; }
.cta-button .arrow-icon { stroke: #00aaff; }
.cta-button:hover {
    background-color: rgba(0, 170, 255, 0.1);
    transform: translateY(-2px);
    color: #00aaff;
}
.cta-button:hover .arrow-icon { transform: translateX(5px); }
.cta-futureglob-logo {
    height: auto;
    width: 200px;
    max-height: 50px;
}
.cta-button span {
    font-size: 30px;
}

.hero-cta-group .cta-button:hover {
    background-color: rgba(0, 170, 255, 0.1);
    transform: translateY(-2px);
    color: #00aaff;
}

/* Product page heroes - remove gaps */
#globforce-hero,
#globpos-hero,
#ontime-hero,
#idaglob-hero,
#keyshare-hero,
#nexus-hero {
    margin-top: -118px; /* Remove gap */
    padding-top: 150px; /* Ensure content doesn't hide behind header */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    filter: brightness(1.2);
}

/* Responsive hero adjustments */
@media screen and (max-width: 1200px) {
    #hero {
        min-height: 500px;
        width: 100%;
    }
    
    .hero-content {
        max-width: 90%;
    }
}

/* Enhanced mobile responsiveness */
@media screen and (max-width: 768px) {
    #hero {
        margin-top: -60px; /* Updated for mobile header height */
        padding: 80px 1rem 2rem; /* Updated for mobile header height */
        height: 100vh;
        min-height: 500px;
    }
    
    #globforce-hero,
    #globpos-hero,
    #ontime-hero,
    #idaglob-hero,
    #keyshare-hero,
    #nexus-hero {
        margin-top: -60px; /* Updated for mobile header height */
        padding: 80px 1rem 2rem; /* Updated for mobile header height */
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        max-width: 100%;
        background: rgba(0, 0, 0, 0.12); /* Reduced from 0.25 for better background visibility */
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-item {
        min-width: 80px;
    }
}

/* iPhone optimizations */
@media screen and (max-width: 480px) {
    .hero-content {
        padding: 1.2rem 0.8rem;
        background: rgba(0, 0, 0, 0.12); /* Reduced from 0.25 for better background visibility */
    }
    
    .hero-tagline {
        font-size: clamp(2.2rem, 5vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.2rem);
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin: 1.5rem 0;
        justify-content: space-between;
    }
    
    .stat-item {
        min-width: 60px;
        flex: 1;
    }
    
    .stat-number {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .stat-label {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .hero-cta-group .cta-button {
        padding: 1rem !important;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
    }
}

/* iPhone SE and smaller */
@media screen and (max-width: 375px) {
    #hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-tagline {
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.2rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .hero-cta-group .cta-button {
        max-width: 250px;
        padding: 0.8rem !important;
    }
}