/* Yenesis Elektrik - Modern Minimal Design */

/* 404 Error Page Styles */
.error-section {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-content > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.error-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.error-links ul li {
    margin: 0;
}

.error-links ul li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.error-links ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-content h2 {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
    }
}

:root {
    --primary-color: #168fb6;
    --primary-dark: #0e6b85;
    --secondary-color: #a8aab8;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-item {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar-item:hover,
.navbar-item.active {
    color: var(--primary-color);
}

.navbar-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-option {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.lang-option:hover,
.lang-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    animation: fadeIn 0.5s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.05);
    animation: heroImageReveal 3s ease-out forwards;
    opacity: 0.7;
}

@keyframes heroImageReveal {
    0% {
        filter: blur(5px);
        transform: scale(1.08);
        opacity: 0.5;
    }
    100% {
        filter: blur(0px);
        transform: scale(1);
        opacity: 0.85;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 143, 182, 0.5) 0%, rgba(14, 107, 133, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: heroContentFadeIn 1.5s ease-out 0.8s both;
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: slideInUp 0.8s ease 0.4s both;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-link-text {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
}

.service-card-link:hover .service-link-text {
    text-decoration: underline;
    transform: translateX(5px);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.service-link:hover {
    text-decoration: underline;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    will-change: transform, opacity;
}

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

.project-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: var(--bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-image-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(4px);
    z-index: 2;
}

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

/* Project Gallery Styles */
.project-gallery {
    position: relative;
    height: 100%;
}

.gallery-main {
    position: relative;
    height: 100%;
    width: 100%;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: all;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.gallery-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.gallery-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: white;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.project-category {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.875rem;
}

.project-category.category-completed {
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-category.category-ongoing {
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Stats Section */
.stats {
    background-color: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.map-wrapper {
    margin-top: 2rem;
}

#map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 1;
}

.map-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.map-actions .btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.form-group select {
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 143, 182, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Service Detail Page */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.25rem;
    color: var(--text-light);
}

/* Breadcrumb in page-header (white text) */
.page-header .breadcrumb {
    margin-bottom: 1.5rem;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.page-header .breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

.service-detail-section {
    padding: 4rem 0;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.service-detail-main {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-detail-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.service-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.service-detail-content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.service-detail-content-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.service-detail-content-text p:first-child {
    color: var(--text-color);
    font-size: 1.05rem;
}

.service-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.service-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-sidebar-box {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-sidebar-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sidebar-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.service-sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-sidebar-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.service-sidebar-list a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.contact-box p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-color);
        box-shadow: var(--shadow);
        padding: 2rem;
        transition: var(--transition);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero {
        min-height: 500px;
        padding: 4rem 0;
    }
    
    .hero-image {
        animation-duration: 2.5s;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 300px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .map-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail-actions {
        flex-direction: column;
    }
    
    .service-detail-actions .btn {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .filter-tabs {
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    .filter-tab {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        text-align: center;
    }

    .projects-section {
        padding: 2rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .filter-tab {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
    }

    .projects-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Page Transition Animation */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition-exit {
    opacity: 1;
}

.page-transition-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Math Refresh Button - Modern Design */
.math-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: linear-gradient(135deg, #168fb6 0%, #0f6b85 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 143, 182, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.math-refresh-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.math-refresh-btn:hover::before {
    width: 300px;
    height: 300px;
}

.math-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 143, 182, 0.4);
    background: linear-gradient(135deg, #1ba3cc 0%, #168fb6 100%);
}

.math-refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(22, 143, 182, 0.3);
}

.math-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



.refresh-text {
    position: relative;
    z-index: 1;
}


/* Bot korumalı matematik rakamları - Unicode karakterler + CSS transform (HTML parse botları için zor) */
#mathQuestion .math-digit-0,
.math-digit-0 {
    display: inline-block;
    transform: rotate(-4deg) scale(1.1) translateY(-2px) translateX(1px);
    color: #2d2d2d;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0.5px 0.5px 0 rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
    /* Unicode karakteri normal rakama benzet */
    font-variant-numeric: normal;
}

#mathQuestion .math-digit-1,
.math-digit-1 {
    display: inline-block;
    transform: rotate(3.5deg) scale(0.93) translateX(2px) translateY(1px);
    color: #3f3f3f;
    font-weight: 700;
    letter-spacing: -0.7px;
    text-shadow: -0.4px 0.4px 0 rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
}

#mathQuestion .math-digit-2,
.math-digit-2 {
    display: inline-block;
    transform: rotate(-3deg) scale(1.08) skewX(-3deg) translateY(2px) translateX(-1px);
    color: #252525;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-shadow: 0.5px -0.5px 0 rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
}

#mathQuestion .math-digit-3,
.math-digit-3 {
    display: inline-block;
    transform: rotate(4deg) scale(0.9) skewY(2deg) translateX(-2px) translateY(-1px);
    color: #3a3a3a;
    font-weight: 650;
    letter-spacing: -0.4px;
    text-shadow: -0.6px 0.6px 0 rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
}

#mathQuestion .math-digit-4,
.math-digit-4 {
    display: inline-block;
    transform: rotate(-3.5deg) scale(1.09) skewX(2.5deg) translateY(-2px) translateX(1px);
    color: #323232;
    font-weight: 580;
    letter-spacing: 0.8px;
    text-shadow: 0.4px 0.4px 0 rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f6b85 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #1ba3cc 0%, #168fb6 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.project-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-modal.active .project-modal-content {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    color: #333;
}

.project-modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.project-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-modal-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-modal-prev {
    left: 20px;
}

.project-modal-next {
    right: 20px;
}

.project-modal-image {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.project-modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-modal-image .project-image-count-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.project-modal-gallery-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(4px);
    z-index: 3;
}

.gallery-nav-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-counter {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.project-modal-counter {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.project-modal-info {
    padding: 2rem;
    overflow-y: auto;
    max-height: 40vh;
}

.project-modal-header {
    margin-bottom: 1.5rem;
}

.project-modal-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-modal-category.category-completed {
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-modal-category.category-ongoing {
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.project-modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .math-refresh-btn {
        width: 36px;
        height: 36px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }

    .project-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .project-modal-image {
        max-height: 50vh;
    }

    .project-modal-info {
        padding: 1.5rem;
        max-height: 45vh;
    }

    .project-modal-title {
        font-size: 1.5rem;
    }

    .project-modal-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    .project-modal-nav {
        width: 40px;
        height: 40px;
    }

    .project-modal-prev {
        left: 10px;
    }

    .project-modal-next {
        right: 10px;
    }

    .project-modal-gallery-nav {
        padding: 0.4rem 0.8rem;
        gap: 0.75rem;
    }

    .gallery-nav-btn {
        width: 28px;
        height: 28px;
    }
}

.project-modal-image img {
    transition: opacity 0.3s ease;
}

