

.hero {
    position: relative;
    display: flex;
    align-items: center;
    
    margin-top: -2rem;
    padding: 60px 0 40px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
    border-left: 3px solid #06b6d4;
    padding: 6px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 2rem;
    max-width: 480px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.5);
    filter: brightness(1.05);
}

.hero-buttons .btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #374151;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero-buttons .btn-outline:hover {
    border-color: #06b6d4;
    color: #0284c7;
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-visual-inner {
    position: relative;
    width: 440px;
    height: 440px;
}

.hero-visual-frame {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
}

.hero-visual-frame:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--border-color);
}

.hero-visual-frame:nth-child(2) {
    border-color: var(--primary-color);
    transform: rotate(3deg);
    opacity: 0.25;
    pointer-events: none;
}

.hero-visual-frame:nth-child(3) {
    border-color: var(--accent-color);
    transform: rotate(-3deg);
    opacity: 0.25;
    pointer-events: none;
}

.hero-stats {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.stats-1 { top: 0;       right: -2rem; animation: floatBadge 3s ease-in-out infinite; }
.stats-2 { bottom: 4rem; left: -3rem;  animation: floatBadge 3s ease-in-out 1s infinite; }
.stats-3 { bottom: 0;    right: -2rem; animation: floatBadge 3s ease-in-out 2s infinite; }

.hero-stats-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.hero-stats-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stats-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.scroll-indicator-line {
    width: 1px;
    height: 44px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-indicator-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
    0%   { top: -4px; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-album { position: relative; width: 100%; height: 100%; }
.hero-album-slides { width: 100%; height: 100%; position: relative; }

.hero-album-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-album-slide.active { display: block; }

.hero-album-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.hero-album-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hero-album-btn:hover { background: rgba(0, 0, 0, 0.7); }
.hero-album-btn i { font-size: 12px; }

.hero-album-prev { left: -44px; }
.hero-album-next { right: -44px; }

.hero-album-slide-link { display: block; width: 100%; height: 100%; }
.hero-album-slide-link img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }

.hero-album-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.hero-album-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-album-dot.active { background: #fff; }

.hero-fallback-img { width: 90%; height: 90%; object-fit: cover; border-radius: 15px; }

@media (prefers-reduced-motion: no-preference) {
    .hero-greeting {
        opacity: 0;
        animation: fadeInDown 0.6s ease forwards;
    }
    .hero-title {
        opacity: 0;
        animation: fadeInUp 0.7s ease 0.2s forwards;
    }
    .hero-subtitle {
        opacity: 0;
        animation: fadeIn 0.6s ease 0.4s forwards;
    }
    .hero-description {
        opacity: 0;
        animation: fadeIn 0.6s ease 0.5s forwards;
    }
    .btn-primary {
        opacity: 0;
        animation: fadeIn 0.6s ease 0.6s forwards;
    }
    .hero-buttons .btn-outline {
        opacity: 0;
        animation: fadeIn 0.6s ease 0.6s forwards;
    }
    .hero-content .social-links .social-link:nth-child(1) { opacity: 0; animation: fadeIn 0.5s ease 0.7s forwards; }
    .hero-content .social-links .social-link:nth-child(2) { opacity: 0; animation: fadeIn 0.5s ease 0.8s forwards; }
    .hero-content .social-links .social-link:nth-child(3) { opacity: 0; animation: fadeIn 0.5s ease 0.9s forwards; }
    .hero-content .social-links .social-link:nth-child(4) { opacity: 0; animation: fadeIn 0.5s ease 1.0s forwards; }
    .hero-content .social-links .social-link:nth-child(5) { opacity: 0; animation: fadeIn 0.5s ease 1.1s forwards; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes floatBadge {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stats          { animation: none !important; }
    .scroll-indicator-dot { animation: none !important; }
}

[dir="rtl"] .stats-1 { right: auto; left: -2rem; }
[dir="rtl"] .stats-2 { left: auto;  right: -3rem; }
[dir="rtl"] .stats-3 { right: auto; left: -2rem; }

[dir="rtl"] .hero-album-prev { left: auto;  right: -44px; }
[dir="rtl"] .hero-album-next { right: auto; left: -44px; }

[dir="rtl"] .hero-album-btn i { transform: scaleX(-1); }

[dir="rtl"] .hero-description { text-align: justify; }

@media (max-width: 1200px) {
    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 16px; }
    .hero-visual-inner { width: 370px; height: 370px; }
}

@media (max-width: 1024px) {
    .hero { margin-top: -1.5rem; padding: 48px 0 40px; min-height: auto; }
    .hero-container { padding-left: 24px; padding-right: 24px; }
    .hero-title { font-size: 44px; }
    .hero-visual-inner { width: 300px; height: 300px; }
    .stats-1 { right: 0; }
    .stats-3 { right: 0; }
    .stats-2 { left: -1rem; }
}

@media (min-width: 993px) {
    .hero-container {
        grid-template-columns: 1.3fr 1fr;
    }
    .hero-description {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .hero { min-height: auto; }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-greeting  { justify-content: center; }
    .hero-description { max-width: 100%; text-align: justify; }
    .hero-buttons   { justify-content: center; }
    .social-links   { justify-content: center; }
    .hero-visual    { margin-top: 0; }
    .hero-stats     { display: none; }
    .scroll-indicator { display: none; }
}

@media (max-width: 768px) {

    
    body, main, .container {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    
    .hero {
        margin-top: -1rem;
        padding: 24px 16px 32px !important;
        min-height: auto;
        overflow: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 24px !important;
        padding: 0 !important;
        overflow: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    
    .hero-title     { font-size: 32px !important; line-height: 1.2 !important; }
    .hero-greeting  { font-size: 13px; letter-spacing: 2px; justify-content: center; }
    .hero-subtitle  { font-size: 15px; margin-bottom: 1rem; }
    .hero-description {
        font-size: 15px;
        max-width: 100%;
        text-align: justify;
        padding: 0;
    }

    
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 1.5rem;
    }
    .btn-primary,
    .hero-buttons .btn-outline {
        display: inline-flex !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-width: unset !important;
        justify-content: center;
        align-items: center;
        box-sizing: border-box !important;
        padding: 12px 24px !important;
    }

    
    .social-links { justify-content: center; }

    
    .hero-stats,
    .stats-1, .stats-2, .stats-3 {
        display: none !important;
    }
    .scroll-indicator { display: none; }

    
    .hero-visual {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 340px !important;
        height: 340px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    
    .hero-visual-inner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 340px !important;
        height: 340px !important;
        margin: 0 auto !important;
        overflow: visible !important;
        position: relative !important;
    }

    
    .hero-visual-frame:nth-child(1) {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        border-radius: 16px !important;
    }

    
    .hero-visual-frame:nth-child(2),
    .hero-visual-frame:nth-child(3) {
        display: none !important;
    }

    
    .hero-album {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    
    .hero-album-slides {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }

    
    .hero-album-slide {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    
    .hero-album-slide img,
    .hero-album-slide-link img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: top center !important;
        border-radius: 0 !important;
    }

    
    .hero-album-slide-link {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    
    .hero-fallback-img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: top center !important;
        border-radius: 0 !important;
    }

    
    .hero-album-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }
    .hero-album-prev { left: 8px !important; right: auto !important; }
    .hero-album-next { right: 8px !important; left: auto !important; }
    
    [dir="rtl"] .hero-album-prev { right: 8px !important; left: auto !important; }
    [dir="rtl"] .hero-album-next { left: 8px !important; right: auto !important; }

    
    .hero-album-prev { left: 8px; }
    .hero-album-next { right: 8px; }
}

@media (min-width: 1440px) {
    .hero-title { font-size: 68px; }
    .hero-description { font-size: 18px; max-width: 100%; }
}

@media (min-width: 1920px) {
    .hero-title { font-size: 78px; }
    .hero-description { font-size: 20px; max-width: 100%; }
}

@media (min-width: 2560px) {
    .hero-title { font-size: 96px; }
    .hero-description { font-size: 22px; max-width: 100%; }
}

@media (max-width: 480px) {
    .hero { margin-top: -0.75rem; }
    .hero-title { font-size: 28px !important; }
    .hero-visual,
    .hero-visual-inner {
        max-width: 280px !important;
        height: 280px !important;
    }
}

@media (min-width: 769px) {
    
    .hero {
        min-height: unset !important;
        padding-bottom: 40px !important;
        margin-bottom: 0 !important;
    }
}
