/********** Template CSS **********/
:root {
    --primary: #cc272b;
    --secondary: #3c3c44;
    --light: #ffffff;
    --dark: #040404;
    --bs-primary: #cc272b;
    --bs-secondary: #3c3c44;
    --bs-light: #ffffff;
    --bs-dark: #040404;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 8px 0;
        font-size: 13px;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.portfolio-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portfolio-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-title {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    background: white;
    color: #333;
    padding: 20px;
    z-index: 3;
}

.portfolio-title h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.portfolio-title span {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.portfolio-title span:last-child {
    margin-bottom: 0;
}

/* Image container for click functionality */
.portfolio-image {
    position: relative;
    cursor: pointer;
}

.portfolio-image img {
    transition: transform 0.3s ease;
}

.portfolio-box:hover .portfolio-image img {
    transform: scale(1.05);
}

/* Removed complex portfolio effects for cleaner design */

/* Project Item Styles */
.project-item {
    transition: all 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1 !important;
}

.project-overlay {
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive styles for projects */
@media (max-width: 767px) {
    .project-item {
        margin-bottom: 2rem;
    }
    
    .project-item img {
        height: 300px !important;
        object-fit: cover;
    }
    
    .project-overlay {
        opacity: 1 !important;
        background: rgba(204, 39, 43, 0.9) !important;
        position: relative !important;
        transform: none !important;
        margin-top: -4px;
    }
    
    .project-overlay h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .project-overlay p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .project-item:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .project-item img {
        height: 400px !important;
        object-fit: cover;
    }
    
    .project-overlay h4 {
        font-size: 1.3rem;
    }
    
    .project-overlay p {
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    #projects .text-center.mx-auto.mb-5 h2 {
        font-size: 1.8rem;
    }
    
    .project-overlay h4 {
        font-size: 1.1rem;
    }
    
    .project-overlay p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .project-item img {
        height: 250px !important;
    }
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

/* Kapsamlı Mobil Uyum Kuralları */

/* Genel mobil uyumlar */
@media (max-width: 768px) {
    /* Navbar mobil uyumları */
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    /* Container padding ayarları */
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Başlık boyutları */
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-2 {
        font-size: 2.2rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .display-4 {
        font-size: 1.8rem !important;
    }
    
    .display-5 {
        font-size: 1.6rem !important;
    }
    
    .display-6 {
        font-size: 1.4rem !important;
    }
    
    /* Carousel mobil uyumları */
    .carousel-caption h1 {
        font-size: 2rem !important;
    }
    
    .carousel-caption h4 {
        font-size: 1.1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem;
    }
    
    .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Service card mobil uyumları */
    .service-item {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .service-item .service-icon {
        margin-top: -30px;
        width: 80px;
        height: 80px;
    }
    
    .service-item .service-icon i {
        font-size: 2rem !important;
    }
    
    /* About section mobil uyumları */
    .about-text h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Grid sistem mobil uyumları */
    .row.g-5 {
        --bs-gutter-x: 1rem;
    }
    
    /* Buton mobil uyumları */
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Footer mobil uyumları */
    .footer .col-lg-6,
    .footer .col-sm-6 {
        margin-bottom: 2rem;
    }
    
    .footer h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    /* Modal mobil uyumları */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    /* Form mobil uyumları */
    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .form-floating > label {
        font-size: 0.9rem;
    }
}

/* Çok küçük ekranlar için özel kurallar */
@media (max-width: 576px) {
    /* Ekstra küçük başlıklar */
    .display-1 {
        font-size: 2rem !important;
    }
    
    .display-2 {
        font-size: 1.8rem !important;
    }
    
    .display-3 {
        font-size: 1.6rem !important;
    }
    
    .display-4 {
        font-size: 1.4rem !important;
    }
    
    .display-5 {
        font-size: 1.3rem !important;
    }
    
    .display-6 {
        font-size: 1.2rem !important;
    }
    
    /* Container padding daha da küçült */
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Carousel çok küçük ekranlar */
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem !important;
    }
    
    .carousel-caption h4 {
        font-size: 1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.85rem !important;
        display: none; /* Çok küçük ekranlarda paragrafı gizle */
    }
    
    /* Service items daha kompakt */
    .service-item {
        padding: 1rem;
    }
    
    .service-item h4 {
        font-size: 1.1rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
    
    /* Butonları tam genişlik yap */
    .btn-lg {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Modal tam ekran benzeri */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    /* Grid sistem sıfırla */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col,
    [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Tablet boyutları için özel kurallar */
@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet navbar */
    .navbar-dark .navbar-nav .nav-link {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    /* Tablet başlıklar */
    .display-1 {
        font-size: 3rem !important;
    }
    
    .display-2 {
        font-size: 2.5rem !important;
    }
    
    /* Tablet service items */
    .service-item {
        padding: 2rem 1.5rem;
    }
    
    /* Tablet carousel */
    .carousel-caption h1 {
        font-size: 2.5rem !important;
    }
    
    .carousel-caption h4 {
        font-size: 1.3rem !important;
    }
}

/* Navbar mobil buton stilleri */
.navbar-nav .nav-link.d-block.d-lg-none {
    background: var(--primary) !important;
    color: white !important;
    margin: 0.5rem 0;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.d-block.d-lg-none:hover {
    background: var(--dark) !important;
    transform: translateY(-2px);
}

/* Navbar dropdown mobil uyumları */
@media (max-width: 991px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: var(--dark);
        margin: 0;
        border-radius: 0;
    }
    
    .dropdown-item {
        color: var(--light);
        padding: 8px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-item:hover,
    .dropdown-item.active {
        background: var(--primary);
        color: white;
    }
    
    .nav-item.dropdown .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Erişilebilirlik iyileştirmeleri */
@media (max-width: 768px) {
    /* Focus göstergeleri */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
    
    /* Dokunma hedefleri */
    .btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        justify-content: flex-start;
        padding-left: 15px;
    }
}

/* Performans optimizasyonları */
@media (max-width: 768px) {
    /* Animasyonları azalt */
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Gölgeleri azalt */
    .service-item,
    .btn,
    .modal-content {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
}

/* Print media query */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
}