/*
Theme Name: Astra Child - IT Skills
Theme URI: https://itskillsinstitution.com/
Description: Highly customized, dynamic component-based child theme designed strictly according to proper WordPress architecture. Avoids editing the parent theme directly.
Author: Senior Pro Dev
Author URI: https://itskillsinstitution.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child-itskills
*/

/* Hero Typewriter Responsiveness */
.typewriter {
    font-size: clamp(1.75rem, 6vw, 2.375rem);
    /* Responsive sizing: ~28px to 38px scaling */
    letter-spacing: 1px;
    line-height: 1.2;
    min-height: 1.2em;
    /* Prevent layout shift */
    display: block;
}

/* Hero Image Premium Transition (Locked to JS Engine) */
#hero-dynamic-img {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    will-change: transform, opacity, filter;
}

/* Viewport-Aware Spacing (Zero-Scroll Strategy) */
.container-hero {
    /* padding-top: clamp(1rem, 5vh, 4rem);
    padding-bottom: clamp(1rem, 5vh, 4rem); */
}

.hero-messaging {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vh, 2.5rem);
}

/* Premium Layered Glowing Shadows (SaaS Look) */
.monitor-frame-glow {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    /* Layered: Tight depth + Wide blue glow */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 20px 40px -10px rgba(var(--primary-rgb), 0.2),
        0 0 0 1px rgba(var(--primary-rgb), 0.03);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.monitor-frame-glow:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 30px 60px -12px rgba(var(--primary-rgb), 0.35),
        0 0 0 1px rgba(var(--primary-rgb), 0.1);
}

/* Modern Dual-Badge Announcement Bar */
.glass-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 20px -2px rgba(var(--primary-rgb), 0.05);
}

/* Megaphone Wiggle (Strategic Timing: Every 5s) */
@keyframes megaphone-wiggle {

    0%,
    80%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    85% {
        transform: rotate(-12deg) scale(1.15);
    }

    90% {
        transform: rotate(12deg) scale(1.15);
    }

    95% {
        transform: rotate(-6deg) scale(1.15);
    }
}

.animate-wiggle {
    animation: megaphone-wiggle 5s ease-in-out infinite;
    transform-origin: bottom left;
}

/* Premium Tech Background Engine (Matched to Approved Prototype) */
.hero-bg-engine {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f9ff;
    /* Themed Light Blue Background */
    pointer-events: none;
    z-index: -1;
}

.hero-bg-engine::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Exact Grid Logic from Prototype */
    background-image:
        linear-gradient(to right, #e2e8f0 1px, transparent 1px),
        linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1), transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1), transparent 80%);
    opacity: 0.5;
}

.hero-bg-engine::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Premium Glow Layer */
    background:
        radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.05) 0%, transparent 60%);
}

/* Simplified alignment for consistency with site-wide 80px standard */
.container-hero {
    padding-top: clamp(1rem, 5vh, 4rem);
    padding-bottom: clamp(1rem, 5vh, 4rem);
    max-width: 100% !important;
    /* Ensure it matches the header's full-width or boxed constraint */
}

/* Tech Background Grid */
.tech-grid-bg {
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Ensure course badges wrap nicely */
#hero-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .typewriter {
        font-size: clamp(1.2rem, 8vw, 2.5rem);
    }
}