/* 
   Öztürk Metal - Modern Industrial Website
   Design System & Main Styles
*/

:root {
    /* Color Palette */
    --primary: #E85D04;
    /* Industrial Orange */
    --primary-dark: #D35400;
    /* Darker Orange for hover */
    --secondary: #1E293B;
    /* Slate Gray (Backgrounds) */
    --secondary-dark: #0F172A;
    /* Darker Slate (Footer/Hero Overlay) */
    --accent: #F59E0B;
    /* Amber (Accents) */
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --text-dark: #334155;
    --text-light: #94A3B8;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 80px;
    /* Header override fix */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--secondary);
    color: var(--white);
}

.bg-light {
    background-color: var(--light-gray);
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.left-align {
    margin-left: 0 !important;
    margin-right: auto;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 30px;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
    /* Changed from black/transparent switch to consistent dark for contrast if needed, but keeping logic */
    background-color: var(--secondary-dark);
    /* Default dark for visibility */
}

/* .header.scrolled handled by JS but default is dark now for safety */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    /* Active color */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn-contact {
    background-color: var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: white !important;
}

.nav-link.btn-contact:hover {
    background-color: var(--primary-dark);
}

.nav-link.btn-contact::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--white);
}


/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: -80px;
    /* Counteract body padding */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--primary);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-badges {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.badge-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive Grid */
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: absolute;
    top: -30px;
    right: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.service-link:hover {
    gap: 10px;
}

/* Why Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-box h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* About Section */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 500px;
    /* Fixed height for consistent layout */
    object-fit: cover;
    border-radius: 8px;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bad-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.bad-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
}

.about-content {
    flex: 1;
}

.about-list {
    margin: 20px 0 30px;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-list li i {
    color: var(--primary);
}

/* Gallery Section (CSlider Style Replication) */
.collection {
    background-color: var(--secondary);
    /* Dark background like original */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.collection .content {
    height: 28rem;
    width: 25rem;
    background-color: #1b1f2a;
    border: .2rem solid rgba(255, 255, 255, .1);
    border-radius: .7rem;
    border-bottom: .4rem solid var(--primary);
    /* Using our primary */
    border-top: .4rem solid var(--primary);
    /* Using our primary */
    overflow: hidden;
    /* padding: .2rem; */
    position: relative;
    /* Fixed: Added for swiper positioning */
}

.collection .content img {
    width: 100%;
    height: 60%;
    /* Adjust for text content space */
    object-fit: cover;
    border-bottom-left-radius: .6rem;
    border-bottom-right-radius: .6rem;
}

.collection .text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    height: 40%;
}

.collection .text-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
    text-align: center;
}

.collection .text-content p {
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-slider {
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border: none;
    outline: none;
    font-size: .9rem;
    border-radius: .5rem;
    margin-top: auto;
    cursor: pointer;
    transition: var(--transition);
}

.btn-slider:hover {
    background-color: var(--primary-dark);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.contact-card .icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-card h5 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 10px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 10px;
    color: #64748b;
    pointer-events: none;
    transition: 0.2s ease all;
    background: transparent;
}

/* Floating Labels Logic */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--white);
    padding: 0 5px;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--secondary-dark);
    color: #94a3b8;
    padding: 40px 0;
}

/* Lightbox */
.lightbox {
    display: none;
    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);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border-radius: 4px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .about-wrapper {
        flex-direction: column;
    }

    .about-image img {
        height: 350px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .bar.active:nth-child(2) {
        opacity: 0;
    }

    .bar.active:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .bar.active:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Menu Fixed */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--secondary-dark);
        width: 80%;
        /* Partial width */
        height: 100vh;
        transition: 0.3s;
        padding-top: 100px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badges {
        flex-direction: column;
        gap: 15px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    /* Slider responsive card size */
    .collection .content {
        width: 18rem;
        height: 25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}


/* Image Grid Styles */
.image-grid-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    height: 250px;
    transition: all 0.4s ease;
    cursor: pointer;
    background: #1b1f2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(232, 93, 4, 0.2);
    /* Orange glow on hover */
    border-color: var(--primary);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item:hover img {
    transform: scale(1.15);
}

/* Overlay Icon on Hover */
.grid-item::after {
    content: '\f00e';
    /* FontAwesome search-plus icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--white);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.grid-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}


.grid-item:hover::before {
    opacity: 1;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-page {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-page:hover,
.btn-page.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}