/* Düzce Belediyesi - Projeler Sayfası CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E31E24;
    --dark-red: #B81820;
    --deep-blue: #003366;
    --light-blue: #4A90E2;
    --accent-orange: #FF8C42;
    --cyan-bright: #00D4FF;
    --green-bright: #00D9A3;
    --yellow-bright: #FFB800;
    --neutral-gray: #666666;
    --light-gray: #F5F7FA;
    --dark-gray: #2D2D2D;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

/* Modern Header */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    box-shadow: 0 4px 30px rgba(227, 30, 36, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

.logo-text {
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
    font-family: 'Montserrat', sans-serif;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-red);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 100px;
    right: -100%;
    width: 320px;
    height: calc(100vh - 100px);
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 999;
}

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

.mobile-menu-overlay {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav-link {
    display: block;
    color: var(--dark-gray);
    text-decoration: none;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav-link:hover {
    background: var(--light-gray);
    padding-left: 30px;
    color: var(--primary-red);
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--light-blue) 100%);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 25s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -40px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
    font-family: 'Montserrat', sans-serif;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Projects Container */
.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Tab Navigation - Modern Tasarım - Mavi Renk */
.tab-navigation {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--white);
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease-out 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.tab-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #0052A3 0%, 
        #0066CC 50%, 
        #0080FF 100%);
    border-radius: 20px 20px 0 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-button {
    flex: 1;
    padding: 20px 32px;
    background: transparent;
    border: none;
    color: var(--neutral-gray);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0052A3 0%, #0080FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.tab-button:hover {
    color: #0052A3;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #0052A3 0%, #0080FF 100%);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 82, 163, 0.35);
    transform: translateY(-3px);
}

.tab-icon {
    font-size: 22px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tab-button:hover .tab-icon {
    transform: scale(1.2) rotate(5deg);
}

.tab-button.active::before {
    opacity: 0;
}

.tab-button.active .tab-icon {
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--light-gray);
    color: var(--neutral-gray);
    padding: 0 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-button:hover .tab-count {
    background: #0052A3;
    color: var(--white);
    transform: scale(1.1);
    border-color: #0052A3;
}

.tab-button.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

/* Ekstra Efekt: Parlama Animasyonu */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.tab-button.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    border-radius: 14px;
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease-out 0.5s backwards;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 12px 40px rgba(0, 82, 163, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #0066CC;
    font-size: 20px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.search-container:focus-within .search-icon {
    color: #0052A3;
    transform: translateY(-50%) scale(1.1);
}

.search-input {
    width: 100%;
    padding: 20px 150px 20px 60px;
    border: 2px solid transparent;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.search-input::placeholder {
    color: #999;
    font-weight: 500;
}

.search-input:focus {
    border-color: #0066CC;
}

.search-result-count {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0052A3 0%, #0080FF 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-result-count.active {
    opacity: 1;
}

/* Search Results Section */
.search-results-section {
    animation: fadeInUp 0.6s ease-out;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-results-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-results-title::before {
    content: '🔍';
    font-size: 36px;
}

.clear-search-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.clear-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.clear-search-btn i {
    font-size: 16px;
}

.no-results-message {
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.no-results-message i {
    font-size: 64px;
    color: #0066CC;
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-results-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.no-results-message p {
    font-size: 16px;
    color: var(--neutral-gray);
    font-weight: 500;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

/* Project Card */
.project-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 450px;
    cursor: pointer;
    animation: cardAppear 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 30%, 
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.88) 100%);
    z-index: 1;
}

.project-card:hover::before {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 20%, 
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.92) 100%);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-status {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 11px 28px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.project-card:hover .project-status {
    transform: scale(1.05);
}

.status-ongoing {
    background: var(--green-bright);
    color: #000;
}

.status-completed {
    background: var(--cyan-bright);
    color: #000;
}

.status-planned {
    background: var(--yellow-bright);
    color: #000;
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    z-index: 2;
    transition: transform 0.4s ease;
}

.project-card:hover .project-content {
    transform: translateY(-10px);
}

.project-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.project-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-top: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.project-card:hover .project-description {
    opacity: 1;
    max-height: 130px;
    transform: translateY(0);
}

/* Hidden class for search filtering */
.project-card.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 18px 30px;
    }

    .logo-img {
        height: 50px;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 52px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

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

    .logo-text {
        font-size: 16px;
    }

    .logo-subtitle {
        font-size: 20px;
    }

    .logo-divider {
        height: 40px;
    }

    .contact-card {
        padding: 10px 16px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .contact-number {
        font-size: 18px;
    }

    .main-content {
        margin-top: 90px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .projects-container {
        padding: 50px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        margin-bottom: 25px;
    }

    .tab-button {
        width: 100%;
        padding: 18px 24px;
        justify-content: flex-start;
    }

    .tab-count {
        margin-left: auto;
    }

    .search-container {
        margin-bottom: 30px;
        border-radius: 12px;
    }

    .search-input {
        padding: 16px 140px 16px 52px;
        font-size: 15px;
    }

    .search-icon {
        left: 20px;
        font-size: 18px;
    }

    .search-result-count {
        right: 20px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .search-results-title {
        font-size: 24px;
    }

    .clear-search-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .project-card {
        height: 400px;
    }

    .project-title {
        font-size: 26px;
    }

    .mobile-menu {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .logo-text {
        display: none;
    }

    .logo-divider {
        display: none;
    }

    .contact-label {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .project-title {
        font-size: 22px;
    }

    .search-input {
        padding: 14px 120px 14px 48px;
        font-size: 14px;
    }

    .search-icon {
        left: 16px;
        font-size: 16px;
    }

    .search-result-count {
        right: 16px;
        padding: 5px 10px;
        font-size: 11px;
    }
}
