/* =========================================
   ATELYUM OFİS - MAIN STYLESHEET
   Versiyon: 9.0 (Final Tam Sürüm)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Renk Paleti */
    --color-dark: #1e272e;    /* Koyu Antrasit (Marka Rengi) */
    --color-orange: #f39c12;  /* Atelyum Turuncusu */
    --color-light: #f9f9f9;   /* Zemin Rengi */
    --color-gray: #95a5a6;    /* Yardımcı Gri */
      --theme-orange:#f39c12;
  --theme-orange-dark:#d68910;
    
    /* Ayarlar */
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Yumuşak geçiş */
}


 

/* tema renk yardımcıları */
.text-theme{
  color: var(--theme-orange) !important;
}

.btn-theme{
  background: var(--theme-orange) !important;
  color:#fff !important;
  border: none !important;
  transition: .25s;
}
.btn-theme:hover{
  background: var(--theme-orange-dark) !important;
  transform: translateY(-2px);
}





body {
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    line-height: 1.7;
}

/* =========================================
   YARDIMCI SINIFLAR
   ========================================= */
.text-orange { color: var(--color-orange) !important; }
.bg-dark-brand { background-color: var(--color-dark) !important; color: white; }
.section-padding { padding: 100px 0; }
.ls-2 { letter-spacing: 2px; }

h1, h2, h3, h4, h5, h6 { 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    margin-bottom: 1rem; 
}

.display-title { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    font-weight: 800; 
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-orange);
    display: block;
    margin-bottom: 15px;
}

/* =========================================
   NAVBAR (LOGO SWAP SİSTEMİ)
   ========================================= */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
    z-index: 1000;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-left: 20px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-orange);
    transition: width 0.3s;
}

.navbar .nav-link:hover::before { width: 100%; }

/* Logo Kontrolü (Tepedeyken) */
.navbar .logo-top { display: inline-block; transition: opacity 0.3s; }
.navbar .logo-scrolled-img { display: none; }

/* Hamburger Menü (Beyaz) */
.navbar-toggler { border: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* --- Scrolled State (Aşağı Kaydırılınca) --- */
.navbar.scrolled {
    background: white;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-dark) !important;
    text-shadow: none;
}

/* Logo Kontrolü (Kaydırılınca) */
.navbar.scrolled .logo-top { display: none; }
.navbar.scrolled .logo-scrolled-img { 
    display: inline-block; 
    animation: fadeIn 0.4s ease;
}

/* Hamburger Menü (Siyah) */
.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   BUTONLAR
   ========================================= */
.btn-modern {
    padding: 14px 30px;
    border: 2px solid var(--color-dark);
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: var(--transition);
    background: transparent;
    color: var(--color-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-modern:hover {
    background: var(--color-dark);
    color: white;
    transform: translateY(-3px);
}

.btn-modern-orange {
    border-color: var(--color-orange);
    background: var(--color-orange);
    color: white;
}

.btn-modern-orange:hover {
    background: var(--theme-orange-dark);
    border-color: var(--theme-orange-dark);
    color: white;
}

.hover-white:hover {
    background: white;
    color: var(--color-dark) !important;
    border-color: white;
}

/* =========================================
   ÜRÜN KARTLARI
   ========================================= */
.product-card {
    display: block;
    position: relative;
    background: white;
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-dark);
    height: 100%;
}

.product-card .img-wrapper {
    overflow: hidden;
    position: relative;
    height: 350px;
}

.product-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .img-wrapper img { transform: scale(1.1); }

.product-info {
    padding: 25px;
    background: white;
    position: relative;
    z-index: 2;
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.product-card:hover .product-info {
    border-top-color: var(--color-orange);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* =========================================
   FEATURE BOX (NEDEN BİZ)
   ========================================= */
.feature-box {
    padding: 40px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.feature-box:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--color-orange);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-orange);
    margin-bottom: 20px;
}

/* =========================================
   PROJE / REFERANS KARTLARI
   ========================================= */
.project-card {
    display: block;
    position: relative;
    height: 450px;
    overflow: hidden;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px;
    z-index: 2;
}

.project-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: var(--transition);
}

.project-location {
    color: var(--color-orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.project-card:hover img { transform: scale(1.1); }
.project-card:hover .project-title { transform: translateY(0); }
.project-card:hover .project-location { opacity: 1; transform: translateY(0); }

/* =========================================
   BLOG KARTLARI
   ========================================= */
.blog-card {
    background: white;
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--color-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrapper img { transform: scale(1.1); }

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex; flex-direction: column;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--color-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    transition: 0.3s;
}

.blog-link:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

/* =========================================
   UNIVERSAL SLIDER (Masaüstü & Mobil)
   ========================================= */
.slider-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding-bottom: 20px;
    cursor: grab;
    
    /* Scrollbar Tasarımı */
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) #eee;
}

.slider-row::-webkit-scrollbar { height: 8px; }
.slider-row::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.slider-row::-webkit-scrollbar-thumb { background: var(--color-orange); border-radius: 4px; }
.slider-row::-webkit-scrollbar-thumb:hover { background: var(--theme-orange-dark); }

.slider-row .col-md-4 {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

/* Responsive Genişlikler */
@media (max-width: 768px) {
    .slider-row .col-md-4 { width: 85%; }
    .slider-row::-webkit-scrollbar { display: none; } /* Mobilde gizle */
    .slider-row { scrollbar-width: none; }
}
@media (min-width: 769px) and (max-width: 1199px) { .slider-row .col-md-4 { width: 45%; } }
@media (min-width: 1200px) { .slider-row .col-md-4 { width: 30%; } }

/* SLIDER NAVİGASYON (OKLAR) */
.slider-wrapper { position: relative; padding: 0 10px; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    background: white; border: 1px solid #eee; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--color-dark);
    transition: all 0.3s ease;
    opacity: 0;
}

.slider-wrapper:hover .slider-btn { opacity: 1; }
.slider-btn:hover {
    background: var(--color-orange);
    color: white; border-color: var(--color-orange);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

@media (max-width: 768px) {
    .slider-btn { display: none; }
    .slider-wrapper { padding: 0; }
}

/* Kaydırma İpucu (Mobil) */
.swipe-hint {
    display: none; text-align: right;
    font-size: 12px; color: var(--color-orange);
    margin-bottom: 10px; font-weight: 600;
    animation: swipeAnim 1.5s infinite;
}
@media (max-width: 991px) { .swipe-hint { display: block; } }
@keyframes swipeAnim {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.5; }
}

/* =========================================
   PREMIUM FOOTER
   ========================================= */
footer {
    background-color: var(--color-dark);
    color: #bdc3c7;
    font-size: 14px;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand-text {
    opacity: 0.6; line-height: 1.8; margin-top: 20px; margin-bottom: 30px;
}

.footer-heading {
    color: white; font-size: 16px; font-weight: 700;
    margin-bottom: 25px; letter-spacing: 1px;
    text-transform: uppercase; position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: ''; position: absolute;
    width: 30px; height: 2px;
    background: var(--color-orange);
    bottom: -8px; left: 0;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #bdc3c7; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--color-orange); transform: translateX(5px); }

.contact-item { display: flex; align-items: flex-start; margin-bottom: 20px; color: #bdc3c7; }
.contact-icon { color: var(--color-orange); font-size: 18px; margin-right: 15px; margin-top: 3px; }

.footer-bottom {
    padding: 30px 0; font-size: 13px; background-color: #171e23;
}

.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; background: rgba(255,255,255,0.05);
    color: white; border-radius: 50%; margin-left: 10px;
    transition: 0.3s; text-decoration: none;
}
.social-links a:hover { background: var(--color-orange); transform: translateY(-3px); }

/* =========================================
   STICKY WIDGETS
   ========================================= */
.sticky-widgets {
    position: fixed; left: 20px; bottom: 30px; z-index: 9999;
    display: flex; flex-direction: column; gap: 15px;
}
.widget-btn {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white !important; font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s; text-decoration: none;
}
.widget-btn:hover { transform: scale(1.15); }
.bg-wp { background: #25D366; }
.bg-phone { background: var(--color-orange); }

/* MOBİL ÖZEL AYARLAR */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white; padding: 20px; margin-top: 15px;
        border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }
    .navbar .nav-link {
        color: var(--color-dark) !important;
        margin-left: 0; border-bottom: 1px solid #eee; padding: 10px 0;
    }
    .display-title { font-size: 2.5rem; }
}

/* =========================================
   ÜRÜN DETAY SAYFASI (urun-detay.php)
   ========================================= */
.page-header-bg{
    height:30vh;
    background:#2c3e50;
}
.slider-img-container{
    height:500px;
}
.product-main-img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}
.thumbnail-item{
    height:70px;
    overflow:hidden;
    border:2px solid #ddd;
    transition:all .2s ease;
    padding:0;
    background:#fff;
    width:100%;
    border-radius:8px;
}
.thumbnail-item:hover,
.thumbnail-item.active-thumb{
    border-color: var(--color-orange);
    opacity:1;
}

@media (max-width:768px){
    .slider-img-container{height:350px !important;}
    .page-header-bg{height:25vh;}
    .display-5{font-size:2rem;}
    .thumbnail-item{height:60px;}
}

/* =========================
   MEGA MENU (ÜRÜNLER)
   ========================= */
:root{
  --theme-orange: #f39c12;
  --theme-orange-dark: #d68910;
}

.btn-theme{
  background: var(--theme-orange);
  color: #fff !important;
  border: none;
}
.btn-theme:hover{
  background: var(--theme-orange-dark);
}

.navbar .dropdown-menu.mega-menu{
  width: min(1100px, calc(100vw - 32px));
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  margin-top: 14px;
  overflow: hidden;
}

.navbar .mega-inner{
  background:#fff;
}

.navbar .mega-top .mega-all{
  color:#111;
  font-weight: 700;
}
.navbar .mega-top .mega-all:hover{
  color: var(--theme-orange);
}

.mega-block{
  padding-bottom: 8px;
}
.mega-title{
  font-weight: 800;
  color:#666;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: none;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mega-list{
  list-style:none;
  padding:0;
  margin:0;
}
.mega-list li{
  margin: 8px 0;
}
.mega-link{
  color:#888;
  text-decoration:none;
  font-weight: 500;
  transition: .2s;
}
.mega-link:hover{
  color:#111;
  text-decoration:none;
}

@media (max-width: 991.98px){
  /* Mobilde mega menü normal dropdown gibi aksın */
  .navbar .dropdown-menu.mega-menu{
    width: 100%;
    left: 0;
    transform: none;
    border-radius: 12px;
    margin-top: 8px;
  }
}


.list-unstyled a{
    text-decoration: none;
}