/* 
   Fethi Gündoğdu İnşaat - Style CSS
   Black and Yellow Theme
*/

:root {
    --primary-color: #f1c40f; /* Yellow */
    --primary-dark: #dbb10c;
    --secondary-color: #121212; /* Almost Black */
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --text-gray: #999999;
    --bg-light: #F5F5F5;
    --bg-dark: #1A1A1A;
    --border-color: #2A2A2A;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar Styles for All Browsers */
/* Webkit browsers (Chrome, Safari, Opera) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #333333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #333333;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #333333;
}

/* IE and Edge - limited support */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ specific styles */
    body {
        -ms-overflow-style: auto;
    }
}

/* End of Custom Scrollbar Styles */

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-gray);
    font-size: 18px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--secondary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.logo p {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 1px;
}
.logoCon {
    display: flex;
    align-items: center;
    justify-content: center;
}
nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slide img {
    display: none; /* Resimleri gizle */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 800px;
    z-index: 3;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.project-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 30px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.4), 0 5px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 180px;
    position: relative;
    padding-bottom: 60px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f1c40f;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 14px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.project-meta span {
    display: flex;
    align-items: center;
}

.project-meta i {
    margin-right: 5px;
    color: #f1c40f;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.about-image {
    flex: 1;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
    margin: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-text {
    color: var(--text-gray);
    font-size: 16px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 1s ease;
}

.testimonial-slide.active {
    display: block;
}

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

.testimonial-content {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    height: 300px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
}

.testimonial-author h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    margin-bottom: 0;
    font-style: normal;
}

.testimonial-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
}

.testimonial-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 -20px;
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* İletişim Formu Başarı Mesajı */
.success-message {
    background-color: rgba(252, 207, 10, 0.1);
    color: #2ecc71;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

.success-icon {
    font-size: 60px;
    color: #f1c40f;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 24px;
    color: #f1c40f;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-light);
}

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

.social-media {
    display: flex;
    margin-top: 40px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-dark);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    padding: 70px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.footer-links,
.footer-projects,
.footer-newsletter {
    flex: 1;
    min-width: 200px;
}

.footer-links h4,
.footer-projects h4,
.footer-newsletter h4 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-projects h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul li,
.footer-projects ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-projects ul li a {
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-projects ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

#newsletterForm {
    display: flex;
}

#newsletterForm input {
    flex: 1;
    padding: 12px 15px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    color: var(--text-light);
}

#newsletterForm button {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

#newsletterForm button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .slide-content h2 {
        font-size: 30px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .stat-item {
        min-width: 100px;
    }
}

/* İletişim Formu Stilleri */
.contact-form-container {
    position: relative;
}

.form-success-message {
    background-color: #222222;
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #f1c40f;
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    font-size: 80px;
    color: #f1c40f; /* Sarı renk */
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.form-success-message h3 {
    margin-bottom: 15px;
    color: #f1c40f; /* Sarı renk */
    font-size: 24px;
    font-weight: 700;
}

.form-success-message p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Diğer form mesaj stilleri */
#formMessages {
    margin-top: 15px;
}

.loading-message {
    background-color: rgba(252, 207, 10, 0.1);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

.newsletter-success {
    background-color: #222222;
    color: #f1c40f;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
    border-left: 5px solid #f1c40f;
    animation: fadeIn 0.5s ease-in-out;
}

.newsletter-error {
    background-color: #222222;
    color: #e74c3c;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
    border-left: 5px solid #e74c3c;
    animation: fadeIn 0.5s ease-in-out;
}

/* Form yükleniyor durumu */
.contact-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Başarı mesajı container */
.success-container {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

/* Başarı ikonu */
.success-icon {
    font-size: 80px;
    color: #f1c40f;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

/* Başarı mesajı */
.success-message {
    color: #fff;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #f1c40f;
}

.success-message p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ddd;
}

/* Hata mesajı */
.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Animasyon */
@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}