/* style.css - Main Styling */

:root {
    --primary-color: #ff4e00;
    --text-color: #ffffff;
    --header-bg: rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}
body, html {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* Allow vertical scroll */
    background: #000;
}

/* --- Bootstrap style Container System --- */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
    width: 100%;
}

@media (min-width: 576px) { .container, .container-sm { max-width: 540px; } }
@media (min-width: 768px) { .container, .container-md, .container-sm { max-width: 720px; } }
@media (min-width: 992px) { .container, .container-lg, .container-md, .container-sm { max-width: 960px; } }
@media (min-width: 1200px) { .container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1140px; } }
@media (min-width: 1400px) { .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1320px; } }
@media (min-width: 1600px) { .container { max-width: 1520px !important; } }


/* --- Responsive Header --- */
.main-header {
    position: fixed; /* Fixed position for sticky behavior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

.main-header.header-hidden {
    transform: translateY(-100%); /* Slide up hide */
}

.main-header.scrolled {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.75rem 0 !important; /* Slightly more compact header */
}

.main-header.scrolled .menu-label,
.main-header.scrolled .lang-switcher a {
    color: #0f172a !important; /* Dark text for light bg */
}

.main-header.scrolled .hamburger .bar {
    background: #0f172a !important; /* Dark bars for light bg */
}

.main-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

/* Hamburger Menu Button */
.menu-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
    gap: 12px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-btn .bar {
    width: 32px; /* Bigger bars */
    height: 2px; /* Slightly thicker */
    background: #fff;
    display: block;
    transition: var(--transition-speed);
}

.menu-label {
    font-size: 1rem; /* Scaled up from 0.8rem */
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    opacity: 0.9;
}

/* Logo Area */
.logo-area {
    text-align: center;
}

.logo {
    display: inline-block;
    transition: transform 0.2s;
}

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

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    gap: 15px;
}

.lang-switcher a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem; /* Scaled up from 0.8rem */
    font-weight: 600;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.lang-switcher a.active, .lang-switcher a:hover {
    opacity: 1;
}

/* --- Sidenav Overlay --- */
.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sidenav.open {
    transform: translateY(0);
}

.sidenav-header {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

.sidenav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.sidenav-links a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.sidenav-links a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
}

/* Swiper overrides */
.mySwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.fallback-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #ff7b00 0%, #ff4e00 50%, #b33600 100%);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* Soft dark overlay for text contrast */
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 11rem; /* Placed exactly above the bottom ribbon overlay */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    z-index: 10;
}

.hero-title {
    font-size: 3.8rem; /* Enlarge significantly */
    font-weight: 600; /* Bolder for impactful look */
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-transform: none;
    animation: fadeInUp 1s ease-out;
}

/* --- Partners Overlay (Bottom Ribbon Full with Container) --- */
.partners-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    padding: 1.5rem 0 2rem 0; /* Padding inside top-bottom */
    color: white;
    z-index: 20;
}

.partners-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.25rem;
}

.partners-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: #fff;
    opacity: 1;
    margin-bottom: 0;
}

.partners-title .plus {
    font-size: 1.3rem;
    font-weight: 600;
    margin-right: 8px;
    color: #fff;
}

.partners-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.partners-track-container {
    position: relative;
    display: flex;
    align-items: center;
}

.partners-scroll-track {
    display: flex;
    gap: 3.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: none;
    touch-action: pan-y; /* Mobilde yatay sürtünme çakışmasını önler, titremeyi bitirir */
}

.partners-scroll-track img {
    user-select: none;
    -webkit-user-drag: none; /* Resimlerin sürüklenerek kilitlenmesini önler */
}

.partners-scroll-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.partner-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.partner-card:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.partner-card img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* All logos white exactly like reference */
}

.mock-text {
    font-size: 0.8rem;
    opacity: 0.5;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 4px;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 5px;
    opacity: 0.5;
    transition: opacity 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

.nav-arrow:hover { opacity: 1; }
.nav-arrow.left { left: 0; }
.nav-arrow.right { right: 0; }

/* Swiper Pagination to Right */
.swiper-pagination {
    right: 3rem !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255,255,255,0.4) !important;
    opacity: 1 !important;
    border-radius: 50% !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
    box-shadow: 0 0 5px #fff;
}

.partners-overlay .container {
    position: relative; /* Add position anchor for scroll icon */
}

/* Scroll Next Button */
.scroll-next {
    position: absolute;
    right: calc(1.5rem * 0.5); /* Align with container padding edge */
    bottom: 8.5rem; /* Above ribbon content */
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    gap: -5px; /* Stack tightly */
}

.scroll-next i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    animation: mouse-scroll 1.5s infinite;
}

.scroll-next i:nth-child(1) { animation-delay: 0s; }
.scroll-next i:nth-child(2) { animation-delay: 0.2s; }
.scroll-next i:nth-child(3) { animation-delay: 0.4s; }

@keyframes mouse-scroll {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(3px); }
    100% { opacity: 0; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .main-header { padding: 1.25rem 1.5rem; }
    .logo-img { height: 50px !important; } /* Shrink logo on mobile */
    
    .hero-content { 
        bottom: 9rem; /* Lift slightly above the bottom ribbon overlay */
    }
    .hero-title { 
        font-size: 1.6rem !important; /* Scale down to prevent squash */
        line-height: 1.2;
    }
    
    .partners-overlay { 
        padding: 0.75rem 1.25rem 1.5rem; 
    }
    .partners-title-row {
        margin-bottom: 0.6rem !important; 
    }
    .partners-title {
        font-size: 0.75rem !important;
    }
    .partner-card { 
        height: 38px !important; /* smaller logos */
    }
    .partners-scroll-track { 
        gap: 1.25rem; 
    }
    .nav-arrow { display: none; }

    /* Swiper Pagination: Bottom Center on Mobile */
    .swiper-pagination {
        right: auto !important;
        left: 50% !important;
        top: auto !important;
        bottom: 7rem !important; /* Positioned just above the ribbon overlay */
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        gap: 8px !important;
    }

    .scroll-next {
        display: none !important;
    }
}

/* Content Section Styles */
.bg-light {
    background: #f1f5f9 !important;
}
.bg-light .grid-item {
    background: #ffffff !important;
}

.content-section {
    padding: 6rem 0;
    background: #ffffff;
    color: #0f172a;
}
.content-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}
.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}
.dummy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.grid-item {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.grid-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
}
.grid-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 0 !important;
    text-align: left !important;
}

@media (max-width: 480px) {
    .logo { font-size: 1.25rem; }
    .menu-label { display: none; } /* compact header */
}

/* --- New Custom Footer --- */
.footer-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff; /* Prevents dark body background leak */
    margin-top: 0;
    overflow: hidden;
}

.footer-core {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem 1.5rem;
    position: relative;
    min-height: 650px; /* Force larger spread */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 5rem; /* Larger gap inside layout items */
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.brand-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.brand-desc {
    color: #64748b;
    font-weight: 500;
    text-align: center;
    max-width: 380px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.footer-socials a {
    color: #64748b;
    font-size: 1.25rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.footer-nav a:hover {
    color: #0f172a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    width: 100%;
}

.footer-crafted a {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-crafted a:hover {
    color: #0f172a;
}

.footer-bottom .copyright {
    font-size: 0.85rem;
    color: #64748b;
}

/* Large Background Text */
.bg-large-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 7rem; /* Shift upwards to prevent link overlap */
    font-size: clamp(3rem, 15vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.02) 60%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

/* Floating Logo */
.floating-logo-container {
    position: absolute;
    bottom: 2.5rem; /* Shift upwards */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 0.6rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.4s;
    cursor: default;
}

.floating-logo-container:hover {
    border-color: var(--primary-color);
}

.floating-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff7b00 0%, var(--primary-color) 80%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-logo-img {
    width: 70%;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bottom-gradient-line {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    z-index: 5;
}

.bottom-shadow-blur {
    position: absolute;
    bottom: 4.5rem;
    width: 100%;
    height: 4rem;
    background: linear-gradient(to top, #ffffff, rgba(255,255,255,0.8));
    filter: blur(8px);
    z-index: 10;
    pointer-events: none;
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
    .footer-container {
        padding: 4rem 1.5rem 6rem 1.5rem;
        min-height: 440px; /* Reduced for stacked layout */
    }
    
    .footer-content {
        margin-bottom: 3rem;
    }
    
    .footer-nav {
        gap: 1.25rem;
    }

    .footer-bottom {
        flex-direction: column; /* Stack Copyright and Crafted by vertically */
        gap: 0.75rem;
        padding-top: 3.5rem;
        text-align: center;
    }
    
    .bg-large-text {
        bottom: 9.5rem; /* Shifted UP above stacked text zone to clear overlap */
        font-size: clamp(2.5rem, 18vw, 6rem); /* Scale down properly on mobile */
    }
}
