/* hero.css - Enhanced Mobile Responsiveness */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Better for mobile browsers */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    padding: 80px 0 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(90, 90, 90, 0.05) 100%);
    filter: blur(40px);
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: 100px;
    left: -50px;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 30%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem); /* Fluid typography */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.highlight {
    background: linear-gradient(135deg, #5a5a5a 0%, #2c2c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block; /* Better mobile wrapping */
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.4), rgba(90, 90, 90, 0.2));
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); /* Fluid typography */
    color: #5a5a5a;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero Features */
.hero-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #4a4a4a;
}

.feature-item i {
    color: #2c2c2c;
    margin-right: 12px;
    background: linear-gradient(135deg, #c0c0c0, #5a5a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 20px; /* Prevents icon shifting */
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #5a5a5a 0%, #2c2c2c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 44, 44, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.3);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: #5a5a5a;
    border: 2px solid #c0c0c0;
}

.btn-secondary:hover {
    background: rgba(192, 192, 192, 0.1);
    border-color: #5a5a5a;
    color: #2c2c2c;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.dashboard-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.dashboard-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-controls span:nth-child(1) {
    background: #ff5f57;
}

.window-controls span:nth-child(2) {
    background: #ffbd2e;
}

.window-controls span:nth-child(3) {
    background: #28ca42;
}

.dashboard-title {
    font-weight: 600;
    color: #5a5a5a;
    font-size: 0.9rem;
}

.dashboard-content {
    padding: 1.5rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #5a5a5a;
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.metric-trend.up {
    color: #28a745;
}

.metric-trend.down {
    color: #dc3545;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    font-size: 1rem;
    color: #2c2c2c;
}

.chart-filter {
    display: flex;
    gap: 10px;
}

.chart-filter span {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #5a5a5a;
    transition: all 0.2s ease;
}

.chart-filter span.active {
    background: #e9ecef;
    color: #2c2c2c;
    font-weight: 600;
}

.chart-filter span:hover:not(.active) {
    background: rgba(192, 192, 192, 0.2);
}

.chart-placeholder {
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 140px;
    padding: 0 10px;
}

.chart-bar {
    width: 12%;
    background: linear-gradient(to top, #5a5a5a, #c0c0c0);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 4px 4px 0 0;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 10px;
}

.chart-labels span {
    font-size: 0.75rem;
    color: #5a5a5a;
    width: 12%;
    text-align: center;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 40px;
    left: -30px;
    animation-delay: 1.5s;
}

.floating-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5a5a5a 0%, #2c2c2c 100%);
    color: white;
}

.floating-text {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 0.9rem;
}

/* 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(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================ */

/* Tablet and Small Desktop */
@media (max-width: 1100px) {
    .container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-shape-1 {
        width: 300px;
        height: 300px;
        right: -50px;
    }
    
    .hero-shape-2 {
        width: 250px;
        height: 250px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero-content {
        order: 2;
        animation: fadeInUp 1s ease-out;
    }
    
    .hero-visual {
        order: 1;
        animation: fadeInUp 1s ease-out;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .dashboard-preview {
        transform: none;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .hero-features {
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .floating-card {
        position: relative;
        display: inline-flex;
        animation: none;
        margin: 10px;
    }
    
    .floating-card-1, .floating-card-2 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }
    
    /* Adjust floating cards for tablet */
    .hero-visual {
        position: relative;
    }
    
    .floating-card-1 {
        top: 10px;
        right: 10px;
    }
    
    .floating-card-2 {
        bottom: 10px;
        left: 10px;
    }
}

/* Large Mobile (768px and below) */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0 30px;
    }
    
    .container {
        gap: 40px;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
    }
    
    .feature-item i {
        margin-right: 10px;
    }
    
    .dashboard-preview {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .metric-card {
        padding: 0.8rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 0.8rem;
    }
    
    .chart-filter {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .chart-filter span {
        flex: 1;
        text-align: center;
        font-size: 0.75rem;
        padding: 6px 4px;
    }
    
    .chart-placeholder {
        height: 150px;
    }
    
    .chart-bars {
        height: 120px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
    }
    
    /* Hide floating cards on mobile for cleaner look */
    .floating-card {
        display: none;
    }
    
    /* Adjust hero shapes for mobile */
    .hero-shape-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }
    
    .hero-shape-2 {
        width: 150px;
        height: 150px;
        bottom: 50px;
        left: -30px;
    }
    
    .hero-shape-3 {
        width: 100px;
        height: 100px;
        top: 30%;
        right: 20%;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero {
        padding: 40px 0 20px;
        min-height: auto;
    }
    
    .container {
        gap: 30px;
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .feature-item i {
        font-size: 0.9rem;
    }
    
    .dashboard-header {
        padding: 0.8rem 1rem;
    }
    
    .dashboard-content {
        padding: 0.8rem;
    }
    
    .metric-card {
        padding: 0.7rem;
    }
    
    .metric-value {
        font-size: 1.3rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 0.8rem;
    }
    
    .chart-placeholder {
        height: 130px;
    }
    
    .chart-bars {
        height: 100px;
        padding: 0 5px;
    }
    
    .chart-bar {
        width: 11%;
    }
    
    .chart-labels {
        padding: 0 5px;
    }
    
    .chart-labels span {
        font-size: 0.7rem;
        width: 11%;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .highlight::after {
        height: 6px;
        bottom: 3px;
    }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .metric-value {
        font-size: 1.2rem;
    }
    
    .chart-placeholder {
        height: 110px;
    }
    
    .chart-bars {
        height: 90px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .dashboard-preview:hover {
        transform: none;
    }
    
    .metric-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .chart-filter span:hover:not(.active) {
        background: none;
    }
}

/* High-resolution mobile screens */
@media (min-width: 768px) and (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .hero-content {
        order: 1;
        text-align: left;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-item {
        justify-content: flex-start;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .hero-title {
        color: #f0f0f0;
    }
    
    .highlight {
        background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .hero-subtitle {
        color: #b0b0b0;
    }
    
    .feature-item {
        color: #d0d0d0;
    }
}