:root {
    --primary-color: #e63946;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #050505;
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================
   NAVBAR
========================= */

nav {

    position: fixed;

    top: 0;
    width: 100%;

    padding: 0.8rem 5%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    background: rgba(10,10,10,0.75);

    backdrop-filter: blur(18px);

    border-bottom:
    1px solid rgba(255,255,255,0.08);

    z-index: 1000;

    transition: 0.4s ease;
}

.logo {

    justify-self: start;

    font-size: 1.5rem;

    font-weight: 700;

    letter-spacing: 2px;

    color: white;
}

.logo span {
    color: #d61f1f;
}

nav ul {

    display: flex;

    list-style: none;

    gap: 2.5rem;

    justify-self: center;
}

nav ul li a {

    position: relative;

    color: white;

    text-decoration: none;

    font-weight: 500;

    transition: 0.3s ease;
}

nav ul li a::after {

    content: '';

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0%;

    height: 2px;

    background: white;

    transition: 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #ff3b3b;
}

.nav-btn {

    justify-self: end;

    background:
    linear-gradient(135deg, #ff3b3b, #b31217);

    color: white;

    padding: 12px 24px;

    border-radius: 999px;

    text-decoration: none;

    font-weight: 600;

    transition: 0.3s ease;
}

.nav-btn:hover {

    transform: translateY(-3px);

    box-shadow:
    0 10px 25px rgba(255,59,59,0.35);
}


/* =========================
   HERO
========================= */

.hero {

    position: relative;

    height: 100vh;

    background:
    linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    ),
    url('images/hero2.webp')
    no-repeat center center/cover;

    display: flex;

    align-items: center;

    justify-content: center;

    padding-bottom: 120px;

    text-align: center;

    overflow: hidden;
}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
    rgba(0,0,0,0.15);

    z-index: 1;
}

.hero-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

    animation: fadeUp 1.2s ease;
}

.hero-content h1 {

    font-size:
    clamp(2.8rem, 6vw, 5rem);

    line-height: 0.95;

    letter-spacing: 3px;

    color: rgba(255,255,255,0.95);

    margin-bottom: 1.5rem;

    text-shadow:
    0 10px 30px rgba(0,0,0,0.45);
}

.hero-content p {

    color:
    rgba(255,255,255,0.75);

    font-size: 1.15rem;

    max-width: 700px;

    margin: auto;

    margin-bottom: 2.5rem;
}

.hero-buttons {

    display: flex;

    justify-content: center;

    gap: 1rem;

    flex-wrap: wrap;
}

.btn {

    display: inline-block;

    background:
    linear-gradient(135deg, #ff3b3b, #b31217);

    color: white;

    padding: 14px 32px;

    border-radius: 14px;

    text-decoration: none;

    font-weight: 700;

    transition: 0.3s ease;
}

.btn:hover {

    transform: translateY(-3px);

    box-shadow:
    0 10px 25px rgba(255,59,59,0.35);
}

.btn-secondary {

    display: inline-block;

    padding: 14px 32px;

    border-radius: 14px;

    border:
    1px solid rgba(255,255,255,0.2);

    background:
    rgba(255,255,255,0.05);

    backdrop-filter: blur(10px);

    color: white;

    text-decoration: none;

    transition: 0.3s ease;
}

.btn-secondary:hover {

    background: white;

    color: black;
}


/* =========================
   PRODUCTS
========================= */

.products {

    position: relative;

    padding: 7rem 6%;

    background:

    radial-gradient(
        circle at top,
        rgba(255,0,0,0.06),
        transparent 40%
    ),

    linear-gradient(
        to bottom,
        #050505,
        #101010
    );

    color: white;
}

.products::before {

    content: '';

    position: absolute;

    top: -140px;
    left: 0;

    width: 100%;
    height: 140px;

    background:
    linear-gradient(
        to bottom,
        transparent,
        #050505
    );

    pointer-events: none;
}

.products h2 {

    text-align: center;

    font-size:
    clamp(2.2rem, 5vw, 4rem);

    margin-bottom: 4rem;

    letter-spacing: 2px;
}

.product-grid {

    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;
}

.product-card {

    position: relative;

    isolation: isolate;

    overflow: hidden;

    padding: 3rem 2rem;

    border-radius: 28px;

    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(18px);

    transition:
    transform 0.45s ease,
    border 0.45s ease,
    box-shadow 0.45s ease;

    text-align: left;
}

/* IMAGE */

.product-card::after {

    content: '';

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: 0.40;

    z-index: -3;

    transition: 0.6s ease;
}

/* DARK OVERLAY */

.product-card::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
    linear-gradient(
        to bottom,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.55)
    );

    z-index: -2;
}

/* RED GLOW */

.product-card-glow {

    position: absolute;

    top: -120px;
    right: -120px;

    width: 220px;
    height: 220px;

    background:
    radial-gradient(
        rgba(255,59,59,0.22),
        transparent 70%
    );

    z-index: -1;

    transition: 0.5s ease;
}

/* BACKGROUNDS */

.metal-card::after {

    background-image:
    url('images/metalfermuarkartgörseli.webp');
}

.bone-card::after {

    background-image:
    url('images/kemikfermuarkartgörseli.webp');
}

.nylon-card::after {

    background-image:
    url('images/naylonfermuarkartgörseli.webp');
}

/* HOVER */

.product-card:hover {

    transform:
    translateY(-12px)
    scale(1.02);

    border:
    1px solid rgba(255,59,59,0.35);

    box-shadow:
    0 20px 45px rgba(0,0,0,0.35);
}

.product-card:hover::after {

    opacity: 0.32;

    transform: scale(1.08);
}

.product-card:hover .product-card-glow {

    transform: scale(1.2);
}

/* ICON */

.product-card i {

    font-size: 2.8rem;

    margin-bottom: 1.5rem;

    color: #ff3b3b;
}

/* TITLE */

.product-card h3 {

    font-size: 1.7rem;

    margin-bottom: 1rem;
}

/* TEXT */

.product-card p {

    color:
    rgba(255,255,255,0.72);

    line-height: 1.7;
}


/* =========================
   HAMBURGER MENU
========================= */

.menu-toggle {

    display: none;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;

    justify-self: end;

    z-index: 2000;
}

.menu-toggle span {

    width: 30px;
    height: 2px;

    background: white;

    transition: 0.4s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

body.menu-open {
    overflow: hidden;
}


/* =========================
   SCROLL REVEAL
========================= */

.reveal {

    opacity: 0;

    transform: translateY(80px);

    transition:
    opacity 1s ease,
    transform 1s ease;
}

.reveal.active {

    opacity: 1;

    transform: translateY(0);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {

    nav {

        grid-template-columns:
        1fr auto;

        padding: 1rem 5%;
    }

    .logo {

        font-size: 1.1rem;

        letter-spacing: 1px;
    }

    .nav-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {

        position: fixed;

        top: 0;
        right: -100%;

        width: 100%;
        height: 100vh;

        background:
        linear-gradient(
            135deg,
            rgba(0,0,0,0.96),
            rgba(10,10,10,0.98)
        );

        backdrop-filter: blur(25px);

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: flex-start;

        padding-left: 12%;

        gap: 2.5rem;

        transition:
        0.55s cubic-bezier(.77,0,.18,1);

        z-index: 1500;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {

        opacity: 0;

        transform: translateX(40px);

        transition: 0.5s ease;
    }

    nav ul.active li {

        opacity: 1;

        transform: translateX(0);
    }

    nav ul li a {

        font-size: 2rem;

        font-weight: 600;
    }

    .hero {

        background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.45)
        ),
        url('images/herp.webp')
        no-repeat center center/cover;

        align-items: flex-end;

        padding-bottom: 120px;
    }

    .hero-content {

        padding: 0 20px;
    }

    .hero-content h1 {

        font-size:
        clamp(2.2rem, 8vw, 3.2rem);

        line-height: 1.05;

        letter-spacing: 1px;
    }

    .hero-content p {

        font-size: 1rem;
    }

    .hero-buttons {

        flex-direction: column;

        align-items: center;
    }

    .btn,
    .btn-secondary {

        width: 100%;

        max-width: 320px;

        text-align: center;
    }

    .products {
        padding: 5rem 6%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   ANIMATION
========================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(40px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}

/* =========================
   ABOUT SECTION
========================= */

.about {

    display: grid;

    grid-template-columns:
    1fr 1fr;

    gap: 5rem;

    align-items: center;

    padding: 8rem 6%;

    background:
    linear-gradient(
        to bottom,
        #101010,
        #070707
    );

    color: white;
}


/* LEFT */

.about-content {

    max-width: 650px;
}

.about-tag {

    display: inline-block;

    padding: 10px 18px;

    border-radius: 999px;

    background:
    rgba(255,59,59,0.12);

    border:
    1px solid rgba(255,59,59,0.18);

    color: #ff4b4b;

    font-size: 0.9rem;

    letter-spacing: 1px;

    margin-bottom: 1.5rem;
}

.about h2 {

    font-size:
    clamp(2.5rem, 5vw, 4rem);

    line-height: 1.05;

    margin-bottom: 2rem;
}

.about p {

    color:
    rgba(255,255,255,0.72);

    line-height: 1.9;

    margin-bottom: 3rem;
}


/* STATS */

.about-stats {

    display: flex;

    gap: 1.5rem;

    flex-wrap: wrap;
}

.stat-box {

    padding: 1.5rem 2rem;

    border-radius: 24px;

    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(16px);

    min-width: 170px;
}

.stat-box h3 {

    font-size: 2rem;

    color: #ff3b3b;

    margin-bottom: 0.5rem;
}

.stat-box span {

    color:
    rgba(255,255,255,0.72);
}


/* IMAGE */

.about-image {

    position: relative;
}

.about-image img {

    width: 100%;

    border-radius: 32px;

    object-fit: cover;

    box-shadow:
    0 25px 60px rgba(0,0,0,0.45);
}


/* MOBILE */

@media (max-width: 992px) {

    .about {

        grid-template-columns: 1fr;

        gap: 4rem;

        padding: 6rem 6%;
    }

    .about h2 {

        font-size:
        clamp(2.2rem, 8vw, 3rem);
    }

    .about-stats {

        flex-direction: column;
    }

    .stat-box {

        width: 100%;
    }
}


/* =========================
   FOOTER
========================= */

.footer {

    position: relative;

    padding: 5rem 6% 2rem;

    background:
    linear-gradient(
        to bottom,
        #070707,
        #020202
    );

    color: white;

    overflow: hidden;
}


/* TOP */

.footer-top {

    display: grid;

    grid-template-columns:
    1.5fr 1fr 1fr;

    gap: 4rem;

    padding-bottom: 4rem;

    border-bottom:
    1px solid rgba(255,255,255,0.08);
}


/* BRAND */

.footer-brand h2 {

    font-size: 2rem;

    margin-bottom: 1rem;

    letter-spacing: 2px;
}

.footer-brand span {
    color: #ff3b3b;
}

.footer-brand p {

    color:
    rgba(255,255,255,0.65);

    max-width: 420px;

    line-height: 1.8;
}


/* LINKS */

.footer-links h3,
.footer-contact h3 {

    margin-bottom: 1.5rem;

    font-size: 1.1rem;
}

.footer-links {

    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.footer-links a {

    color:
    rgba(255,255,255,0.65);

    text-decoration: none;

    transition: 0.3s ease;
}

.footer-links a:hover {

    color: #ff3b3b;

    transform: translateX(4px);
}


/* CONTACT */

.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.footer-contact p {

    color:
    rgba(255,255,255,0.65);
}


/* BOTTOM */

.footer-bottom {

    width: 100%;

    padding-top: 2rem;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


/* COPYRIGHT */

.footer-copy {

    color:
    rgba(255,255,255,0.45);

    font-size: 0.9rem;
}


/* DESIGNER */

.designer {

    color:
    rgba(255,255,255,0.28);

    font-size: 0.85rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition: 0.3s ease;
}

.designer:hover {

    color: #ff3b3b;
}

/* RED GLOW */

.footer::before {

    content: '';

    position: absolute;

    top: -250px;
    left: 50%;

    transform: translateX(-50%);

    width: 500px;
    height: 500px;

    background:
    radial-gradient(
        rgba(255,0,0,0.08),
        transparent 70%
    );

    pointer-events: none;
}


/* MOBILE */

@media (max-width: 992px) {

    .footer-top {

        grid-template-columns: 1fr;

        gap: 3rem;
    }

    .footer {

        padding: 4rem 6% 2rem;
    }
}


/* =========================
   WHATSAPP BUTTON
========================= */

.whatsapp-btn {

    position: fixed;

    right: 30px;
    bottom: 30px;

    width: 65px;
    height: 65px;

    border-radius: 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
    linear-gradient(
        135deg,
        #25D366,
        #1ebc57
    );

    color: white;

    font-size: 2rem;

    text-decoration: none;

    box-shadow:
    0 0 25px rgba(37,211,102,0.45);

    z-index: 9999;

    transition: 0.35s ease;
}

.whatsapp-btn:hover {

    transform:
    translateY(-5px)
    scale(1.08);

    box-shadow:
    0 0 35px rgba(37,211,102,0.7);
}


/* PULSE */

.whatsapp-btn::before {

    content: '';

    position: absolute;

    inset: -6px;

    border-radius: 50%;

    border:
    2px solid rgba(37,211,102,0.4);

    animation:
    whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {

    0% {

        transform: scale(1);

        opacity: 1;
    }

    100% {

        transform: scale(1.5);

        opacity: 0;
    }
}


/* MOBILE */

@media (max-width:768px){

    .whatsapp-btn{

        width:58px;
        height:58px;

        font-size:1.8rem;

        right:20px;
        bottom:20px;
    }

}

/* =========================
   CONTACT
========================= */

.contact {

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:5rem;

    padding:8rem 6%;

    background:
    linear-gradient(
        to bottom,
        #070707,
        #050505
    );

    color:white;
}

.contact-tag{

    display:inline-block;

    padding:10px 18px;

    border-radius:999px;

    background:
    rgba(255,59,59,0.12);

    border:
    1px solid rgba(255,59,59,0.18);

    color:#ff3b3b;

    margin-bottom:1.5rem;
}

.contact h2{

    font-size:
    clamp(2.5rem,5vw,4rem);

    margin-bottom:1.5rem;
}

.contact p{

    color:
    rgba(255,255,255,.7);

    margin-bottom:2rem;
}

.contact-item{

    display:flex;

    align-items:center;

    gap:1rem;

    margin-bottom:1.5rem;
}

.contact-item i{

    color:#ff3b3b;

    font-size:1.2rem;
}


/* FORM */

.contact-form{

    display:flex;

    flex-direction:column;

    gap:1.5rem;

    padding:2rem;

    border-radius:28px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(16px);
}

.contact-form input,
.contact-form textarea{

    background:
    rgba(255,255,255,.04);

    border:none;

    outline:none;

    padding:16px;

    border-radius:14px;

    color:white;
}

.contact-form textarea{

    min-height:150px;

    resize:none;
}

@media(max-width:992px){

    .contact{

        grid-template-columns:1fr;
    }
}

/* =========================
   MAP
========================= */

.map-section {

    padding: 4rem 6%;

    background:
    linear-gradient(
        to bottom,
        #050505,
        #020202
    );

    color: white;
}

.map-title {

    text-align: center;

    margin-bottom: 2rem;
}

.map-title span {

    display: inline-block;

    padding: 7px 14px;

    border-radius: 999px;

    background:
    rgba(255, 255, 255, 0.12);

    border:
    1px solid rgba(255,59,59,0.18);

    color: #ff3b3b;

    margin-bottom: 1rem;
}

.map-title h2 {

    font-size:
    clamp(1.8rem,3vw,2.5rem);
}

.map-container {

    overflow: hidden;

    border-radius: 24px;

    border:
    1px solid rgba(244, 12, 12, 0.715);

    box-shadow:
    0 20px 50px rgba(240, 0, 0, 0.4);
}

.map-container iframe {

    width: 100%;

    display: block;
    height: 360px;

    border: 0;
}

@media (max-width: 768px) {
    .map-section { padding: 3rem 6%; }
    .map-title { margin-bottom: 1.5rem; }
    .map-container { border-radius: 20px; }
    .map-container iframe { height: 280px; }
}

/* Compact contact section: preserve the original colors and content. */
.contact {
    gap: 3rem;
    padding: 4.5rem 6%;
    align-items: start;
}
.contact h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.contact-tag { padding: 7px 14px; margin-bottom: 1rem; }
.contact p { margin-bottom: 1.25rem; }
.contact-item { margin-bottom: 1rem; }
.contact-item span { min-width: 0; overflow-wrap: anywhere; }
.contact-form { min-width: 0; gap: 1rem; padding: 1.5rem; border-radius: 22px; }
.contact-form input, .contact-form textarea { min-width: 0; width: 100%; padding: 12px 14px; }
.contact-form textarea { min-height: 110px; }
.contact-form .btn { padding: 11px 24px; }

/* Compact mobile menu with keyboard-accessible controls. */
.menu-toggle { border: 0; background: transparent; color: white; padding: 0; }
.menu-toggle:focus-visible, nav ul a:focus-visible { outline: 2px solid #ff3b3b; outline-offset: 5px; }
@media (max-width: 992px) {
    .contact { gap: 2rem; padding: 3.5rem 6%; }
    .menu-toggle { width: 44px; height: 44px; align-items: center; justify-content: center; }
    .menu-toggle span { width: 24px; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    nav ul {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        max-height: calc(100svh - 100px);
        overflow-y: auto;
        display: none;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 1rem 0 0;
        background: transparent;
        backdrop-filter: none;
        transition: none;
    }
    nav ul.active { display: flex; }
    nav ul li { opacity: 1; transform: none; transition: none; }
    nav ul li a { display: block; padding: 12px 0; font-size: 1.15rem; }
    body.menu-open { overflow: auto; }
    body.menu-open .whatsapp-btn { visibility: hidden; }
}
@media (max-width: 480px) {
    .contact-form { padding: 1.15rem; }
    .contact-item { font-size: .9rem; gap: .75rem; }
}

/* Keep the homepage collection image compact on mobile. */
@media (max-width: 992px) {
    .about-image img {
        display: block;
        height: clamp(220px, 65vw, 340px);
        object-fit: cover;
        object-position: center;
        border-radius: 24px;
    }
}
