:root {
    --primary-color: #007bff;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Hero Video Styling */
.hero-section {
    height: 80vh;
    min-height: 500px;
    background: rgba(0,0,0,0.5); /* Overlay */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Service Card Hover Effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}
.border-dashed {
    border: 2px dashed #dee2e6 !important;
    transition: border-color 0.3s ease;
}

.upload-container:hover {
    border-color: var(--primary-color) !important;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.preview-video-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.5rem;
}
.portfolio-wrapper {
    height: 300px;
}

.portfolio-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.85); /* Primary color with transparency */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-wrapper:hover img {
    transform: scale(1.1);
}

.portfolio-wrapper:hover .portfolio-overlay {
    opacity: 1;
}

/* Smooth filtering transition */
.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-item.hide {
    display: none;
}
/* Back to Top Styling */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* Hidden by default */
    z-index: 1000;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s;
}

.italic { font-style: italic; }

.hover-white:hover { color: white !important; }

#btn-back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none; /* Hidden by default */
    width: 50px;
    height: 50px;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

#btn-back-to-top:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.1);
}

.portfolio-card {
    transition: transform 0.3s ease;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0d6efd;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Custom Swiper Styles */
.portfolioSwiper {
    padding: 20px 10px 50px 10px;
}

.swiper-pagination-bullet-active {
    background: #0d6efd !important;
}

/* Hero Section Enhancements */
.hero-section {
    min-height: 100vh;
    background: #000; /* Fallback */
}

.video-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
}

.tracking-wider {
    letter-spacing: 2px;
    font-size: 0.75rem;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Typography fix for high-end feel */
.display-2 {
    line-height: 1.1;
    letter-spacing: -1px;
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}
.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%); /* Perfectly centers the video */
    object-fit: cover;
    object-position: center center; /* Ensures the subject of the video stays centered */
}

.video-docker {
    background-color: #000; /* Prevents white flash before video loads */
}

.video-overlay {
    /* Gradient starts dark on the left for text and fades slightly to the right */
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* This creates a smooth blend between the dark left side and the video right side */
.video-side-overlay {
    background: linear-gradient(to right, 
        rgba(33, 37, 41, 1) 0%, 
        rgba(33, 37, 41, 0.5) 20%, 
        rgba(33, 37, 41, 0) 100%);
}

/* Ensure the header background matches the fade color */
.hero-section {
    background-color: #212529; /* Standard Bootstrap Dark Color */
}

/* Tablet/Mobile Fix: Make video full screen so text is readable on top */
@media (max-width: 991.98px) {
    .video-docker {
        width: 100% !important;
        opacity: 0.4; /* Dim the video on mobile so text is clear */
    }
    .video-side-overlay {
        background: rgba(0, 0, 0, 0.6); /* Darker overlay for mobile */
    }
}

.card {
    transition: transform 0.2s ease;
    border-radius: 12px;
}
.card:hover {
    transform: translateY(-5px);
}
.fs-1 { font-size: 2.5rem !important; }

/* Ensure all portfolio images have the same height and look like a gallery */
.portfolio-card .card-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents image stretching */
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Fix Navigation Button Visibility */
.swiper-button-next, .swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bs-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}