/* Enhanced Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    /* Restored for full-screen feel */
    overflow: hidden;
    background: linear-gradient(0deg, rgba(58, 12, 163, 0.15), rgba(58, 12, 163, 0.15)),
        linear-gradient(135deg, rgba(71, 101, 115, 0.07) 0%, rgba(164, 65, 37, 0.04) 100%),
        url('../../images/illustrations/wallpapers/01-section-home-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    min-height: 100vh;
    /* Restored to occupy the whole screen */
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}


.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    display: block;
    background-color: rgba(255, 255, 255, 0.05);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: floating 25s infinite ease-in-out;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(120px, 60px) rotate(90deg);
    }

    50% {
        transform: translate(60px, 120px) rotate(180deg);
    }

    75% {
        transform: translate(-60px, 100px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

@media (max-width: 992px) {
    .hero-content {
        padding: 0 2rem;
    }
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    /* Compensated to match previous absolute size */
    font-weight: 600;
    margin-bottom: 2rem;
    /* Reduced from 2.5rem */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-badge i {
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Title Background Bubble Wrapper */
.hero-title-group {
    position: relative;
    padding: 0;
    margin-bottom: 2.5rem;
    /* Reduced from 3.5rem */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Home hero specifically layout should be normal */
.hero .hero-title-group {
    background-image: none;
    padding: 0;
    aspect-ratio: auto;
    display: flex;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.hero-title-group h1,
.hero-title-group .hero-subtitle {
    -webkit-text-stroke: 0;
    color: white;
    /* True Glow: Using multi-layered filters for an organic halo effect like Microsoft Word */
    filter: drop-shadow(0 0 10px rgba(71, 101, 115, 0.95)) drop-shadow(0 0 20px rgba(71, 101, 115, 0.6));
}

.hero .hero-title-group h1,
.hero h1 {
    font-size: 5rem;
    /* Increased for greater brand impact */
    margin-bottom: 2rem;
    line-height: 1.1;
    max-width: 1000px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.hero-subtitle {
    font-size: 1.25rem;
    /* Slightly smaller for home fit */
    margin-bottom: 0;
    /* Margin handled by group or reduced */
    opacity: 0.95;
    max-width: 850px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    min-height: 54px;
    min-width: 160px;
    font-size: 0.95rem;
    /* Compensated to match previous absolute size */
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--primary);
    border: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Curved Divider */
.curve-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.curve-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.2px);
    height: 80px;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .curve-divider svg {
        transform: scale(1); /* Completely removed scaling on mobile for total stability */
    }
}

.curve-divider .shape-fill {
    fill: var(--bg-light);
    opacity: 0.6;
    /* Made semitransparent */
}

/* Hero Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 6rem;
        min-height: 100vh; 
        display: flex;
        align-items: center;
        transition: none !important; /* Disable transitions to prevent "zoom" jumps during address bar resize */
        background-attachment: scroll !important; /* Standard scroll behavior to avoid iOS fixed-background bugs */
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
        padding: 0 1.5rem;
    }

    .hero-badge {
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .hero .hero-title-group h1 {
        font-size: 4rem;
        /* Slightly increased for better brand presence while maintaining fit */
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 0;
        line-height: 1.6;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        min-height: 50px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .curve-divider svg {
        height: 50px;
    }

    .hero-title-group h1,
    .hero-title-group .hero-subtitle {
        -webkit-text-stroke: 0;
        filter: drop-shadow(0 0 8px rgba(71, 101, 115, 0.95));
    }
}

/* Large Desktop Optimizations (Consolidated from utilities) */
@media (min-width: 1200px) {
    .hero .hero-title-group h1 {
        font-size: 5.5rem;
        /* Slightly larger for ultra-wide */
    }
}

@media (min-width: 1400px) {
    .hero {
        padding: 12rem 0 8rem;
    }

    .hero .hero-title-group h1 {
        font-size: 6rem;
    }
}