@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/*----------------------------ROOT----------------------------*/
:root {
    /* Background Color */
    --bg-color: #fff;
    --bg-card: #f8f9fa;
    --bg-line: #161f33;
    --trendyol-bg-clr: #f27a1a;

    /* BTN PRİMARY color */
    --btn-primary: #161f33;
    --btn-primary-hover: #476196;
    --btn-text: #fff;
    --btn-sec-hover: #363eb6e3;

    /* text Color */
    --text-primary: #1a1c36;
    --text-light: #4b5563;
    --text-white: #fff;
    /* RANDOM COLOR */
    --primary-color: #1a1c36;
    --whatsapp-color: #25d366;
    --border-clr-light: #ddd;
    --border-clr-dark: #555555;
    /* Genel Font Boyutları (1rem = 10px) */
    --font-H1: 4rem;
    --font-H2: 3rem;
    --font-H3: 2rem;
    --font-base: 1.6rem;
    --font-x: 1.4rem;
    --font-xs: 1.1rem;

    /* 5. FONKSiYONEL ÖZELLİKLER (TYPOGRAPHY & UTILITIES) */
    --spacing-unit: 1rem;
    --letter-space: 0.1rem;
    --border-radius: 0.5rem;

    --speed: 0.3s all ease;
    --content-max-width: 120rem;
    --shadow: 0px 0px 10px rgba(0, 0, 0, 0.171);
}

/*------------------- CSS RESET -------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

ol,
ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/*------------------- utility -------------------*/
.width {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: var(--text-white);
    border: 1px solid var(--border-clr-light);
    border-radius: var(--border-radius);
    font-size: var(--font-x);
    font-weight: 600;
    letter-spacing: var(--letter-space);
    cursor: pointer;
    transition: var(--speed);
    padding: 8px 20px;
}

.btn-primary:hover {
    background-color: var(--bg-card);
    color: var(--btn-primary);
}

.btn-primary:active {
    background-color: var(--btn-primary-hover);
}

.hidden {
    display: none !important;
}

/*------------------- HEADER START -------------------*/

header {
    width: 100%;
}

.header-top {
    background-color: var(--bg-line);
    color: var(--text-white);
}

.header-top__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.header-top__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top__left a,
.header-top__left p {
    color: var(--text-white);
    font-size: 1.2rem;
}

.header-top__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}

.header-top__list li {
    padding: 0.1rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--speed);
}

.header-top__list li:hover {
    background-color: var(--btn-sec-hover);
}

.header-top__list li a {
    color: var(--text-white);
    font-size: 1.2rem;
}

/*------------------- NAV-BAR START -------------------*/
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    z-index: 10;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-unit);
}

/* NAVBAR LEFT */

.navbar__left img {
    width: 100px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}

.navbar__menu .nav-item {
    padding: 0.1rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--speed);
}

.navbar__menu .nav-item:hover {
    background-color: var(--text-primary);
}

.navbar__menu .nav-item:hover a {
    color: #fff;
}

.navbar__menu .nav-item a {
    font-size: var(--font-base);
    color: var(--text-light);
}

/* HAMBURGER MENU */
.hamburger-menu {
    display: none;
    position: relative;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 5px;
    margin-bottom: 0.2rem;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    cursor: pointer;
    transition: var(--speed);
    position: absolute;
    right: 0;
}

.hamburger-menu span:nth-child(1) {
    transform: translateY(10px);
}

.hamburger-menu span:nth-child(3) {
    transform: translateY(-10px);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(0);
}

.hamburger-menu:hover span {
    background: var(--btn-primary-hover);
}

/* NAVBAR RİGHT */
.navbar-right {
    display: flex;
    gap: 2rem;
    transition: var(--speed);
}

.navbar-right.active {
    opacity: 1;
    max-height: 500px;
    visibility: visible;
    transform: translateY(-20px);
}

.navbar__icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}

.navbar__icons i {
    font-size: 1.7rem;
    color: var(--btn-primary);
    transition: var(--speed);
}

.navbar__icons i:hover {
    color: var(--btn-primary-hover);
}

/*------------------- MAİN START -------------------*/
/*-----HERO START -----*/
.hero {
    background-color: var(--bg-card);
}

.hero__content {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    padding: 5rem 1rem;
}

.hero__left .hero__badge {
    background-color: var(--bg-color);
    color: var(--btn-primary);
    border: 1px solid var(--border-clr-light);
    border-radius: var(--border-radius);
    padding: 4px 20px;
    font-size: var(--font-xs);
    font-weight: 500;
    display: inline-block;
    margin-bottom: var(--spacing-unit);
}

.hero__left h1 {
    color: var(--text-primary);
    font-size: var(--font-H1);
}

.hero__left span {
    color: var(--text-light);
}

.hero__left .hero__text {
    font-size: var(--font-base);
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero__buttons {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* HERO BUTTONS UTİLS */

.hero__carousel-track {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    height: auto;
}

.hero__right img {
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 10px;
}

/*-----HERO END -----*/

/*-----PRODUCT header -----*/
.products {
    background-color: var(--bg-color);
    padding: var(--spacing-unit);
}

.products__header {
    text-align: center;
    padding: 5rem 0;
}

.products__header h2 {
    font-size: var(--font-H2);
    color: var(--text-primary);
}

.products__header p {
    font-size: var(--font-x);
    color: var(--text-light);
}

/* products box */

.products__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    gap: 3rem 2rem;
}

.products__card {
    display: flex;
    padding: var(--spacing-unit);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-clr-light);
    gap: var(--spacing-unit);
    background-color: var(--bg-card);
    transition: var(--speed);
}

.products__card:hover {
    border-color: var(--border-clr-dark);
}

.products__card img {
    width: 120px;
    border-radius: var(--border-radius);
}

.products__card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products__card-info h3 {
    font-size: var(--font-H3);
    padding: var(--spacing-unit);
    color: var(--text-primary);
}

.products__card-info p {
    padding: 0.2rem 1rem;
    font-size: var(--font-x);
    color: var(--text-light);
}

.products__card-actions {
    padding: var(--spacing-unit);
}

/* PRODUCT BUTTON UTİLS */
/*-----------PRODUCT DETAİLS START ----------------- */
.product__detail {
    background-color: var(--bg-card);
    max-width: 800px;
    width: 100%;
    margin: 2rem auto;
    border-radius: 2rem;
    padding: 1rem;
}

.product__detail-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.product__detail-gallery>img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 300px;
}

.product__thumbs {
    margin: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 300px;
}

.product__thumbs img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.product__detail_title h3 {
    font-size: var(--font-H3);
    color: var(--text-primary);
}

.product__detail_title p {
    font-size: var(--font-base);
    color: var(--text-light);
}

.product__detail-short li {
    background-color: var(--bg-color);
    width: max-content;
    padding: 0.2rem;
    font-size: var(--font-x);
    margin: 0.3rem 0;
    border-radius: var(--border-radius);
}

.product__detail-desc {
    font-size: var(--font-base);
    color: var(--text-light);
}

/* product-detail buttons */
.product__detail-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    gap: 1rem;
}

.product__detail-action a {
    flex: 1;
    font-size: var(--font-base);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-clr-light);
    text-align: center;
}

.product__detail-action a:nth-child(1) {
    background-color: var(--whatsapp-color);
    color: var(--text-white);
}

.product__detail-action a:nth-child(2) {
    background-color: var(--trendyol-bg-clr);
    color: var(--text-white);
}

.product__specs h3,
.product__detail-features h3 {
    font-size: var(--font-H3);
    margin: 1rem 0;
}

.specs-table,
.detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    font-size: var(--font-x);
}

.specs-table th,
.detail-table th {
    background: linear-gradient(130deg, #4f12db, #4403c5);
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: var(--font-base);
}

.specs-table td,
.detail-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-clr-light);
}

.specs-table tr:nth-child(even),
.detail-table tr:nth-child(even) {
    background-color: #faf8ff;
}

.specs-table tr:last-child td,
.detail-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child,
.detail-table td:first-child {
    font-weight: 700;
    color: #5a2d91;
    width: 42%;
    background-color: #f8f4ff;
}

/*-----------PRODUCT DETAİLS END ----------------- */

/*-----PRODUCT END -----*/

/*-----SERVİCE START -----*/
.services {
    background-color: var(--bg-color);
    padding: var(--spacing-unit);
}

.services__header,
.contact__header,
.faq__header {
    text-align: center;
    padding: 5rem 0;
}

.services__header h2,
.contact__header h2,
.faq__header h2 {
    font-size: var(--font-H2);
    color: var(--text-primary);
}

.services__header p,
.contact__header p,
.faq__header p {
    font-size: var(--font-x);
    color: var(--text-light);
}

/* services card */
.services__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-unit);
}

.services__item {
    background-color: var(--bg-card);
    padding: var(--spacing-unit);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-clr-light);
    transition: var(--speed);
}

.services__item:hover {
    border-color: var(--border-clr-dark);
}

.services__item h5 {
    font-size: var(--font-base);
    color: var(--text-primary);
}

.services__item p {
    font-size: var(--font-xs);
    color: var(--text-light);
}

/* service card end */
/*-----SERVİCE END -----*/

/*-----CONTACT  START -----*/
/* Service ile aynı kodlara sahip olması nedeni ile
Bir ustte beraber yazıldı hepsi
*/
.contact {
    background-color: var(--bg-card);
    margin-top: 5rem;
    padding: 3rem 1rem;
}

.contact__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-unit);
}

.contact__card {
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 1px solid var(--border-clr-light);
    border-radius: var(--border-radius);
    padding: 2rem 0;
    transition: var(--speed);
}

.contact__card:hover {
    border-color: var(--border-clr-dark);
}

.contact-icon {
    padding: 1.5rem;
    border-radius: 1rem;
    color: #fff;
}

.contact-whatsapp {
    background-color: #25d366;
}

.contact-tel,
.contact-email {
    background-color: var(--primary-color);
}

.contact__card i {
    font-size: 2.5rem;
}

.contact__card h3 {
    font-size: var(--font-H3);
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.contact__card p {
    font-size: var(--font-x);
    color: var(--text-light);
    font-weight: 500;
    margin: 1rem 0;
}

.contact__card span {
    font-size: var(--font-x);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/*-----CONTACT END -----*/

/*-----FAQ START -----*/
.faq__wrapper {
    padding: 2rem;
}

.faq {
    border: 1px solid #e5e7eb;
    width: 50%;
    margin: 1rem auto;
    cursor: pointer;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-card);
}

.faq summary {
    list-style: none;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

/* Özel ok (arrow) */
.faq summary::after {
    content: "+";
    font-size: 2rem;
    transition: transform 0.3s ease;
}

/* Açıkken oku değiştir */
.faq[open] summary::after {
    content: "−";
}

/* İçerik */
.faq p {
    margin-top: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-light);
}

.faq p {
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.faq[open] p {
    opacity: 1;
    transform: translateY(0);
}

summary {
    user-select: none;
}

/*-----FAQ END -----*/

/*-----FOOTER START -----*/
.footer-wrapper {
    background-color: var(--bg-line);
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--text-light);
}

.footer__card h3 {
    font-size: var(--font-H3);
    color: var(--text-white);
    margin-bottom: var(--spacing-unit);
    padding: 0 1rem;
}

.footer__card p {
    font-size: var(--font-x);
    color: var(--text-light);
    padding: 0 1rem;
}

.footer-card-list a {
    color: var(--text-light);
    font-size: var(--font-x);
    border-radius: var(--border-radius);
    padding: 0.4rem 1rem;
    transition: var(--speed);
    display: inline-block;
    margin: 0.5rem 0;
}

.footer-card-list a:hover {
    background-color: var(--btn-sec-hover);
    color: var(--text-white);
    transform: translate(10px);
}

/* Footer top end */
/* footer start */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 0 1rem;
}

.footer__bottom h3 {
    color: var(--text-light);
}

.footer__bottom ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
    margin-bottom: 2rem;
    padding: var(--spacing-unit);
}

.footer__bottom ul li a {
    color: var(--text-white);
    font-size: var(--font-x);
}

/* UTİLS */
.utils {
    position: fixed;
    z-index: 20;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: var(--speed);
}

.utils.inScroll {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.utils a {
    border: 1px solid var(--border-clr-dark);
    font-size: var(--font-x);
    border-radius: var(--border-radius);
    color: #fff;
    font-weight: bold;
    font-size: 2.5rem;
    padding: 2px 10px;
    transition: var(--speed);
}

.utils li:nth-child(1) a {
    background: var(--whatsapp-color);
}

.utils li:nth-child(1):hover a {
    background: green;
}

.utils li:nth-child(2) a {
    background: #1a1c36;
}

.utils li:nth-child(2) a:hover {
    background: #2c3081;
}


/*-----FOOTER END -----*/

/* RESPONSİVE */
@media screen and (max-width: 768px) {
    .hero__right {
        display: none;
    }

    .product__detail-header {
        flex-direction: column;
    }

    .product__thumbs {
        width: 100%;
        margin-top: 1rem;
        justify-content: flex-start;
    }

    .services__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .hamburger-menu {
        display: block;
    }

    .navbar-right {
        flex-direction: column;
        position: absolute;
        background-color: var(--bg-color);
        top: 75px;
        right: 0;
        width: 100%;
        align-items: center;
        padding-bottom: 1rem;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
    }

    .navbar__menu {
        flex-direction: column;
    }

    .hero__buttons {
        flex-direction: column-reverse;
        align-items: flex-start;

        .btn-primary {
            width: 200px;
        }
    }

    .services__list {
        grid-template-columns: 1fr;
    }

    .products__list {
        grid-template-columns: 1fr;
    }

    .products__card {
        flex-direction: column;
    }

    .products__card-image img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    .product__detail-action {
        flex-direction: column;
        align-items: flex-start;

        a {
            width: 100%;
        }
    }

    .contact__list {
        grid-template-columns: 1fr;
    }
}