/* ===== CUSTOM STYLES - habilcakir.com.tr ===== */

:root {
    --bg-primary: #0c0c0c;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Canvas Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s;
}

.nav.scrolled {
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #800020;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #9a0026;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(128, 0, 32, 0.3);
}

/* Service CTA Buttons */
.service-cta {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}

.service-cta-btn.primary {
    background: var(--accent);
    color: white;
}

.service-cta-btn.primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.service-cta-btn.whatsapp {
    background: #25D366;
    color: white;
}

.service-cta-btn.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

.service-cta-btn.details {
    background: #800020;
    color: white;
}

.service-cta-btn.details:hover {
    background: #a00028;
    transform: translateY(-1px);
}

.service-cta-btn i {
    font-size: 0.625rem;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 200;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn::before {
    content: 'WhatsApp ile ulaşın';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top-btn {
        right: 80px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }

    .whatsapp-btn::before {
        display: none;
    }
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Code Block */
.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-content {
    padding: 20px;
    line-height: 1.8;
}

/* Cookie Consent Banner */
#cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    transition: bottom 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#cookie-consent.visible {
    bottom: 0;
}

.cookie-content {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn.accept {
    background: #3b82f6;
    color: white;
    border: none;
}

.cookie-btn.accept:hover {
    background: #2563eb;
}

.cookie-btn.reject {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
}

.cookie-btn.reject:hover {
    color: white;
    border-color: #4b5563;
}

@media (max-width: 640px) {
    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

.code-keyword {
    color: #c678dd;
}

.code-string {
    color: #98c379;
}

.code-property {
    color: #e5c07b;
}

.code-value {
    color: #61afef;
}

.code-comment {
    color: #6a9955;
    font-style: italic;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 1001;
    /* Above navbar */
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--accent);
}

/* Social Sharing Buttons */
.social-share-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-btn.whatsapp-share:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.email:hover {
    background: #EA4335;
    border-color: #EA4335;
}

/* Section Styles */
section {
    padding: 120px 24px;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
}

/* Skill Progress - Animated */
.skill-track {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px var(--accent);
}

.skill-fill.animate {
    animation: skillGlow 2s ease-in-out infinite;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes skillGlow {

    0%,
    100% {
        box-shadow: 0 0 10px var(--accent);
    }

    50% {
        box-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent-light);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Cursor Animation */
.typing-cursor {
    color: var(--accent-light);
    animation: blink 0.8s infinite;
    font-weight: bold;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Form Inputs */
.input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input::placeholder {
    color: var(--text-muted);
}

/* Icon Box */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    color: var(--accent-light);
    font-size: 1.25rem;
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 200;
}

#mobile-menu.active {
    display: block;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.video-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.video-modal-close:hover {
    color: var(--text-primary);
}

.video-modal video {
    width: 100%;
    max-height: calc(80vh - 60px);
    display: block;
    object-fit: contain;
    background: #000;
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.play-overlay i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
    transition: transform 0.3s, opacity 0.3s;
}

.play-overlay:hover i {
    transform: scale(1.1);
    opacity: 1;
}