/* ==========================================================================
   Homepage Specific Styles
   ========================================================================== */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; /* Offset for header */
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: zoomFade 51s infinite linear;
}

.slide-1 {
    /* IT Consulting / Red Tech */
    background-image: url('../assets/slide-2.jpg');
    animation-delay: 0s;
}

.slide-2 {
    /* Gol Gumbaz, Bijapur */
    background-image: url('../assets/gol-gumbaz.png');
    background-position: center top;
    background-size: cover;
    transform-origin: center top; /* Prevents top of image from zooming out of bounds */
    animation-delay: 17s;
}

.slide-3 {
    /* Corporate Meeting */
    background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=2070&auto=format&fit=crop');
    background-position: center 40%; /* Focus on the lower-middle where the team/action is happening */
    background-size: cover;
    animation-delay: 34s;
}

@keyframes zoomFade {
  0% { opacity: 0; transform: scale(1.05); }
  3.92% { opacity: 1; transform: scale(1.04); }
  33.33% { opacity: 1; transform: scale(1); }
  37.25% { opacity: 0; transform: scale(0.99); }
  100% { opacity: 0; transform: scale(0.99); }
}

/* Overlay to ensure text readability over images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(222, 26, 26, 0.8) 0%, rgba(33, 37, 41, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Trust Badges */
.trust-badges {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: inline-block;
}

.trust-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.badges-flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.badge-item i {
    color: #FBBF24; /* Gold accent */
}

/* Services Overview */
.services-overview {
    padding: 6rem 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    background: var(--white);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(222, 26, 26, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.learn-more {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Industries Section */
.industries-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.industries-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.industry-badge {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--secondary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}

.industry-badge:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@media (max-width: 768px) {
    .badges-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
}

/* Trusted Brands Section */
.trusted-brands {
    background-color: #FDFBF7;
    padding: 5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.trusted-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.trusted-subtitle {
    font-size: 1.125rem;
    color: #4B5563;
    margin-bottom: 3.5rem;
}

.trusted-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.trusted-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.trusted-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.trusted-icon-wrapper {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trusted-icon-wrapper img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.fallback-icon {
    font-size: 1.8rem;
}

.trusted-card h4 {
    font-size: 1.125rem;
    color: #1F2937;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.trusted-card p {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}

@media (max-width: 992px) {
    .trusted-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .trusted-grid {
        grid-template-columns: 1fr;
    }
}
