/* ==================== Color Palette ==================== */
:root {
    --bg-light: #FFFFFF;
    --bg-gray: #D1D1D1;
    --primary-pink: #E92F88;
    --accent-purple: #3B2B45;
    --accent-cyan: #70DFD6;
    --surface-dark: #34253E;
    --surface-light: #FFA1EA;
    --text-dark: #000000;
    --text-light: #FFFFFF;
}

/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
  font-family: "MyFont";
  src: url("./fonts/Kamerik_205_Book.ttf") format("truetype");
}

body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ==================== Quick Contact Header ==================== */
.quick-contact-header {
    background-color: var(--bg-gray);
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
}

.quick-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-pink);
}

.contact-icon {
    font-size: 16px;
}

.contact-icon.instagram-icon svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    color: currentColor;
}

/* ==================== Navigation Bar ==================== */
.navbar {
    background-color: var(--bg-light);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title-1 {
    font-size: 12px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    font-family: "MyFont", sans-serif;
}

.brand-title-2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    font-family: "MyFont", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.brand-title-3 {
    font-size: 12px;
    color: var(--text-dark);
    opacity: 0.8;
    font-family: "MyFont", sans-serif;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    font-family: "MyFont", sans-serif;
}

.nav-link:hover {
    color: var(--primary-pink);
}

.nav-link h4 {
    font-size: 16px;
    transition: font-size 0.3s ease;
    margin: 0;
}

.nav-link:hover h4 {
    font-size: 17.6px; /* 10% increase on hover */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-pink);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--accent-purple) 100%);
    color: var(--text-light);
    padding: 120px 30px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== Sections ==================== */
.section {
    padding: 80px 30px;
    background-color: var(--bg-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
    text-align: center;
}

.section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-pink);
}

/* ==================== Biography Section ==================== */
.biography-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "photo about"
        "education expertise";
    gap: 30px 40px;
    align-items: start;
}

.biography-image {
    grid-area: photo;
    align-self: start;
}

.biography-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(233, 47, 136, 0.12);
    display: block;
}

.about-section {
    grid-area: about;
}

.education-section {
    grid-area: education;
}

.expertise-section {
    grid-area: expertise;
}

.about-section {
    grid-area: about;
}

.about-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-pink);
}

.about-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.about-section li {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.education-section {
    grid-area: education;
}

/* Biography section title and subtitle styling */
.biography h2 {
    text-align: left;
    font-size: 32px;
    margin-bottom: 0.25rem;
}

.biography > .subtitle {
    text-align: left;
    color: var(--primary-pink);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Make expertise and education lists match the 'Hakkında' paragraph styling */
.education-section .education-list {
    margin-left: 1.25rem; /* keep simple indentation */
    padding-left: 0;
    list-style-type: none;
}

.expertise-section .expertise-list li,
.education-section .education-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
}

/* Year badge styling for education list */
.edu-year {
    display: inline-block;
    background: rgba(233, 47, 136, 0.08); /* subtle pink tint */
    color: var(--primary-pink);
    padding: 3px 3px;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 8px;

    text-align: center;
    font-size: 12px;
}

/* timeline style */
.education-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-timeline li {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    align-items: flex-start;
    border-left: 3px solid transparent;
}

.edu-year {
    min-width: 100px;
    font-weight: 700;
    color: var(--primary-pink);
}

.edu-desc {
    color: #444;
}

.expertise-section {
    grid-area: expertise;
}

.expertise-list {
    list-style:disc;
    padding-left: 0;
    margin: 0;
}

.expertise-list li {
    padding: 4px 0;
    color: #555;
}

/* ==================== Slogan Section ==================== */
.slogan-section {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-pink) 100%);
    color: var(--text-light);
    padding: 80px 30px;
    text-align: center;
}

.slogan-content h2 {
    font-size: 42px;
    margin: 0;
    font-weight: 300;
}

/* ==================== Clinic Section ==================== */
.clinic {
    background-color: #f9f9f9;
}


.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

/* Layout the carousel as a horizontal strip of items. We'll center the chosen item using JS. */
.carousel {
    display: flex;
    align-items: center;
    gap: 20px; /* space between items */
    transition: transform 0.6s cubic-bezier(.22,.9,.36,1);
    will-change: transform;
    padding: 30px 40px;
}

.carousel-item {
    flex: 0 0 280px; /* base width for items */
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
    transform-origin: center center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    opacity: 0.9;
}

.carousel-item:not(.active) {
    transform: scale(0.88);
    opacity: 0.8;
    filter: saturate(0.92) contrast(0.98);
}

.carousel-item.active {
    transform: scale(1.12);
    z-index: 3;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-pink);
}

/* ==================== Tests Section ==================== */
.tests {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--accent-purple) 100%);
}

.test-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.test-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.test-content h2 {
    font-size: 36px;
    color: var(--text-light);
    margin: 0 0 30px 0;
    text-align: left;
    line-height: 1.3;
}

.test-link {
    display: inline-block;
    background-color: var(--primary-pink);
    color: var(--text-light);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.test-link:hover {
    background-color: #c81f6e;
    transform: translateX(5px);
}

/* ==================== Contact Section ==================== */
.contact {
    background-color: #f9f9f9;
}

.contact h2 {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 20px;
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 0;
}

.contact-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #c81f6e;
    text-decoration: underline;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--accent-purple) 100%);
    color: var(--text-light);
    padding: 24px;
    border-radius: 10px;
    text-align: center;
}

.map-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 18px;
}

/* Leaflet map styling */
#leaflet-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    #leaflet-map { height: 300px; }
}

@media (max-width: 480px) {
    #leaflet-map { height: 220px; }
}

/* ==================== FAQ Section ==================== */
.faq {
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #eee;
}

.faq-question.active {
    background-color: var(--primary-pink);
    color: var(--text-light);
}

.faq-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-answer.show {
    max-height: 500px;
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--accent-purple);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 30px;
        border-bottom: 1px solid #eee;
    }

    .brand-text {
        display: none;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section {
        padding: 50px 20px;
    }

    .section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .biography-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .test-card {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .slogan-content h2 {
        font-size: 28px;
    }

    .quick-contact-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        font-size: 12px;
    }

    .carousel-item {
        height: 300px;
    }

    /* Make items narrower on tablet so multiple can show */
    .carousel {
        padding: 20px 12px;
        gap: 12px;
    }

    .carousel-item {
        flex: 0 0 220px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 10px 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section h2 {
        font-size: 22px;
    }

    .biography-content h2 {
        font-size: 24px;
    }

    .test-content h2 {
        font-size: 24px;
    }

    .carousel-item {
        height: 200px;
    }

    .carousel {
        padding: 12px 8px;
        gap: 8px;
    }

    .carousel-item {
        flex: 0 0 160px;
        height: 160px;
        transform-origin: center center;
    }

    .faq-question {
        font-size: 14px;
    }
}
