/* =============================================
   GENERAL STYLES
============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

:root {
    --primary-color: #3a3a3a;
    --secondary-color: #ffffff;
    --accent-color: #5a5a5a;
    --border-radius: 8px;
    --section-spacing: 13px;
    --side-padding: 35px;
    --card-gap: 20px;
}




.rounded-custom {
    border-radius: var(--border-radius) !important;
}



/* =============================================
   HEADER
============================================= */
.header-main {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main .container-fluid {
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
}

.logo img {
    height: auto;
    width: 130px;
    object-fit: contain;
}

/* Navbar Styles */
.navbar {
    padding: 0;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    gap: 0rem;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 0 !important;
    transition: color 0.8s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 0;
    display: none;
    z-index: 999;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.mega-menu .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.mega-dropdown:hover .mega-menu {
    display: block;
}

.mega-menu h5 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.mega-menu p {
    color: var(--accent-color);
    font-size: 14px;
}

.mega-menu ul {
    padding: 0;
    margin: 0;
}

.mega-menu ul li {
    margin-bottom: 10px;
}

.mega-menu ul li a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.mega-menu ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.social-icon {
    color: #000000;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* =============================================
   HERO IMAGE SECTION
============================================= */
.hero-image-section {
    position: relative;
    height: 800px;
    overflow: hidden;
    width: 100%;
}

.hero-image-section img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Mobile hero image - hidden on desktop */
.hero-image-section .hero-image-mobile {
    display: none;
}

/* Hero buttons */
.hero-buttons-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.hero-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 14px;
}

.hero-btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.hero-btn-primary:hover {
    background-color: #f6f5f5;
    color: black;
    color: var(--primary-color);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}




/* Hero buttons */
.nav-buttons-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 14px;
    color: black;
}

.nav-btn-primary {
    background-color: white;
    
}

.nav-btn-primary:hover {
    background-color: rgb(243, 243, 243);
    color: black;
    color: var(--primary-color);
}

.nav-btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.nav-btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* =============================================
   TEXT SECTION (After Hero)
============================================= */
.text-section {
    padding: var(--section-spacing) var(--side-padding);
    background-color: var(--secondary-color);
    margin: var(--section-spacing) 0;
}

.text-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.text-section h2 {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.text-section p {
    font-size: 17px;
    color: var(--accent-color);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 15px;
}

/* =============================================
   CAROUSEL - DESKTOP & MOBILE SEPARATED
============================================= */
.carousel-section {
    padding: 0;
    margin: var(--section-spacing) 0;
    overflow: hidden;
}

.carousel-multi .carousel-inner {
    padding: 0 var(--side-padding);
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item .row {
    display: flex;
    flex-wrap: nowrap;
    margin: 0 -10px;
}

/* DESKTOP: 2 columns per slide (50% each) */
@media (min-width: 768px) {
    .carousel-item .col-md-6 {
        position: relative;
        padding: 0 10px;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .carousel-item img {
        height: 500px;
        object-fit: cover;
        width: 100%;
        display: block;
    }
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    bottom: 50px;
}

.carousel-caption h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: calc(var(--side-padding) + 10px);
}

.carousel-control-next {
    right: calc(var(--side-padding) + 10px);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: var(--accent-color);
}

.carousel-control-icon {
    font-size: 24px;
}




/* =============================================
   TWO CARDS SECTION - DESKTOP ONLY
============================================= */
.two-cards-section {
    padding: var(--section-spacing) var(--side-padding);
    margin: var(--section-spacing) 0;
}

.two-cards-section .container-fluid {
    max-width: 100%;
    padding: 0 var(--side-padding);
}

/* MASAÜSTÜ: Row ve Column yapısı */
@media (min-width: 768px) {
    .two-cards-section .row {
        display: flex;
        margin: 0 -10px;
    }

    .two-cards-section .col-md-6 {
        padding: 0 10px;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .info-card .row {
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
        height: 100%;
    }

    .info-card .col-md-6 {
        padding: 0;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.info-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-text-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 350px;
}

.card-text-content h3 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text-content h5 {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text-content p {
    font-size: 16px;
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
    display: block;
}

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

.info-card:hover .card-image img {
    transform: scale(1.05);
}

/* =============================================
   VIDEO & IMAGE SECTION - DESKTOP ONLY
============================================= */
.video-image-section {
    padding: var(--section-spacing) var(--side-padding);
    margin: var(--section-spacing) 0;
}

.video-image-section .container-fluid {
    max-width: 100%;
    padding: 0 var(--side-padding);
}

/* MASAÜSTÜ: Row ve Column yapısı */
@media (min-width: 768px) {
    .video-image-section .row {
        display: flex;
        margin: 0 -10px;
    }

    .video-image-section .col-md-8 {
        padding: 0 10px;
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .video-image-section .col-md-4 {
        padding: 0 10px;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.video-card,
.image-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    min-height: 450px;
}

.video-card video {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
}

.image-card img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
}

/* =============================================
   FOOTER
============================================= */
.footer-main {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin-top: var(--section-spacing);
}

.footer-content {
    padding: 40px var(--side-padding) 35px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #cccccc;
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #2a2a2a;
    padding: 25px var(--side-padding);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #cccccc;
}

/* =============================================
   RESPONSIVE - TABLET
============================================= */
@media (max-width: 991px) {
    :root {
        --side-padding: 25px;
        --section-spacing: 25px;
    }
    
    /* Logo hidden when menu open */
    .logo.menu-open {
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
    }
    
    /* Navbar toggler sağda kalmalı */
    .navbar-toggler {
        margin-left: auto;
    }
    
    /* Navbar collapse TAMAMEN ortalanmış */
    .navbar-collapse {
        margin-top: 20px;
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        text-align: center;
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-collapse .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .navbar-collapse .nav-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .navbar-collapse .nav-link,
    .navbar-collapse .nav-btn {
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Hide mega menu completely on mobile and tablet */
    .mega-dropdown .mega-menu {
        display: none !important;
    }
    
    /* Show dropdown menu on mobile - ENHANCED */
    .mega-dropdown .dropdown-menu {
        display: none;
        position: static !important;
        float: none !important;
        background-color: #f8f9fa !important;
        border: none !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        margin: 10px auto !important;
        transform: none !important;
        max-width: 300px !important;
        width: 100% !important;
    }
    
    /* When dropdown is shown */
    .mega-dropdown .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dropdown-item {
        padding: 12px 20px !important;
        color: var(--accent-color) !important;
        font-size: 14px !important;
        border: none !important;
        background: none !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item:active {
        background-color: #e9ecef !important;
        color: var(--primary-color) !important;
    }
    
    /* Dropdown arrow centered */
    .mega-dropdown .nav-link.dropdown-toggle::after,
    .mega-dropdown .nav-btn.dropdown-toggle::after {
        display: inline-block !important;
        margin-left: 8px !important;
        vertical-align: middle !important;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }
    
    .hero-image-section {
        height: 500px;
    }
    
    .hero-buttons-container {
        bottom: 60px;
    }
    
    /* Tablet carousel - 2 columns, same as desktop */
    @media (min-width: 768px) and (max-width: 991px) {
        .carousel-item img {
            height: 350px;
        }
    }
    
    .carousel-caption {
        padding: 15px 25px;
        bottom: 30px;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .card-text-content {
        padding: 40px 30px;
    }
    
    .card-text-content h3 {
        font-size: 28px;
    }
    
    .footer-content {
        padding: 35px var(--side-padding) 30px;
    }
}

/* =============================================
   RESPONSIVE - MOBILE
============================================= */
@media (max-width: 767px) {
    :root {
        --side-padding: 20px;
        --section-spacing: 30px;
        --card-gap: 15px;
    }
    
    /* Header Mobile */
    .header-main .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .header-main .row {
        position: relative;
    }
    
    .logo img {
        height: 40px;
        width: auto;
        object-fit: contain;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
        border: 2px solid #3a3a3a;
        border-radius: 5px;
    }
    
    .navbar-toggler-icon {
        width: 22px;
        height: 22px;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 15px;
        gap: 20px;
    }
    
    .social-icon {
        font-size: 18px;
    }
    
    /* Text Section Mobile */
    .text-section {
        padding: var(--section-spacing) 20px;
    }
    
    .text-section h2 {
        font-size: 28px;
    }
    
    .text-section p {
        font-size: 15px;
    }
    
    /* Hero Image Mobile */
    .hero-image-section {
        height: 600px;
    }
    
    /* Hide desktop image, show mobile image */
    .hero-image-section .hero-image-desktop {
        display: none;
    }
    
    .hero-image-section .hero-image-mobile {
        display: block;
    }
    
    .hero-image-section img {
        object-position: center center;
    }
    
    /* Hero buttons mobile */
    .hero-buttons-container {
        bottom: 40px;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn {
        padding: 12px 30px;
        width: 100%;
        max-width: 250px;
        text-align: center;
        font-size: 14px;
    }
    
    /* Carousel Mobile - ONLY MOBILE, 1 IMAGE PER SLIDE */
    .carousel-section {
        margin: var(--section-spacing) 0;
        padding: 0;
    }
    
    .carousel-multi .carousel-inner {
        padding: 0 20px;
    }
    
    .carousel-item .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
    }
    
    .carousel-item .col-md-6,
    .carousel-item .col-12 {
        padding: 0 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Show only FIRST image in each slide */
    .carousel-item .col-md-6:nth-child(2) {
        display: none !important;
    }
    
    .carousel-item img {
        height: 300px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .carousel-caption {
        padding: 10px 20px;
        bottom: 20px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 14px;
        margin: 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 25px;
    }
    
    .carousel-control-next {
        right: 25px;
    }
    
    .carousel-control-icon {
        font-size: 18px;
    }
    
    /* Two Cards Mobile - ONLY MOBILE RULES */
    .two-cards-section {
        padding: var(--section-spacing) 20px;
        margin: var(--section-spacing) 0;
    }
    
    .two-cards-section .container-fluid {
        padding: 0;
    }
    
    .two-cards-section .row {
        display: block !important;
        margin: 0 !important;
    }
    
    .two-cards-section > .container-fluid > .row > .col-md-6 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin-bottom: 15px;
    }
    
    .two-cards-section > .container-fluid > .row > .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .info-card {
        display: block !important;
        width: 100% !important;
    }
    
    .info-card .row {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }
    
    /* Mobilde önce resim sonra text */
    .info-card .col-md-6:first-child {
        order: 2;
    }
    
    .info-card .col-md-6:last-child {
        order: 1;
    }
    
    .info-card .col-md-6,
    .info-card .col-12 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
    }
    
    .card-text-content {
        padding: 30px 25px;
        min-height: auto;
    }
    
    .card-text-content h3,
    .card-text-content h5 {
        font-size: 24px;
    }
    
    .card-text-content p {
        font-size: 15px;
    }
    
    /* CARD IMAGE - MOBİL IÇIN ÖZEL */
    .card-image {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        display: block !important;
        overflow: hidden !important;
    }
    
    .card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Video & Image Mobile - ONLY MOBILE RULES */
    .video-image-section {
        padding: var(--section-spacing) 20px;
        margin: var(--section-spacing) 0;
    }
    
    .video-image-section .container-fluid {
        padding: 0;
    }
    
    .video-image-section .row {
        display: block !important;
        margin: 0 !important;
    }
    
    .video-image-section .col-md-8,
    .video-image-section .col-md-4 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin-bottom: 15px;
    }
    
    .video-image-section .col-md-4 {
        margin-bottom: 0;
    }
    
    .video-card,
    .image-card {
        min-height: 250px;
    }
    
    .video-card video {
        min-height: 250px;
        max-height: 250px;
    }
    
    .image-card img {
        min-height: 250px;
        max-height: 250px;
    }
    
    /* Footer Mobile */
    .footer-content {
        padding: 30px 20px 25px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding: 20px 20px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

/* =============================================
   VERY SMALL MOBILE
============================================= */
@media (max-width: 375px) {
    :root {
        --side-padding: 15px;
    }
    
    .hero-image-section {
        height: 350px;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .card-text-content {
        padding: 25px 20px;
    }
    
    .card-text-content h3 {
        font-size: 22px;
    }
}