/* AI Hero Section Styles - Adapted for Sri Lakshmi Group */

/* CSS Reset and Base Styles */
.ai-hero-section {
    background-image: url("https://raw.githubusercontent.com/mobalti/open-props-interfaces/refs/heads/main/ai-hero-chat-popover/assets/bg-gradient.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
   
    display: grid;
    font-family: 'Roboto', 'Source Sans 3', system-ui, sans-serif;
    min-height: max(400px, 100vh);
    padding-block: 2rem;
    padding-inline: 1.5rem;
    place-items: start center;
    position: static !important;
    z-index: auto !important;
    pointer-events: auto !important;
}

.ai-section-container {
    width: min(1200px, 100%);
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    margin-left: 0;
    margin-right: auto;
    padding-left: 24px;
}

.ai-section-wrapper {
    display: grid;
    place-items: start;
    gap: 2rem;
    position: relative !important;
    z-index: auto !important;
    pointer-events: auto !important;
}

.ai-section-header {
    display: grid;
    place-items: start;
    align-items: start;
    text-align: left !important;
    gap: 0.5rem;
    position: relative !important;
    z-index: auto !important;
    pointer-events: auto !important;
    margin-left: 0;
}

.ai-logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.ai-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.ai-hgroup {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    text-align: center;
}

.ai-headline-1 {
    font-size: 2.5rem;
    color: #1f2937;
    font-weight: 600;
    font-family: 'Roboto Condensed', 'Cinzel', serif;
}

.ai-subheading {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 100%;
    width: 100%;
    line-height: 1.6;
    text-align: left;
    margin-left: 0;
}

.ai-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.ai-hero-text-left {
    width: 100%;
    max-width: none;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
}

@media (width >= 560px) {
    .ai-cta-group {
        flex-wrap: nowrap;
    }
}

.ai-section-cards {
    display: grid;
    padding: 0;
    list-style: none;
    gap: 32px;
    margin: 0;
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

@media (width >= 460px) {
    .ai-section-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (width >= 768px) {
    .ai-section-cards {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.ai-card-wrap {
    text-decoration: none !important;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.8);
    background-image: linear-gradient(170.96deg,
            rgba(255, 255, 255, 0.6) 18.95%,
            rgba(255, 255, 255, 0.2) 99.73%);
    display: grid !important;
    height: 100%;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid white;
    text-align: start;
    cursor: pointer !important;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.ai-card-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ai-figure {
    display: grid;
    gap: 1rem;
    grid-template-rows: min-content 1fr;
}

.ai-visual {
    background: linear-gradient(45deg, #1c8097, #8a5630);
    border-radius: 10px;
    height: 175px;
    overflow: hidden;
}

.ai-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-figcaption {
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Roboto', 'Source Sans 3', system-ui, sans-serif;
    color: #1f2937;
}

/* Button Styles */
.ai-btn {
    background-color: transparent;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Roboto', 'Source Sans 3', system-ui, sans-serif;
    min-height: 40px;
    text-decoration: none !important;
    text-align: center;
    min-width: max-content;
    display: inline-grid !important;
    place-items: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer !important;
    user-select: none;
    white-space: nowrap;
    padding: 0;
    border-width: 0;
    transition: all 0.3s ease;
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ai-btn.ai-filled {
    color: white;
}

.ai-btn.ai-primary {
    background-color: #1c8097;
}

.ai-btn.ai-secondary {
    background-color: #1f2937;
}

.ai-state-layer {
    border-radius: inherit;
    padding-block: 12px;
    padding-inline: 1.5rem;
    width: 100%;
    display: inline-grid;
    place-items: center;
    transition: all 0.3s ease;
}

.ai-btn:hover .ai-state-layer {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-headline-1 {
        font-size: 2rem;
    }
    
    .ai-hero-section {
        padding-inline: 1rem;
    }
    
    .ai-logo img {
        height: 60px;
    }
    
    .ai-subheading {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ai-headline-1 {
        font-size: 1.75rem;
    }
    
    .ai-section-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ai-cta-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Animation for cards */
.ai-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.ai-card:nth-child(1) { animation-delay: 0.1s; }
.ai-card:nth-child(2) { animation-delay: 0.2s; }
.ai-card:nth-child(3) { animation-delay: 0.3s; }
.ai-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Header animation */
.ai-section-header {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Remove floating animation to preserve background image */

/* Add subtle glow effect to buttons */
.ai-btn.ai-primary:hover {
    box-shadow: 0 5px 15px rgba(28, 128, 151, 0.4);
}

.ai-btn.ai-secondary:hover {
    box-shadow: 0 5px 15px rgba(138, 86, 48, 0.4);
}

/* Enhanced card hover effects */
.ai-card-wrap:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Smooth transitions for specific interactive elements only */
.ai-btn, .ai-card-wrap {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Override any conflicting styles from main CSS */
.ai-hero-section * {
    pointer-events: auto !important;
}

.ai-hero-section a {
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Ensure no background interference */
.ai-hero-section {
    background-attachment: scroll !important;
    position: static !important;
}

/* Remove any fixed positioning conflicts */
#hero-slider.ai-hero-section {
    position: static !important;
    z-index: auto !important;
    pointer-events: auto !important;
}

/* Fix spacing between hero and about sections */
#regular-content {
    margin-top: 0 !important;
}

/* Reduce about section padding for better spacing */
#about {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
