/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    a {
        text-decoration: none;
        color: var(--text-primary);
    }

    b {
        font-weight: 700;
        color: var(--text-primary);
    }
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    width: 160px;
    height: 100px;
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    top: 50%;
    right: 20%;
    animation-delay: -2s;
}

.card-3 {
    width: 140px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    bottom: 20%;
    left: 30%;
    animation-delay: -4s;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 100%;
    margin: 10 auto;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Work Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }
}

.project-preview {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.project-card:hover .project-preview {
    transform: scale(1.05);
}

/* Project Preview Styles */
.valholix-preview {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.8) 0%, rgba(79, 70, 229, 0.8) 100%);
}

.fuzlio-preview {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.kedittin-preview {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.cvborg-preview {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.pedalquest-preview {
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    position: relative;
}

.pedalquest-preview::before {
    content: '🚴‍♂️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.8;
}

.swippy-preview {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    position: relative;
}

.swippy-preview::before {
    content: '📱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.8;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.contact-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.contact-item>a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.linkedin-badge {
    margin-bottom: 1.5rem;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    position: relative;
    text-align: center !important;
}

.linkedin-badge .badge-base {
    margin: 0 auto !important;
    transform: translateX(0) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.linkedin-badge .LI-profile-badge {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.linkedin-container {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column;
    margin-top: 2rem;
    text-align: center !important;
}

.linkedin-badge {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.linkedin-badge .badge-base__link {
    color: var(--bg-secondary) !important;
    background-color: var(--bg-secondary) !important;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 120px;
    text-align: center;
}

.social-link span {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.social-preview {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link.behance:hover {
    border-left: 3px solid #1769ff;
}

.social-link.dribbble:hover {
    border-left: 3px solid #ea4c89;
}

.social-link.instagram:hover {
    border-left: 3px solid #e4405f;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-visual {
        height: 300px;
        order: -1;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .project-card {
        margin: 0 1rem;
    }
}

.contact-section {
    padding: 80px 16px;
}

.contact-section .container {
    max-width: 880px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 8px;
}

.contact-subtitle {
    color: #666;
    margin: 0 0 24px;
}

.contact-form {
    display: block;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

textarea {
    resize: vertical;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 16px;
    font-size: 14px;
}

.consent a {
    color: inherit;
    text-decoration: underline;
}

.btn-primary {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.form-status {
    margin: 8px 0 16px;
    min-height: 24px;
}

.form-status.ok {
    color: #0a7f3f;
}

.form-status.err {
    color: #b00020;
}

.hp-field {
    position: absolute;
    left: -10000px;
    opacity: 0;
}

/* ===== Contact form – drop-in styles ===== */
:root {
    --accent: #6f63ff;
    /* mor/accent rengin */
    --text: #121212;
    --muted: #666;
    --line: #e7e7ec;
    --radius: 14px;
}

section#contact {
    padding: 64px 16px;
}

/* Sadece Formspree kullanan formları hedefle */
section#contact form[action^="https://formspree.io/"] {
    width: min(720px, 92vw);
    margin: 16px auto 0 auto;
    display: grid;
    gap: 14px;
}

/* Label’ları erişilebilir tut, ama minimalist görünüm için gizle */
section#contact form[action^="https://formspree.io/"] label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Alanlar */
section#contact input[type="email"],
section#contact textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    box-sizing: border-box;
}

/* Placeholder tonu */
section#contact ::placeholder {
    color: #9aa0a6;
}

/* Focus durumu */
section#contact input[type="email"]:focus,
section#contact textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

/* Mesaj kutusu */
section#contact textarea {
    min-height: 140px;
    resize: vertical;
}

/* Button */
section#contact button[type="submit"] {
    justify-self: start;
    /* sola hizalı */
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: calc(var(--radius) + 2px);
    cursor: pointer;
    transition: transform .05s ease, filter .15s ease;
}

section#contact button[type="submit"]:hover {
    filter: brightness(1.05);
}

section#contact button[type="submit"]:active {
    transform: translateY(1px);
}

/* Küçük ekranlarda full-width buton istersen: */
@media (max-width: 480px) {
    section#contact button[type="submit"] {
        width: 100%;
        justify-self: stretch;
    }
}

/* Form durum mesajı (opsiyonel) */
#form-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 14px;
}

#form-status.ok {
    color: #0a7f3f;
}

#form-status.err {
    color: #b00020;
}

/* Bölüm başlıklarını biraz parlatalım (isteğe bağlı) */
section#contact h2 {
    text-align: center;
    color: color-mix(in oklab, var(--accent) 60%, #000 40%);
    margin-bottom: 8px;
}

section#contact p.contact-subtitle {
    text-align: center;
    color: var(--muted);
    margin: 0 0 24px;
}