/* ============================================
   Home Page Styles - Professional Hero Section
   ============================================ */

/* Override body padding for home page */
body {
    padding-top: 0 !important;
}

/* Ensure proper mobile spacing */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 0 !important;
    }
}

/* Hero Section - Responsive Design */
.hero-section {
background: radial-gradient(circle at 20% 30%, #0e6649 0%, #005c99 70%), 
            linear-gradient(135deg, #050510 0%, #0d0d1a 100%);
background-blend-mode: overlay;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 8vh, 80px) clamp(15px, 5vw, 30px) clamp(40px, 6vh, 60px);
    color: var(--white);
    margin-top: 0;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-violet), var(--neon-blue), var(--secondary-color));
    animation: gradientMove 3s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(42, 193, 174, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

/* Additional floating elements */
.hero-section .floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-section .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #2BC7B4, #8B5CF6);
    border-radius: 50%;
    opacity: 0.8;
    animation: float-particle 8s infinite linear;
    box-shadow: 0 0 10px rgba(43, 199, 180, 0.5);
}

.hero-section .particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-section .particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.hero-section .particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.hero-section .particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.hero-section .particle:nth-child(5) { left: 50%; animation-delay: 1s; }
.hero-section .particle:nth-child(6) { left: 60%; animation-delay: 3s; }
.hero-section .particle:nth-child(7) { left: 70%; animation-delay: 5s; }
.hero-section .particle:nth-child(8) { left: 80%; animation-delay: 7s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(42, 193, 174, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(42, 193, 174, 0.6);
    }
}

.hero-content {
    z-index: 2;
    position: relative;
    padding: clamp(15px, 3vh, 20px) 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Responsive container adjustments */
.hero-section .container {
    max-width: 100%;
    padding-left: clamp(15px, 5vw, 30px);
    padding-right: clamp(15px, 5vw, 30px);
}

.hero-section .row {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
    min-height: auto;
}

/* Hero Typography - Fluid Responsive Design */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Fluid typography */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
    z-index: 2;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
}

.gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem); /* Fluid typography */
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    z-index: 2;
    position: relative;
    max-width: 100%;
}

.hero-points {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    gap: clamp(0.3rem, 1.5vw, 0.8rem); /* More responsive gap */
    flex-wrap: nowrap; /* Prevent wrapping to keep in one row */
    justify-content: flex-start; /* Left align for desktop */
    align-items: center;
    overflow: visible; /* Allow content to be visible */
    padding: 0.5rem 0; /* Remove horizontal padding for proper alignment */
    width: 100%;
    max-width: 100%; /* Full width for proper alignment */
    box-sizing: border-box; /* Include padding in width calculation */
    /* Hide scrollbar completely */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hero-points::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hero-point {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 1.5vw, 12px) clamp(6px, 1vw, 10px); /* Adjusted padding for vertical layout */
    background: rgba(42, 193, 174, 0.15);
    border-radius: clamp(15px, 3vw, 25px); /* Responsive border radius */
    border: 1px solid rgba(42, 193, 174, 0.3);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    animation: none; /* Remove bouncing animation */
    box-shadow: 0 4px 15px rgba(42, 193, 174, 0.2);
    flex: 1 1 auto; /* Allow flexible sizing */
    min-width: clamp(100px, 18vw, 160px); /* More responsive min-width */
    max-width: clamp(180px, 25vw, 220px); /* Responsive max-width */
    text-align: center; /* Center align text */
    box-sizing: border-box; /* Include padding in width */
}

/* Animation delays removed since animation is disabled */

.hero-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 193, 174, 0.3), transparent);
    animation: none; /* Remove shimmer animation */
}

.hero-point i {
    color: var(--secondary-color);
    font-size: clamp(1rem, 2vw, 1.3rem); /* Larger icon for vertical layout */
    margin-bottom: clamp(4px, 0.8vw, 6px); /* Bottom margin instead of right */
    margin-right: 0; /* Remove right margin */
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.hero-point span {
    font-size: clamp(0.65rem, 1.3vw, 0.8rem); /* More responsive text size */
    font-weight: 600;
    color: var(--white);
    z-index: 2;
    position: relative;
    white-space: normal; /* Allow text wrapping */
    overflow: visible; /* Show all text */
    text-align: center; /* Center align text */
    line-height: 1.2; /* Better line spacing */
    max-width: 100%; /* Ensure text doesn't overflow */
    word-break: break-word; /* Break long words if needed */
}

@keyframes floatPoint {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #cbd5e0;
    margin-bottom: 2.5rem;
    z-index: 2;
    position: relative;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.btn-outline-custom {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-size: 15px;
    z-index: 2;
    display: inline-block;
    text-align: center;
    min-width: 180px;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn-outline-custom:hover {
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-outline-custom:hover::before {
    left: 0;
}

/* Hero Image Section */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Image Section - Updated for 3D Cube */
.hero-3d-stage {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple CSS Animations */
.hero-content,
.hero-image {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-content.loaded,
.hero-image.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image {
        height: 350px;
        margin-top: 50px;
    }
    
    .hero-3d-stage {
        height: 400px;
    }
}

@media (max-width: 768px) {
        .hero-section {
            padding: 110px 0 50px;
            min-height: auto;
            margin-top: 0;
        }
        
        .hero-content {
            padding: 15px 0;
        }
    
    .hero-points {
        flex-direction: row; /* Keep horizontal layout on mobile */
        gap: clamp(0.3rem, 2vw, 0.6rem); /* Responsive gap for mobile */
        flex-wrap: nowrap;
        justify-content: center !important; /* Keep center alignment for mobile */
        padding: 0.5rem clamp(8px, 3vw, 16px); /* Mobile padding */
        max-width: 100vw; /* Full viewport width */
        overflow: visible; /* Ensure visibility */
        margin: 0 auto 1.5rem auto; /* Center and add margin */
    }
    
    .hero-point {
        flex: 1 1 auto; /* Allow flexible sizing */
        min-width: clamp(70px, 22vw, 120px); /* Smaller min-width for mobile */
        max-width: clamp(120px, 28vw, 150px); /* Responsive max-width */
        justify-content: center;
        align-items: center;
        padding: clamp(8px, 2vw, 12px) clamp(6px, 1.5vw, 10px); /* Vertical padding for mobile */
        box-sizing: border-box; /* Include padding in width */
        min-height: clamp(60px, 12vw, 80px); /* Minimum height for text wrapping */
    }
    
    .hero-point span {
        font-size: clamp(0.6rem, 2.2vw, 0.75rem); /* Smaller mobile text */
        line-height: 1.1; /* Tighter line spacing for mobile */
        word-break: break-word; /* Break long words */
    }
    
    .hero-point i {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Larger mobile icon for vertical layout */
        margin-bottom: clamp(3px, 1vw, 5px); /* Bottom margin for mobile */
        margin-right: 0; /* Remove right margin */
    }
    
    /* Disable hero-section::after on mobile to prevent layout issues */
    .hero-section::after {
        display: none !important;
    }
    
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-points {
        margin-bottom: 1.5rem;
    }
    
    .hero-point {
        justify-content: flex-start;
        margin-bottom: 0.8rem;
        padding: 12px 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-custom-gradient,
    .btn-outline-custom {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .hero-image {
        height: 250px;
        margin-top: 30px;
    }
    
    .hero-3d-stage {
        height: 400px;
    }
    
    .hero-section .particle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 576px) {
        .hero-section {
            margin-top: 0;
            padding: 105px 0 40px;
            overflow: visible;
        }
        
        .hero-content {
            padding: 10px 0;
        }
        
        .container {
            padding-left: 15px;
            padding-right: 15px;
        }
        
        .row {
            margin-left: -10px;
            margin-right: -10px;
        }
        
        .col-lg-6 {
            padding-left: 10px;
            padding-right: 10px;
        }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn-custom-gradient,
    .btn-outline-custom {
        width: 100%;
        max-width: 280px;
        margin: 0;
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .hero-3d-stage {
        height: 350px;
    }
    
    .hero-point span {
        font-size: 0.9rem;
    }
}

/* Performance optimizations */
.hero-image,
.marketing-cube {
    will-change: transform;
}

/* Zoom-specific responsive breakpoints */
@media screen and (min-width: 1200px) and (max-width: 1400px) {
    .hero-points {
        gap: 0.8rem;
        justify-content: flex-start; /* Left align for medium zoom */
        padding: 0.5rem 0; /* Remove horizontal padding */
    }
    
    .hero-point {
        min-width: 160px;
        max-width: 200px;
        padding: 10px 16px;
    }
    
    .hero-point span {
        font-size: 0.8rem; /* Reduced for better fit */
    }
}

@media screen and (min-width: 1400px) and (max-width: 1600px) {
    .hero-points {
        gap: 0.9rem;
        justify-content: flex-start; /* Left align for larger zoom */
        padding: 0.5rem 0; /* Remove horizontal padding */
    }
    
    .hero-point {
        min-width: 170px;
        max-width: 210px;
    }
}

/* High zoom levels (110%+) */
@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    }
    
    .hero-points {
        gap: clamp(0.2rem, 1vw, 0.5rem); /* Smaller gap for zoom levels */
        flex-wrap: nowrap;
        overflow: visible; /* Allow content to be visible */
        padding: 0.5rem 0; /* Remove horizontal padding for proper alignment */
        justify-content: flex-start; /* Left align for zoom levels */
        max-width: 100%; /* Full width for proper alignment */
        margin-bottom: 2rem; /* Only bottom margin */
    }
    
    .hero-point {
        min-width: clamp(80px, 15vw, 130px); /* Smaller min-width for zoom */
        max-width: clamp(140px, 22vw, 170px); /* Responsive max-width */
        padding: clamp(6px, 1vw, 10px) clamp(6px, 1.2vw, 10px); /* Vertical padding for zoom */
        flex-shrink: 1; /* Allow shrinking */
        flex-grow: 0; /* Prevent growing */
        min-height: clamp(50px, 10vw, 70px); /* Minimum height for text wrapping */
    }
    
    .hero-point span {
        font-size: clamp(0.6rem, 1.2vw, 0.75rem); /* Smaller text for zoom levels */
        line-height: 1.1; /* Tighter line spacing */
        word-break: break-word; /* Break long words */
    }
    
    .hero-point i {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
        margin-bottom: clamp(3px, 0.8vw, 5px); /* Bottom margin for zoom */
        margin-right: 0; /* Remove right margin */
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-child {
        transition: none;
        animation: none;
    }
    
    .marketing-cube {
        animation: none;
    }
    
    .marketing-cube:hover {
        animation-play-state: running;
    }
}
