/* styles.css (Temel Stiller ve Responsive Yapı) */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a2e;
    color: #f0f0f0;
    line-height: 1.6;
}

.header-container {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.5s ease;
    z-index: 1000;
}

.header-container.sticky {
    background-color: #f39c12;
}

.logo {
    max-width: 120px;
    padding: 1rem;
}

.logo img {
    max-width: 120px;
}

.navbar {
    /* opacity: 0; */
    transition: opacity 2s ease;
}

.navbar.visible {
    opacity: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.header-container.sticky .nav-list li a:hover {
    color: #f0f0f0;
}

.nav-list li a {
    text-decoration: none;
    color: #1a1a2e;
    font-weight: bold;
    transition: color 0.2s ease;
    padding: 0.5rem;
}

.nav-list li a:hover {
    color: #f39c12;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    z-index: 1100;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #1a1a2e;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Slider Section Styles */
.slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

.slide img, .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Solutions Section Styles */
.solutions {
    padding: 0 20px;
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.card {
    background-color: #e0e0e0;
    color: #1a1a2e;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    background-color: #f39c12;
}

.card h3, .card p {
    margin: 0;
    padding-bottom: 1rem;
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
}

.gallery img, .gallery video {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 8px;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.gallery img:hover, .gallery video:hover {
    transform: scale(1.05);
}

/* Hero and About Dark Background Styles */
.hero, .about {
    background-color: #16213e;
    padding: 2rem;
    color: #f0f0f0;
}

.hero-content {
    padding: 1rem 2rem;
}

/* Timeline Styles */
.timeline {
    background-color: #ffffff;
    color: #1a1a2e;
    padding: 2rem;
    position: relative;
}

.timeline.horizontal .timeline-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
}

.timeline-item {
    flex: 0 0 auto;
    padding: 1rem;
    border-left: 4px solid #f39c12;
    position: relative;
}

.timeline-date {
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 0.5rem;
}

/* Footer Stili */
footer {
    background-color: #e0e0e0;
    color: #1a1a2e;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer h2 {
    color: #4d4d4d;
    font-weight: bold;
    text-shadow: 0.2px 0.2px 0.5px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.4rem;
}

/* References Section Styles */
.references {
    padding: 2rem;
    background-color: #16213e;
    color: #f0f0f0;
}

.references h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.reference-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #e0e0e0;
    color: #1a1a2e;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.reference-projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: #ffffff;
    color: #1a1a2e;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #1a1a2e;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* İletişim Sayfası İçin Stil */
.contact {
    padding: 2rem;
    margin-top: 120px;
    color: #1a1a2e;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-logo img {
    max-height: 250px;
    object-fit: contain;
}

.contact-details h2 {
    font-size: 1.8rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.contact-details p {
    margin: 0.5rem 0;
}

/* Gallery Grid Styles */
.gallery-section {
    padding: 2rem;
    text-align: center;
    color: #f0f0f0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    /* max-width: 90%; */
    height: 95%; 
    overflow: hidden;
}

.lightbox img,
.lightbox video {
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5rem;
}

.gallery video {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}



/* Responsive Ayarlar */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider {
        margin-top: 120px;
        height: 70vh;
    }

    .solutions {
        padding: 1rem;
    }

    .nav-list {
        
        flex-direction: column;
        background-color: #f39c12;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 1rem;
        border-radius: 8px;
    }

    .nav-list.mobile-visible {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .card {
        padding: 0.75rem;
    }

    .timeline.horizontal .timeline-container {
        flex-direction: column;
    }

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

    .hamburger {
        display: flex;
    }

    .navbar {
        display: none;
        flex-direction: column;
        background-color: #f39c12;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 1rem;
        border-radius: 8px;
    }

    .navbar.mobile-visible {
        display: flex;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .slider {
        margin-top: 120px;
        height: 70vh;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
    }

    .card {
        padding: 0.5rem;
    }

    .solution-cards {
        grid-template-columns: 1fr;
    }

    .timeline.horizontal .timeline-container {
        gap: 1rem;
    }
}

@keyframes slideAnimation {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Navbar Altında Kalmayı Önlemek İçin Padding */
.hero, .timeline {
    margin-top: 5rem;
}
.about {
    margin-top: 0;
}
