/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography - Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: #333;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

/* Typography - Paragraphs and Text */
p {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Typography - Lists */
ul, ol {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* Typography - Buttons */
button, .button, .btn {
    font-family: 'Jost', sans-serif;
}

/* Typography - Form Elements */
input, textarea, select {
    font-family: 'Jost', sans-serif;
}

/* SEO Headings - Hidden but accessible */
.seo-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    background-color: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    margin-left: 220px;
    padding: 20px;
    padding-right: 50px;
}

/* Logo */
.logo {
    font-size: 24px;
    margin-bottom: 20px;
}

.logo a {
    font-weight: 500;
    line-height: 1.2;
}

/* Sidebar Filter - in the middle */
.sidebar-filter {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.sidebar-filter ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-filter .filter-item {
    font-size: 12px;
    letter-spacing: 1px;
    color: #777;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    text-transform: lowercase;
}

.sidebar-filter .filter-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.sidebar-filter .filter-item:hover {
    color: #000;
}

.sidebar-filter .filter-item:hover::after {
    width: 100%;
}

/* Active state styling - stronger selectors to avoid conflicts */
.sidebar-filter .filter-item.active,
.sidebar-filter a.filter-item.active {
    color: #000 !important;
}

.sidebar-filter .filter-item.active::after,
.sidebar-filter a.filter-item.active::after {
    width: 100% !important;
}

/* Ensure non-active items have no underline */
.sidebar-filter .filter-item:not(.active)::after {
    /* This rule is no longer needed as we're using the standard approach */
    /* width: 0 !important; */
}

/* Navigation */
.main-nav {
    margin-top: auto;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-nav a {
    font-size: 14px;
    letter-spacing: 1px;
    color: #777;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #000;
}

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

.main-nav a.active {
    color: #000;
}

.main-nav a.active::after {
    width: 100%;
}

/* Home Gallery */
.gallery-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 100%;
    padding-top: 20px;
    padding-bottom: 0;
}

.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Column spacer for middle column */
.column-spacer {
    height: 150px;
}

.gallery-item {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
    transform: translateY(0) !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;
}

.gallery-link:hover .gallery-image {
    transform: translateY(-40px) !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;
}

/* Gallery overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 15px 0 15px 0;
    background-color: #fff;
    transform: translateY(100%) !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gallery-link:hover .gallery-overlay {
    transform: translateY(0) !important;
}

.gallery-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #000;
    padding-left: 0;
}

.gallery-category {
    font-size: 12px;
    color: #777;
    letter-spacing: 1px;
    padding-left: 0;
    display: block;
}

/* Original Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Portfolio Grid Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 20px 0;
}

.portfolio-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1.5;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: #a9a9a9;
}

.portfolio-link:hover .portfolio-image {
    transform: scale(1.03);
}

/* Project Detail Page */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .project-detail,
    .page-container.project-detail {
        padding-top: 0;
    }
}

.project-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
}

.project-category {
    font-size: 14px;
    color: #777;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-description {
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Project Detail Page - Disable hover effects */
.project-detail .gallery-link:hover .gallery-image {
    transform: translateY(0) !important;
}

.project-detail .gallery-overlay {
    display: none;
}

/* Project Navigation */
.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-left {
    text-align: left;
}

.nav-right {
    text-align: right;
}

.nav-prev, .nav-next {
    display: inline-block;
    padding: 10px 2px;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

.nav-prev:hover, .nav-next:hover {
    background-color: #000;
    color: #fff;
}

/* About Page */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 80px; /* Altta boşluk eklendi */
}

.about-container h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    gap: 40px;
    height: calc(100vh - 160px); /* Sayfanın tam yüksekliğini kaplamayacak şekilde ayarlandı */
}

.about-text {
    flex: 1;
    max-height: calc(100vh - 200px); /* Maksimum yükseklik belirlendi */
    overflow-y: auto; /* Dikey scroll eklendi */
}

.about-image {
    flex: 1;
    max-width: 400px;
    position: sticky; /* Resmi sabit yaptık */
    top: 40px; /* Üstten 40px mesafede sabit kalacak */
}

.about-image img {
    border-radius: 0px;
    width: 100%;
}

.about-text p {
    margin-bottom: 20px;
}

/* Custom scrollbar for about-text */
.about-text::-webkit-scrollbar {
    width: 8px;
}

.about-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.about-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.about-text::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Pages Page */
.pages-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.pages-container h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
}

.pages-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-item {
    padding: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.page-item h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
}

.page-item p {
    margin-bottom: 20px;
}

.page-link {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: #333;
}

/* Proofing Page */
.proofing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.proofing-container h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
}

.client-proofs {
    margin-bottom: 50px;
}

.client-proof {
    padding: 30px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.client-proof h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
}

.client-proof p {
    margin-bottom: 5px;
}

.client-proof .date {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.proof-link {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.proof-link:hover {
    background-color: #333;
}

.client-login {
    padding: 30px;
    border: 1px solid #eee;
}

.client-login h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
}

.login-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #333;
}

/* Landing Page */
.landing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.landing-container h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
}

.landing-description {
    margin-bottom: 40px;
}

.landing-templates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.landing-template {
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-template:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.landing-template h2 {
    font-size: 18px;
    font-weight: 400;
    padding: 15px;
    text-align: center;
}

.template-preview {
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.landing-template:hover .template-preview img {
    transform: scale(1.03);
}

.template-link {
    display: block;
    background-color: #000;
    color: #fff;
    padding: 12px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.template-link:hover {
    background-color: #333;
}

/* Contact Page */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
}

.submit-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #333;
}

/* Pricing Page */
.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.pricing-container h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
}

.pricing-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.package {
    padding: 30px;
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.package.featured {
    border-color: #000;
    position: relative;
}

.package h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 15px;
}

.price {
    font-size: 32px;
    margin-bottom: 20px;
}

.features {
    margin: 0 auto 30px;
    text-align: left;
    display: inline-block;
}

.features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.features li::before {
    content: '•';
    position: absolute;
    left: 0;
}

.book-btn,
.contact-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    transition: background-color 0.3s ease;
}

.book-btn:hover,
.contact-btn:hover {
    background-color: #333;
}

.custom-pricing {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    border: 1px solid #eee;
}

.custom-pricing h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 15px;
}

.custom-pricing p {
    margin-bottom: 20px;
}

/* Gallery Filter */
.gallery-filter {
    margin-bottom: 40px;
    text-align: center;
}

.gallery-filter ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-filter li {
    margin-bottom: 10px;
}

.gallery-filter .filter-item {
    font-size: 12px;
    letter-spacing: 1px;
    color: #777;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.gallery-filter .filter-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.gallery-filter .filter-item:hover {
    color: #000;
}

.gallery-filter .filter-item:hover::after {
    width: 100%;
}

.gallery-filter .filter-item.active {
    color: #000;
}

.gallery-filter .filter-item.active::after {
    width: 100%;
}

/* For animation effects when filtering */
.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Media Queries */
@media (max-width: 1200px) {
    .gallery-container {
        gap: 30px;
    }
    .gallery-column {
        gap: 30px;
    }
    .column-spacer {
        height: 100px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .landing-templates {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* Convert sidebar to header at 992px */
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .logo {
        margin-bottom: 10px;
        text-align: left;
        align-self: center;
    }
    .main-nav {
        margin-top: 0;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        order: 1;
        width: 100%;
        justify-content: center;
    }
    .main-nav ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .language-selector {
        margin-top: 0;
        margin-bottom: 10px;
        order: 2;
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .language-selector ul {
        gap: 10px;
    }
    .social-icon {
        margin-left: 0px;
    }
    .sidebar-filter {
        min-height: auto;
        margin: 7px 0;
        order: 3;
    }
    .sidebar-filter ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .content {
        margin-left: 0;
        padding: 15px 20px;
    }
    
    /* Two-column layout for gallery */
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding-top: 0; /* Remove top padding when in header mode */
    }
    .gallery-column {
        gap: 30px;
    }
    .column-spacer {
        display: none;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pages-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        flex-direction: column;
        gap: 30px;
        height: auto; /* Mobilde otomatik yükseklik */
    }
    .about-text {
        order: 2;
        max-height: none; /* Mobilde maksimum yükseklik kısıtlaması kaldırıldı */
        overflow-y: visible; /* Mobilde scroll kapatıldı */
        border: none; /* Mobilde kenarlık kaldırıldı */
        background-color: transparent; /* Mobilde arka plan şeffaf */
        padding: 0; /* Mobilde padding kaldırıldı */
    }
    .about-image {
        order: 1;
        max-width: 100%;
        margin: 0 auto;
        position: relative; /* Mobilde sticky kaldırıldı */
        top: auto; /* Mobilde top değeri sıfırlandı */
    }
    
    /* Reset padding/margins for all container divs that appear right after the header */
    .page-container,
    .about-container,
    .contact-container,
    .project-detail,
    .pages-container,
    .proofing-container,
    .landing-container,
    .pricing-container {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    /* Maintain header layout but adjust some element sizes */
    .logo {
        font-size: 22px;
    }
    .sidebar-filter ul {
        gap: 10px;
    }
    .main-nav ul {
        gap: 12px;
    }
    .main-nav a {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    /* Two column layout for phone sizes (CHANGED from single column) */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-templates {
        grid-template-columns: 1fr;
    }
    .pricing-packages {
        grid-template-columns: 1fr;
    }
}

/* Language selector */
.language-selector {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.language-selector ul {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 15px;
}

.language-selector a {
    font-size: 12px;
    letter-spacing: 1px;
    color: #777;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.language-selector a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.language-selector a:hover {
    color: #000;
}

.language-selector a:hover::after {
    width: 100%;
}

.language-selector a.active {
    color: #000;
}

.language-selector a.active::after {
    width: 100%;
}

/* Social icon */
.social-icon {
    display: flex;
    justify-content: flex-end;
}

.social-icon a {
    color: #777;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icon a:hover {
    color: #000;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Default: hide nav social in desktop, show sidebar social */
.main-nav .social-icon {
    display: none;
}

.sidebar-social {
    display: flex;
}

@media (max-width: 992px) {
    /* For mobile: show nav social, hide sidebar social */
    .main-nav .social-icon {
        display: inline-flex;
    }
    
    .sidebar-social {
        display: none;
    }
    
    /* Ensure language selector items are centered */
    .language-selector {
        flex-direction: row;
        justify-content: center;
    }
}