/* ===================================
   HOME PAGE STYLES
   ================================== */

:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #81C784;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.35) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0 auto 2rem;
    max-width: 700px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-hero-primary {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.6);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-3px);
    color: white;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SERVICE CARDS - LIGHTER OVERLAY ===== */
.service-card-hover {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card-hover:hover .service-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(46, 125, 50, 0.05) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.service-card-hover .card-footer {
    border: none;
    background: transparent;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.8));
}

.service-card-hover:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card-hover .card-title {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card-hover .card-text {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    line-height: 1.6;
}

/* ===== PROCESS STEPS ===== */
.process-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.process-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.15);
    transform: translateY(-5px);
}

.process-card:hover::before {
    transform: scaleX(1);
}

.process-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.process-card:hover .process-number {
    transform: scale(1.1) rotate(360deg);
}

.process-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.process-description {
    color: #6c757d;
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== FEATURE STATS ===== */
.feature-stat-card {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.feature-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.feature-stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.4);
}

.feature-stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-stat-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* ===== VIDEO GALLERY - MODERN DESIGN ===== */
.video-gallery-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.video-gallery-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.main-video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #000;
}

.main-video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.video-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for Video Thumbnails */
.video-thumbnails::-webkit-scrollbar {
    width: 8px;
}

.video-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.video-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

.video-thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 138px;
    flex-shrink: 0;
}

.video-thumbnail:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.video-thumbnail.active {
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5);
    border: 3px solid var(--primary-green);
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.video-thumbnail:hover img,
.video-thumbnail:hover video {
    transform: scale(1.05);
}

.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .video-thumbnail-overlay {
    background: linear-gradient(
        to bottom,
        rgba(76, 175, 80, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.video-thumbnail.active .video-thumbnail-overlay {
    background: linear-gradient(
        to bottom,
        rgba(76, 175, 80, 0.4) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-icon {
    background: var(--primary-green);
    transform: scale(1.1);
}

.play-icon i {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-left: 3px;
}

.video-thumbnail:hover .play-icon i {
    color: white;
}

.video-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.video-thumbnail.active .video-number {
    background: var(--primary-green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .main-video {
        height: 500px;
    }
    .video-thumbnails {
        max-height: 500px;
    }
}

@media (max-width: 992px) {
    .video-gallery-container {
        grid-template-columns: 1fr;
    }

    .video-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-bottom: 1rem;
        padding-right: 0;
    }

    .video-thumbnails::-webkit-scrollbar {
        height: 8px;
        width: auto;
    }

    .video-thumbnail {
        min-width: 200px;
        height: 120px;
    }

    .main-video {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
        height: 80vh;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .process-card {
        padding: 1.5rem;
    }
    .main-video {
        height: 350px;
    }
    .video-thumbnail {
        min-width: 150px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    .main-video {
        height: 250px;
    }
}

/* ===== SMOOTH ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Video Title Overlay */
.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    z-index: 3;
    transition: all 0.3s ease;
}

.video-title-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.video-thumbnail:hover .video-title-overlay {
    background: linear-gradient(
        to top,
        rgba(76, 175, 80, 0.95) 0%,
        rgba(46, 125, 50, 0.8) 50%,
        transparent 100%
    );
}

.video-thumbnail.active .video-title-overlay {
    background: linear-gradient(
        to top,
        rgba(76, 175, 80, 0.9) 0%,
        rgba(46, 125, 50, 0.7) 50%,
        transparent 100%
    );
}

/* Adjust play icon position to not overlap with title */
.video-thumbnail-overlay {
    padding-bottom: 3rem;
}

@media (max-width: 992px) {
    .video-title-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .video-title-text {
        font-size: 0.8rem;
    }
    .video-title-overlay {
        padding: 0.5rem 0.75rem;
    }
}
