/**
 * TotalTec Hero Banners - Frontend Styles
 * Matches the design from your Next.js HeroSection component
 */

/* Base Section Styles */
.tthb-hero-section {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    overflow: hidden;
}

.tthb-hero-container {
    position: relative;
    height: 340px;
    overflow: hidden;
}

/* Responsive Heights */
@media (min-width: 640px) {
    .tthb-hero-container {
        height: 420px;
    }
}

@media (min-width: 768px) {
    .tthb-hero-container {
        height: 540px;
    }
}

@media (min-width: 1024px) {
    .tthb-hero-container {
        height: 620px;
    }
}

/* Slide Styles */
.tthb-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
}

.tthb-slide.tthb-active {
    opacity: 1;
    pointer-events: auto;
}

/* Background Image */
.tthb-slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tthb-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

.tthb-slide.tthb-active .tthb-slide-bg img {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.tthb-hero-container:hover .tthb-slide.tthb-active .tthb-slide-bg img {
    transform: scale(1.05);
}

/* Gradient Overlays */
.tthb-gradient-overlay {
    position: absolute;
    inset: 0;
    transition: opacity 0.7s ease-in-out;
}

.tthb-gradient-overlay.tthb-gradient-primary {
    background: linear-gradient(to right, rgba(2, 89, 139, 0.8), rgba(2, 89, 139, 0.5), transparent);
}

.tthb-gradient-overlay.tthb-gradient-secondary {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.5), transparent);
}

.tthb-gradient-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3), transparent);
}

@media (min-width: 640px) {
    .tthb-gradient-bottom {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), transparent);
    }
}

.tthb-gradient-mobile {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .tthb-gradient-mobile {
        background: transparent;
    }
}

/* Content Container */
.tthb-slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .tthb-slide-content {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .tthb-slide-content {
        padding: 0 2rem;
    }
}

.tthb-content-wrapper {
    max-width: 36rem;
    transition: all 0.5s ease-out;
}

@media (min-width: 1024px) {
    .tthb-content-wrapper {
        max-width: 42rem;
    }
}

.tthb-slide.tthb-active .tthb-content-wrapper {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(2rem);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Badge */
.tthb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .tthb-badge {
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        margin-bottom: 1rem;
    }
}

.tthb-badge-ping {
    position: absolute;
    display: inline-flex;
    height: 0.375rem;
    width: 0.375rem;
    border-radius: 9999px;
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@media (min-width: 640px) {
    .tthb-badge-ping {
        height: 0.5rem;
        width: 0.5rem;
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.tthb-badge-dot {
    position: relative;
    display: inline-flex;
    height: 0.375rem;
    width: 0.375rem;
    border-radius: 9999px;
}

@media (min-width: 640px) {
    .tthb-badge-dot {
        height: 0.5rem;
        width: 0.5rem;
    }
}

.tthb-badge-icon {
    width: 0.75rem;
    height: 0.75rem;
    color: white;
}

@media (min-width: 640px) {
    .tthb-badge-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
}

.tthb-badge-text {
    color: white;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
}

@media (min-width: 640px) {
    .tthb-badge-text {
        font-size: 0.75rem;
    }
}

/* Title */
.tthb-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (min-width: 640px) {
    .tthb-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .tthb-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .tthb-title {
        font-size: 3.75rem;
        margin-bottom: 1rem;
    }
}

/* Subtitle */
.tthb-subtitle {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04));
}

@media (min-width: 640px) {
    .tthb-subtitle {
        font-size: 1.125rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 768px) {
    .tthb-subtitle {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

/* Description */
.tthb-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    max-width: 32rem;
    line-height: 1.625;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04));
}

@media (min-width: 640px) {
    .tthb-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .tthb-description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
}

/* CTA Button */
.tthb-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .tthb-button {
        gap: 0.5rem;
        padding: 1.5rem 2rem;
        font-size: 1rem;
        border-radius: 1rem;
    }
}

@media (min-width: 768px) {
    .tthb-button {
        font-size: 1.125rem;
    }
}

.tthb-button:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.tthb-button:active {
    transform: scale(0.95);
}

.tthb-button-primary {
    background-color: #02598B;
    color: white;
    border-color: rgba(2, 89, 139, 0.2);
}

.tthb-button-primary:hover {
    background-color: rgba(2, 89, 139, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.tthb-button-secondary {
    background-color: #F2B705;
    color: #0f172a;
    border-color: rgba(242, 183, 5, 0.2);
}

.tthb-button-secondary:hover {
    background-color: rgba(242, 183, 5, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.tthb-button-icon {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.3s ease;
}

@media (min-width: 640px) {
    .tthb-button-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.tthb-button:hover .tthb-button-icon {
    transform: translateX(0.25rem);
}

/* Progress Bar */
.tthb-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    display: none;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .tthb-progress-bar {
        display: block;
    }
}

.tthb-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #02598B, #F2B705);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: progress 6s linear forwards;
}

@keyframes progress {
    to {
        width: 100%;
    }
}

/* Navigation Arrows */
.tthb-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

@media (min-width: 768px) {
    .tthb-nav-arrow {
        display: flex;
        width: 2.25rem;
        height: 2.25rem;
    }
}

.tthb-hero-container:hover .tthb-nav-arrow,
.tthb-nav-arrow:focus {
    opacity: 1;
}

.tthb-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.tthb-nav-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.tthb-nav-prev {
    left: 0.75rem;
}

@media (min-width: 768px) {
    .tthb-nav-prev {
        left: 1rem;
    }
}

.tthb-nav-next {
    right: 0.75rem;
}

@media (min-width: 768px) {
    .tthb-nav-next {
        right: 1rem;
    }
}

.tthb-nav-arrow svg {
    width: 1rem;
    height: 1rem;
}

/* Dots Indicator */
.tthb-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

@media (min-width: 1024px) {
    .tthb-dots {
        bottom: 2rem;
    }
}

.tthb-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tthb-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.tthb-dot.tthb-active {
    background: white;
    width: 1.5rem;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .tthb-slide,
    .tthb-slide-bg img,
    .tthb-content-wrapper,
    .tthb-button,
    .tthb-nav-arrow,
    .tthb-dot {
        animation: none !important;
        transition: none !important;
    }
}
