/* ================================= 
   GLOBAL STYLES & VARIABLES
================================== */
:root {
    --color-background-dark: #0d0d0d;
    --color-card-bg: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-glow-purple: #946cf6;
    --color-glow-blue: #4c82f7;
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background-dark);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================= 
   AI HERO SECTION
================================== */
.ai-hero-section {
    padding: 80px 0;
    position: relative;
}

/* Subtle background dot pattern */
.ai-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.section-header {
    text-align: center;
    align-self: center;
    align-items: center;
 
}

.tagline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.main-heading {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
}

/* ================================= 
   GRID LAYOUT
================================== */
.ai-grid-container {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.large-card {
    flex: 0 0 35%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-width: 1px;
    border-style: solid;
    border-image: linear-gradient(to bottom, var(--color-glow-blue), var(--color-glow-purple)) 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-cards-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

/* ================================= 
   CARD STYLING
================================== */
.grid-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, border-color 0.3s;
}

.grid-card:hover {
    background-color: #222;
    border-color: rgba(255, 255, 255, 0.2);
}

.large-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(148, 108, 246, 0.1);
}

.large-card-image {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.large-card-image img {
    max-width: 80%;
}
.large-card-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}
.large-card-content p {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.grid-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}
.grid-card p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1; 
}
.card-image-top { margin-bottom: 15px; }
.card-image-bottom { margin-top: 15px; }
.card-image-top, .card-image-bottom {
    width: 100%;
    border-radius: 8px;
}

/* ================================= 
   ICON ANIMATION
================================== */
.tech-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.animated-icon {
    width: 28px;
    height: 28px;
    animation: bounceUp 2.5s ease-in-out infinite;
}
.animated-icon:nth-child(2) { animation-delay: 0.2s; }
.animated-icon:nth-child(3) { animation-delay: 0.4s; }
.animated-icon:nth-child(4) { animation-delay: 0.6s; }

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ================================= 
   RESPONSIVE DESIGN
================================== */
@media (max-width: 1024px) {
    .ai-grid-container {
        flex-direction: column;
    }
    .main-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .small-cards-wrapper {
        grid-template-columns: 1fr; /* Stack small cards on mobile */
    }
    .main-heading {
        font-size: 32px;
    }
}