/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    scroll-behavior: smooth;
    height: 100%;
    scroll-padding-top: 100px; /* Account for fixed navbar */
    background-color: #f9f9f9;
}

.navbar-nav {
    height: auto!important;
}

.btn-dark {
    background-color: #cc0000;
    color: #fff;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Navigation styles */
.navbar {
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
    background-color: transparent;
    padding: 0 30px;
}

.navbar.scrolled {
    background-color: #fff;
    backdrop-filter: blur(10px);
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #fff;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: #000;
}

.nav-item {
    padding: 0;
    margin: 0;
}

.navbar .nav-link:hover {
    color: #cc0000;
}

.portfolio-detail {
    background-color: transparent!important;
}

.navbar .btn-custom {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .btn-custom:hover {
    background: #f8f8f8;
    color: #000;
}

.service-content h4 {
    height: 50px;
    display: flex;
    align-items: center;
}

.service-content p {
    min-height: 120px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 14px;
}

.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}



/* Main content styles */
main {
    margin: 0;
    padding: 0;
    position: relative;
}

.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    z-index: -1;
    background-color: #000;
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 85vh;
    width: 100%;
}

.carousel-item {
    position: relative;
    overflow: hidden;
}

.carousel-item .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.5s ease-out;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.carousel-indicators {
    margin-bottom: 3rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-section {
    position: relative;
    z-index: 1;
    background-color: #f9f9f9;
    margin-top: 85vh;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    padding: 80px 0;
    padding-bottom: 0;
}

.portfolio-item {
    margin: 0;
    padding: 0;
    height: 250px;
}

.row.g-0 {
    margin: 0;
    width: 100%;
}

.row.g-0 > .portfolio-item {
    padding: 0;
}

.portfolio-card {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    height: 250px;
    background-color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.02);
}

.portfolio-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.portfolio-info {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: 0;
    /* padding: 20px; */
    color: #fff;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-info {
    opacity: 0;
}

.portfolio-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.portfolio-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.portfolio-filter .btn-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    font-size: 0.9rem;
    opacity: 0.7;
}

.portfolio-filter .btn-link:hover,
.portfolio-filter .btn-link.active {
    opacity: 1;
    color: #000;
}

.portfolio-filter .btn-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #000;
}

.service-item {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.service-item:hover {
    box-shadow: none;
    transform: none;
}

.service-icon i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #cc0000;
    color: #fff;
    transition: all 0.3s ease;
}

.service-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-content {
    flex: 1;
}

.service-item .service-icon {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next {
    opacity: 1;
}

.carousel-indicators {
    bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1a202c;
}

.hero-subtitle {
    font-size: 1.5rem;
}

/* About Section Styles */
.about-section {
    background-color: #fff;
    padding: 100px 0;
}

.about-section h2 {
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #1a202c;
}

.about-section p {
    color: #555;
    line-height: 1.3;
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.experience-counter {
    margin-top: 3rem;
}

.experience-counter h3 {
    color: #cc0000;
    font-weight: 700;
    font-size: 3rem;
}

.about-image {
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.about-image img:hover {
    transform: scale(1.02);
}

.features {
    padding: 4rem 1rem;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature p {
    color: #4a5568;
}

/* Footer styles */
.footer {
    color: #1a202c;
    padding: 4rem 1rem 2rem;
    position: relative;
    z-index: 2;
}

footer {
    background-color: #f9f9f9;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-description {
    color: #a0aec0;
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .features {
        padding: 2rem 1rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }
}
