* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #165f38;
    --secondary-color: #dadee2;
    --accent-color: #f8faf9;
    --text-color: #333;
    --light-text: #feeea5;
    --bg-color: #ffffff;
    --navbar-bg: #f1f1f1;
    --border-color: #ddd;
}

/* HEADINGS */

h1,
p {
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.4;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    color: var(--text-color);
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 10px;
}

#loadingOverlay2 {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
  }
  
  .loader-logo {
    position: relative;
    width: 100px;
    height: 100px;
  }
  
  .loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    z-index: 1;
  }
  
  .loader-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #ecfff5;
    z-index: 0;
    border-radius: 8px;
    transition: height 0.3s ease;
  }

  .zoomableImg{
    border-radius: 10px;
  }
  
  #loadingText {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #555;
  }

/* BASIC SETUP */

/* Modal arka plan */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* Modal kutusu */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    position: relative;
    text-align: center;
}

.modal-content img {
    width: 200px;
}

.modal-content p {
    color: var(--text-color);
}

/* Kapatma simgesi */
.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

/* Açma butonu */
.open-modal-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.open-modal-btn:hover {
    background: #2c80b4;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.page-wrapper {
    width: 100%;
    height: auto;
}

.nav-wrapper {
    z-index: 99999;
    width: 100%;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    background-color: var(--accent-color);
}

.grad-bar {
    width: 100%;
    height: 5px;
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--text-color));
    background-size: 400% 400%;
    -webkit-animation: gradbar 15s ease infinite;
    -moz-animation: gradbar 15s ease infinite;
    animation: gradbar 15s ease infinite;
}

/* NAVIGATION */

.navbar {
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    height: 50px;
    overflow: hidden;
}

.navbar img {
    height: 50px;
    width: auto;
    justify-self: start;
    margin-left: 20px;
}

.navbar ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, auto);
    /* 1fr yerine auto daha iyi olur burada */
    gap: 20px;
    /* boşluk ekledik */
    justify-self: end;
    align-items: center;
    /* dikey hizalama için */
    margin-right: 20px;
    /* sağdan biraz boşluk */
}

.nav-item a {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease-out;
}

.nav-item a:hover {
    color: var(--primary-color);
}

/* SECTIONS */
.headline {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.active {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
    /* opsiyonel: videoyu biraz karartır yazılar öne çıkar */
}

.headline-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.headline-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.headline-content p {
    font-size: 1.2rem;
}

#changing-word {
    font-weight: bold;
    color: var(--light-text);
    /* veya istediğin renk */
    transition: opacity 0.4s ease-in-out;
}

/* Hakkında Kısmı */

.about {
    padding: 60px 20px;
    background-color: #f9f9f9;
    color: var(--text-color);
    text-align: center;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.about hr {
    width: 80px;
    height: 3px;
    background-color: var(--light-text);
    border: none;
    margin: 0 auto 20px;
}

.about p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: var(--text-color);
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.highlight {
    position: relative;
    color: #fff;
    padding: 20px;
    width: 280px;
    /* sabit yükseklik önerilir */
    border-radius: 10px;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.highlight::before,
.highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: -1;
    border-radius: 10px;
    will-change: opacity, transform;
}

.highlight::before {
    background-image: url("../images/bgcardrepandus.png");
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.highlight::after {
    background-image: url("../images/bgrepanduscard2.png");
    opacity: 0;
    transform: scale(1.05) rotateY(10deg);
    box-shadow: inset -20px 0px 60px rgba(255, 255, 255, 0.1);
}

.highlight:hover::after {
    opacity: 1;
    transform: scale(1.03) rotateY(0deg);
}

.highlight:hover::before {
    opacity: 0;
    transform: scale(0.97) rotateY(-10deg);
}

.highlight i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.highlight p {
    font-size: 0.7rem;
}

/* Product */

.products {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.products-container {
    max-width: 1100px;
    margin: 0 auto;
}

.products-container h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.products-container hr {
    width: 80px;
    height: 3px;
    background-color: var(--light-text);
    border: none;
    margin: 10px auto 30px;
}

.products-container p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-color);
    line-height: 1.6;
}

/* SLIDER */
.products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Firefox */
}

.products-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.scroll-hint {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: bounceRight 1.5s infinite;
    z-index: 10;
    cursor: pointer;
}

.scroll-hint-right {
    bottom: 50%;
    right: 20px;
}

.scroll-hint-left {
    bottom: 50%;
    left: 20px;
}

.scroll-hint i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}

/* CARD */
.product-card {
    flex: 0 0 380px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card p {
    font-size: 0.7rem;
    color: #555;
}

.details-button {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bg-color);
    background-color: var(--primary-color);
    /* örneğin: #3498db */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.details-button:hover {
    background-color: var(--light-text);
    /* daha koyu tonu */
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-card {
    animation: slideIn 0.6s ease forwards;
}

/* Contact */

.contact {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-text {
    flex: 1 1 300px;
}

.contact-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: start;
}

.contact-text hr {
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    border: none;
    margin: 10px auto 30px;
}


.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: start;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-form {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1rem;
    resize: none;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--light-text);
}

/* Footer */

.footer {
    background-color: #1e1e1e;
    color: #ccc;
    padding: 40px 20px 20px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social a {
    margin-left: 10px;
    color: #ccc;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 15px;
    color: #999;
    font-size: 0.8rem;
}

.features {
    width: 100%;
    height: auto;
    background-color: var(--bg-color);
    display: flex;
    padding: 50px 20px;
    justify-content: space-around;
}

.feature-container {
    flex-basis: 30%;
    margin-top: 10px;
}

.feature-container p {
    color: var(--text-color);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 15px;
}

.feature-container img {
    width: 100%;
    margin-bottom: 15px;
}

/* SEARCH FUNCTION */

#search-icon {
    font-size: 0.9rem;
    margin-top: 3px;
    margin-left: 15px;
    transition: color 0.3s ease-out;
}

#search-icon:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.search {
    transform: translate(-35%);
    -webkit-transform: translate(-35%);
    transition: transform 0.7s ease-in-out;
    color: var(--primary-color);
}

.no-search {
    transform: translate(0);
    transition: transform 0.7s ease-in-out;
}

.search-input {
    position: absolute;
    top: -4px;
    right: -125px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
}

.search-active {
    opacity: 1;
    z-index: 0;
}

input {
    border: 0;
    border-left: 1px solid var(--accent-color);
    border-radius: 0;
    /* FOR SAFARI */
    outline: 0;
    padding: 5px;
}

/* MOBILE MENU & ANIMATION */

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.menu-toggle {
    justify-self: end;
    margin-right: 25px;
    display: none;
}

.menu-toggle:hover {
    cursor: pointer;
}

#mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu.is-active .bar:nth-child(1) {
    -webkit-transform: translateY(8px) rotate(45deg);
    -ms-transform: translateY(8px) rotate(45deg);
    -o-transform: translateY(8px) rotate(45deg);
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu.is-active .bar:nth-child(3) {
    -webkit-transform: translateY(-8px) rotate(-45deg);
    -ms-transform: translateY(-8px) rotate(-45deg);
    -o-transform: translateY(-8px) rotate(-45deg);
    transform: translateY(-8px) rotate(-45deg);
}



/* KEYFRAME ANIMATIONS */

@-webkit-keyframes gradbar {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes gradbar {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes gradbar {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* Media Queries */

/* Mobile Devices - Phones/Tablets */

@media only screen and (max-width: 720px) {

    .product-card {
        flex: 0 0 200px;
        background: #f9f9f9;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        scroll-snap-align: start;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .features {
        flex-direction: column;
        padding: 50px;
    }

    /* MOBILE HEADINGS */

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1rem;
    }

    p {
        font-size: 0.8rem;
    }

    /* MOBILE NAVIGATION */

    .navbar ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        justify-content: start;
        top: 55px;
        background-color: var(--accent-color);
        width: 100%;
        height: calc(100vh - 55px);
        transform: translate(-101%);
        text-align: center;
        overflow: hidden;
    }

    .navbar li {
        padding: 15px;
    }

    .navbar li:first-child {
        margin-top: 50px;
    }

    .navbar li a {
        font-size: 1rem;
    }

    .menu-toggle,
    .bar {
        display: block;
        cursor: pointer;
    }

    .mobile-nav {
        transform: translate(0%) !important;
    }

    /* SECTIONS */

    .headline {
        height: 20vh;
    }

    .feature-container p {
        margin-bottom: 25px;
    }

    .feature-container {
        margin-top: 20px;
    }

    .feature-container:nth-child(2) {
        order: -1;
    }

    /* SEARCH DISABLED ON MOBILE */

    #search-icon {
        display: none;
    }

    .search-input {
        display: none;
    }

}