/* Genel Ayarlar */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #ff5722;
    /* Kor Demir Turuncusu */
    --primary-dark: #e64a19;
    --secondary-color: #37474f;
    /* Çelik Gri */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --glow-color: rgba(255, 87, 34, 0.4);

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.highlight {
    color: var(--primary-color);
}

.line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Button Stilleri */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

/* Shine Effect for Buttons */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn:hover::after {
    left: 150%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
}

.btn-sm:hover {
    background-color: var(--primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: padding 0.3s;
}

.header.scrolled {
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.85rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.1;
}

.logo-main {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-sub {
    display: block;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-sm) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a:not(.btn-sm)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.nav-links a:not(.btn-sm):hover {
    color: #fff;
}

.nav-links a:not(.btn-sm):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    /* Metalik/Endüstriyel bir görsel URL'si - Gerçekte yerel veya stok görsel */
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--surface-color);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

/* Kartın altına hafif bir "glow" efekti */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transition: 0.4s;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card .icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: 0.4s;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 15px var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Why Us Section */
.why-us {
    background-color: #161616;
}

.why-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.why-text {
    flex: 1;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

.features-list span {
    color: #ddd;
    font-size: 1.05rem;
}

.features-list strong {
    color: #fff;
}

.why-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.metal-box {
    width: 300px;
    height: 300px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 20px 20px 60px #0f0f0f, -20px -20px 60px #252525;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.main-icon {
    font-size: 6rem;
    color: #444;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary-color);
    animation: sparkle 3s infinite;
}

.s1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.s2 {
    top: 70%;
    right: 30%;
    animation-delay: 1s;
}

.s3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.portfolio-item .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    transition: 0.5s;
}

.portfolio-item:hover .placeholder-img {
    transform: scale(1.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: 0.4s;
}

.portfolio-item p {
    color: #ddd;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.portfolio-item:hover h4,
.portfolio-item:hover p {
    transform: translateY(0);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 30px;
    /* Boşluk azaltıldı ki daha bitişik dursunlar */
    flex-wrap: wrap;
    align-items: stretch;
    /* Yükseklikleri eşitlemek için */
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--surface-color);
    /* Form ile aynı arkaplan */
    padding: 30px;
    /* Form ile aynı padding */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* İçeriği dikeyde yay */
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0;
    /* İç padding kaldırıldı */
    border-radius: 0;
    /* Köşeler kaldırıldı */
    background: transparent;
    /* Arkaplan şeffaf yapıldı */
    border-left: none;
    /* Kenar çizgisi kaldırıldı veya değiştirilebilir */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Alt çizgi eklendi */
    padding-bottom: 15px;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-muted);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: #333;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 40px 0;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

.social-links a {
    color: #888;
    margin-left: 20px;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
    display: inline-block;
}

/* Animations & Responsiveness */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-anim.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .why-inner {
        flex-direction: column;
    }

    .why-visual {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .logo i {
        font-size: 1.45rem;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        /* Header height approx */
        flex-direction: column;
        background-color: #121212;
        width: 100%;
        height: calc(100vh - 70px);
        justify-content: center;
        transition: 0.4s;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- EXTRA POLISH STYLES (Lightbox, Map, BackToTop) --- */

/* Google Maps */
.map-container iframe {
    filter: invert(90%) hue-rotate(180deg);
    /* Haritayı koyu temaya uydurmak için basit filtre */
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
    bottom: 30px;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    color: #fff;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
    font-weight: 300;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }
}