/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito Sans", Arial, sans-serif;
    color: #666666;
    line-height: 1.8;
}

/* Utilities */
.bg-primary { background-color: #f97316; } /* Orange Theme */
.btn-primary {
    background-color: #f97316;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}
.btn-primary:hover { background-color: #ea580c; }

/* Navbar - Transparent & Sticky */
.navbar {
    background-color: transparent; /* Initially transparent */
    padding: 20px 0;
    position: fixed; /* Keep it fixed to the top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background-color: #1e293b; /* Dark slate background when scrolled */
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.container-fluid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}
.navbar-brand {
    color: white;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}
.navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    width: 22px;
    height: 16px;
    position: relative;
    cursor: pointer;
    z-index: 101;
}
.navbar-toggler span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
.navbar-toggler span:nth-child(1) { top: 0px; }
.navbar-toggler span:nth-child(2) { top: 7px; }
.navbar-toggler span:nth-child(3) { top: 14px; }

.navbar-toggler.active span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}
.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.navbar-toggler.active span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 40px;
}
.nav-link {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 0;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-item.active .nav-link {
    color: #f97316;
}

/* Hero Section */
.hero-wrap {
    height: 100vh; /* Takes exactly 100% of screen height */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e293b;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-wrap .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5); /* Slightly darker overlay for better contrast */
}
.hero-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 600px;
    color: white;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.word-rotator {
    display: inline-flex;
    flex-direction: column;
    height: 1.2em;
    overflow: hidden;
    vertical-align: top;
    position: relative;
    color: #fb923c; /* Lighter orange for span */
}

.word-rotator-items {
    display: flex;
    flex-direction: column;
    animation: rotateWords 8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.word-rotator-items span {
    height: 1.2em;
    line-height: 1.2em;
    display: block;
}

@keyframes rotateWords {
    0%, 15% { transform: translateY(0); }
    25%, 40% { transform: translateY(-1.2em); }
    50%, 65% { transform: translateY(-2.4em); }
    75%, 90% { transform: translateY(-3.6em); }
    100% { transform: translateY(-4.8em); }
}
.hero-content p {
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* CTA Alignment & Animation */
.meta {
    display: flex;
    align-items: center; /* Horizontally centers the items */
    flex-wrap: wrap; /* Allows wrapping on very small screens */
    gap: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}
.button-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
}
.button-link > span {
    transition: color 0.2s ease;
}
.button-link:hover > span {
    color: #fb923c;
}

/* Play button animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.button-video {
    width: 50px;
    height: 50px;
    background: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    animation: pulse 2s infinite; /* Circular pulse effect */
}
/* Removed the scale hover effect from play button */

/* Video Modal */
.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}
.close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-btn:hover {
    color: #fb923c;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar { padding: 15px 0; }
    .navbar-toggler { display: inline-flex; align-items: center; gap: 5px; position: relative; z-index: 101; }
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background: #1e293b;
        padding: 70px 20px 20px;
        transition: right 0.3s ease;
        z-index: 99;
        display: block;
    }
    .navbar-collapse.show { right: 0; }
    .navbar-nav { flex-direction: column; gap: 10px; }
}
@media (max-width: 575px) {
    .hero-content h1 { font-size: 40px; }
}
@media (max-width: 400px) {
    .meta { flex-direction: column; align-items: flex-start; gap: 20px; }
}