/* Enhanced Hero Component for BEAUT Landing Page */
/* Perfect mobile experience with native app-like feel */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
    padding-top: 120px; /* Increased padding for desktop to prevent text going under header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-content {
    color: var(--text-primary);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.hero-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

.hero-title {
    font-size: calc(var(--font-size-5xl) - 2px); /* Reduced by 2px to fit in 3 lines */
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.hero-title .neon {
    display: inline;
    margin-left: var(--spacing-xs);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.hero-btn-primary {
    background: var(--gradient-button);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    box-shadow: var(--shadow-medium);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large), var(--shadow-glow);
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.hero-btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    box-shadow: var(--shadow-soft);
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-secondary:hover {
    background: var(--button-inactive);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.hero-stat {
    text-align: center;
    min-width: 80px;
}

.hero-stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.hero-stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent phones from jumping outside */
}

.hero-gallery-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 900px;
    max-height: 600px;
    pointer-events: none;
    z-index: 1;
}

.hero-gallery-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(250, 237, 231, 0.4) 0%,
        rgba(253, 245, 240, 0.3) 40%,
        rgba(250, 226, 211, 0.2) 70%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(40px);
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-gallery-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(250, 226, 211, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(253, 245, 240, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(250, 237, 231, 0.3);
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.hero-phones-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    perspective: 1000px;
    justify-items: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    /* Contain the animation area */
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.hero-phone {
    position: relative;
    width: 139px;
    height: 279px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(250, 237, 231, 0.4);
    border-radius: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(236, 72, 153, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: phoneFloat 6s ease-in-out infinite;
    cursor: pointer;
    /* Prevent phones from jumping outside their grid area */
    transform-origin: center center;
}

.hero-phone:hover {
    transform: translateY(-10px) rotateY(5deg) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(236, 72, 153, 0.3);
    z-index: 10;
}

/* Individual phone animations - Limited movement */
.phone-1 {
    animation-delay: 0s;
    --rotation: -15deg;
    --depth: 0px;
    --float-y: -8px;
}

.phone-2 {
    animation-delay: 1s;
    --rotation: -8deg;
    --depth: 20px;
    --float-y: -6px;
}

.phone-3 {
    animation-delay: 2s;
    --rotation: 0deg;
    --depth: 40px;
    --float-y: -10px;
}

.phone-4 {
    animation-delay: 3s;
    --rotation: 8deg;
    --depth: 20px;
    --float-y: -7px;
}

.phone-5 {
    animation-delay: 4s;
    --rotation: 15deg;
    --depth: 0px;
    --float-y: -9px;
}

.phone-6 {
    animation-delay: 5s;
    --rotation: 10deg;
    --depth: 10px;
    --float-y: -5px;
}

.phone-7 {
    animation-delay: 6s;
    --rotation: -5deg;
    --depth: 5px;
    --float-y: -8px;
}

.phone-8 {
    animation-delay: 7s;
    --rotation: 5deg;
    --depth: 15px;
    --float-y: -6px;
}

.phone-9 {
    animation-delay: 8s;
    --rotation: -10deg;
    --depth: 0px;
    --float-y: -7px;
}

.phone-10 {
    animation-delay: 9s;
    --rotation: 12deg;
    --depth: 8px;
    --float-y: -9px;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(var(--rotation)) translateZ(var(--depth));
    }
    50% {
        transform: translateY(var(--float-y)) rotateY(var(--rotation)) translateZ(var(--depth));
    }
}

/* Hero Phone App Styles */
.hero-phone-screen {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
}

/* Status Bar */
.app-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-icons {
    display: flex;
    gap: 4px;
}

.status-icon {
    font-size: 10px;
}

/* App Content */
.app-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.profile-specialty {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    font-size: 12px;
}

.rating-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Profile Stats */
.profile-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 8px;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.app-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-btn.primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

.app-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.app-btn.primary:active {
    transform: translateY(0) scale(0.98);
}

.app-btn.secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.app-btn.secondary:hover {
    background: var(--button-active);
    transform: translateY(-2px);
}

.app-btn.secondary:active {
    transform: translateY(0) scale(0.98);
}

/* App Tabs */
.app-tabs {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 8px 0;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
    min-height: 48px;
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
}

.tab-btn:not(.active) {
    color: var(--text-secondary);
}

.tab-btn:hover:not(.active) {
    background: var(--button-inactive);
    color: var(--text-primary);
}

.tab-btn:active {
    transform: scale(0.95);
}

.tab-icon {
    font-size: 16px;
    line-height: 1;
}

.tab-text {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Desktop and larger screens - ensure proper header spacing */
@media (min-width: 769px) {
    .hero {
        padding-top: 140px; /* Extra padding for desktop to prevent text going under header */
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .hero-container {
        gap: var(--spacing-5xl);
    }
    
    .hero-title {
        font-size: var(--font-size-6xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-2xl);
    }
}

/* Desktop (1024px-1199px) */
@media (max-width: 1199px) {
    .hero-container {
        gap: var(--spacing-3xl);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* Tablet (768px-1023px) */
@media (max-width: 1023px) {
    .hero {
        padding-top: 100px; /* Reduced padding for tablet */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-gallery-background {
        max-width: 700px;
        max-height: 500px;
    }
    
    .hero-phones-gallery {
        gap: 10px;
        max-width: 700px;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        min-height: 350px;
    }
    
    .hero-phone {
        width: 119px;
        height: 239px;
    }
}

/* Mobile Large (481px-767px) */
@media (max-width: 767px) {
    .hero {
        padding-top: 60px;
        min-height: 90vh;
    }
    
    .hero-container {
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-xl);
        justify-content: center;
    }
    
    .hero-gallery-background {
        max-width: 500px;
        max-height: 400px;
    }
    
    .hero-phones-gallery {
        gap: 6px;
        max-width: 500px;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        min-height: 300px;
    }
    
    .hero-phone {
        width: 99px;
        height: 199px;
    }
    
    .app-content {
        padding: 16px;
        gap: 16px;
    }
    
    .profile-stats {
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px 6px;
    }
    
    .app-tabs {
        padding: 6px 0;
    }
    
    .tab-btn {
        padding: 6px 2px;
        margin: 0 2px;
    }
    
    .tab-text {
        font-size: 9px;
    }
}

/* Mobile Small (320px-480px) - Enhanced by mobile-optimizations.css */
@media (max-width: 480px) {
    .hero {
        padding-top: calc(80px + env(safe-area-inset-top));
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 0 16px;
        gap: 32px;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 16px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
        font-weight: 700;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 24px;
        color: var(--text-secondary);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-bottom: 32px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 25px;
        min-height: 48px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }
    
    .hero-stat {
        min-width: 80px;
    }
    
    .hero-stat-number {
        font-size: 24px;
        font-weight: 700;
    }
    
    .hero-stat-label {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Mobile-optimized phone gallery */
    .hero-phones-gallery {
        gap: 6px;
        max-width: 320px;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        min-height: 250px;
    }
    
    .hero-phone {
        width: 70px;
        height: 140px;
        border-radius: 20px;
    }
    
    .hero-phone:hover {
        transform: translateY(-3px) scale(1.02);
    }
    
    /* Reduce animation intensity on mobile */
    .hero-phone {
        animation: phoneFloatMobile 4s ease-in-out infinite;
    }
    
    @keyframes phoneFloatMobile {
        0%, 100% {
            transform: translateY(0px) rotateY(var(--rotation)) translateZ(0px);
        }
        50% {
            transform: translateY(-5px) rotateY(var(--rotation)) translateZ(0px);
        }
    }
}

/* Extra Small Mobile (320px-360px) */
@media (max-width: 360px) {
    .hero {
        padding-top: calc(70px + env(safe-area-inset-top));
        min-height: 90vh;
    }
    
    .hero-container {
        gap: 24px;
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
    
    .hero-actions {
        gap: 10px;
        margin-bottom: 24px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        max-width: 240px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat-number {
        font-size: 20px;
    }
    
    .hero-stat-label {
        font-size: 11px;
    }
    
    .hero-phones-gallery {
        gap: 4px;
        max-width: 280px;
        min-height: 200px;
    }
    
    .hero-phone {
        width: 60px;
        height: 120px;
        border-radius: 16px;
    }
    
    /* Even more reduced animation for very small screens */
    @keyframes phoneFloatMobile {
        0%, 100% {
            transform: translateY(0px) rotateY(var(--rotation)) translateZ(0px);
        }
        50% {
            transform: translateY(-3px) rotateY(var(--rotation)) translateZ(0px);
        }
    }
}

/* Landscape orientation optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding-top: 40px;
    }
    
    .hero-container {
        gap: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-lg);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .hero-actions {
        flex-direction: row;
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        max-width: 200px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    /* Disable phone animations in landscape to prevent jumping */
    .hero-phone {
        animation: none;
        transform: translateY(0px) rotateY(var(--rotation)) translateZ(var(--depth));
    }
} 