/*=====================================
  1. Variables and Base Styles
  =====================================*/
:root {
    scroll-padding-top: 95px;
    --primary-color: #ff6b6b; /* Energetic Orange */
    --secondary-color: #556270; /* Bluish Gray */
    --dark-bg: #2c3e50; /* Deep Charcoal */
    --light-bg: #ecf0f1; /* Light Gray */
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Lato', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--body-font);
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

/*=====================================
  2. Page Components
  =====================================*/

/* Preloader */
.preloader {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: white;
    overflow: hidden;
    z-index: 2000;
}

body:has(.preloader) {
    overflow: hidden;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--dark-bg);
}

.navbar-brand .accent {
    color: var(--primary-color);
}

/* Carousel Controls */
.carousel-control-next, .carousel-control-prev {
    top: 30%;
}

/* Cards (Services and Pricing) */
.service-card, .pricing-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card {
    padding: 2rem;
}

.service-card:hover, .pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 107, 0.1);
    border-bottom-left-radius: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 1.5rem;
}

.pricing-card {
    padding: 2.5rem;
}

.pricing-card.featured {
    background: var(--primary-color);
    color: white;
    border: none;
    position: relative;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.08);
}

.pricing-card.featured .list-unstyled li i {
    color: white;
}

.pricing-card.featured .price {
    color: white;
}

.pricing-card.featured .btn {
    background: white;
    color: var(--primary-color);
}

/*=====================================
  3. Specific Sections
  =====================================*/

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 2rem;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    position: relative;
}

.hero-content h1 span {
    display: inline-block;
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.5s ease-out;
}

.hero-content h1 span:first-child {
    transform: translateX(-200%);
}

.hero-content h1 span:last-child {
    transform: translateX(200%);
}

.hero-content h1.inleft span {
    transform: translateX(0);
    opacity: 1;
}

/* Our Services Section */
.our-services-section .service-list-item {
    cursor: pointer;
    padding: 1rem;
    border-radius: 1rem;
    transition: background-color 0.2s ease;
}

.our-services-section .service-list-item:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.our-services-section .service-list-item.active {
    background-color: var(--primary-color);
    color: white;
}

.our-services-section .service-list-item.active p,
.our-services-section .service-list-item.active .bi {
    color: white;
}

.our-services-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.our-services-image.fade-out {
    opacity: 0;
}

/* Contact Section */
.contact-bg {
    background: url('../images/bg-pexels-revac-film.webp') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}

.contact-content-container {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: 1.5rem;
    display: inline-block;
    max-width: 90%;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #bdc3c7;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

footer a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}