/* ==========================================================================
   NEFEL GRUP - Premium Industrial Theme CSS
   ========================================================================== */

/* Design Tokens & Reset */
:root {
    --bg-dark: #1b1e22; /* Matte dark anthracite from totem image */
    --bg-card: #22252a; /* Totem background grey */
    --bg-light: #2e3239; /* Lighter grey for card elements */
    --primary: #ffffff; /* Clean white accents */
    --primary-hover: #b5b7ba; /* Metallic grey from logo */
    --text-main: #f5f5f7;
    --text-muted: #aab0bc;
    --text-inverse: #1b1e22;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.25);
    --glow-color: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--bg-card);
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* Common UI Elements: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Header & Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(27, 30, 34, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: #1b1e22;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    height: 65px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    width: 38px;
    height: 38px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.main-header.scrolled .logo-svg {
    width: 32px;
    height: 32px;
}



.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.accent-color {
    color: #b5b7ba;
}

.brand-sub {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.btn-nav {
    border: 1px solid #b5b7ba;
    padding: 8px 18px !important;
    border-radius: 4px;
    color: #ffffff !important;
    background-color: transparent;
}

.btn-nav:hover {
    background-color: #ffffff !important;
    color: #1b1e22 !important;
    border-color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-overlay.open {
    transform: translateY(0);
}

.mobile-nav {
    text-align: center;
}

.mobile-nav ul {
    margin-bottom: 40px;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mobile-contact-info a {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Hero Section with Slider */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.slide-tag {
    display: inline-block;
    color: var(--primary);
    background-color: rgba(181, 183, 186, 0.12);
    border: 1px solid var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.slide-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s forwards;
}

.slide-desc {
    font-size: 1.25rem;
    color: #e0e0ea;
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Slider buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--primary);
    width: 25px;
    border-radius: 10px;
}

/* Quick Contacts Bar */
.quick-contacts-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 18, 0.9);
    border-top: 1px solid var(--border-color);
    z-index: 20;
    padding: 15px 0;
}

.quick-contacts-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.quick-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.quick-text {
    display: flex;
    flex-direction: column;
}

.quick-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.quick-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.quick-item:hover .quick-icon {
    transform: scale(1.1);
}

/* About Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-container {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.about-img-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    border: 4px solid var(--primary);
    z-index: 1;
    border-radius: 12px;
}

.about-img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    filter: grayscale(15%);
    transition: var(--transition-smooth);
}

.about-img:hover {
    filter: grayscale(0);
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background-color: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.badge-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 120px;
    color: #ffffff;
}

.lead-text {
    font-size: 1.15rem;
    color: #e0e0ea;
    margin-bottom: 20px;
    font-weight: 500;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 10px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--glow-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--text-inverse);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-list {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li::before {
    content: '■';
    color: var(--primary);
    font-size: 0.6rem;
}

/* Gallery Section */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 18, 0.95), rgba(15, 15, 18, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item-overlay span {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.gallery-item-overlay h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Contact & Info Panel */
.contact-info-panel {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-panel-desc {
    color: var(--text-muted);
    margin-bottom: 35px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.contact-detail-item.interactive-item:hover {
    transform: translateX(5px);
}

.contact-detail-item.interactive-item:hover .detail-icon {
    background-color: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.detail-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-text strong {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.detail-text span {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.detail-text small {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 2px;
    font-weight: normal;
}

/* Map Entegrasyonu */
.contact-map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 480px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
}

.map-wrapper iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(10%) contrast(90%);
}

/* Footer Section */
.main-footer {
    background-color: var(--bg-dark);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom .developer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Lightbox styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--primary);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-contacts-flex {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        height: auto;
        padding-top: 80px;
    }
    
    .slide {
        position: relative;
        height: 600px;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .slide.active {
        display: flex;
    }
    
    .slider-dots {
        bottom: 160px;
    }
    
    .quick-contacts-bar {
        position: relative;
        bottom: auto;
        left: auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .slide-title {
        font-size: 2.6rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-contacts-flex {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .slider-btn {
        width: 44px;
        height: 44px;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #22252a;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* Language Selector Styling */
.lang-selector-nav {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--border-hover);
    margin-left: 15px;
}

.lang-selector-nav a {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 4px;
    transition: var(--transition-smooth);
}

.lang-selector-nav a:hover,
.lang-selector-nav a.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.mobile-lang {
    font-size: 1.2rem;
    margin-top: 30px;
    font-weight: 700;
    color: var(--border-hover);
}

.mobile-lang a {
    color: #ffffff;
    opacity: 0.6;
    padding: 0 10px;
    transition: var(--transition-smooth);
}

.mobile-lang a:hover,
.mobile-lang a.active {
    opacity: 1;
    text-decoration: underline;
}
