/* ============================================
   MINIMALIST DESIGN - ÇAĞRI DURSUN
   ============================================ */

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-link: #0066cc;
    --border-color: #e5e5e5;
    --bg-primary: #f8f9fa;
    --bg-secondary: #f9f9f9;
    --accent-color: #0066cc;
    --status-bg: #e8f5e9;
    --status-color: #2e7d32;
    --max-width: 720px;
}

[data-theme="dark"] {
    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --text-link: #4d9fff;
    --border-color: #333333;
    --bg-primary: #212529;
    --bg-secondary: #1e1e1e;
    --accent-color: #4d9fff;
    --status-bg: #1e3a1e;
    --status-color: #81c784;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-link {
    text-decoration: none;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    border-color: var(--text-link);
    color: var(--text-link);
    transform: rotate(20deg);
}

.dark-mode-toggle:focus {
    outline: 2px solid var(--text-link);
    outline-offset: 2px;
}

.dark-mode-toggle .sun-icon {
    display: none;
}

.dark-mode-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero .container {
    width: 100%;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--status-bg);
    color: var(--status-color);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    color: var(--text-link);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.intro p {
    margin-bottom: 1.25rem;
}

.intro strong {
    color: var(--text-primary);
    font-weight: 600;
}

.intro a {
    color: var(--text-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.intro a:hover {
    border-bottom-color: var(--text-link);
}

/* Scroll Down Button */
.scroll-down {
    margin: 3rem auto 0;
    background: none;
    border: 2px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    border-color: var(--text-link);
    color: var(--text-link);
    transform: translateY(-4px);
}

.scroll-down:focus {
    outline: 2px solid var(--text-link);
    outline-offset: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content p {
    margin-bottom: 1.25rem;
}

.content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content a {
    color: var(--text-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content a:hover {
    border-bottom-color: var(--text-link);
}

/* ============================================
   STATS
   ============================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   STACK GRID
   ============================================ */

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.stack-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stack-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
}

.timeline-year {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 0.25rem;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-content p:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   COMMUNITY LIST
   ============================================ */

.community-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.community-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.community-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.community-item h3 a:hover {
    color: var(--text-link);
}

/* ============================================
   PODCASTS SECTION
   ============================================ */

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.podcast-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.podcast-item:hover {
    border-color: var(--text-link);
    transform: translateX(4px);
}

.podcast-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.podcast-thumbnail {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.podcast-content {
    flex: 1;
}

.podcast-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
    transition: color 0.2s ease;
    line-height: 1.4;
}

.podcast-item:hover .podcast-title {
    color: var(--text-link);
}

.podcast-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    min-width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.podcast-item:hover .podcast-arrow {
    color: var(--text-link);
    transform: translateX(4px);
}

.community-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   VIDEO CAROUSEL
   ============================================ */

.video-carousel-wrapper {
    position: relative;
    width: 75vw; /* 75% of viewport width, not container */
    max-width: 1400px; /* Maximum width for very large screens */
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.video-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    min-height: 400px;
}

.video-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.video-carousel-page {
    min-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    flex-shrink: 0;
}

.video-carousel-item {
    /* Grid will handle sizing automatically with 2x2 layout */
    display: block;
}

.video-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    width: 100%;
    padding: 0;
    cursor: pointer;
}

.video-thumbnail:hover {
    border-color: var(--text-link);
    transform: translateY(-2px);
}

.video-thumbnail:focus {
    outline: 2px solid var(--text-link);
    outline-offset: 2px;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-secondary);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    transition: all 0.2s ease;
    padding-left: 6px; /* Optical centering for play icon */
}

.video-thumbnail:hover .play-icon {
    background: var(--text-link);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover {
    border-color: var(--text-link);
    color: var(--text-link);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: none;
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--text-secondary);
}

.carousel-dot.active {
    background: var(--text-link);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   VIDEO MODAL
   ============================================ */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: block;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.video-modal-close:hover {
    opacity: 0.7;
}

.video-modal-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Video error fallback */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-error-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.video-error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-error-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.video-error-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--text-link);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.video-error-button:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   CONTACT LINKS
   ============================================ */

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1.5rem;
}

.contact-links a {
    color: var(--text-link);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.contact-links a:hover {
    opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header {
        padding: 1.5rem 0;
    }

    .nav {
        display: none;
    }

    .logo {
        height: 48px;
    }

    .name {
        font-size: 2rem;
    }

    .hero {
        min-height: 100vh;
        padding: 3rem 0 2rem;
    }
    
    .scroll-down {
        width: 40px;
        height: 40px;
        margin-top: 2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .stack-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-carousel-wrapper {
        width: 85vw;
        gap: 1rem;
    }

    .video-carousel-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        padding-left: 4px;
    }
    
    .podcast-link {
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .podcast-thumbnail {
        width: 100px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header .container {
        gap: 1rem;
    }
    
    .dark-mode-toggle {
        width: 36px;
        height: 36px;
    }

    .name {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .timeline-year {
        font-size: 0.8rem;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
        font-size: 32px;
    }

    .video-carousel-wrapper {
        width: 95vw;
        gap: 0.5rem;
    }

    .video-carousel-page {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .podcast-link {
        gap: 0.75rem;
        padding: 0.625rem;
    }
    
    .podcast-thumbnail {
        width: 80px;
        height: 45px;
    }
    
    .podcast-title {
        font-size: 0.9rem;
    }
    
    .podcast-arrow {
        font-size: 1.25rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    a, .nav-link {
        transition: all 0.2s ease;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header {
        position: static;
        border-bottom: 1px solid #000;
    }

    .nav {
        display: none;
    }

    .social-links,
    .contact-links {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background: rgba(0, 102, 204, 0.1);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 102, 204, 0.1);
    color: var(--text-primary);
}
