/**
 * TutorTech Carousel Hero Section - Isolated Custom Styling
 * Namespace: tt- (TutorTech)
 * No conflicts with existing styles
 */

/* ===== HERO SECTION BASE ===== */
.tt-hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ===== CAROUSEL STYLING ===== */
.tt-carousel {
    height: 100vh;
    min-height: 600px;
}

.tt-carousel-inner {
    height: 100%;
}

.tt-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    position: relative;
}

.tt-carousel-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* Dark overlay for better text readability */
.tt-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.85) 0%, rgba(36, 123, 160, 0.75) 100%);
    z-index: 1;
}

/* ===== CAROUSEL CONTROLS ===== */
.tt-carousel-control {
    z-index: 10;
    width: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tt-carousel-control:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.tt-carousel-control .carousel-control-prev-icon,
.tt-carousel-control .carousel-control-next-icon {
    width: 40px;
    height: 40px;
}

/* ===== CAROUSEL INDICATORS ===== */
.tt-carousel-indicators {
    z-index: 10;
    margin-bottom: 30px;
}

.tt-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tt-carousel-indicators button.active {
    background-color: #FFB800;
    border-color: #fff;
    transform: scale(1.2);
}

.tt-carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ===== HERO CONTENT OVERLAY ===== */
.tt-hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 5;
    color: #fff;
    padding: 0 15px;
}

.tt-hero-text {
    max-width: 800px;
}

/* ===== BADGE SECTION ===== */
.tt-badge-section {
    margin-bottom: 1.5rem;
    animation: tt-fadeInDown 1s ease;
}

.tt-trust-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== HERO TITLE & SUBTITLE ===== */
.tt-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff !important;
    animation: tt-fadeInUp 1s ease 0.2s backwards;
}

.tt-text-highlight {
    color: #FFB800;
    position: relative;
}

.tt-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    animation: tt-fadeInUp 1s ease 0.4s backwards;
}

/* ===== HERO STATS ===== */
.tt-hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: tt-fadeInUp 1s ease 0.6s backwards;
}

.tt-stat {
    text-align: center;
}

.tt-stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #FFB800;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.tt-stat-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== HERO ACTIONS ===== */
.tt-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: tt-fadeInUp 1s ease 0.8s backwards;
}

.tt-btn-primary {
    background: #FFB800;
    color: #0A2463;
    border: 2px solid #FFB800;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tt-btn-primary:hover {
    background: #e6a700;
    border-color: #e6a700;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
}

.tt-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tt-btn-outline:hover {
    background: #fff;
    color: #0A2463;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ===== SCROLL INDICATOR ===== */
.tt-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    opacity: 0.7;
    z-index: 10;
    animation: tt-fadeIn 1s ease 1s backwards;
}

.tt-scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 25px;
    margin: 0 auto 30px;
    position: relative;
}

.tt-scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: tt-scroll 2s infinite;
}

.tt-scroll-indicator span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes tt-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

@keyframes tt-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tt-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tt-scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    80% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets & Small Desktops */
@media (max-width: 992px) {
    .tt-hero-title {
        font-size: 2.5rem;
    }
    
    .tt-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tt-hero-stats {
        gap: 2rem;
    }
    
    .tt-stat-number {
        font-size: 2.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .tt-carousel,
    .tt-carousel .carousel-item {
        height: 100vh;
        min-height: 500px;
    }
    
    .tt-hero-content {
        padding: 0 20px;
    }
    
    .tt-hero-title {
        font-size: 2rem;
    }
    
    .tt-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .tt-hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .tt-stat-number {
        font-size: 2rem;
    }
    
    .tt-stat-label {
        font-size: 0.85rem;
    }
    
    .tt-hero-actions {
        flex-direction: column;
    }
    
    .tt-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tt-carousel-control {
        width: 50px;
    }
    
    .tt-carousel-control .carousel-control-prev-icon,
    .tt-carousel-control .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .tt-carousel,
    .tt-carousel .carousel-item {
        height: 100vh;
        min-height: 450px;
    }
    
    .tt-hero-title {
        font-size: 1.75rem;
    }
    
    .tt-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .tt-hero-stats {
        gap: 1rem;
    }
    
    .tt-stat {
        flex: 0 0 calc(33.333% - 1rem);
    }
    
    .tt-stat-number {
        font-size: 1.75rem;
    }
    
    .tt-stat-label {
        font-size: 0.75rem;
    }
    
    .tt-trust-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .tt-btn-primary,
    .tt-btn-outline {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .tt-scroll-indicator {
        bottom: 20px;
    }
    
    .tt-scroll-arrow {
        width: 25px;
        height: 45px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .tt-hero-title {
        font-size: 1.5rem;
    }
    
    .tt-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .tt-stat-number {
        font-size: 1.5rem;
    }
    
    .tt-stat-label {
        font-size: 0.7rem;
    }
}

/* ===== ENSURE NO BOOTSTRAP CAROUSEL CONFLICTS ===== */
.tt-carousel.carousel {
    position: relative !important;
}

.tt-carousel .carousel-item {
    position: relative !important;
}

.tt-carousel .carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.tt-carousel .carousel-fade .carousel-item.active {
    opacity: 1;
}

/* ===== STATS COUNTER ANIMATION ===== */
.tt-stat-number.counting {
    animation: tt-pulse 0.5s ease;
}

@keyframes tt-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
