/* Basic Reset and Font Import */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;400;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 85px;
    /* Reduced space from 100px */
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.7;
}

/* Main Header Styling */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 40px;
    /* Reduced from 15px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.main-header.scrolled {
    padding: 10px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #343a40;
}

.header-logo {
    width: 50px;
    height: auto;
    transition: width 0.3s ease;
}

.main-header.scrolled .header-logo {
    width: 40px;
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

.header-title-group h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.header-title-group span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #343a40;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4c4c40;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #17a2b8;
}

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

.nav-cta {
    background-color: #4c4c40;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: #406e3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 76, 64, 0.2);
}

.nav-cta::after {
    display: none;
}

/* Mobile Menu Trigger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #343a40;
    transition: all 0.3s ease-in-out;
}

/* Mobile Active State */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

/* Hero Section */
#hero {
    margin-top: 0;
    /* Removed extra space (was 20px) */
    height: 60vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero_denim.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    border-radius: 0;
    /* Hero usually is full width */
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background-color: #4c4c40;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
}

.cta-button:hover {
    background-color: #406e3a;
    transform: translateY(-3px);
}

/* Main Content */
main {
    padding: 40px 20px;
    padding-top: 60px;
    /* Extra breathing room from the header */
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

section {
    background-color: #ffffff;
    margin-bottom: 40px;
    padding: 60px 40px;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 120px;
    /* Added for sticky header */
}

section h2 {
    font-family: 'Playfair Display', serif;
    color: #343a40;
    border-bottom: 3px solid #4c4c40;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-size: 2.5em;
    text-align: center;
}

/* Services Section Styling */
#hizmetler ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

#hizmetler li {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#hizmetler li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#hizmetler li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#hizmetler li h3 {
    font-family: 'Playfair Display', serif;
    color: #343a40;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
}

/* About Me Page Styling */
#hakkimda {
    padding-top: 30px;
    /* Reduced padding */
}

#hakkimda h2 {
    margin-top: 0;
}

#about-me-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

#about-me-content img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#about-me-text {
    flex: 1;
}


/* Contact Section */

/* Map Container */
#map-container {
    width: 100%;
    height: 400px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

#map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#iletisim p {
    text-align: center;
    font-size: 1.1em;
}

#iletisim a {
    color: #17a2b8;
    text-decoration: none;
    font-weight: bold;
}

#iletisim a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: #212529;
    color: #f8f9fa;
    margin-top: 40px;
}

/* Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Add staggered delay for list items */
#hizmetler li.scroll-animate:nth-child(1) {
    transition-delay: 0.1s;
}

#hizmetler li.scroll-animate:nth-child(2) {
    transition-delay: 0.2s;
}

#hizmetler li.scroll-animate:nth-child(3) {
    transition-delay: 0.3s;
}

#hizmetler li.scroll-animate:nth-child(4) {
    transition-delay: 0.4s;
}

#hizmetler li.scroll-animate:nth-child(5) {
    transition-delay: 0.5s;
}


/* Responsive Design */
@media (max-width: 992px) {
    #about-me-content {
        flex-direction: column;
        align-items: center;
    }

    #about-me-content img {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar {
        background-color: #343a40;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        /* Start off-screen to the right */
        top: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        padding-top: 0;
        gap: 30px;
        z-index: 1000;
        left: auto;
        /* Ensure left doesn't interfere */
    }

    .nav-menu.active {
        right: 0;
        /* Slide in to the screen */
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-link {
        font-size: 1.5em;
        /* Larger for mobile tap targets */
        color: #343a40;
    }

    /* Close Button for Mobile Menu */
    .nav-close-item {
        display: flex;
        /* Visible in mobile menu */
        width: 100%;
        justify-content: flex-end;
        padding-right: 20px;
        margin-bottom: 20px;
    }

    .nav-close-btn {
        background: none;
        border: none;
        font-size: 3rem;
        cursor: pointer;
        color: #343a40;
        transition: color 0.3s;
        line-height: 1;
        padding: 0 10px;
        transform: translateY(-4px);
        /* Position X 4px higher */
    }

    .nav-close-btn:hover {
        color: #d9534f;
        /* Red hover color for exit */
    }
}

/* Hide on desktop */
@media (min-width: 993px) {
    .nav-close-item {
        display: none;
    }
}


@media (max-width: 992px) {
    .main-header {
        padding: 15px 20px;
    }

    .header-title-group h1 {
        font-size: 1.2em;
    }

    .header-title-group span {
        font-size: 0.6em;
    }

    section {
        padding: 40px 25px;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }
}

/* =========================================
   Font Style Directions
   ========================================= */

/* 1. The "Savile Row" Classic (Traditional & Bespoke) */
/* Applied to Header and Hero Section */
header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1px;
    color: #343a40;
    /* Dark text for header */
}

#hero h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1px;
    color: #ffffff;
    /* White text for denim background */
}

#hero p {
    font-family: 'Playfair Display', serif;
    /* Consistent serif for the hero statement */
    font-style: italic;
    font-weight: 400;
}


/* 2. The Modern Artisan (Clean & Minimalist) */
/* Applied to Services Section */
#hizmetler {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfcfc;
    /* A slightly cleaner white/grey */
}

#hizmetler h2 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    border-bottom-color: #333;
    /* Minimalist dark line */
    font-size: 2em;
}

#hizmetler h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2em;
}

#hizmetler p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
}


/* 3. The "Hand-Stitched" Look (Personal & Boutique) */
/* Applied to About Summary, Full About Page, and Contact */
#hakkimizda-ozet h2,
#iletisim h2,
#hakkimda h2,
#about-me-text h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em;
    /* Script fonts need to be larger */
    border-bottom: none;
    /* Initial/Signature style usually doesn't have a hard line */
    text-transform: none;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Remove default border and adjust */
#hakkimizda-ozet h2,
#iletisim h2 {
    border-bottom: none;
    padding-bottom: 0;
}

/* Add a stitch effect border to the Hand-Stitched sections */
#hakkimizda-ozet,
#iletisim {
    border: 2px dashed #bcaaa4;
    /* Muted rose/bronze stitch color */
    padding: 60px 40px;
    background-color: #fffaf0;
    /* Warm paper-like background */
    margin-bottom: 40px;
    border-radius: 4px;
    /* Slightly rounded */
}

/* Specific adjustment for readability in about text */
#about-me-text p {
    font-family: 'Playfair Display', serif;
    /* Keep the story readable but classic */
    font-size: 1.15em;
    color: #4a4a4a;
}

/* =========================================
   WhatsApp Widget
   ========================================= */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 10000;
    transition: transform 0.3s ease;
    /* Removed background-color, border-radius, box-shadow to let the png shine */
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    /* Removed box-shadow hover effect as it might look weird on a potentially non-round png container */
}

.whatsapp-widget img {
    width: 100%;
    height: 100%;
    /* Ensure no extra space below inline image */
    display: block;
}

/* =========================================
   Blog Section Styling
   ========================================= */

/* Blog Listing */
#blog-listing {
    background-color: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    margin-top: 0;
    color: #343a40;
}

.blog-card-content p {
    font-size: 0.95em;
    color: #6c757d;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #17a2b8;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Card Link - Make entire card clickable */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-link:hover .read-more {
    text-decoration: underline;
}


/* Blog Single Post */
.blog-post {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.blog-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.blog-header .meta {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

.blog-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    margin-top: 30px;
    color: #4c4c40;
}

.blog-content p,
.blog-content ul {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

.blog-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

/* Blog CTA */
.blog-cta {
    margin-top: 50px;
    background-color: #f1f3f5;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.blog-cta p {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Blog Featured Image */
.blog-featured-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .blog-featured-image {
        max-height: 220px;
        margin: 15px 0;
    }
}