/* ==========================================================================
   umitkaracivi.com — Design System (Dark Mode)
   DEC0002: Renk paleti, font, bilesenler
   ========================================================================== */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Backgrounds */
    --bg-primary: #0d0d0d;
    --bg-secondary: #141428;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1e1e3a;

    /* Text */
    --text-primary: #e8e8e8;
    --text-secondary: #8b8b9e;
    --text-heading: #ffffff;

    /* Accents */
    --accent-primary: #1abc9c;
    --accent-secondary: #3498db;
    --accent-warning: #f39c12;

    /* Borders */
    --border-color: #2a2a3e;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #1abc9c 0%, #3498db 100%);

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 30px rgba(26, 188, 156, 0.15);

    /* Navbar / Footer */
    --navbar-bg: rgba(10, 10, 26, 0.95);
    --footer-bg: #0a0a1a;

    /* Spacing */
    --section-padding: 4rem 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* ===== Base Reset ===== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Varela Round', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.text-muted-custom {
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Navbar ===== */
.navbar-dark-custom {
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: background-color var(--transition-normal);
}

.navbar-dark-custom .navbar-brand {
    color: var(--text-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.navbar-dark-custom .navbar-brand span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-dark-custom .nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.7rem;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-dark-custom .nav-link:hover {
    color: var(--text-heading);
}

.navbar-dark-custom .nav-link.active {
    color: var(--accent-primary);
}

.navbar-dark-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.7rem;
    right: 0.7rem;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
}

.navbar-dark-custom .navbar-toggler {
    border-color: var(--border-color);
    padding: 0.4rem 0.6rem;
}

.navbar-dark-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Language Switcher ===== */
.lang-switcher .btn {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background: transparent;
}

.lang-switcher .btn:hover {
    color: var(--text-heading);
    border-color: var(--accent-primary);
}

.lang-switcher .btn.active {
    color: var(--bg-primary);
    background: var(--gradient-accent);
    border-color: transparent;
}

/* ===== Footer ===== */
.footer-dark {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1rem 0;
    font-size: 0.85rem;
    margin-top: 4rem;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent-primary);
}

.footer-dark a {
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

.footer-dark a:hover {
    color: var(--accent-secondary);
}

/* ==========================================================================
   PAGE SECTIONS
   ========================================================================== */

.page-section {
    padding: var(--section-padding);
}

/* ===== Section Title ===== */
.page-title {
    color: var(--text-heading);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.page-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   HOME BACKGROUND
   ========================================================================== */

body:has(.home-bg) {
    display: flex;
    flex-direction: column;
}

body:has(.home-bg) > header,
body:has(.home-bg) > footer {
    flex-shrink: 0;
}

body:has(.home-bg) > main {
    flex: 1;
    min-height: 0;
}

.home-bg {
    background: linear-gradient(rgba(13, 13, 13, 0.65), rgba(13, 13, 13, 0.8)),
                url('/images/header-background.jpg') center/100% 100% no-repeat;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    body:has(.home-bg) {
        height: 100vh;
        overflow: hidden;
    }

    .home-bg {
        overflow: hidden;
    }
}

.home-bg + .footer-dark {
    margin-top: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    padding: 1rem 0 1rem;
    text-align: center;
    position: relative;
}

.hero-section .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero-section .hero-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===== Quote Section ===== */
.quote-section {
    padding: 1rem 0 0;
    text-align: center;
}

.quote-image-frame {
    display: inline-block;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3px;
    max-width: 160px;
    width: 100%;
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.quote-image-frame:hover {
    border-color: var(--accent-primary);
}

.quote-image-frame img {
    width: 100%;
    border-radius: calc(var(--radius-lg) - 4px);
    display: block;
}

.quote-text {
    max-width: 580px;
    margin: 0.5rem auto 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.4;
}

.quote-text strong {
    color: var(--text-primary);
    font-style: normal;
}

@media (min-width: 768px) {
    .hero-section .hero-title { font-size: 3.5rem; }
    .hero-section { padding: 3rem 0 1.5rem; }
}

@media (min-width: 992px) {
    .hero-section .hero-title { font-size: 4rem; }
}

/* ==========================================================================
   CARD DARK
   ========================================================================== */

.card-dark {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.card-dark:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(26, 188, 156, 0.3);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card-dark .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-dark .card-title {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-dark .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Portfolio Card ===== */
.card-portfolio {
    padding: 0;
    overflow: hidden;
}

.card-portfolio .card-portfolio-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.card-portfolio .badge-accent,
.card-portfolio .badge-blue,
.card-portfolio .card-title,
.card-portfolio .card-text {
    padding-left: 1rem;
    padding-right: 1rem;
}

.card-portfolio .card-title {
    font-size: 0.95rem;
}

.card-portfolio .card-text {
    font-size: 0.78rem;
    line-height: 1.4;
    padding-bottom: 0.75rem;
    margin-bottom: 0;
}

.card-portfolio .d-flex {
    padding-top: 0.5rem;
}

.card-portfolio .card-title {
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   TIMELINE (Egitim & Kariyer)
   ========================================================================== */

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    padding: 0 0 2.5rem 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-primary);
    z-index: 1;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding: 0 2.5rem 2.5rem 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding: 0 0 2.5rem 2.5rem;
    }

    .timeline-item::before {
        left: auto;
        right: -6px;
    }

    .timeline-item:nth-child(even)::before {
        left: -6px;
        right: auto;
    }
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: border-color var(--transition-fast);
}

.timeline-content:hover {
    border-color: rgba(26, 188, 156, 0.3);
}

.timeline-date {
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.timeline-title {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style:italic;
    text-decoration:underline;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   SKILL BAR (Uzmanlıklar)
   ========================================================================== */

.skill-group {
    margin-bottom: 1rem;
}

.skill-group-title {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.skill-item {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.skill-item .skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.skill-item .skill-name span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.skill-item .skill-name span:last-child {
    color: var(--accent-primary);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 1s ease-out;
    width: 0;
}

.skill-bar-fill.animate {
    /* width is set via inline style */
}

/* ==========================================================================
   BADGE / TAG
   ========================================================================== */

.badge-accent {
    background: rgba(26, 188, 156, 0.15);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(26, 188, 156, 0.2);
}

.badge-blue {
    background: rgba(52, 152, 219, 0.15);
    color: var(--accent-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-accent {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
    color: var(--bg-primary);
}

.btn-outline-accent {
    background: transparent;
    color: var(--accent-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.btn-outline-accent:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ==========================================================================
   FORMS (Iletisim)
   ========================================================================== */

.form-control-dark {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.form-control-dark:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.15rem rgba(26, 188, 156, 0.15);
}

.form-control-dark::placeholder {
    color: var(--text-secondary);
}

.form-label-dark {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ==========================================================================
   FOCUS STATES (Accessibility)
   ========================================================================== */

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--bg-primary), 0 0 0 0.25rem var(--accent-secondary);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-accent {
    border-color: var(--accent-primary) !important;
}

.bg-dark-card {
    background-color: var(--bg-card);
}

.bg-dark-secondary {
    background-color: var(--bg-secondary);
}

/* ===== Page Fit (no-scroll pages) ===== */
body:has(.page-fit) {
    display: flex;
    flex-direction: column;
}

body:has(.page-fit) > header,
body:has(.page-fit) > footer {
    flex-shrink: 0;
}

body:has(.page-fit) > div.container {
    flex: 1;
    min-height: 0;
}

.page-fit {
    padding: 1rem 0 0.5rem;
}

@media (min-width: 992px) {
    body:has(.page-fit) {
        height: 100vh;
        overflow: hidden;
    }
}

/* ===== Goal Items ===== */
.goal-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
    transition: border-color var(--transition-fast);
}

.goal-item:hover {
    border-color: var(--accent-primary);
}

.goal-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ===== About Photo ===== */
.about-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: border-color var(--transition-normal);
    flex-shrink: 0;
}

.about-photo:hover {
    border-color: var(--accent-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Mobile: < 576px */
@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-section {
        padding: 2.5rem 0;
    }

    .card-dark {
        padding: 1.25rem;
    }

    .hero-section .hero-title {
        font-size: 2rem;
    }

    .hero-section .hero-subtitle {
        font-size: 1rem;
    }
}

/* Tablet: 576px - 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section .hero-title {
        font-size: 2.5rem;
    }
}

/* Desktop large: >= 1200px */
@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
