/* Global Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #464646;
    overflow-x: hidden;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

.text-primary {
    color: #cd2653 !important;
}
.bg-primary {
    background-color: #cd2653 !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}
.tracking-widest {
    letter-spacing: 0.1em;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
    color: #fff !important;
}

.transition {
    transition: all 0.3s ease-in-out;
}

/* Navbar */
.navbar-nav .nav-link {
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #cd2653;
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    animation: fadeIn 1.5s ease-in-out;
}

/* About Teaser */
.about-teaser-section h2 {
    font-size: 3rem;
}

/* Projects Listing Hover Effects */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.project-card .card-img-top {
    height: 300px;
    object-fit: cover;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Background Fix - Preventing Jumps */
@media (max-width: 991.98px) {
    /* Apply background and shadow to both collapsing and show states */
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        background-color: #ffffff !important;
        border-radius: 12px;
        box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
        overflow: hidden; /* Ensures radius is respected during slide */
        margin-top: 10px;
    }

    /* Move padding to the nav list to prevent height calculation jumps */
    .navbar-collapse .navbar-nav {
        padding: 1.5rem !important;
    }

    /* Ensure dark text on home page mobile menu */
    .navbar-dark .navbar-collapse .nav-link {
        color: #1b3d3c !important;
        padding-top: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .navbar-dark .navbar-collapse .nav-link:last-child {
        border-bottom: none;
    }

    /* Hide the animated line for mobile menu items */
    .navbar-dark .navbar-collapse .nav-link::after {
        display: none !important;
    }
}

/* Gallery Landscape Thumbnails */
.gallery-img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}
