:root {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #805AD5;
}
/* Temel scroll davranışını düzelt */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-color);
    color: var(--text-color);
    max-width: 100%;
}

/* Hero Section */
.hero-section {
    height: 50vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

.hero-section.collapsed {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/hero-bg.gif') center center;
    background-size: cover;
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content .line {
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Main Content */
.main-content {
    position: relative;
    min-height: 100vh;
    transition: transform 0.5s ease;
    width: 100%;
    overflow-x: hidden;
    margin-top: -10vh;
    z-index: 2;
}

.main-content.hero-hidden {
    margin-top: 0;
}

/* Carousel Section */
.carousel-section {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 50px 0;
}

.carousel {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-item {
    position: absolute;
    width: 300px;
    height: 400px;
    transition: all 0.5s ease;
    opacity: 0;
    cursor: pointer;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.carousel-item.prev {
    opacity: 0.7;
    transform: translateX(-320px) scale(0.8);
    z-index: 1;
}

.carousel-item.next {
    opacity: 0.7;
    transform: translateX(320px) scale(0.8);
    z-index: 1;
}

/* Animasyon */
@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Proje Kartları */
.project-card {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.project-number {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.card-content h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #fff;
}

.card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel Butonları */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-btn.prev {
    left: 20%;
}

.carousel-btn.next {
    right: 20%;
}

/* Proje Detayları */
.details-section {
    position: relative;
    padding: 30px 10%;
    margin-bottom: 20px;
    min-height: 0;
}

.project-details {
    display: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.project-details.active {
    display: block;
    opacity: 1;
    height: auto;
    overflow: visible;
}

.details-header {
    margin-bottom: 40px;
}

.details-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.project-meta {
    display: flex;
    gap: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-item .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.meta-item .value {
    font-size: 1.1rem;
    color: #fff;
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.project-info {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* All Projects Section */
.all-projects-section {
    padding: 40px 5%;
    background: rgba(255, 255, 255, 0.02);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.project-grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-grid-content {
    padding: 25px;
}

.project-grid-number {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.project-grid-content h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
    color: #fff;
}

.project-grid-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-category {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-tech {
    font-size: 0.8rem;
    color: var(--accent-color);
    background: rgba(128, 90, 213, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 5%;
    }
    
    .carousel-btn.next {
        right: 5%;
    }
    
    .details-content {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
    }

    /* Hero Section */
    .hero-section {
        height: 40vh;
        padding: 80px 20px 40px;
    }

    /* All Projects Section */
    .all-projects-section {
        padding: 30px 20px;
    }

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

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

    .project-grid-item img {
        height: 200px;
    }

    .project-grid-content {
        padding: 20px;
    }

    .project-grid-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-content h1 .line {
        font-size: 10vw;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* Carousel Section */
    .carousel {
        height: auto;
        padding: 20px 0;
    }

    .carousel-item {
        width: 90%;
        margin: 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .carousel-item.active {
        position: relative;
        transform: translateX(-50%) scale(1);
    }

    .carousel-item.prev,
    .carousel-item.next {
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    /* Project Details Section */
    .project-details {
        padding: 40px 20px;
    }

    .details-header {
        flex-direction: column;
        gap: 20px;
    }

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

    .project-meta {
        flex-direction: column;
        gap: 15px;
    }

    .meta-item {
        width: 100%;
    }

    .details-content {
        flex-direction: column;
        gap: 30px;
    }

    .project-info {
        width: 100%;
    }

    .project-gallery {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Modal/Lightbox */
    .modal-content {
        width: 90%;
        max-height: 80vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    /* Navigation */

    .logo {
        font-size: 1rem;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 20px;
        padding-bottom: 10px;
    }

    /* Scroll line uzunluğunu ayarla */
    .scroll-line {
        height: 40px;
    }

    /* Scroll text stilini güncelle */
    .scroll-indicator span {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    /* Touch Swipe için ek stiller */
    .carousel {
        position: relative;
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    .carousel-item {
        transition: transform 0.3s ease-out;
    }

    /* Mobil için container düzeltmeleri */
    .main-content {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Daha küçük ekranlar için ek düzenlemeler */
@media (max-width: 480px) {
    .hero-content h1 .line {
        font-size: 12vw;
    }

    .project-card {
        min-height: auto;
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    .project-number {
        font-size: 0.8rem;
    }

    .gallery-item {
        height: 200px;
    }

    .scroll-indicator {
        bottom: 15px;
    }
}

/* Yatay mod için düzenlemeler */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        padding: 60px 20px 20px;
    }

    .hero-content {
        gap: 15px;
    }

    .hero-content h1 .line {
        font-size: 6vw;
    }

    .scroll-indicator {
        display: none;
    }

    .menu {
        padding: 5px;
    }

    .menu-item {
        font-size: 0.6rem;
    }
}

/* Galeri Stilleri */
.project-gallery {
    margin-top: 30px;
}

.project-gallery h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #fff;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Ana görsel container'ı */
.main-image-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Thumbnail container'ı */
.thumbnails-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Thumbnail stilleri */
.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: var(--accent-color);
}

.thumbnail:hover {
    border-color: var(--accent-color);
}

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

@media (max-width: 768px) {
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

/* Modal/Lightbox Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-item:first-child {
        height: 300px;
    }
}


/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

.loader-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* Back Button Stilleri */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-button span {
    font-size: 14px;
    font-weight: 500;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-button:hover svg {
    transform: translateX(-5px);
}

/* Mobil için düzenleme */
@media (max-width: 768px) {
    .back-button {
        top: 20px;
        left: 20px;
        padding: 8px 12px;
    }
    
    .back-button span {
        font-size: 12px;
    }
}
