/* Projects Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #007ec3;
    --secondary-color: #005a8a;
    --accent-color: #003d5c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(0, 126, 195, 0.15);
    --border-color: rgba(0, 126, 195, 0.1);
}

body.dark {
    --primary-color: #007ec3;
    --secondary-color: #005a8a;
    --accent-color: #003d5c;
    --text-color: #fff;
    --text-light: #ccc;
    --bg-color: #061528;
    --card-bg: #0d2244;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 40px rgba(0, 126, 195, 0.25);
    --border-color: rgba(0, 126, 195, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar Dark Mode */
body.dark ::-webkit-scrollbar-track {
    background: #061528;
}

body.dark ::-webkit-scrollbar-thumb {
    background: #007ec3;
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: #005a8a;
}

/* Project Header */
.project-header {
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 50%, #003d5c 100%);
    padding: 120px 20px 100px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

body.dark .project-header {
    background: linear-gradient(135deg, #061528 0%, #0d2244 50%, #08182d 100%);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .header-badge {
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: #ffffff;
}

.header-badge i {
    font-size: 16px;
}

.project-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

body.dark .project-header h1 {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 102, 255, 0.3);
}

.header-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.95;
    line-height: 1.8;
}

body.dark .header-description {
    color: #e2e8f0;
    opacity: 0.9;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

body.dark .stat-number {
    color: #ffffff;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

body.dark .stat-label {
    color: #cbd5e1;
    opacity: 0.9;
}

/* Header Decoration */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

body.dark .decoration-circle {
    background: rgba(0, 102, 255, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Projects Section */
.projects-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

body.dark .section-header h2 {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

body.dark .section-header p {
    color: var(--text-light);
}

/* Projects Container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Project Card */
.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

body.dark .project-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 126, 195, 0.3);
}

body.dark .project-card:hover {
    border-color: rgba(0, 126, 195, 0.5);
}

.project-card.featured-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 126, 195, 0.02) 0%, rgba(0, 90, 138, 0.02) 100%);
}

body.dark .project-card.featured-card {
    background: linear-gradient(135deg, rgba(0, 126, 195, 0.1) 0%, rgba(0, 90, 138, 0.1) 100%);
}

/* Project Image */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-badge {
    transform: translateY(0);
}

.project-badge i {
    font-size: 14px;
}

/* Project Content */
.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 126, 195, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-footer {
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.project-link:hover::before {
    width: 300px;
    height: 300px;
}

.project-link span,
.project-link i {
    position: relative;
    z-index: 1;
    color: #fff;
}

.project-link:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 126, 195, 0.3);
}

.project-link:hover i {
    transform: translateX(3px);
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, rgba(0, 126, 195, 0.03) 0%, rgba(0, 90, 138, 0.03) 100%);
    padding: 100px 20px;
    margin-top: 80px;
}

body.dark .features-section {
    background: linear-gradient(135deg, rgba(0, 126, 195, 0.08) 0%, rgba(0, 90, 138, 0.08) 100%);
}

.features-section .section-header {
    margin-bottom: 60px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--card-bg);
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid var(--border-color);
}

body.dark .feature-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 126, 195, 0.3);
}

body.dark .feature-item:hover {
    border-color: rgba(0, 126, 195, 0.5);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.feature-item:hover .feature-icon-wrapper::before {
    width: 200px;
    height: 200px;
}

.feature-icon {
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Projeler sayfası — top konumunda navbar tamamen şeffaf (her iki tema) */
body.projects-page nav:has(.navbar):not(.sticky),
body.dark.projects-page nav:has(.navbar):not(.sticky) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

/* Projeler sayfası — sticky light teması: footer ile aynı mavi gradyan */
body.projects-page nav:has(.navbar).sticky {
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
}

/* Projeler sayfası — sticky dark teması: hero ailesi koyu lacivert */
body.dark.projects-page nav:has(.navbar).sticky {
    background: linear-gradient(135deg, #061528 0%, #0a2142 50%, #020817 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
.modern-footer {
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
    color: #fff;
    padding: 60px 20px 30px;
}

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

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo .logo-highlight {
    color: #fff;
}

.footer-logo .logo-dot {
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.copyright a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2.5rem;
    }

    .header-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .header-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .project-header {
        padding: 80px 15px 60px;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .header-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .project-card {
        border-radius: 15px;
    }

    .project-content {
        padding: 20px;
    }

    .features-section {
        padding: 60px 15px;
    }
}

/* Modern Animated Scroll Up Button */
.scroll-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 126, 195, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
}

.scroll-button a::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;
}

.scroll-button a:hover::before {
    width: 300px;
    height: 300px;
}

.scroll-button a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 126, 195, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-button a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.scroll-button a:hover i {
    transform: none;
}

/* Dark Mode */
body.dark .scroll-button a {
    background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
    box-shadow: 0 8px 25px rgba(0, 126, 195, 0.5);
}

body.dark .scroll-button a:hover {
    box-shadow: 0 12px 35px rgba(0, 126, 195, 0.6);
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 126, 195, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 126, 195, 0.5);
    }
}

.scroll-button.show a {
    animation: pulse 2s ease-in-out infinite;
}

.scroll-button.show a:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-button {
        bottom: 20px;
        right: 20px;
    }

    .scroll-button a {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}
/* THEME-INIT: html.dark erken arka plan */
html.dark {
  background-color: #061528;
}
