* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0A1929;
    --primary: #1e3c72;
    --accent: #D4AF37;
    --light: #F8F9FA;
    --text: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #F8F9FA;
    overflow-x: hidden;
    transition: background-color 0.8s ease;
}

body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Header */
header {
    background: var(--primary-dark);
    color: white;
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, background 0.4s ease;
}

header.hidden {
    transform: translateY(-100%);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
    width: 30px;
    z-index: 1001;
}

.hamburger .line {
    height: 3px;
    width: 100%;
    background-color: var(--accent);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(10, 25, 41, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
        z-index: 1000;
    }
    
    .nav-links.open {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }
    
    .nav-links li {
        opacity: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .nav-links.open li {
        opacity: 1;
    }
    
    .nav-links li:nth-child(1) {
        transition: all 0.5s ease 0.2s;
    }
    .nav-links li:nth-child(2) {
        transition: all 0.5s ease 0.4s;
    }
    .nav-links li:nth-child(3) {
        transition: all 0.5s ease 0.6s;
    }
    .nav-links li:nth-child(4) {
        transition: all 0.5s ease 0.8s;
    }
    .nav-links li:nth-child(5) {
        transition: all 0.5s ease 1.0s;
    }
    
    .hero {
        padding-top: 70px;
        height: calc(100vh - 70px);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    width: 70%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 25, 41, 0.85), url('https://images.unsplash.com/photo-1573164574572-cb89e39749b4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80'));
    background: url(/image/main-foto.jpg);
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(10, 25, 41, 0.9) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 1.2rem 3.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn:hover::after {
    transform: translateX(100%);
}


/* Home Gallery */

        /* Safari için ek düzeltmeler */
        @media not all and (min-resolution:.001dpcm) { 
            @supports (-webkit-appearance:none) {
                .card, .service-item, .product-item {
                    transform: none !important;
                }
                
                .hero-content h1 {
                    font-size: 3.5rem;
                }
            }
        }
        
        /* Samsung tarayıcı için ek düzeltmeler */
        @media screen and (-webkit-tizen) {
            .nav-links a::after {
                display: none;
            }
            
            .btn:hover {
                transform: none;
            }
        }

        .home-gallery {
            margin: 4rem 0;
        }
        
        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .gallery-category {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transition: transform 0.3s ease;
        }
        
        .gallery-category:hover {
            transform: translateY(-10px);
        }
        
        .gallery-header {
            background: var(--primary);
            color: white;
            padding: 1.2rem;
            text-align: center;
        }
        
        .gallery-header h3 {
            margin: 0;
            font-size: 1.4rem;
            font-family: 'Playfair Display', serif;
        }
        
        .gallery-images {
            display: grid;
            
            gap: 0.8rem;
            padding: 1.2rem;
        }
        
        .gallery-img {
            width: 100%;
            height: 140px;
            border-radius: 8px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .gallery-img:hover {
            transform: scale(1.03);
        }
        
        .gallery-link {
            display: block;
            text-align: center;
            padding: 0.8rem;
            background: #f9f9f9;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .gallery-link:hover {
            background: var(--primary);
            color: white;
        }
        
        /* Koyu tema için galeri düzenlemeleri */
        body.dark-theme .gallery-category {
            background: #252525;
        }
        
        body.dark-theme .gallery-link {
            background: #2a2a2a;
            color: #e0e0e0;
        }
        
        body.dark-theme .gallery-link:hover {
            background: var(--primary);
        }

/* Detail Button - Proje Detay Butonu */
.detail-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: fit-content;
}

.detail-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    color: var(--primary);
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
}

.card.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.card .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
}

.service-item.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }
.service-item:nth-child(7) { animation-delay: 0.7s; }
.service-item:nth-child(8) { animation-delay: 0.8s; }

.service-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-10px);
}

.service-item:hover .service-icon {
    color: var(--accent);
}

.service-item:hover p {
    color: rgba(255,255,255,0.9);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.service-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
    transition: color 0.4s ease;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
}

.product-item.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }
.product-item:nth-child(5) { animation-delay: 0.5s; }
.product-item:nth-child(6) { animation-delay: 0.6s; }

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.85), rgba(30, 60, 114, 0.85));
}

/* Her bir proje için farklı arka plan görselleri */
.project-1 .product-image {
    background: url(image/ürün-3.jpg);
    background-size: cover;
    background-position: center;
}

.project-2 .product-image {
    background: url(image/ürün-2.jpg);
    background-size: cover;
    background-position: center;
}

.project-3 .product-image {
    background: url(image/boru-1.jpg);
    background-size: cover;
    background-position: center;
}

.project-4 .product-image {
    background: url(image/gemi-1.jpg);
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 2rem;
}

.product-info h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
}

.product-info p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Proje Detay Sayfası */
.project-detail-section {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.project-detail-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.project-header {
    background: linear-gradient(rgba(10, 25, 41, 0.85), var(--primary-dark));
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
    margin-top: 70px;
    border-radius: 5px;
}

.project-header h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.project-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    opacity: 0.9;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    background: #f5f5f5;
}

/* Proje mini-details düzenlemesi */
.project-mini-details {
    background: #f9f9f9;
    padding: 10px 15px;
    border-left: 3px solid var(--accent);
    margin-top: 8px;
    font-size: 0.9rem;
    border-radius: 0 0 8px 8px;
}

.project-mini-details p {
    margin: 3px 0;
    color: var(--text-light);
    line-height: 1.4;
}

.project-mini-details strong {
    color: var(--primary);
    font-weight: 600;
}

.project-description {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 3rem;
}

.project-description h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    position: relative;
}

.project-description h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.project-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Contact Form */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.contact-item span {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    color: var(--accent);
    min-width: 30px;
}

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
}

/* Fixed CTA */
.fixed-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.theme-toggle {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 1000;
    background: var(--primary-dark);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 300px;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h4::after,
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Koyu Tema Optimizasyonları */
body.dark-theme .card,
body.dark-theme .service-item,
body.dark-theme .product-item,
body.dark-theme .contact-info,
body.dark-theme .project-description,
body.dark-theme .gallery-item {
    background-color: #252525;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .card p,
body.dark-theme .service-item p,
body.dark-theme .product-info p,
body.dark-theme .project-description p,
body.dark-theme .gallery-caption,
body.dark-theme .project-mini-details p,
body.dark-theme .contact-info p {
    color: #cccccc;
}

body.dark-theme .card h3,
body.dark-theme .service-item h4,
body.dark-theme .product-info h4,
body.dark-theme .section-title,
body.dark-theme .project-description h2 {
    color: #f0f0f0;
}

body.dark-theme .service-item:hover {
    background: #2d2d2d;
}

body.dark-theme .service-item:hover p {
    color: #e0e0e0;
}

body.dark-theme .project-mini-details {
    background: #2a2a2a;
    border-left: 3px solid var(--accent);
}

body.dark-theme .project-mini-details strong {
    color: #e6c875;
}

body.dark-theme .nav-links a {
    color: #d0d0d0;
}

body.dark-theme .footer-links a,
body.dark-theme .footer-contact p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background: #2a2a2a;
    border: 2px solid #444;
    color: #e0e0e0;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

body.dark-theme .gallery-caption {
    background: #2d2d2d;
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-grid,
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-cta {
        bottom: 1rem;
        right: 1rem;
    }
    
    .theme-toggle {
        bottom: 5rem;
        right: 1rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .project-header {
        padding: 6rem 1.5rem 3rem;
    }

    .project-header h1 {
        font-size: 2.5rem;
    }

    .project-description {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

/* Mobil de iletişim formu */
@media (max-width: 768px) {
    .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 95%;
    }
    
    .contact-container > div {
    width: 100%;
    max-width: 550px;
    animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .contact-info {
    padding: 1.5rem;
    margin: 0 auto;
    }
}

/* Çok küçük ekranlar için ek ayarlar */
@media (max-width: 480px) {
    .form-group input, 
    .form-group textarea {
    font-size: 0.9rem;
    padding: 0.8rem;
    }
    
    .contact-item {
    flex-direction: column;
    align-items: flex-start;
    }
    
    .contact-item span {
    margin-bottom: 0.5rem;
    }
}

/* Tablet için Optimizasyonlar (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    /* Navbar Düzeltmeleri */
    nav {
        padding: 0 1.5rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        padding: 0.6rem 0.9rem;
        font-size: 0.95rem;
    }
    
    /* Hero Alanı */
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    /* Kart ve Grid Yapıları */
    .section-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer Düzeltmeleri */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-logo {
        grid-column: 1 / span 2;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-logo p {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact, 
    .footer-links {
        text-align: center;
    }
    
    .footer-contact h4::after,
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    /* Proje Galerisi */
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* İletişim Alanı */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (-webkit-tizen) {
  .card {
    min-height: 300px; /* Örnek düzeltme */
  }
}