/* Genel Stil ve Resetleme */
:root {
    --primary-color: #00a8ff; /* Ana Vurgu Rengi */
    --primary-dark: #0080ff; /* Koyu Mavi Accent */
    --secondary-color: #2c3e50; /* İkincil Renk (Kartlar vb.) */
    --background-color: #1a1a1a; /* Arka Plan */
    --text-color: #ecf0f1; /* Ana Metin Rengi */
    --text-secondary-color: #bdc3c7; /* İkincil Metin Rengi */
    --container-width: 1100px;
    --card-bg: #2c3e50;
    --border-color: #333;

    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Animation Timings */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* Light Mode */
body.light-mode {
    --background-color: #f8f9fa;
    --text-color: #1a1a1a;
    --text-secondary-color: #555;
    --secondary-color: #f0f4f8;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

body.light-mode section {
    background-color: rgba(240, 244, 248, 0.7);
}

body.light-mode section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.9);
}

body.light-mode h2 {
    color: #1a1a1a;
}

body.light-mode .project-card,
body.light-mode .testimonial-card,
body.light-mode .blog-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .project-card:hover,
body.light-mode .blog-card:hover {
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.12);
}

body.light-mode .testimonial-card:hover {
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #1a1a1a, #00a8ff);
    background-size: 400% 400%;
    animation: gradient-animation 25s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scroll-triggered Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in-delayed {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-3xl) 0;
    border-bottom: none;
    background-color: rgba(26, 26, 26, 0.8);
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
    transition: background-color var(--transition-normal);
}

section:nth-child(even) {
    background-color: rgba(44, 62, 80, 0.4);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100vw;
    width: 300vw;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

section:last-of-type {
    border-bottom: none;
}

h1, h2 {
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: #fff;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

h2 span {
    color: var(--primary-color);
    position: relative;
}

/* Header ve Navigasyon */
.header {
    background-color: rgba(26, 26, 26, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

/* Dil Değiştirici */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switcher a {
    color: var(--text-secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 0.2rem;
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-switcher span {
    color: var(--text-secondary-color);
}

.lang-switcher a:hover {
    color: #fff;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    margin-left: 1rem;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(20deg);
}

/* Scroll Progress Bar */
.progress-bar {
    position: fixed;
    top: 70px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    width: 0%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 168, 255, 0.3);
    transition: width 0.1s ease;
}

/* Hero (Ana Karşılama) Bölümü */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 70px; /* Header yüksekliği kadar boşluk */
    border: none; /* Hero section'dan kenarlığı kaldır */
    background: transparent; /* Hero section arkaplanını şeffaf yap */
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

@media (max-width: 479px) {
    .profile-pic {
        width: 120px;
        height: 120px;
        border-width: 4px;
        margin: 0 auto 1.5rem;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    word-break: break-word;
}

@media (max-width: 479px) {
    #hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

#hero h1 span {
    color: var(--primary-color);
}

#hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.2);
    position: relative;
    border: none;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-normal);
    z-index: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.5);
}

.btn:hover::before {
    width: 100%;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

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

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 128, 255, 0.1));
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.25);
}

/* Hakkımda Bölümü */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary-color);
}

.skills-list {
    flex: 1;
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skills-list h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skills-list ul li {
    background-color: #3b526a;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: var(--text-color);
}

/* Projeler Bölümü */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 168, 255, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    transition: height var(--transition-normal);
    z-index: 10;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.3);
}

.project-card:hover::before {
    height: 100%;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.project-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: #fff;
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.project-info p {
    color: var(--text-secondary-color);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.7;
}

.project-links a {
    margin-right: 1rem;
    font-weight: 500;
}

.btn-view-more {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    margin-top: var(--spacing-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.2);
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.4);
}

/* İletişim Bölümü */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-secondary-color);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-6px) scale(1.15);
}

.contact-info .email-link {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #111;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.footer p {
    color: var(--text-secondary-color);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }
    .nav-links {
        margin-top: 1rem;
        gap: 1rem;
    }
    .about-content {
        flex-direction: column;
    }
}

/* View All Projects Button */
.view-all-projects-btn {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Project Page Styling */
#projects-page-header {
    min-height: auto;
    padding: 120px 0 3rem;
    text-align: center;
}

.page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

@media (max-width: 479px) {
    .page-header-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .page-header-top h1 {
        width: 100%;
        order: 2;
    }
    
    .page-header-top .nav-icon {
        order: 1;
    }
    
    .page-header-top > div[style*="width: 40px"] {
        display: none;
    }
}

.nav-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon:hover {
    color: #fff;
    transform: translateY(-3px);
}

.back-btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.back-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

#projects-gallery {
    padding: 3rem 0 6rem;
}

/* Project Detail Page */
#project-detail-header {
    padding: 100px 0 3rem;
}

.project-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-header-nav {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
}

#project-detail-content {
    padding: 3rem 0 6rem;
}

#project-detail-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.project-description h2 {
    font-size: 2rem;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-description h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.project-description ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-description ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary-color);
}

.project-description ul li:before {
    content: "▸ ";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
}

.project-info-box {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 100px;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-color);
    margin: 0;
}

.project-gallery {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #333;
    text-align: center;
}

.project-gallery h2 {
    margin-bottom: 1rem;
}

.external-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.external-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Timeline Section */
#timeline {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    margin-bottom: 3rem;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--background-color);
    border-radius: 50%;
    top: 2rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -50px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary-color);
    font-size: 0.95rem;
}

/* Enhanced Skills Section */
.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00d4ff);
    transition: width 0.3s ease;
}

/* Testimonials Section */
#testimonials {
    padding: var(--spacing-3xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.05), transparent);
    transition: left var(--transition-slow);
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.15);
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-text {
    color: var(--text-secondary-color);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.testimonial-contact {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-contact i {
    font-size: 0.9rem;
}

/* Blog Section */
#blog {
    padding: var(--spacing-3xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: 1px solid rgba(0, 168, 255, 0.1);
    position: relative;
}

.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 168, 255, 0.1));
    transition: height var(--transition-normal);
    z-index: 0;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.3);
}

.blog-card:hover::after {
    height: 100%;
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform var(--transition-normal);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.blog-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.blog-card h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.blog-excerpt {
    color: var(--text-secondary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    display: inline-block;
}

.blog-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Performance Stats */
.performance-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

#related-projects {
    padding: 6rem 0;
    border-top: 1px solid #333;
}

#related-projects h2 {
    margin-bottom: 3rem;
}

.project-link {
    cursor: pointer;
}

/* Responsive Project Details */
/* Combined Testimonials & Hobbies Section */
.combined-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.testimonials-column h2,
.hobbies-column h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-info-box {
        position: static;
    }

    .about-content {
        gap: 2rem;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    h2 {
        font-size: 2.3rem;
    }

    .projects-grid,
    .blog-grid,
    .testimonials-grid {
        gap: var(--spacing-md);
    }

    /* Combined grid stacks on tablet */
    .combined-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .testimonials-column h2,
    .hobbies-column h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header-top {
        flex-direction: column;
        gap: 1rem;
    }

    #project-detail-content h1 {
        font-size: 2rem;
    }

    .project-description h2 {
        text-align: center;
    }

    .external-links {
        flex-direction: column;
    }

    .external-links .btn {
        justify-content: center;
    }

    /* Timeline Mobile */
    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: -5px !important;
        right: auto !important;
    }

    /* Blog mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Skills mobile */
    .about-content {
        flex-direction: column;
    }
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN - Mobile First
   ============================================ */

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
    z-index: 1000;
}

.hamburger-menu:hover {
    color: var(--primary-color);
}

.hamburger-menu.active {
    color: var(--primary-color);
}

/* Mobile Navigation Drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 2px solid var(--primary-color);
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-menu a:hover {
    background-color: rgba(0, 168, 255, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    padding-left: 2.5rem;
}

/* TINY PHONES (320px - 479px)
   ============================================ */
@media (max-width: 479px) {
    :root {
        --container-width: auto;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 3rem;
    }

    * {
        font-size-adjust: 0.95;
    }

    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        padding: 0.75rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Show Hamburger Menu */
    .hamburger-menu {
        display: block;
    }

    /* Hide Desktop Nav, Show Mobile */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.75rem !important;
        height: auto;
        min-height: 60px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Mobile Menu */
    .mobile-menu {
        top: 60px;
        left: 0;
        width: 100%;
        position: fixed;
        gap: 0;
    }
    
    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .mobile-menu a {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }

    .lang-switcher {
        flex-direction: row;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .lang-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .theme-toggle {
        font-size: 1.2rem;
        padding: 0.25rem;
    }

    /* Hero Section */
    #hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.65rem 1.2rem !important;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Projects Grid */
    .projects-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card,
    .blog-card,
    .testimonial-card {
        padding: 1rem;
    }

    /* Sections */
    section {
        padding: 2rem 0 !important;
    }

    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .skill-bar {
        margin-bottom: 0.75rem;
    }

    /* Timeline */
    .timeline {
        padding: 0;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 40px !important;
    }

    .timeline-dot {
        left: -2px !important;
        width: 18px !important;
        height: 18px !important;
    }

    /* Contact Form */
    .contact-form {
        gap: 0.75rem;
    }

    input, textarea {
        font-size: 16px !important;
        padding: 0.75rem !important;
        min-height: 44px;
        width: 100%;
    }

    /* Images */
    img {
        max-width: 100% !important;
        height: auto;
    }

    .project-detail-image {
        width: 90vw !important;
        height: auto !important;
        max-height: 250px !important;
    }
    
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    main {
        width: 100%;
        overflow-x: hidden;
    }
}

/* ============================================
   SMALL PHONES (480px - 639px)
   ============================================ */
@media (min-width: 480px) and (max-width: 639px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 1rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2.5rem 0;
    }

    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================
   MEDIUM PHONES (640px - 767px)
   ============================================ */
@media (min-width: 640px) and (max-width: 767px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    section {
        padding: 3rem 0;
    }
}

/* ============================================
   TABLETS & LARGE PHONES (768px - 1023px)
   ============================================ */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        gap: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   SMALL LAPTOPS & DESKTOPS (1024px - 1279px)
   ============================================ */
@media (min-width: 1024px) {
    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    section {
        padding: 5rem 0;
    }
}

/* ============================================
   LARGE DESKTOPS (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    section {
        padding: 6rem 0;
    }
}

/* ============================================
   ACCESSIBILITY & TOUCH OPTIMIZATION
   ============================================ */

/* Ensure touch targets are at least 44x44px */
button, a, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prevent zoom on input focus for iOS */
input, textarea, select {
    font-size: 16px !important;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for safe areas (notches on modern phones) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    .header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* ============================================
   MOBILE OPTIMIZATION & FIXES
   ============================================ */

/* Prevent layout shift from scrollbar */
html {
    overflow-y: scroll;
}

/* Better card spacing on mobile */
@media (max-width: 768px) {
    .project-card,
    .blog-card,
    .testimonial-card,
    .skill-category {
        margin-bottom: 0.5rem;
    }
    
    /* Better touch targets */
    a, button {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Improve readability */
    #projects-page-header,
    #blog-header {
        padding: 100px 0 2rem;
    }
    
    /* Hero section mobile optimization */
    #hero {
        min-height: 80vh;
    }
    
    /* About section stacking */
    .about-content {
        align-items: center;
    }
    
    .about-text {
        width: 100%;
    }
    
    .skills-list {
        width: 100%;
    }
    
    /* Contact section mobile */
    .contact-form input,
    .contact-form textarea {
        border: 1px solid var(--border-color);
        transition: border-color 0.3s;
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        border-color: var(--primary-color);
    }
}

/* Extra small devices optimization */
@media (max-width: 360px) {
    .logo {
        font-size: 1rem;
    }
    
    .lang-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    .profile-pic {
        width: 100px !important;
        height: 100px !important;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem !important;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .hamburger-menu, .mobile-menu, .theme-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: white;
    }
}

