/* ============================================
   Hero Sections Unification - All Pages
   ============================================ */

/* Universal Hero Style for All Pages */
.hero,
.page-hero,
.robots-hero,
.pricing-hero,
.contact-hero {
    background: linear-gradient(135deg, #2573D1 0%, #4A90E2 100%) !important;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    color: #FFFFFF;
}

/* Geometric Pattern Overlay - More Interesting Design */
.hero::before,
.page-hero::before,
.robots-hero::before,
.pricing-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='pattern' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='1.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='100' cy='0' r='1.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='0' cy='100' r='1.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='100' cy='100' r='1.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Cpath d='M25,50 L50,25 L75,50 L50,75 Z' stroke='%23ffffff' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3Cpath d='M0,25 L25,0 M75,0 L100,25 M100,75 L75,100 M25,100 L0,75' stroke='%23ffffff' stroke-width='0.5' opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23pattern)'/%3E%3C/svg%3E");
    animation: pattern-float 30s linear infinite;
    pointer-events: none;
}

/* Secondary Animated Layer for Depth */
.hero::after,
.page-hero::after,
.robots-hero::after,
.pricing-hero::after,
.contact-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: gradient-shift 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pattern-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, 20px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: rotate(120deg) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: rotate(240deg) scale(0.9);
        opacity: 0.9;
    }
}

/* Ensure content is above patterns */
.hero .container,
.page-hero .container,
.robots-hero .container,
.pricing-hero .container,
.contact-hero .container {
    position: relative;
    z-index: 2;
}

/* Typography Consistency for Hero Sections */
.hero h1,
.page-hero h1,
.robots-hero h1,
.pricing-hero h1,
.contact-hero h1 {
    color: #FFFFFF !important;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p,
.page-hero p,
.robots-hero p,
.pricing-hero p,
.contact-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* Buttons in Hero Sections */
.hero .btn,
.page-hero .btn,
.robots-hero .btn,
.pricing-hero .btn,
.contact-hero .btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary,
.page-hero .btn-primary,
.robots-hero .btn-primary,
.pricing-hero .btn-primary,
.contact-hero .btn-primary {
    background: #FFFFFF !important;
    color: #2573D1 !important;
    font-weight: 600;
    padding: 14px 32px;
}

.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.robots-hero .btn-primary:hover,
.pricing-hero .btn-primary:hover,
.contact-hero .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.hero .btn-secondary,
.hero .btn-outline,
.page-hero .btn-secondary,
.page-hero .btn-outline,
.robots-hero .btn-secondary,
.robots-hero .btn-outline,
.pricing-hero .btn-secondary,
.pricing-hero .btn-outline,
.contact-hero .btn-secondary,
.contact-hero .btn-outline {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.hero .btn-secondary:hover,
.hero .btn-outline:hover,
.page-hero .btn-secondary:hover,
.page-hero .btn-outline:hover,
.robots-hero .btn-secondary:hover,
.robots-hero .btn-outline:hover,
.pricing-hero .btn-secondary:hover,
.pricing-hero .btn-outline:hover,
.contact-hero .btn-secondary:hover,
.contact-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

/* Breadcrumbs in Hero */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #FFFFFF !important;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Page-specific adjustments */

/* Robots Page Hero */
.robots-hero {
    padding: 100px 0 60px;
}

.robots-hero .hero-content {
    text-align: center;
}

/* Pricing Page Hero */
.pricing-hero {
    padding: 100px 0 60px;
}

.pricing-hero .hero-content {
    text-align: center;
}

/* Contact Page Hero - Remove inline styles */
.contact-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #2573D1 0%, #4A90E2 100%) !important;
}

.contact-hero h1,
.contact-hero p {
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero,
    .page-hero,
    .robots-hero,
    .pricing-hero,
    .contact-hero {
        padding: 80px 0 40px;
    }
    
    .hero h1,
    .page-hero h1,
    .robots-hero h1,
    .pricing-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p,
    .page-hero p,
    .robots-hero p,
    .pricing-hero p,
    .contact-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Simplify pattern on mobile for performance */
    .hero::before,
    .page-hero::before,
    .robots-hero::before,
    .pricing-hero::before,
    .contact-hero::before {
        animation-duration: 60s;
    }
    
    .hero::after,
    .page-hero::after,
    .robots-hero::after,
    .pricing-hero::after,
    .contact-hero::after {
        display: none;
    }
}

/* Decorative Elements for Hero Sections */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-decoration .floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float-shape 20s infinite ease-in-out;
}

.hero-decoration .floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-decoration .floating-shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.hero-decoration .floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Ensure Stats Section has different background */
.stats-section {
    background: #F9FAFB !important;
    border-top: 1px solid rgba(37, 115, 209, 0.1);
    border-bottom: 1px solid rgba(37, 115, 209, 0.1);
}

/* Features Section Background */
.features-section,
#features {
    background: #FFFFFF !important;
}

/* Clients Section Background */
.clients-section,
#clients {
    background: linear-gradient(180deg, #F8FAFB 0%, #F3F5F7 100%) !important;
}

/* CTA Section Background */
.cta-section {
    background: #F0F6FF !important;
    border-top: 1px solid rgba(37, 115, 209, 0.1);
}