:root {
    --primary-color: #0377fc;
    --white: #FFFFFF;
    --gray: #F5F5F5;
    --black: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(3, 119, 252, 0.1) 0%, rgba(3, 119, 252, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 20%, var(--white) 100%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero h2 {
    font-size: 2rem;
    color: var(--black);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.section-title {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 2.2rem;
    text-align: center;
    }
.section-title::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 0.18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2.4rem;
    background-color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1s ease forwards;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 1s ease 0.3s forwards;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.counter {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 90px 0;
    background: #D5E8FE;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(3, 119, 252, 0.05) 0%, rgba(3, 119, 252, 0.15) 100%);
    top: -200px;
    right: -200px;
    z-index: 0;
    animation: pulse 15s infinite alternate;
}

.projects::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(3, 119, 252, 0.05) 0%, rgba(3, 119, 252, 0.15) 100%);
    bottom: -300px;
    left: -300px;
    z-index: 0;
    animation: pulse 20s infinite alternate-reverse;
}

.projects .section-title {
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.projects .section-title::after {
    background-color: var(--primary-color);
}

/* Kategori Filtreleme */
.project-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 50px;
    max-width: 850px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Kategori linkleri kaldırıldı */

/* Proje Grid ve Kartlar */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 70px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    perspective: 1500px; /* 3D efekti için perspektif artırıldı */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tek kart olduğunda ortala */
.projects-grid.single-card {
    grid-template-columns: minmax(300px, 400px);
    justify-content: center;
}

/* İki kart olduğunda */
.projects-grid.two-cards {
    grid-template-columns: repeat(2, minmax(300px, 400px));
    justify-content: center;
}

/* Üç kart olduğunda */
.projects-grid.three-cards {
    grid-template-columns: repeat(3, minmax(350px, 1fr));
}

/* Üçten fazla kart olduğunda */
.projects-grid.multi-cards {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .projects-grid.three-cards,
    .projects-grid.multi-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid.two-cards,
    .projects-grid.three-cards,
    .projects-grid.multi-cards {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(3, 119, 252, 0.15);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px) rotateX(5deg) rotateZ(-2deg);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.9);
    width: 100%;
}

/* Tek kart durumunda proje kartının genişliğini sınırla */
.projects-grid.single-card .project-card {
    max-width: 400px;
    margin: 0 auto;
}

.project-card.animated {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.project-card:hover {
    transform: translateY(-20px) rotateX(0deg) rotateZ(0deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(3, 119, 252, 0.25);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 95%);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 119, 252, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.4;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image::before {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(3, 119, 252, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.8s ease;
    filter: saturate(1.2) contrast(1.1);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(3, 119, 252, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    color: #ffffff;
}

.project-image-placeholder i {
    font-size: 5rem;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
    opacity: 0.9;
    transition: all 0.5s ease;
}

.project-card:hover .project-image-placeholder i {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(3, 119, 252, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 3;
}

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

.project-card:hover .project-image img {
    transform: scale(1.15) rotate(-2deg);
}

.view-details {
    color: var(--white);
    font-weight: 700;
    background-color: rgba(3, 119, 252, 0.95);
    padding: 14px 30px;
    border-radius: 30px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.view-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.8s ease;
    z-index: -1;
}

.project-card:hover .view-details {
    transform: translateY(0);
    opacity: 1;
    background-color: rgba(3, 119, 252, 1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(3, 119, 252, 0.5);
}

.project-card:hover .view-details::before {
    left: 200%;
}

.project-info {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    margin-top: -30px;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
}

.project-card:hover .project-info {
    transform: translateY(-10px);
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.1);
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 800;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0259c4);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.project-card:hover .project-title::after {
    width: 100%;
}

.project-card:hover .project-title {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.project-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0259c4 100%);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(3, 119, 252, 0.25);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.project-card:hover .project-category {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(3, 119, 252, 0.4);
}

.project-card:hover .project-category::before {
    left: 200%;
}

.project-description {
    color: #444;
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
    flex-grow: 1;
    position: relative;
    padding-left: 18px;
    border-left: 4px solid rgba(3, 119, 252, 0.3);
    transition: all 0.4s ease;
    background-color: rgba(3, 119, 252, 0.03);
    padding: 15px 18px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.project-description::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 2.5rem;
    color: rgba(3, 119, 252, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
    transition: all 0.4s ease;
}

.project-card:hover .project-description {
    border-left-color: var(--primary-color);
    background-color: rgba(3, 119, 252, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-card:hover .project-description::before {
    color: rgba(3, 119, 252, 0.3);
    transform: translateY(-3px);
}

.project-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    position: relative;
}

.details-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0259c4 100%);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(3, 119, 252, 0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    z-index: 1;
    text-transform: uppercase;
}

.details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 1;
    transition: all 0.6s ease;
}

.details-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(3, 119, 252, 0.5);
    letter-spacing: 1.5px;
}

.details-btn:hover::before {
    left: 200%;
}

.details-btn i {
    margin-left: 12px;
    transition: all 0.5s ease;
    font-size: 1rem;
    opacity: 0.9;
}

.details-btn:hover i {
    transform: translateX(8px);
    opacity: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 1rem;
    flex: 1;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(3, 119, 252, 0.1);
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0259c4 100%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.project-link i {
    margin-left: 12px;
    transition: all 0.5s ease;
    font-size: 1rem;
    opacity: 0.9;
}

.project-link:hover {
    color: var(--white);
    box-shadow: 0 10px 25px rgba(3, 119, 252, 0.3);
    transform: translateY(-8px);
    border-color: transparent;
    letter-spacing: 1.5px;
}

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

.project-link:hover i {
    transform: translateX(8px);
    opacity: 1;
}

/* Yükleniyor ve Hata Mesajları */
.loading, .no-projects, .error-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(3, 119, 252, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Daha Fazla Yükle Butonu */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    position: relative;
    z-index: 5;
}

.load-more-btn {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0259c4 100%);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.load-more-btn:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(3, 119, 252, 0.3);
}

.load-more-btn:hover::before {
    left: 0;
}

/* Proje Detay Modalı */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

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

.modal-content {
    background-color: var(--white);
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #555;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 10px;
}

.modal-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-body {
    padding: 30px;
}

.modal-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-description, .modal-technologies, .modal-gallery {
    margin-bottom: 30px;
}

.modal-description h3, .modal-technologies h3, .modal-gallery h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.modal-description h3::after, .modal-technologies h3::after, .modal-gallery h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.modal-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: rgba(3, 119, 252, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.modal-link:hover {
    background-color: #0259c4;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(3, 119, 252, 0.3);
}

.modal-link:hover i {
    transform: translateX(5px);
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
    color: #888;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(3, 119, 252, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0259c4;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .modal-image {
        height: 350px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .project-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 20px;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .project-categories::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .category-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-description h3, .modal-technologies h3, .modal-gallery h3 {
        font-size: 1.1rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .modal-footer {
        padding: 15px 20px 20px;
    }
    
    .modal-link {
        width: 100%;
        justify-content: center;
    }
}
