/* Reset & Basic Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Navbar hizasına tam oturması için ideal ölçü */
    scroll-snap-type: y mandatory; /* Scroll snap animasyonu */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Bölümlerin Scroll Snap ile otomatik hizalanması */
section, footer {
    scroll-snap-align: start;
}

/* Typography styles based on user spec */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* SPLASH SCREEN */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-in-out; /* 1 saniyeden az süren yumuşak kararma animasyonu */
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.splash-logo {
    max-width: 90vw;
    max-height: 250px;
    object-fit: contain;
}

/* Hover effectively triggered via JS class addition */
.splash-hide {
    opacity: 0;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    width: 100%;
    padding: 11px 4%; /* Üstten ve alttan daraltarak daha ince, şık bir bar yaptım, içerikler küçülmedi */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); /* Çok hafif şeffaf beyaz */
    backdrop-filter: blur(12px); /* Arkasından geçen içerikleri flulaştıran modern cam efekti */
    -webkit-backdrop-filter: blur(12px); /* Safari desteği için */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 48px;
}

.nav-links li a {
    font-family: 'Inter';
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #000000;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    background-color: #000000;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links li a.active::after {
    width: 100%;
}

/* Navbar Specific Button Styles */
.nav-cta .btn-primary {
    height: 33px;
    padding: 0 17px;
    font-size: 11px;
}

/* Buttons */
.btn {
    font-family: 'Inter';
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    line-height: 145%;
    letter-spacing: -0.005em;
    text-align: center;
    text-transform: capitalize;
    padding: 12px 24px;
    border-radius: 999px; /* Pill shape */
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* The solid black pill button style */
.btn-primary, .btn-solid-black {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
    height: 47px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
}

.btn-primary:hover, .btn-solid-black:hover {
    background-color: rgba(0,0,0,0.8);
}

/* The outline button style */
.btn-outline {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
}

.btn-outline:hover {
    background-color: rgba(0,0,0,0.05);
}


/* HERO SECTION */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px); /* Navbar hariç tam ekran */
    padding: 0 4%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Headline Wrapper for absolute positioning */
.headline-wrapper {
    position: relative;
    height: 140px; /* 2 satır 52px metin için yeterli yükseklik */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
    max-width: 900px; /* Metnin daha geniş bir alana yayılması için */
}

.hero-title-typewriter {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 52px; /* 64px'den küçültüldü, iki satıra sığıyor */
    line-height: 115%;
    color: #000000;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.cursor {
    font-weight: 400;
    color: #000000;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Subtitle */
.hero-subtitle {
    font-family: 'Inter';
    font-weight: 300;
    font-style: normal;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #000000;
    opacity: 0.5;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Hero Buttons Wrapper */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* REFERENCES SECTION */
.references {
    padding: 60px 4%;
    background-color: #FAFAFA;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.references-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.references-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 16px;
}

.references-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #000000;
    opacity: 0.5;
    margin-bottom: 64px;
}

/* Marquee */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 50px; /* Daha dengeli boşluk */
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ref-card-link {
    text-decoration: none;
    display: flex;
    flex-shrink: 0;
    color: inherit;
}

.ref-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.04);
    width: 240px; /* Kartlar dengeli boyuta çekildi */
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.ref-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.08);
}

/* Logo image kare kutunun içine sığdırılır */
.ref-logo-box {
    width: 140px; /* Logolar dengeli boyuta çekildi */
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F3F4F6;
    border-radius: 20px;
    overflow: hidden;
    padding: 16px;
}

.ref-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ref-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px; /* Yazı boyutu küçültüldü */
    color: #111111;
    opacity: 0.9;
    text-align: center;
    white-space: nowrap;
}

/* SOLUTIONS SECTION */

.solutions {
    padding: 40px 4%;
    background-color: #FFFFFF;
    min-height: calc(100vh - 80px); /* Navbar hariç tam ekran */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solutions-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #000000;
    text-align: center;
    margin-bottom: 24px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #000000;
    opacity: 0.5;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.solution-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0px 12px 48px rgba(0, 0, 0, 0.05); /* very soft shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.08); /* slightly stronger on hover */
}

.solution-img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align to bottom of wrapper if images vary */
    margin-bottom: 24px;
}

.solution-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 12px;
}

.card-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 145%;
    letter-spacing: -0.005em;
    color: #000000;
    opacity: 0.5;
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes button to bottom */
}

.solution-card .card-btn {
    /* Buton boyutları yazının uzunluğuna göre kendi şeklini alacak */
    width: max-content;
}

/* PROCESS SECTION */
.process {
    padding: 40px 4%;
    background-color: #FAFAFA;
    min-height: calc(100vh - 80px); /* Navbar hariç tam ekran */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch; /* Eşit yükseklik için sağdaki sütunu esnetiyoruz */
}

.process-steps {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Kartları yukarıdan aşağı eşit aralıkla yayarak tam hizada tutar */
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Process Timeline Background Line */
.process-steps::before {
    content: '';
    position: absolute;
    left: 74px; /* Desktop: 24px padding + 50px center of icon */
    transform: translateX(-50%);
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #d1d5db 0, #d1d5db 6px, transparent 6px, transparent 12px);
    z-index: -1;
}

.process-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Process Timeline Down Arrow */
.process-card:not(:last-child)::after {
    content: '▼';
    font-size: 14px;
    color: #d1d5db;
    position: absolute;
    left: 74px;
    bottom: -16px;
    transform: translateX(-50%);
    z-index: -1;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.05);
}

.process-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.process-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.process-card-content .card-title {
    margin-bottom: 8px; /* Tighter spacing compared to 2nd section */
}

.process-card-content .card-subtitle {
    margin-bottom: 0px; /* No buttons so no margin needed */
}

.process-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.process-large-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Sağdaki görseli çekiştirmeden yukarıdan aşağı tam sığdırır */
    border-radius: 36px;
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.08); /* slight shadow to pop off background */
}

/* SYSTEMS SECTION (Part 4) */
.systems {
    padding: 40px 4%;
    background-color: #FFFFFF;
    min-height: calc(100vh - 80px); /* Navbar hariç tam ekran */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.systems-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.system-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 20px 60px rgba(0,0,0,0.08); /* lift effect */
}

.system-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* Standard mobile app screenshot ratio */
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: #1a1a1a; /* Dark background to ensure logos pop when main image fades */
}

.system-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.system-img-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.system-card:hover .system-img-main {
    filter: blur(4px) brightness(0.3); /* Strong blur and darken for focus */
    transform: scale(1.05); /* Slight zoom outward */
}

.system-card:hover .system-img-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.systems-btn-wrapper {
    display: flex;
    justify-content: center;
}

.system-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.system-card-content .card-title {
    margin-bottom: 12px;
}

.system-card-content .card-subtitle {
    margin-bottom: 0px;
    font-size: 16px; /* slightly smaller font due to 4-column layout */
}

/* BOTTOM CTA SECTION */
.bottom-cta {
    padding: 40px 4%;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 80px); /* Navbar hariç tam ekran */
}

.cta-container {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.cta-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #000000;
}

/* FOOTER SECTION */
.footer {
    padding: 80px 4% 80px;
    background-color: #FAFAFA;
    border-top: 1px solid rgba(0,0,0,0.05); /* Faint top separator */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 340px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800; 
    font-size: 20px;
    line-height: 100%;
    color: #000000;
    letter-spacing: -0.02em;
}

.footer-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
    opacity: 0.6;
}

.footer-links-section {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #000000;
    margin-bottom: 24px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column ul li a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #000000;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    /* Prevent page shift and fix scroll snap issues */
    html {
        scroll-snap-type: none !important;
    }
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Navbar CTA Button Adjustment */
    .nav-cta .btn-primary {
        height: 27px;
        padding: 0 11px;
        font-size: 9px;
    }

    /* Hero Responsive */
    .headline-wrapper {
        height: auto;
        min-height: 100px;
        margin-bottom: 20px;
    }
    
    .hero-title-typewriter {
        font-size: 32px !important;
        text-align: center !important;
    }
    .hero-subtitle {
        font-size: 16px !important;
        text-align: center !important;
        padding: 0 15px;
    }

    /* Hero Buttons Responsive Stack */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 0 24px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        height: 52px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links {
        display: none; 
    }

    /* General Section Global Overrides for Mobile/Tablet */
    .section-title {
        font-size: 26px !important;
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
        padding: 0 24px !important;
        display: block !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    .section-subtitle {
        font-size: 15px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 24px auto !important;
        padding: 0 24px !important;
        display: block !important;
    }

    /* Solutions Carousel Logic */
    .solutions-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 24px !important;
        gap: 16px !important;
        padding: 0 24px 32px 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .solutions-grid::-webkit-scrollbar {
        display: none !important;
    }
    .solution-card {
        padding: 24px !important;
        flex: 0 0 85% !important;
        scroll-snap-align: start !important;
        height: auto !important;
    }
    
    /* Systems Carousel Logic */
    .systems-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 24px !important;
        gap: 16px !important;
        padding: 0 24px 16px 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .systems-grid::-webkit-scrollbar {
        display: none !important;
    }
    .system-card {
        flex: 0 0 85% !important;
        scroll-snap-align: start !important;
    }
    
    /* Button Center for Systems */
    .systems-btn-wrapper {
        display: flex !important;
        justify-content: center !important;
        margin-top: 12px !important;
        width: 100% !important;
    }
    
    /* Process Timeline Mobile (Simplified/Stacked) */
    .process-steps::before {
        left: 50%;
        top: 82px;
        bottom: 82px;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .process-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .process-card-content {
        text-align: center;
    }
    
    /* Marquee Mobile */
    .marquee-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .marquee-wrapper::-webkit-scrollbar {
        display: none;
    }
    .marquee-track {
        animation-duration: 20s !important;
    }
    .marquee-wrapper:active .marquee-track,
    .marquee-wrapper:focus .marquee-track {
        animation-play-state: paused !important;
    }

    /* CTA & Footer Mobile */
    .cta-title {
        font-size: 40px !important;
        text-align: center !important;
    }
    footer {
        scroll-snap-align: none !important;
    }
    .footer-brand,
    .footer-column {
        scroll-snap-align: start !important;
    }
    .footer-container, 
    .footer-links-section {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .footer-column {
        width: 100%;
        text-align: left !important;
    }
    .footer-column ul {
        align-items: flex-start !important;
    }
    .footer-column h4,
    .footer-column ul li,
    .footer-column ul li a {
        text-align: left !important;
        width: 100%;
        display: block !important;
    }
}

