/* General Body and Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* Header and Navigation */
header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

header.scrolled {
    background: #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo span {
    margin-left: 0.5rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    color: #fca311;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Hero Section */
main {
    padding-top: 70px; /* Adjust based on header height */
}

.hero {
    position: relative;
    height: 90vh;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: #fca311;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e89204;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide p {
    font-style: italic;
    font-size: 1.2rem;
}

.testimonial-slide cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: #333;
    color: #fff;
}

/* Back to Top Button */
#back-to-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #fca311;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    display: none;
    z-index: 100;
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inner Page Specifics */
.page-header {
    background-image: url('https://images.pexels.com/photos/2098624/pexels-photo-2098624.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.page-content {
    padding: 4rem 0;
}

.about-us-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-us-text {
    flex: 1;
}

.about-us-image {
    flex: 1;
}

.about-us-image img {
    width: 100%;
    border-radius: 5px;
}

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 4rem 0;
    background: #e9e9e9;
    margin-top: 3rem;
    border-radius: 5px;
}

.stat h3 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: #fca311;
}

/* Services Page */
.intro-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: #333;
    margin-top: 0;
}

/* Projects Page */
.project-filter {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 1px solid #ccc;
    color: #333;
    padding: 0.6rem 1.2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-btn.active, .filter-btn:hover {
    background: #fca311;
    color: #fff;
    border-color: #fca311;
}

/* New Project List Styles */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
}

#no-projects-message {
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 8px;
    width: 100%;
}

#no-projects-message.hidden {
    display: none;
}

.project-entry {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-entry.hide {
    opacity: 0;
    transform: scale(0.95);
    display: none;
}

/* Alternating layout */
.project-entry:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image-container {
    flex: 1 1 50%;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-image-container:hover img {
    transform: scale(1.05);
}

.project-details {
    flex: 1 1 50%;
}

.project-details h3 {
    margin-top: 0;
    font-size: 1.8rem;
}

.project-category-tag {
    display: inline-block;
    background: #fca311;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Special full-width layout for before-after */
.project-entry[data-category="donusum"] .before-after-slider {
    flex: 1 1 60%;
    height: 400px;
}
.project-entry[data-category="donusum"] .full-width-details {
    flex: 1 1 40%;
}

/* Before/After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-after-slider::after,
.before-image-container::before {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 3;
}

.before-image-container::before {
    content: 'Önce';
    left: 10px;
}

.before-after-slider::after {
    content: 'Sonra';
    right: 10px;
}

.before-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.after-image, .before-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.after-image {
    z-index: 0;
}

.before-image-container img {
    width: auto;
    max-width: none;
    height: 100%;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    cursor: ew-resize;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-arrow {
    width: 0;
    height: 0;
    border-style: solid;
}

.left-arrow {
    border-width: 6px 10px 6px 0;
    border-color: transparent #fca311 transparent transparent;
    margin-right: 2px;
}

.right-arrow {
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fca311;
    margin-left: 2px;
}

/* Image Slider Modal */
.slider-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.slider-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slider-image {
    width: 100%;
    height: auto;
}

.close-slider {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-slider:hover,
.close-slider:focus {
    color: #fca311;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-details p {
    margin-bottom: 1rem;
}

.map-container {
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
}

#form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none; /* Hidden by default */
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 65px;
        left: 0;
        text-align: center;
        padding: 1rem 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-us-container {
        flex-direction: column;
    }

    .contact-form-details {
        grid-template-columns: 1fr;
    }

    /* Projects Page Responsive */
    .project-entry,
    .project-entry:nth-child(even) {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

#chatbot-icon {
    width: 60px;
    height: 60px;
    background-color: #fca311;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

#chatbot-window.open {
    transform: scale(1);
}

#chatbot-header {
    background: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

#close-chatbot {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

#chatbot-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.user-message, .bot-message {
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background: #f1f1f1;
    color: #333;
    align-self: flex-start;
}

.user-message {
    background: #fca311;
    color: #fff;
    align-self: flex-end;
}

#chatbot-input-container {
    display: flex;
    border-top: 1px solid #eee;
    padding: 0.5rem;
}

#chatbot-input {
    flex-grow: 1;
    border: none;
    padding: 0.8rem;
    outline: none;
    background: transparent;
}

#chatbot-send {
    background: #fca311;
    color: #fff;
    border: none;
    padding: 0 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#chatbot-send:hover {
    background: #e89204;
}

#typing-indicator {
    padding: 0 10px;
}
#typing-indicator.hidden {
    display: none;
}
#typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.4s infinite;
}
#typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
#typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0);
    } 40% {
        transform: scale(1.0);
    }
}

@media (max-width: 400px) {
    #chatbot-window {
        width: 100vw;
        height: 70vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
} 