/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e67e22; /* Construction Orange */
}

.bg-light {
    background-color: #f4f4f4;
}

.bg-dark {
    background-color: #2c3e50;
    color: white;
}

.text-white {
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #d35400;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e67e22;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.about-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-box {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
}

.feature-box i {
    font-size: 3rem;
    color: #e67e22;
    margin-bottom: 15px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #e67e22;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Projects Section (Slider Styles) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
    cursor: pointer; /* Tıklanabilirlik göstergesi */
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 5;
}

.slider-container {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s;
    border-radius: 4px;
}

.slider-btn:hover {
    background: rgba(230, 126, 34, 0.9);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.project-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.project-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: #e67e22;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.developer-link {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 15px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.developer-link a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.developer-link:hover {
    opacity: 1;
    color: white;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e67e22;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    z-index: 10;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-gallery {
    flex: 1.5;
    background: #000;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.main-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#modalMainImage {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(255,255,255,0.5);
}

.modal-prev { left: 0; }
.modal-next { right: 0; }

.thumbnails {
    display: flex;
    padding: 10px;
    gap: 10px;
    overflow-x: auto;
    background: #222;
}

.thumbnails img {
    height: 60px;
    width: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnails img.active, .thumbnails img:hover {
    opacity: 1;
    border-color: #e67e22;
}

.modal-info {
    flex: 1;
    padding: 40px;
    min-width: 300px;
}

.modal-info h2 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.text-muted {
    color: #777;
    margin-bottom: 20px;
    display: block;
}

.modal-description {
    line-height: 1.8;
    color: #555;
    max-height: 400px;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }
    
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .modal-body {
        flex-direction: column;
    }
    
    .modal-gallery, .modal-info {
        flex: auto;
        width: 100%;
    }
    
    #modalMainImage {
        max-height: 300px;
    }
}
