/**
 * Founder Section - Code Editor Style
 * "The Mind Behind The Code" - Interactive Developer Profile
 */

/* Mobil kartlar desktop'ta gizli */
@media (min-width: 992px) {
    .mobile-profile-card,
    .mobile-mission-card {
        display: none !important;
    }
}

.founder-section-area {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    max-height: 1080px;
    display: flex;
    align-items: center;
}

.founder-section-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(255, 67, 8, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 67, 8, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.founder-section-area .container-fluid {
    width: 100%;
    max-width: calc(100% - 160px);
    padding: 0 80px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .founder-section-area .container-fluid {
        max-width: calc(100% - 100px);
        padding: 0 50px;
    }
}

@media (max-width: 991px) {
    .founder-section-area .container-fluid {
        max-width: calc(100% - 60px);
        padding: 0 30px;
    }
}

@media (max-width: 767px) {
    .founder-section-area .container-fluid {
        max-width: 100%;
        padding: 0 15px;
    }
}

.founder-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 0 15px;
}

.founder-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #FF4308;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.founder-header h2 {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.founder-header p {
    font-size: 16px;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

/* Founder Card Container */
.founder-card-container {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 67, 8, 0.2);
    border-radius: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    height: 700px;
}

/* Left Side - Profile Card */
.founder-profile {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 67, 8, 0.05) 0%, transparent 100%);
    border-right: 1px solid rgba(255, 67, 8, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 700px;
}

.founder-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FF4308;
    box-shadow: 0 0 30px rgba(255, 67, 8, 0.3);
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    will-change: opacity, transform;
}

.founder-image::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #FF4308, #FB8500, #FEFE1F);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
}

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

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-name {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 6px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    will-change: opacity, transform;
}

.founder-title {
    font-size: 14px;
    font-weight: 600;
    color: #FF4308;
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    will-change: opacity, transform;
}

.founder-stats {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 67, 8, 0.2);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cccccc;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-15px);
    will-change: opacity, transform;
}

.stat-row .icon {
    font-size: 18px;
    color: #FF4308;
    width: 20px;
    text-align: center;
}

.founder-social {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.founder-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 67, 8, 0.1);
    border: 1px solid rgba(255, 67, 8, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4308;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    will-change: opacity, transform;
}

.founder-social a:hover {
    background: #FF4308;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 67, 8, 0.4);
}

/* Right Side - Code Editor */
.founder-code {
    padding: 30px;
    background: #1e1e1e;
    font-family: 'Courier New', monospace;
    position: relative;
    height: 700px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* VS Code Header */
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 67, 8, 0.2);
    margin-bottom: 16px;
}

.code-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cccccc;
}

.code-tab .file-icon {
    width: 16px;
    height: 16px;
    background: #FF4308;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    font-weight: bold;
}

.code-controls {
    display: flex;
    gap: 6px;
}

.code-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-controls .close { background: #ff5f56; }
.code-controls .minimize { background: #ffbd2e; }
.code-controls .maximize { background: #FF4308; }

/* Code Content - SADECE FOUNDER İÇİN */
.founder-code .code-content {
    font-size: 13px;
    line-height: 1.6;
    color: #d4d4d4;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    min-height: 300px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.founder-code .code-line {
    display: flex;
    gap: 12px;
    min-height: 22px;
    width: 100%;
    align-items: flex-start;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.founder-code .line-number {
    color: #858585;
    user-select: none;
    min-width: 24px;
    text-align: right;
    flex-shrink: 0;
    font-size: 12px;
}

.founder-code .line-code {
    flex: 1 1 0;
    min-width: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-all;
    font-family: 'Courier New', Consolas, Monaco, monospace;
}


/* Syntax Highlighting - SADECE FOUNDER İÇİN */
.founder-code .line-code span {
    word-break: inherit;
    overflow-wrap: inherit;
    white-space: inherit;
    display: inline;
}

.founder-code .keyword { color: #569cd6; }
.founder-code .const-keyword { color: #c586c0; }
.founder-code .variable { color: #9cdcfe; }
.founder-code .string { color: #ce9178; }
.founder-code .number { color: #b5cea8; }
.founder-code .property { color: #9cdcfe; }
.founder-code .comment { color: #6a9955; font-style: italic; }
.founder-code .function { color: #dcdcaa; }
.founder-code .bracket { color: #ffd700; }

/* Terminal Output - SADECE FOUNDER İÇİN */
.founder-code .terminal-output {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #FF4308;
    display: none;
    opacity: 0;
}

.founder-code .terminal-output.active {
    display: block;
}

.founder-code .terminal-line {
    color: #4ec9b0;
    font-size: 12px;
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

.founder-code .terminal-line .prompt {
    color: #FF4308;
    font-weight: bold;
}

.founder-code .terminal-line .success {
    color: #4ec9b0;
}

.founder-code .terminal-line .warning {
    color: #ffbd2e;
}

.founder-code .terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #FF4308;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

/* UI Preview Section */
.ui-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 10;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border-radius: 0;
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ui-preview.show {
    opacity: 1;
    pointer-events: auto;
}

/* Hide code content when UI preview is shown */
.founder-code.hide-code .code-header,
.founder-code.hide-code .code-content,
.founder-code.hide-code .terminal-output {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Mission Statement */
.mission-statement {
    text-align: center;
    margin-bottom: 25px;
    animation: missionFadeIn 1s ease forwards;
    opacity: 0;
}

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

.mission-label {
    font-size: 11px;
    font-weight: 700;
    color: #FF4308;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.mission-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #FF4308 50%, #FEFE1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-description {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    max-width: 700px;
    margin: 0 auto;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.value-card {
    background: linear-gradient(135deg, rgba(255, 67, 8, 0.08) 0%, rgba(255, 67, 8, 0.02) 100%);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 67, 8, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: valueCardFadeIn 0.8s ease forwards;
    opacity: 0;
}

.value-card:nth-child(1) { animation-delay: 0.2s; }
.value-card:nth-child(2) { animation-delay: 0.4s; }
.value-card:nth-child(3) { animation-delay: 0.6s; }
.value-card:nth-child(4) { animation-delay: 0.8s; }

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

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF4308 0%, #FB8500 50%, #FEFE1F 100%);
}

.value-card:hover {
    transform: translateX(8px);
    border-color: rgba(255, 67, 8, 0.4);
    box-shadow: 0 10px 40px rgba(255, 67, 8, 0.15);
}

.value-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.value-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.value-description {
    font-size: 13px;
    line-height: 1.5;
    color: #999;
}

/* Achievement Marquee */
.achievement-marquee {
    background: rgba(255, 67, 8, 0.05);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 67, 8, 0.15);
    animation: marqueeAppear 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes marqueeAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.achievement-items {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.achievement-item {
    text-align: center;
}

.achievement-number {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF4308 0%, #FB8500 50%, #FEFE1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3px;
}

.achievement-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 2px solid #FF4308;
    white-space: nowrap;
    animation: typing 3s steps(40) 1s forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    50% { border-color: transparent; }
}

/* Responsive */
@media (max-width: 991px) {
    .founder-section-area {
        min-height: auto;
        max-height: none;
        padding: 40px 0;
        overflow: visible;
    }

    .founder-card-container {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .founder-header h2 {
        font-size: 36px;
    }

    /* MOBIL: Profil kartını gizle */
    .founder-profile {
        display: none;
    }

    /* MOBIL: Kod editör full width - compact */
    .founder-code {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 20px;
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    .founder-code .code-content {
        font-size: 13px;
        min-height: auto;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 8px;
    }

    /* Scrollbar styling for mobile code editor */
    .founder-code .code-content::-webkit-scrollbar {
        width: 4px;
    }

    .founder-code .code-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
    }

    .founder-code .code-content::-webkit-scrollbar-thumb {
        background: #FF4308;
        border-radius: 2px;
    }

    /* MOBIL: Terminal output gizle */
    .founder-code .terminal-output {
        display: none !important;
    }

    /* ===== MOBIL: PROFIL KARTI ===== */
    .mobile-profile-card {
        margin: 30px 15px 0;
        padding: 30px 20px;
        background: linear-gradient(135deg, rgba(255, 67, 8, 0.08) 0%, rgba(255, 67, 8, 0.02) 100%);
        border-radius: 16px;
        border: 1px solid rgba(255, 67, 8, 0.2);
        text-align: center;
        animation: fadeInUp 0.8s ease;
        opacity: 1;
        visibility: visible;
        position: relative;
        z-index: 10;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

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

    .mobile-profile-image {
        margin-bottom: 20px;
    }

    .mobile-profile-image img {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        border: 4px solid #FF4308;
        box-shadow: 0 0 25px rgba(255, 67, 8, 0.4);
    }

    .mobile-profile-name {
        font-size: 24px;
        font-weight: 900;
        color: #ffffff;
        margin-bottom: 5px;
    }

    .mobile-profile-role {
        font-size: 14px;
        color: #FF4308;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .mobile-profile-stats {
        margin-bottom: 20px;
    }

    .mobile-profile-stats div {
        padding: 12px 15px;
        margin-bottom: 10px;
        background: rgba(255, 67, 8, 0.1);
        border-radius: 10px;
        border-left: 4px solid #FF4308;
        color: #cccccc;
        font-size: 14px;
        font-weight: 500;
    }

    .mobile-profile-social {
        display: flex;
        gap: 12px;
        justify-content: center;
        margin-bottom: 25px;
    }

    .mobile-profile-social a {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255, 67, 8, 0.1);
        border: 1px solid rgba(255, 67, 8, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FF4308;
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .mobile-profile-social a:hover {
        background: #FF4308;
        color: #ffffff;
        transform: scale(1.15);
    }

    /* Mobil: Mesaj Butonu */
    .mobile-show-message-btn {
        width: 100%;
        padding: 16px 24px;
        background: linear-gradient(135deg, #FF4308 0%, #FB8500 100%);
        border: none;
        border-radius: 12px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255, 67, 8, 0.3);
    }

    .mobile-show-message-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 67, 8, 0.5);
    }

    .mobile-show-message-btn:active {
        transform: translateY(0);
    }

    /* ===== MOBIL: MISSION KARTI ===== */
    .mobile-mission-card {
        margin: 30px 15px;
        padding: 30px 20px;
        background: linear-gradient(135deg, rgba(255, 67, 8, 0.08) 0%, rgba(255, 67, 8, 0.02) 100%);
        border-radius: 16px;
        border: 1px solid rgba(255, 67, 8, 0.2);
        animation: fadeInUp 0.8s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .mobile-mission-label {
        font-size: 12px;
        font-weight: 700;
        color: #FF4308;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 10px;
        text-align: center;
    }

    .mobile-mission-title {
        font-size: 22px;
        font-weight: 900;
        color: #ffffff;
        margin-bottom: 15px;
        text-align: center;
        line-height: 1.3;
    }

    .mobile-mission-desc {
        font-size: 14px;
        color: #999;
        line-height: 1.6;
        margin-bottom: 25px;
        text-align: center;
    }

    .mobile-values {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-value-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        background: rgba(255, 67, 8, 0.08);
        border-radius: 10px;
        border-left: 4px solid #FF4308;
    }

    .mobile-value-icon {
        font-size: 24px;
        flex-shrink: 0;
    }

    .mobile-value-text {
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
    }
}

@media (max-width: 767px) {
    .founder-section-area {
        padding: 40px 0;
        overflow: visible;
    }

    .founder-header h2 {
        font-size: 26px;
    }

    .founder-code {
        padding: 15px;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .founder-code .code-content {
        font-size: 12px;
        max-height: 200px;
    }

    .founder-code .code-header {
        margin-bottom: 12px;
    }

    .mobile-profile-card,
    .mobile-mission-card {
        margin-left: 10px;
        margin-right: 10px;
        padding: 25px 15px;
    }

    .mobile-profile-image img {
        width: 110px !important;
        height: 110px !important;
    }

    .mobile-mission-title {
        font-size: 20px !important;
    }
}
