@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

:root {
  --red: #e60026;
  --green: #008000;
  --dark-gray: #4a4a4a;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Comfortaa', cursive, Arial, sans-serif; color: #fff; }
a { color: inherit; text-decoration: none; }

/* TOP BAR */
.top-bar { background: var(--dark-gray); color: #fff; font-size: 13px; }
.top-bar-container { width: calc(100% - 32px); min-height: 36px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; }
.top-bar-left { gap: 20px; flex-wrap: wrap; }
.top-bar-left span { display: inline-flex; align-items: center; gap: 7px; }
.top-bar-left i { color: #f0f0f0; }
.top-bar-right { gap: 10px; }

.utility-dropdown { position: relative; }
.utility-dropdown-button { height: 26px; border: 0; background: #666; color: #fff; padding: 0 12px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.utility-dropdown:hover .utility-dropdown-button { filter: brightness(1.12); }
.utility-dropdown-menu { position: absolute; top: 100%; right: 0; min-width: 154px; opacity: 0; visibility: hidden; transform: translateY(7px); background: #fff; color: #333; box-shadow: 0 8px 18px rgba(0,0,0,.2); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 100; }
.utility-dropdown:hover .utility-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.utility-dropdown-menu a { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 8px 12px; color: #333; font-size: 12px; font-weight: 700; }
.utility-dropdown-menu a:hover { background: #eee; }
.flag { width: 22px; height: 15px; object-fit: cover; display: block; }

/* HEADER */
.main-header { background: #080808; }
.header-container { width: calc(100% - 32px); height: 106px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.search-box { width: 238px; position: relative; display: block; }
.search-box i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #a8a8a8; font-size: 14px; }
.search-box input { width: 100%; height: 39px; border: 0; border-radius: 999px; background: #fff; color: #777; padding: 0 16px 0 36px; font-family: inherit; font-size: 13px; font-weight: 700; outline: none; }
.logo { display: inline-flex; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
.logo img { display: block; width: min(404px, 42vw); height: auto; }
.header-spacer { width: 238px; }
.mobile-menu-toggle { display: none; }

/* NAV */
.nav-bar { background: var(--red); }
.nav-container { width: 100%; min-height: 43px; display: flex; align-items: stretch; justify-content: center; }
.nav-item { position: relative; flex: 0 1 clamp(250px, 24vw, 400px); }
.nav-link { width: 100%; height: 43px; display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid rgba(255,255,255,.34); color: #fff; font-size: 14px; font-weight: 800; transition: filter .18s ease; font-family: 'Comfortaa', cursive, sans-serif; }
.nav-item:first-child .nav-link { border-left: 1px solid rgba(255,255,255,.22); }
.nav-item:hover .nav-link { filter: brightness(.88); }

.product-menu { position: absolute; top: 100%; left: 0; width: 320px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; z-index: 90; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.products-nav:hover .product-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.product-menu-link { width: 100%; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #000; font-size: 13px; font-weight: 800; text-transform: uppercase; transition: background .16s ease; border-bottom: 1px solid #f0f0f0; border-left-width: 8px; border-left-style: solid; font-family: 'Comfortaa', cursive, sans-serif; }
.product-menu-link:hover { background: #f9f9f9; }
.product-arrow { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 10px solid #ddd; flex: 0 0 auto; margin-left: 14px; }

/* HERO SLIDER */
.hero-slider { position: relative; height: calc(100vh - 185px); min-height: 520px; overflow: hidden; background: #fff; box-shadow: none; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: none; filter: none; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.42) 42%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.08) 100%); }
.slide-content { position: absolute; top: 49%; left: clamp(32px, 6vw, 120px); width: min(560px, calc(100% - 80px)); transform: translateY(-50%); color: #fff; }
.slide-subtitle { margin: 0 0 11px; color: #ffcc00; font-size: 20px; font-weight: 900; letter-spacing: .7px; }
.slide-content h1 { margin: 0 0 18px; max-width: 430px; color: #fff; font-size: 44px; font-weight: 900; line-height: .98; }
.slide-description { margin: 0 0 28px; max-width: 540px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.48; }
.slide-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.red-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff; padding: 0 24px; border-radius: 3px; font-size: 13px; font-weight: 900; transition: filter .18s ease, transform .18s ease; }
.red-button:hover { filter: brightness(.88); transform: translateY(-1px); }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(0,0,0,.22); color: #fff; cursor: pointer; font-size: 20px; transition: background .18s ease; }
.slider-arrow:hover { background: rgba(0,0,0,.52); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-controls { position: absolute; left: clamp(32px, 6vw, 120px); bottom: 24px; display: flex; gap: 10px; }
.slider-dot { width: 12px; height: 12px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.slider-dot.active { background: var(--red); transform: scale(1.18); }

/* FLOATING BUTTONS */
.floating-buttons { position: fixed; top: 50%; right: 0; transform: translateY(-50%); display: flex; flex-direction: column; z-index: 80; }
.floating-btn { width: 124px; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #fff; font-size: 13px; font-weight: 900; transition: filter .18s ease, transform .18s ease; }
.floating-btn:hover { filter: brightness(.9); transform: translateX(-4px); }
.floating-btn i { width: 18px; font-size: 18px; text-align: center; }
.floating-btn.whatsapp { background: var(--green); }
.floating-btn.phone { background: #666; }
.floating-btn.catalog { background: #777; }

/* FEATURES */
.features-bar { background: #080808; padding: 31px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.features-container { width: calc(100% - 32px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.feature-item { display: flex; align-items: center; gap: 17px; color: #fff; }
.feature-item > i { font-size: 34px; color: #fff; flex: 0 0 42px; text-align: center; }
.feature-item h2 { margin: 0 0 4px; color: #fff; font-size: 15px; font-weight: 900; }
.feature-item p { margin: 0; color: #fff; font-size: 13px; font-weight: 500; }

/* PRODUCT CATEGORIES */
.product-categories { background: #fff; padding: 34px 0 42px; }
.product-categories-container { width: calc(100% - 32px); margin: 0 auto; }
.product-categories-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.product-categories-title h2 { margin: 0; color: #222; font-size: 26px; font-weight: 900; }
.title-underline { display: block; width: 44px; height: 4px; background: var(--red); margin-top: 10px; }
.all-products-btn { min-height: 36px; padding: 0 20px; font-size: 12px; }
.product-categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-category-card { display: block; background: #f5f5f5; border: 1px solid #080808; border-radius: 4px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.product-category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.category-card-image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #ccc; }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.product-category-card:hover .category-card-image img { transform: scale(1.05); }
.category-card-bar { width: 100%; height: 5px; }
.category-card-label { min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 12px 15px; color: #222; font-size: 16px; font-weight: 900; text-align: center; }

/* PROJECTS GALLERY */
.projects-gallery { background: #fff; padding: 40px 0 60px; }
.projects-gallery-container { width: calc(100% - 32px); margin: 0 auto; }
.projects-gallery-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.projects-gallery-title h2 { margin: 0; color: #222; font-size: 26px; font-weight: 900; }
.project-category-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.project-category-btn { min-height: 42px; padding: 0 24px; border: 0; border-radius: 4px; background: #eee; color: #333; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease; }
.project-category-btn:hover { background: #fff; }
.project-category-btn.active { background: var(--red); color: #fff; }
.project-images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.project-image-item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #fff; border: 1px solid #080808; box-shadow: none; transition: transform .22s ease, box-shadow .22s ease; }
.project-image-item:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.project-image-item img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; transition: transform .3s ease; }
.project-image-item:hover img { transform: scale(1.06); }

/* PROJECT CAROUSEL (single bar with arrows) */
.project-carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.project-carousel-viewport { flex: 1; overflow: hidden; scroll-behavior: smooth; }
.project-carousel-track { display: flex; gap: 14px; }
.project-carousel .project-image-item { flex: 0 0 calc((100% - 14px * 3) / 4); aspect-ratio: 4 / 3; }
.project-carousel-arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: filter .18s ease, transform .18s ease; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.project-carousel-arrow:hover { filter: brightness(.85); transform: scale(1.06); }
@media (max-width: 960px) {
  .project-carousel .project-image-item { flex: 0 0 calc((100% - 14px) / 2); }
}
@media (max-width: 640px) {
  .project-carousel .project-image-item { flex: 0 0 100%; }
  .project-carousel-arrow { width: 38px; height: 38px; font-size: 14px; }
}

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.breadcrumb a { color: #555; transition: color .16s ease; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb a i { font-size: 13px; }
.breadcrumb-sep { color: #999; }
.breadcrumb-active { color: var(--red); font-weight: 800; }

/* PRODUCT PAGE (METAL OYUN GRUPLARI) */
.product-page { background: #fff; padding: 42px 0 56px; min-height: 50vh; }
.product-page-container { width: calc(100% - 32px); margin: 0 auto; }
.product-page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.product-page-title h1 { margin: 0; color: #111; font-size: 30px; font-weight: 900; letter-spacing: -.4px; }
.product-page-title .title-underline { background: #777; }
.product-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid #080808; border-radius: 8px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; display: block; color: inherit; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.product-card-image-wrapper { position: relative; background: #fff; aspect-ratio: 4 / 3; overflow: hidden; padding: 14px; }
.product-card-image-wrapper img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s ease; }
.product-card:hover .product-card-image-wrapper img { transform: scale(1.05); }
.product-card-badge { position: absolute; top: 10px; right: 10px; background: #eee; color: #000; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 3px; letter-spacing: .5px; }
.product-card-label { padding: 20px 12px; text-align: center; color: #000; font-size: 14px; font-weight: 900; letter-spacing: .3px; background: #f5f5f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-all-products-btn { min-height: 42px; padding: 0 26px; font-size: 15px; }

/* FOOTER */
.site-footer { background: #080808; padding: 50px 0 40px; color: #fff; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-container { width: calc(100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr 1.6fr 1.2fr; gap: 40px; align-items: start; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 45px; display: block; }
.footer-about-text { margin: 0 0 20px; color: #ccc; font-size: 13px; font-weight: 500; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: filter .18s ease, transform .18s ease; }
.footer-socials a:hover { filter: brightness(0.85); transform: translateY(-2px); }
.footer-col-title { margin: 0 0 20px; color: #fff; font-size: 18px; font-weight: 900; border-bottom: 2px solid var(--red); display: inline-block; padding-bottom: 5px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ccc; font-size: 13px; font-weight: 600; transition: color .16s ease; white-space: nowrap; }
.footer-links a:hover { color: var(--red); }
.footer-products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; color: #ccc; font-size: 13px; font-weight: 600; line-height: 1.5; }
.footer-contact li i { color: var(--red); font-size: 15px; flex: 0 0 16px; margin-top: 2px; }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: var(--red); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .features-container { grid-template-columns: repeat(2, 1fr); }
    .product-categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .top-bar-container { width: min(100% - 24px, 760px); padding: 8px 0; flex-direction: column; gap: 8px; justify-content: center; }
    .header-container { width: min(100% - 24px, 760px); height: auto; padding: 18px 0; flex-direction: column; justify-content: center; gap: 15px; }
    .header-spacer { display: none; }
    .logo { position: static; transform: none; margin: 10px 0; }
    .logo img { width: min(320px, 82vw); }
    .search-box { width: 100%; max-width: 320px; }
    
    .nav-container { flex-wrap: wrap; }
    .nav-item { flex: 1 1 50%; }
    .product-menu { left: 50%; transform: translate(-50%, 4px); }
    .products-nav:hover .product-menu { transform: translate(-50%, 0); }
    
    .hero-slider { height: 500px; }
    .product-cards-grid, .project-images-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    /* MOBILE NAVIGATION (HAMBURGER MENU) */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        position: absolute;
        right: 16px;
        top: 25px;
        z-index: 101;
        transition: transform 0.2s ease;
    }
    .mobile-menu-toggle:active {
        transform: scale(0.9);
    }
    
    .nav-bar {
        display: none; /* hidden by default on mobile */
        width: 100%;
        background: var(--red);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }
    
    .nav-bar.mobile-active {
        display: block; /* show when toggled */
        animation: slideDownNav 0.3s ease-out forwards;
    }

    @keyframes slideDownNav {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-item {
        width: 100%;
        flex: none;
    }
    
    .nav-link {
        width: 100%;
        height: auto;
        padding: 14px 24px;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 15px;
    }
    
    .nav-item:first-child .nav-link {
        border-left: none;
    }
    
    /* Mobile Submenu Accordion Style */
    .product-menu {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #fdfdfd;
        border-left: 4px solid var(--red);
        animation: none;
    }
    
    .products-nav:hover .product-menu {
        display: none; /* disable hover on mobile */
        transform: none;
    }
    
    .products-nav.dropdown-active .product-menu {
        display: block; /* show on click/toggle */
    }

    .product-menu-link {
        height: auto;
        padding: 14px 20px;
        font-size: 13px;
        border-bottom: 1px solid #f1f1f1;
    }

    /* Swipeable project carousel on touch devices */
    .project-carousel-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .project-carousel-viewport::-webkit-scrollbar {
        display: none;
    }
    .project-carousel .project-image-item {
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
  .top-bar-left { gap: 10px 16px; font-size: 12px; }
  .top-bar-right { flex-wrap: wrap; justify-content: center; }
  .hero-slider { height: 560px; }
  .slide-content { top: 47%; width: calc(100% - 56px); left: 28px; }
  .slide-subtitle { font-size: 17px; }
  .slide-content h1 { font-size: 36px; }
  .slide-buttons { flex-direction: column; align-items: stretch; width: min(230px, 100%); }
  .slider-arrow { width: 42px; height: 42px; }
  .slider-controls { left: 28px; bottom: 18px; }
  
  /* Floating bottom bar adjustments to fit screen */
  .floating-buttons { top: auto; right: 0; bottom: 0; left: 0; transform: none; flex-direction: row; }
  .floating-btn { flex: 1; width: auto; min-height: 46px; justify-content: center; padding: 0 8px; font-size: 11px; }
  .features-bar { padding-bottom: 74px; }
  .features-container, .product-categories-grid, .product-cards-grid, .project-images-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 24px; }
  .footer-products-grid { grid-template-columns: 1fr; }
  .product-categories-header, .projects-gallery-header, .product-page-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}



