/**
 * İsmail BİÇER • Kişisel Blog & Portfolyo
 * Modern Hero Card & Carousel Stylesheet
 * Matching exact Plus Jakarta Sans typography, colors, animations & responsive layout
 */

/* ==========================================================================
   1. Design Variables & Font Tokens
   ========================================================================== */
:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Palette extracted from UI Mockup */
    --color-canvas-bg: #EAEAEF;
    --color-card-bg: #FFFFFF;
    --color-yellow: #FFA301;
    --color-purple: #4C229E;
    --color-purple-gradient: linear-gradient(135deg, #441FA0 0%, #5B32BF 100%);
    --color-blue-gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --color-violet-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);

    --color-text-dark: #0D0D0D;
    --color-text-sub: #52525B;
    --color-text-muted: #71717A;
    --color-border-light: #E4E4E7;

    --card-radius: 32px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body.canvas-body,
body.canvar-body {
    font-family: var(--font-main);
    background-color: var(--color-canvas-bg);
    color: var(--color-text-dark);
    height: 100vh;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   3. Outer Canvas & Main Card Frame (100% Width & 100% Height)
   ========================================================================== */
.site-canvas,
.site-canvar {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card-frame {
    background-color: var(--color-card-bg);
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 30px 80px -15px rgba(18, 24, 40, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ==========================================================================
   4. Card Header (Navbar inside Card)
   ========================================================================== */
.card-header {
    width: 100%;
    padding: 32px 48px 10px 48px;
    background-color: transparent;
    position: relative;
    z-index: 30;
}

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

/* Left: Logo Text (ismailbiçer) */
.brand-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    user-select: none;
}

.brand-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.6px;
    line-height: 1;
}

.brand-dot {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-yellow);
    line-height: 1;
}

/* Center: Navigation Menu */
.card-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-item {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--color-text-sub);
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-text-dark);
    font-weight: 600;
}

/* Right: İletişim Button & Mobile Hamburger */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    border: 1.5px solid var(--color-text-dark);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    background-color: transparent;
    text-decoration: none;
    letter-spacing: -0.1px;
    transition: var(--transition-smooth);
}

.btn-nav-contact:hover {
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 13, 13, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle .bar {
    width: 100%;
    height: 2.2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   5. Hero Carousel Section (Full Height Stretched)
   ========================================================================== */
.hero-carousel-section {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    background-color: var(--color-card-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-container {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.carousel-viewport {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
    display: flex;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Slide Base */
.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-shrink: 0;
    opacity: 0.2;
    transition: opacity 0.4s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    user-select: auto;
}

.slide-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    flex: 1;
    min-height: 0;
    padding: 10px 48px 0 48px;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   6. Slide Left Column (Headline, Copy, Buttons, Badge)
   ========================================================================== */
.slide-content-col {
    padding-right: 0;
    padding-bottom: 24px;
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.slide-pretitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-sub);
    letter-spacing: 0.2px;
    margin-bottom: 12px;
}

.slide-title {
    font-size: clamp(38px, 4.2vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--color-text-dark);
    margin-bottom: 26px;
}

.slide-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.btn-hero-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    letter-spacing: -0.1px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(13, 13, 13, 0.15);
}

.btn-hero-solid:hover {
    background-color: #242426;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 13, 13, 0.22);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1.5px solid var(--color-border-light);
    font-size: 14px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    letter-spacing: -0.1px;
    transition: var(--transition-smooth);
}

.btn-hero-outline:hover {
    border-color: var(--color-text-dark);
    transform: translateY(-2px);
}

/* Floating Bottom-Left Badge: 10+ Yıl Deneyim */
.floating-badge-courses {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    width: fit-content;
    max-width: 220px;
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 13px 22px;
    min-width: 165px;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 20;
    margin-top: 10px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.floating-badge-courses:hover {
    transform: translateY(-3px);
}

.badge-pill {
    display: inline-block;
    background-color: #FFFFFF;
    color: var(--color-text-dark);
    font-size: 14.5px;
    font-weight: 800;
    padding: 3px 13px;
    border-radius: 9999px;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.badge-text {
    font-size: 15.5px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

/* ==========================================================================
   7. Slide Right Visual Stage
   ========================================================================== */
.slide-visual-col {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    margin-right: -48px;
    margin-bottom: 0;
}

.visual-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    line-height: 0;
    margin-bottom: 0;
}

.hero-artwork-image {
    max-height: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    margin-bottom: 0;
    vertical-align: bottom;
    pointer-events: none;
}

/* Custom stage for Slide 2 & 3 */
.visual-stage-custom {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 505px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-circle-text {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 15px;
    right: 35px;
    z-index: 1;
    pointer-events: none;
}

.svg-orbit-text {
    width: 100%;
    height: 100%;
    animation: spinCircle 35s linear infinite;
    transform-origin: center center;
}

.orbit-chars {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 700;
    fill: #787882;
    letter-spacing: 3.5px;
    text-transform: uppercase;
}

@keyframes spinCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.angled-pill-blob {
    position: absolute;
    width: 220px;
    height: 100px;
    border-radius: 9999px;
    transform: rotate(-35deg);
    z-index: 2;
}

.pill-indigo {
    background: var(--color-blue-gradient);
    bottom: 85px;
    left: 20px;
}

.pill-violet {
    background: var(--color-violet-gradient);
    bottom: 85px;
    left: 20px;
}

.pill-purple {
    background: var(--color-purple-gradient);
    bottom: 85px;
    left: 20px;
}

.slide-interactive-card {
    position: relative;
    z-index: 4;
    width: 90%;
    max-width: 410px;
    background-color: #0E131F;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.card-bar .d-red { background-color: #EF4444; }
.card-bar .d-yellow { background-color: #F59E0B; }
.card-bar .d-green { background-color: #10B981; }

.card-bar .title {
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    margin-left: 6px;
    font-family: monospace;
}

.card-code {
    padding: 18px 22px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #E2E8F0;
}

.card-code p { margin: 3px 0; }
.c-kwd { color: #F43F5E; font-weight: 600; }
.c-fn { color: #38BDF8; }
.c-prop { color: #A78BFA; }
.c-val { color: #34D399; }

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.stat-box { display: flex; flex-direction: column; }
.stat-box strong { font-size: 18px; font-weight: 800; color: #FFA301; }
.stat-box span { font-size: 11px; color: #94A3B8; }

/* ==========================================================================
   8. Carousel Controls Cluster (Buttons + Indicators) - Contiguous with Yellow Bar
   ========================================================================== */
.carousel-control-cluster {
    position: absolute;
    bottom: 0;
    left: 48px;
    background-color: var(--color-yellow);
    padding: 10px 22px 6px 22px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 25;
}

.carousel-control-cluster::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -16px;
    width: 16px;
    height: 16px;
    background: transparent;
    border-bottom-right-radius: 16px;
    box-shadow: 6px 6px 0 0 var(--color-yellow);
    pointer-events: none;
}

.carousel-control-cluster::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -16px;
    width: 16px;
    height: 16px;
    background: transparent;
    border-bottom-left-radius: 16px;
    box-shadow: -6px 6px 0 0 var(--color-yellow);
    pointer-events: none;
}

.ctrl-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: none;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.ctrl-arrow:hover {
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    transform: scale(1.08);
}

.carousel-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-pill {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.55);
    border: none;
    transition: var(--transition-smooth);
    padding: 0;
    cursor: pointer;
}

.indicator-pill.active {
    width: 28px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   9. Golden-Yellow Wave Bottom Bar with Partner Logos (92px height)
   ========================================================================== */
.hero-bottom-strip {
    width: 100%;
    height: 92px;
    background-color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px;
    position: relative;
    z-index: 10;
}

.logos-strip-content {
    width: 100%;
    max-width: 980px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}

.strip-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    transition: var(--transition-smooth);
    cursor: default;
    user-select: none;
}

.strip-badge-item:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.strip-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.strip-icon-wrap svg {
    width: 17px;
    height: 17px;
    stroke: #FFFFFF;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.strip-badge-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    white-space: nowrap;
    color: #FFFFFF;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    opacity: 0.95;
    transition: var(--transition-smooth);
    cursor: default;
}

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

.partner-svg {
    height: 26px;
    width: auto;
    max-width: 155px;
    display: block;
}

/* ==========================================================================
   10. Responsive Breakpoints & Mobile Enhancements
   ========================================================================== */
@media (max-width: 1024px) {
    .card-header { padding: 24px 32px 10px 32px; }
    .slide-grid { padding: 10px 32px 0 32px; }
    .slide-title { font-size: 48px; }
    .hero-bottom-strip { padding: 0 32px; }
    .carousel-control-cluster { left: 32px; }
}

@media (max-width: 900px) {
    body.canvas-body,
    body.canvar-body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 16px 12px;
    }
    .hero-card-frame {
        height: auto;
        border-radius: 24px;
    }
    .card-header { padding: 20px 24px 10px 24px; }

    .slide-grid {
        padding: 10px 24px 20px 24px;
        min-height: auto;
    }

    .slide-content-col { padding-right: 0; }
    .slide-title { font-size: 38px; line-height: 1.12; }

    .carousel-control-cluster {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }

    .hero-bottom-strip {
        height: auto;
        padding: 24px 20px;
    }

    .logos-row { gap: 24px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .card-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        padding: 20px 24px;
        border-radius: 0 0 20px 20px;
        display: none;
    }

    .card-nav.open { display: block; }
    .nav-menu { flex-direction: column; align-items: flex-start; gap: 16px; }

    .slide-title { font-size: 34px; }
    .slide-buttons { flex-wrap: wrap; }

    .btn-hero-solid,
    .btn-hero-outline {
        height: 44px;
        padding: 0 22px;
        font-size: 13.5px;
    }

    .logos-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .slide-title { font-size: 28px; }
    .hero-artwork-image { max-height: 300px; height: auto; }
    .floating-badge-courses { min-width: 145px; padding: 12px 18px; }
}
