/* Hero background styles */

.hero-section {
    position: relative;
    background-color: #c00000; /* Yucon red fallback */
    color: white;
    overflow: hidden;
    width: 100%;
    height: 70vh; /* Full viewport height */
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

/* Video background container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Video element styling */
.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;
    z-index: 1;
}

/* Video overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(192, 0, 0, 0.7); Yucon red with transparency */
    z-index: 2;
}

/* Hero content positioning */
.hero-content {
    position: relative;
    z-index: 3;
    margin-bottom: 2rem;
}

/* Fallback image for browsers that don't support video */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
    display: none; /* Hidden by default, shown when video fails */
}

/* Hero content styles moved to fixes.css */

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0 !important; /* Ensure no extra top margin */
    position: relative; /* Ensure proper positioning */
    z-index: 3; /* Higher than hero-content to ensure visibility */
}

/* Hero Text Card Styles */
.hero-text-card {
    position: relative;
    /* width: 66.67%; /* 2/3 of horizontal width */
    /* max-height: 45.33vh; /* 1/3 of vertical height */
    background-color: rgba(192, 0, 0, 0.6); /* Semi-transparent dark background */
    backdrop-filter: blur(2px); /* Modern blur effect */
    -webkit-backdrop-filter: blur(2px); /* Safari support */
    border-radius: 10px;
    padding: 2rem;
    margin-left: 3rem;
    margin-right:60%;
    z-index: 10; /* Higher z-index to ensure visibility */
    color: white;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text-card .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    margin-top: 0%;
    text-align: left;
}

.hero-text-card p {
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Location Map Section */
.location-map-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.location-map-section h2 {
    color: var(--yucon-red);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Modern Services Section Styles */
.services-section {
    background-color: var(--yucon-dark);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.services-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--yucon-red), #ff6b6b);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.service-card-wrapper {
    position: relative;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(192, 0, 0, 0.3);
    border-color: var(--yucon-red);
    background: rgba(255, 255, 255, 0.08);
}

.service-image-container {
    position: relative;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-image {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.2), rgba(255, 255, 255, 0.1));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(192, 0, 0, 0.4);
    border-radius: 15px;
}

.service-card:hover .service-image::before {
    opacity: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--yucon-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 5px 20px rgba(192, 0, 0, 0.5);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card:hover .service-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--yucon-red);
}

.service-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    margin-top: auto;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    color: var(--yucon-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-learn-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-learn-more:hover {
    color: white;
    transform: translateX(5px);
}

.btn-learn-more:hover i {
    transform: translateX(3px);
}

.btn-learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yucon-red);
    transition: width 0.3s ease;
}

.btn-learn-more:hover::after {
    width: 100%;
}

/* Fallback for old service-image class */
.service-image {
    width: 260px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media queries for different screen sizes */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 400px;
        padding-bottom: 2rem;
        display: block;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-video {
        min-width: 100vw;
        min-height: 100vh;
    }
    
    /* Responsive Services Section */
    .services-section {
        padding: 3rem 0;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-image {
        width: 150px;
        height: 150px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    /* Responsive Hero Text Card */
    .hero-text-card {
        position: relative;
        width: calc(100% - 2rem);
        max-height: none;
        margin: 2rem 1rem;
        padding: 1.5rem;
        border-radius: 8px;
        z-index: 10;
    }
    
    .hero-text-card .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    /* Responsive Location Map */
    .location-map-section {
        padding: 3rem 0;
    }
    
    .location-map-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    /* Tablet adjustments for Services */
    .services-grid {
        /* grid-template-columns: repeat(2, 1fr); */
        gap: 2rem;
    }
    
    .service-image {
        width: 200px;
        height: 160px;
    }
    
    /* Tablet adjustments for Hero Text Card */
    .hero-text-card {
        width: calc(100% - 4rem);
        margin-left: 2rem;
        padding: 1.5rem;
        z-index: 10;
    }
    
    .hero-text-card .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    /* Mobile adjustments for Services */
    .services-section {
        padding: 2rem 0;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .service-image {
        width: 140px;
        height: 140px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

/* For HD screens (standard desktop) */
@media (min-width: 992px) and (max-width: 1919px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 500px;
    }
    
    .hero-video {
        min-width: 100%;
        min-height: 100%;
    }
}

/* For large screens */
@media (min-width: 1920px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 600px;
    }
    
    .hero-video {
        min-width: 100%;
        min-height: 100%;
    }
}

/* For extra large screens (4K) */
@media (min-width: 3000px) {
    .hero-section {
        padding: 5rem 0;
        min-height: 700px;
    }
    
    .hero-video {
        min-width: 100%;
        min-height: 100%;
    }
}