﻿/* 
 * Baraflex Custom Styles
 * Compatible with Bootstrap 5
 */

:root {
    --bg-body: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: #121212;

    --accent-copper: #d97746;
    --accent-copper-glow: rgba(217, 119, 70, 0.4);

    --text-main: #ffffff;
    --text-muted: #a3a3a3;

    --border: rgba(255, 255, 255, 0.08);

    --hero-overlay-start: rgba(5, 5, 5, 0.25);
    --hero-overlay-mid: rgba(5, 5, 5, 0.6);
    --hero-overlay-end: #050505;

    --container: 1400px;
    /* Bootstrap overrides exist but we keep this for reference */
    --nav-bg: rgba(5, 5, 5, 0.9);

    --btn-bg: #ffffff;
    --btn-text: #050505;
    --btn-border: #ffffff;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-card: #ffffff;
    --accent-copper: #c25e2e;
    --text-main: #111827;
    --text-muted: #52525b;
    --border: #e5e7eb;
    --hero-overlay-start: rgba(255, 255, 255, 0.1);
    --hero-overlay-mid: rgba(255, 255, 255, 0.5);
    --hero-overlay-end: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --btn-bg: #111827;
    --btn-text: #ffffff;
    --btn-border: #111827;
}

/* Base Overrides */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Prevent horizontal scroll from rows - more targeted approach */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
}

.row>* {
    max-width: 100%;
}

@media (max-width: 991px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col,
    [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-body-tertiary {
    background-color: var(--bg-surface) !important;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-copper);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Navbar Overrides */
.navbar {
    padding: 24px 0;
    transition: 0.4s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 16px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    /* Always white on top */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.navbar.scrolled .navbar-brand {
    color: var(--text-main) !important;
    /* Theme color on scroll */
}

.navbar-brand span {
    width: 8px;
    height: 8px;
    background: var(--accent-copper);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-copper-glow);
}

.nav-link {
    font-size: 0.9rem;
    /* Slightly smaller to balance uppercase */
    color: rgba(255, 255, 255, 0.85) !important;
    /* Whiteish on top */
    font-weight: 600;
    /* Slightly bolder */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 12px;
    transition: 0.3s;
    /* Turkish character support fix */
    font-display: swap;
    font-family: 'Inter', 'Outfit', sans-serif;
    /* Force Turkish transformation rules */
    -webkit-font-language-override: "TRK";
    font-language-override: "TRK";
}

.navbar.scrolled .nav-link {
    color: var(--text-muted) !important;
    text-shadow: none;
}

.nav-link:hover,
.navbar.scrolled .nav-link:hover {
    color: var(--accent-copper) !important;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 15px;
}

.theme-toggle:hover {
    border-color: var(--accent-copper);
    color: var(--accent-copper);
}

/* Buttons */
.btn-custom {
    /* Custom class for specific styling similar to previous .btn */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Override Bootstrap .btn-primary */
.btn-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--btn-border);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    /* Replacement for .btn-outline */
    color: var(--text-main);
    border-color: var(--border);
}

.btn-outline-light:hover {
    background: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.85rem;
    background-color: var(--accent-copper);
    color: #fff !important;
    border: 1px solid var(--accent-copper);
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(217, 119, 70, 0.3);
}

.btn-nav:hover {
    background-color: transparent;
    color: var(--accent-copper) !important;
    border-color: var(--accent-copper);
    box-shadow: none;
}

.btn-catalog {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    background: transparent;
    box-shadow: none;
    margin-left: 5px;
}

.btn-catalog i {
    color: var(--accent-copper);
    /* Keep icon copper for brand link */
    margin-right: 6px;
    animation: icon-pulse 2s infinite ease-in-out;
}

.btn-catalog:hover {
    background-color: #fff;
    color: #000 !important;
    border-color: #fff;
}

.btn-catalog:hover i {
    color: #fff;
}

@keyframes icon-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Language Switcher */
.lang-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-switcher li {
    display: inline-block;
    padding: 0;
}

.lang-switcher li img {

    height: auto !important;
    border-radius: 2px;
    opacity: 0.7;
    transition: 0.3s;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    margin: 0 4px;
}

.lang-switcher li.current-lang img,
.lang-switcher li:hover img {
    opacity: 1;
}


/* Shimmer Effect */
@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

.btn-primary::after,
.btn-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    animation: shimmer 6s infinite;
    pointer-events: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 100px;
    /* Space for stats strip */
    color: #ffffff;
    /* Force white text in Hero regardless of theme */
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        padding-bottom: 60px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transform: scale(1.05);
    animation: zoomSlow 40s infinite alternate;
}

@keyframes zoomSlow {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8) 90%, #050505 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 1.05;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-copper) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(217, 119, 70, 0.2));
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .hero p {
        font-size: 1rem;
    }

    .hero .d-flex {
        flex-direction: column;
        gap: 15px !important;
        width: 100%;
    }

    .hero .btn-custom {
        width: 100%;
        padding: 14px 20px;
        max-width: 100%;
    }

    .hero-content {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Stats Strip */
.stats-strip {
    background: var(--bg-surface);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    margin-top: -80px;
    /* Pull up overlap */
    z-index: 10;
}

@media (max-width: 768px) {
    .stats-strip {
        margin-top: 0;
    }
}

.stats-box {
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}

.stat-item {
    padding: 10px 20px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

@media(max-width: 991px) {
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .stat-item .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(217, 119, 70, 0.1);
    border: 1px solid rgba(217, 119, 70, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-copper);
    font-size: 28px;
    flex-shrink: 0;
}

.stat-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Sections */
section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
    font-weight: 300;
}

/* Product Cards */
.product-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s, filter 0.8s;
    filter: grayscale(10%);
}

.product-item:hover .product-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.product-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-overlay p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-weight: 300;
}

/* Capabilities Cards */
.cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cap-card:hover {
    border-color: var(--accent-copper);
    transform: translateY(-5px);
}

.cap-icon-lg {
    font-size: 32px;
    color: var(--accent-copper);
    margin-bottom: 20px;
    display: inline-block;
    padding: 12px;
    background: rgba(217, 119, 70, 0.1);
    border-radius: 8px;
    width: fit-content;
}

@media (max-width: 768px) {
    .cap-card {
        text-align: center;
        align-items: center;
    }

    .cap-icon-lg {
        margin: 0 auto 20px auto;
    }
}

/* Mobile Menu Sub-navigation Styling */
#mobileMenu .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mobileMenu .collapse .nav-link {
    font-size: 1rem;
    padding-left: 20px;
    border-bottom: none;
}

#mobileMenu [data-bs-toggle="collapse"] i {
    transition: transform 0.3s ease;
}

#mobileMenu [data-bs-toggle="collapse"]:not(.collapsed) i {
    transform: rotate(180deg);
    color: var(--accent-copper);
}

#mobileMenu .collapse {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 5px;
}

.process-card {
    padding: 40px 32px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.process-card:hover {
    border-color: var(--accent-copper);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.process-num {
    font-size: 5rem;
    color: var(--text-muted);
    /* More visible solid color */
    font-weight: 800;
    position: absolute;
    top: -10px;
    right: 10px;
    font-family: 'Outfit', sans-serif;
    opacity: 0.2;
    /* Visible base opacity */
    line-height: 1;
    transition: 0.4s;
    transform: rotate(-10deg);
    /* Tilted by default */
    z-index: 0;
}

.process-card:hover .process-num {
    color: var(--accent-copper);
    opacity: 0.25;
    transform: scale(1.2) rotate(-10deg);
    /* Scale up but keep rotation */
}

/* Sectors */
.sector-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    height: 100%;
}

.sector-card:hover {
    border-color: var(--accent-copper);
    background: var(--bg-card);
}

.sector-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: 0.3s;
}

.sector-card:hover .sector-icon {
    color: var(--accent-copper);
    transform: scale(1.1);
}

/* CTA Strip */
.cta-strip {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/img/hero.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
    position: relative;
    color: white;
}

@media(max-width: 1024px) {
    .cta-strip {
        background-attachment: scroll;
    }
}

/* Brand Slider */
.brand-slider {
    overflow: hidden;
    padding: 60px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brand-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.brand-item:hover {
    opacity: 1;
    color: var(--accent-copper);
}

.brand-item i {
    font-size: 2rem;
    color: var(--accent-copper);
    opacity: 0.9;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact Form Overrides */
.form-control,
.form-control:focus {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-main);
    padding: 16px 0;
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control:focus {
    border-bottom-color: var(--accent-copper);
}

/* Footer */
footer {
    background: #000;
    color: var(--text-muted);
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-copper);
    padding-left: 5px;
    text-decoration: none;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    margin-right: 10px;
}

.social-btn:hover {
    background: var(--accent-copper);
    color: #fff;
}

.footer-btm {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    font-size: 0.85rem;
}

/* Custom Dropdown Styling */
@media (min-width: 992px) {
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        margin-top: 0 !important;
    }
}

.dropdown-menu {
    background: rgba(10, 10, 10, 0.9) !important;
    /* Slightly more transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Uniform thin border */
    border-radius: 6px !important;
    /* Smaller radius */
    padding: 6px !important;
    /* Tighter padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    min-width: 220px;
    /* Slimmer */
    margin-top: 0 !important;
    transform-origin: top center;
    animation: dropdownSlide 0.2s ease-out;
    /* Faster animation */
    display: none;
}

.dropdown-menu.show {
    display: block;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Arrow Removed for cleaner look */
.dropdown-menu::before {
    display: none;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 8px 16px;
    /* Reduced padding */
    border-radius: 4px;
    font-weight: 400;
    /* Regular weight */
    font-size: 0.9rem;
    /* Smaller font */
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle hover bg */
    color: var(--accent-copper) !important;
    padding-left: 20px;
    /* Gentle movement */
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--accent-copper);
    color: #fff;
}