/* === TEMALAR & RENK DEĞİŞKENLERİ === */
:root {
    --primary-color: rgb(27, 79, 114);
    --secondary-color: rgb(114, 159, 207);
    --accent-color: #fdb00d;
    --accent-text-color: #000000;
    --text-color: #333;
    --background-color: #f5f5f5;
    --card-background: #fff;
    --header-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --slide-opacity-lo:0.0;
    --slide-opacity-hi:1.0;
    
}

/* === GENEL GÖVDE VE PARALLAX === */
html, body {
    //height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    text-align: center;
    background: linear-gradient(135deg, #eeeeee, #ffffff);
    background-size: cover;
    padding-top: 55px;
    scroll-behavior: smooth;
}

/* === SABİT HEADER === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
}

/* === LOGO === */
.logo {
    background-color: white;
    padding: 10px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 50px;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    transform: scale(1.5);
}

/* === DEVTECH ANİMASYON === */
.devtech {
    color: white;
    margin: 0 3%;
    text-align: center;
    font-weight: 900;
    font-family: Verdana;
    border:white 3px solid;
    padding:15px;
    border-radius:15px;
}

.devtech span {
    display: inline-block;
    animation: rotate 5s infinite ease-in-out;
}

@keyframes rotate {
    0% { transform: rotateY(0deg); }
    10%, 100% { transform: rotateY(360deg); }
}

.devtech span:nth-child(1) { animation-delay: 0s; }
.devtech span:nth-child(2) { animation-delay: 0.1s; }
.devtech span:nth-child(3) { animation-delay: 0.2s; }
.devtech span:nth-child(4) { animation-delay: 0.3s; }
.devtech span:nth-child(5) { animation-delay: 0.4s; }
.devtech span:nth-child(6) { animation-delay: 0.5s; }
.devtech span:nth-child(7) { animation-delay: 0.6s; }
.devtech span:nth-child(8) { animation-delay: 0.7s; }

/* === NAVBAR === */
nav {
    margin-right: 10%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
}

nav li {
    display: inline-block;
}

nav a {
    display: inline-block;
    padding: 10px 20px;
    background: rgb(115 128 143 / 58%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    background: var(--accent-color);
    color: var(--accent-text-color);
    transform: scale(1.1);
}

/* === ANA SEKTÖRLER & KARTLAR === */
section {
    padding: 40px;
    //background: var(--card-background);
    margin: 20px;
    border-radius: 10px;
    scroll-margin-top: 80px;
}

.ref-container,
.services-container,
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.ref-card,
.service-card,
.contact-card {
    background: var(--card-background);
    border-radius: 10px;
    width: 300px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ref-card:hover,
.service-card:hover,
.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: var(--header-gradient);
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.card-body {
    padding: 20px;
    text-align: left;
}

.card-body ul {
    list-style: none;
    padding: 0;
}

.card-body ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.card-body ul li span {
    margin-right: 10px;
    font-size: 16px;
}

.card-body ul li:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.card-body p {
    margin: 10px 0;
    font-size: 16px;
    text-align: center;
}

.card-body a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

/* === SLIDER === */
#banner {
    display: flex;
    justify-content: center;
    padding: 0px;
    background: transparent;
    margin: 0px;
    width: 100%;
}

.slider {
    width: 100%;
    max-height: 600px;
    min-width: 400px;
    display: flex;
    position: relative;
    overflow: hidden;
    /* border-radius: 20px; */
    aspect-ratio: 16 / 10;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: var(--slide-opacity-lo);
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: var(--slide-opacity-hi);
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Boşluk olmaması için */
    border-radius: 10px;
    display: block;
    opacity: var(--slide-opacity-lo);
    transform-origin: center center;
}

.slide.active img {
    animation: zoomPan 10s ease-in-out forwards;
    opacity: var(--slide-opacity-hi);
}

@keyframes zoomPan {
    0% {
        transform: scale(1.1) translate(0px, 0px);
        //opacity: 0 // var(--slide-opacity-lo);
    }
    50% {
        transform: scale(1.3) translate(-2%, -2%);
    }
    100% {
        transform: scale(1.5) translate(var(--randX), var(--randY));
    }
}

/* === SLOGAN === */
.floating-text {
    position: relative;
    top: -66%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: min(6vw, 36px);
    font-weight: bold;
    color: white;
    text-shadow: 4px -4px 5px rgba(0, 0, 0, 0.6);
    //opacity: 0.5;
    //transition: opacity 6s ease-in-out;
}

.floating-text.active {
    opacity: 1;
}

/* === REFERANS GÖRSELLERİ === */
.card-ref {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    height: 70%;
    text-align: center;
}

.card-ref img {
    width: 50%;
    min-height: 100px;
    max-height: 250px;
    object-fit: contain;
    transform: scale(1.2);
}

/* === FORM STİLLERİ === */
form input,
form textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

button {
    background: #0d6efd;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* === QR KODLAR === */
.qr-code {
    width: 120px;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 10px;
}

/* === YER TUTUCU ÖĞE === */
.placeholder {
    width: 100%;
    height: 200px;
    background: gray;
    border-radius: 10px;
}

/* === RESPONSIVE TASARIM === */
@media (max-width: 768px) {
    .services-container,
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    nav {
        display: none;
    }

    .devtech {
        margin: 0 auto;
    }
}

/* === SABİT PARALLAX ARKAPLAN === */
.parallax {
    background: url('../img/background.jpg') no-repeat center center;
    background-size: cover;
    position: fixed;
    width: 100%;
    height: 120vh;
    z-index: -1;
}
