/* ============================================
   NADIR MERMER - REFINED JAPANDI PORTFOLIO
   Design: Japanese Minimalism x Scandinavian Warmth
   ============================================ */

:root {
    /* Palette */
    --sage: #9CAF88;
    --sage-dark: #7A9568;
    --sage-light: #B8C9A9;
    --clay: #C4A484;
    --cream: #FAF7F2;
    --sand: #E8DFD3;
    --ink: #2C2C2C;
    --stone: #6B6B6B;

    /* Functional */
    --bg-body: var(--cream);
    --bg-card: #FFFFFF;
    --text-main: var(--ink);
    --text-muted: var(--stone);
    --border-light: rgba(44, 44, 44, 0.08);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TYPOGRAPHY - RESPONSIVE */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

/* UTILS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: clamp(2.5rem, 8vw, 6rem) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--sage-dark);
    color: white;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--sand);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-accent {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--sage-dark);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

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

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--sage-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-subtitle::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--sage-dark);
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin: 1rem 0 2rem;
    max-width: 550px;
}

.hero-image-wrapper {
    flex: 0 0 auto;
    position: relative;
}

.profile-image {
    width: clamp(240px, 30vw, 350px);
    height: clamp(240px, 30vw, 350px);
    object-fit: cover;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 10s ease-in-out infinite alternate;
    box-shadow: var(--shadow-lg);
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* STATS BAR */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-dark);
    display: block;
}

.stat-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 0.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

/* Vitrin (Showcase) Tasarımı */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
    position: relative;
}

.showcase-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.showcase-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-card:nth-child(even) {
    direction: rtl;
}

.showcase-card:nth-child(even) .showcase-content {
    direction: ltr;
    text-align: left;
}

.showcase-image-box {
    position: relative;
    background: var(--sand);
    border-radius: 2rem;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.showcase-card:hover .showcase-image-box {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.showcase-image-box img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--sage-light);
    color: var(--sage-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--ink);
}

.showcase-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    opacity: 0.9;
}

@media (max-width: 900px) {
    .showcase-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr !important;
    }
    .showcase-content {
        text-align: left !important;
    }
    .showcase-title {
        font-size: 2rem;
    }
}

/* Mevcut bento grid stilleri korundu */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.bento-card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    padding: 10px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-type {
    font-size: 0.7rem;
    color: var(--sage-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    display: block;
}

.card-title {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.span-2 {
    grid-column: span 2;
}

@media (max-width: 850px) {
    .span-2 {
        grid-column: span 1;
    }
}

.tech-stack {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tech-pill {
    padding: 0.25rem 0.6rem;
    background: var(--cream);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--stone);
}

.card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sage-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.card-link:hover {
    gap: 0.6rem;
}

/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1.25rem;
    border: 1px solid var(--border-light);
    align-items: center;
    transition: 0.3s;
}

.timeline-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-size: 1.1rem;
}

.timeline-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sage-dark);
}

@media (max-width: 600px) {
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
}

/* CONTACT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    background: white;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.contact-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon-box {
    width: 42px;
    height: 42px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-dark);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* FORM */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--stone);
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    background: var(--cream);
    color: var(--ink);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage);
    background: white;
}

/* SOCIALS */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: 0.3s;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: var(--sage);
    color: var(--sage-dark);
}

.social-link svg {
    width: 18px;
    height: 18px;
}