body {
    font-family: var(--bs-body-font-family) !important;
}

.carousel-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    /* Ensures the image is fully visible without cropping */
}

/* Optional: Ensure the slider section itself doesn't have a fixed height if any */
.slider-section {
    height: auto !important;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-static-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 80vh;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    /* Allows clicking slider underneath */
}

.nav-overlay a,
.nav-overlay img {
    pointer-events: auto;
    /* Re-enable clicks for logos */
}

.nav-logo-img {
    width: 200px;
    height: auto;
    display: block;
    padding: 5px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-text-img {
    width: 400px;
    height: auto;
    display: block;
    padding: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@media (max-width: 1200px) {
    .hero-static-placeholder img {
        min-height: 250px;
    }
}

@media (max-width: 992px) {
    .nav-logo-img {
        width: 150px;
    }

    .nav-text-img {
        width: 300px;
    }

    .hero-static-placeholder img {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        width: 150px;
    }

    .nav-text-img {
        width: 280px;
    }

    .nav-overlay .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-static-placeholder img {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .nav-logo-img {
        width: 120px;
    }

    .nav-text-img {
        width: 200px;
    }

    .hero-static-placeholder img {
        min-height: 150px;
    }
}

/* --- Slider Caption Enhancements --- */
.carousel-caption {
    bottom: auto !important;
    top: 65% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80% !important;
    padding: 0 !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.carousel-caption h5,
.carousel-caption h6 {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    opacity: 0;
}

/* To simulate the "içinde hayat olan" vs "projeler..." look */
.carousel-caption h5 b,
.carousel-caption h5 strong,
.carousel-caption h6 b,
.carousel-caption h6 strong {
    display: block;
    font-size: 6.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.carousel-caption p,
.carousel-caption small {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 400;
    opacity: 0;
    margin-top: 4.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .carousel-caption h5,
.carousel-item.active .carousel-caption h6 {
    animation: fadeInUp 1.5s ease both;
    animation-delay: 0.3s;
}

.carousel-item.active .carousel-caption p,
.carousel-item.active .carousel-caption small {
    animation: fadeInUp 1.5s ease both;
    animation-delay: 0.9s;
}

@keyframes bounceArrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.scroll-down-arrow {
    display: block;
    width: fit-content;
    margin: 0 auto;
    margin-top: 3rem;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
    text-decoration: none;
}

.scroll-down-arrow:hover {
    color: #fff;
    opacity: 1;
}

.carousel-item.active .scroll-down-arrow {
    animation: bounceArrow 2s infinite, fadeInUp 1.5s ease both;
    animation-delay: 0s, 1.2s;
}

@media (max-width: 992px) {

    .carousel-caption h5,
    .carousel-caption h6 {
        font-size: 3rem;
    }

    .carousel-caption h5 b,
    .carousel-caption h5 strong,
    .carousel-caption h6 b,
    .carousel-caption h6 strong {
        font-size: 4.5rem;
    }

    .carousel-caption p,
    .carousel-caption small {
        font-size: 1.1rem;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {

    .carousel-caption h5,
    .carousel-caption h6 {
        font-size: 2.2rem;
    }

    .carousel-caption h5 b,
    .carousel-caption h5 strong,
    .carousel-caption h6 b,
    .carousel-caption h6 strong {
        font-size: 3.2rem;
    }

    .carousel-caption p,
    .carousel-caption small {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {

    .carousel-caption h5,
    .carousel-caption h6 {
        font-size: 1.8rem;
    }

    .carousel-caption h5 b,
    .carousel-caption h5 strong,
    .carousel-caption h6 b,
    .carousel-caption h6 strong {
        font-size: 2.5rem;
    }

    .carousel-caption p,
    .carousel-caption small {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-top: 1.5rem;
    }
}

/* --- Statistics Section --- */
.stats-section {
    background-color: #fff;
    padding: 80px 0;
}

.stats-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #333 !important;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 200;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #555;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .stat-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

/* --- Projects Section --- */
.projects-section {
    background-color: #fff;
}

.projects-tabs {
    border: none;
    gap: 0;
}

.projects-tabs .nav-item {
    position: relative;
}

.projects-tabs .nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: #ddd;
}

.projects-tabs .nav-link {
    background: none;
    border: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 30px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.projects-tabs .nav-link:hover {
    color: #0A54BF;
}

.projects-tabs .nav-link.active {
    color: #0A54BF;
}

.projects-tabs .nav-link.active::after {
    content: "▼";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #0A54BF;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    transition: background 0.3s ease;
}

.project-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.project-info p {
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

.all-projects-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.all-projects-link:hover {
    color: #0A54BF;
    border-bottom-color: #0A54BF;
}

@media (max-width: 768px) {
    .projects-tabs .nav-link {
        padding: 5px 15px;
        font-size: 0.75rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }
}

/* --- Home Contact Section --- */
.home-contact-section {
    background-color: #fff;
}

.home-contact-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
}

.home-contact-icon {
    font-size: 3rem;
    color: #666;
}

.home-form-control {
    border: none;
    border-bottom: 1px solid rgba(10, 84, 191, 0.3);
    border-radius: 0;
    padding: 10px 0;
    margin-bottom: 30px;
    background-color: transparent;
    box-shadow: none !important;
    font-size: 0.9rem;
    color: #333;
}

.home-form-control:focus {
    border-color: #0A54BF;
}

.home-form-control::placeholder {
    color: #999;
    font-weight: 300;
}

.home-form-info {
    font-size: 0.75rem;
    color: #999;
}

.text-brown {
    color: #c48c58;
}

.home-btn-submit {
    background-color: #0A54BF;
    color: #fff;
    border: none;
    padding: 10px 40px;
    border-radius: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.home-btn-submit:hover {
    background-color: #084298;
    color: #fff;
}

@media (max-width: 768px) {
    .home-contact-title {
        font-size: 1.5rem;
    }

    .home-contact-icon {
        font-size: 2rem;
    }

    .home-form-info {
        text-align: center;
        margin-bottom: 15px !important;
    }

    .text-md-end {
        text-align: center !important;
    }
}

/* --- Site Footer --- */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    border-top: 1px solid #333;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.footer-logo-img,
.footer-text-img {
    filter: brightness(0) invert(1);
    /* Makes them white */
    width: 200px;
    height: auto;
}

.footer-logo-img {
    width: 200px;
}

.footer-widget-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget-links li {
    margin-bottom: 8px;
}

.footer-widget-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-widget-links a:hover {
    color: #ffffff;
}

.designer-logo {
    width: 60px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.designer-logo:hover {
    opacity: 0.8;
}

.copyright-text {
    letter-spacing: 1px;
}

.footer-bottom {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

@media (max-width: 992px) {
    .footer-widget-title {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        text-align: center;
    }

    .footer-logo-container {
        align-items: center;
    }
}

/* --- Vertical Timeline (About Us) --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #000;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #000;
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -8px;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-year {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1;
    color: #000;
}

.timeline-item.left .timeline-year {
    text-align: right;
}

.timeline-item.right .timeline-year {
    text-align: left;
}

.timeline-content img {
    width: 100%;
    display: block;
    background: #000;
    min-height: 200px;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 24px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
        padding-top: 10px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 16px;
        right: auto;
    }

    .timeline-item.left .timeline-year,
    .timeline-item.right .timeline-year {
        text-align: left;
    }
}

/* --- Hamburger Menu Button --- */
.hamburger-menu-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.hamburger-menu-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.1);
}

.nav-overlay .container {
    pointer-events: none;
}

.nav-overlay .nav-logo-left,
.nav-overlay .nav-logo-right,
.nav-overlay .hamburger-menu-btn {
    pointer-events: auto;
}

/* Fix for letter spacing mentioned in partial */
.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}