/**
 * @file style.css
 * @description ODISEI YAPIM Agency Website
 * @layout Floating Cinematic Navbar, Hero & ODISEI Footer Structure
 */

@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&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 {
  /* --- BRAND COLOR PALETTE --- */
  --brand-primary-green: #5ccb3a;
  --brand-dark-green: #2e7d32;
  --brand-light-green: #a5f08c;
  --brand-black: #000;
  --brand-dark-gray: #3a3a3a;
  --brand-off-white: #f5f5f5;
  --brand-white: #ffffff;

  /* --- SEMANTIC THEME MAPPING (DARK BASE) --- */
  --bg-background: var(--brand-black);
  --bg-surface: #1e1e1e;
  --bg-surface-inverse: var(--brand-white);

  --text-primary: var(--brand-white);
  --text-secondary: #b3b3b3;
  --text-muted: #6e6e6e;
  --text-inverse: var(--brand-black);

  --action-primary: var(--brand-primary-green);
  --action-hover: var(--brand-dark-green);
  --action-accent: var(--brand-light-green);

  /* --- TYPOGRAPHY --- */
  --font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;

  /* --- LAYOUT & ANIMATION --- */
  --max-width: 1280px;
  --radius-full: 9999px;
  --transition-ease: all 0.3s ease;
  --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-background);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================
   SPLASH SCREEN (PRE-LOADER)
   ========================================================== */
body.no-scroll {
  overflow: hidden; /* Yükleme bitene kadar kaydırmayı engeller */
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--brand-black); /* Siyah zemin */
  z-index: 99999; /* Her şeyin üstünde */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease-in-out;
}

.splash-word {
  display: flex;
  gap: 1.5vw;
}

.splash-letter {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 5vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--brand-white);
  opacity: 0;
  text-transform: uppercase;
  /* Hareketin pürüzsüz ve sinematik olması için cubic-bezier kullanıyoruz */
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 0.1s ease,
    color 0.2s ease;
}

/* Javascript ile eklenecek parlama efekti */
.splash-letter.glow {
  color: white;
  text-shadow:
    0 0 20px rgba(92, 203, 58, 0.6),
    0 0 40px rgba(92, 203, 58, 0.3),
    0 0 60px rgba(92, 203, 58, 0.1);
}

/* ==========================================================
   FLOATING CINEMATIC NAVBAR
   ========================================================== */
.floating-header-wrapper {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.floating-navbar {
  width: 100%;
  max-width: 960px;
  height: 64px;
  background-color: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 32px;
  transition: var(--transition-premium);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link-item {
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: var(--weight-regular);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--transition-ease);
}

.nav-link-item:hover {
  color: var(--brand-white);
}

.nav-logo {
  font-weight: var(--weight-regular);
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--brand-white);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-premium);
  margin-left: 8px;
}

.nav-cta i {
  margin-left: 8px;
  font-size: 1rem;
  transform: rotate(45deg);
}

/* Overlay Menü Tasarımı */
.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content { display: flex; flex-direction: column; gap: 40px; }
.overlay-link { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; text-decoration: none; }

.close-menu {
    position: absolute; top: 40px; right: 40px;
    background: none; border: none; color: #fff; font-size: 2rem;
}

/* ==========================================================
   PROJECTS SHOWCASE (BLOK BLOK KAYAN DÜZEN)
   ========================================================== */
.projects-showcase {
    background-color: var(--bg-background, #000);
    position: relative;
    overflow: hidden;
}

/* Her bir blok, ekranın ortasında hizalanır ve animasyonla girer */
.project-item {
    opacity: 0.3;
    transform: scale(0.95) translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1vh 0; /* Üstten ve alttan nefes alma boşluğu */
}

.project-item.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Yanlardaki Metinlerin Stilleri */
.project-title-side {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3.5vw, 4rem);
    color: var(--brand-white, #fff);
    margin: 0;
    font-weight: 500;
}

.project-desc-side {
    font-family: "Poppins", sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary, #a3a3a3);
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: 2;
}

/* Video Tasarımı */
.project-video {
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: filter 0.8s ease;
    filter: grayscale(40%);
    border-radius: 0;
}

.project-item.is-active .project-video {
    filter: grayscale(0%);
}

/* Özel Mute Butonu */
.mute-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 10;
}

.mute-btn i {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.4s ease;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.mute-btn:hover i {
    color: #000;
}

/* Mobil Uyum (Responsive) */
@media (max-width: 991px) {
    .project-item {
        min-height: auto !important;
        opacity: 1;
        transform: scale(1) translateY(0);
        margin-bottom: 5rem !important;
        padding: 5vh 0;
    }
    .project-video {
        filter: grayscale(0%);
    }
    .project-title-side {
        font-size: 2.5rem;
    }
}

.subscribe-form {
  display: flex;
  background-color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 420px;
  margin-top: auto;
}

.subscribe-input {
  background: transparent;
  border: none;
  color: var(--brand-white);
  padding: 12px 24px;
  flex: 1;
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
}

.subscribe-input::placeholder {
  color: var(--text-muted);
}

.odisei-btn {
  background-color: #222222;
  color: var(--brand-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 32px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: var(--weight-regular);
  transition: var(--transition-ease);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.odisei-btn:hover {
  background-color: #333333;
  color: var(--brand-white);
}

/* ==========================================================
   FOOTER (ODISEI MATCH)
   ========================================================== */
.odisei-footer {
  padding: 8vh 0 6vh;
}

.footer-brand .footer-logo {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brand-white);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.social-icons a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition-ease);
}

.social-icons a:hover {
  color: var(--brand-white);
}

.footer-links-container {
  display: flex;
  gap: 80px;
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-column a {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-ease);
  text-decoration: none;
}

.link-column a:hover {
  color: var(--brand-white);
}

.border-top-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* --- RESPONSIVE DÜZENLEMELER --- */
@media (max-width: 991px) {
  .nav-links {
    display: none;
  }
  .footer-links-container {
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
}
@media (max-width: 768px) {
  .subscribe-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
  }
  .odisei-btn {
    width: 100%;
    border-radius: 8px;
  }
  .footer-top {
    flex-direction: column;
  }
}

/* ==========================================================
   CTA (HABERDAR OL & BİZE ULAŞIN) KARTLARI
   ========================================================== */
.cta-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

/* Kart Kapsayıcısı */
.odisei-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    height: 100%; /* Grid içinde yan yana olan kartların eşit boyda olmasını sağlar */
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.odisei-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Tipografi */
.odisei-card .card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.odisei-card .card-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Form Alanı */
.subscribe-form {
    display: flex;
    gap: 12px;
    margin-top: auto; /* Kartın alt kısmına yaslanmasını sağlar */
    width: 100%;
}

.subscribe-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0 1.5rem;
    height: 54px;
    border-radius: 50px; /* Hap (pill) tasarımı */
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.subscribe-input::placeholder {
    color: #666;
}

.subscribe-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

/* Buton Tasarımı */
.odisei-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 2rem;
    background: #fff;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Buton içindeki yazının alt satıra düşmesini engeller */
}

.odisei-btn:hover {
    background: #e0e0e0;
    transform: scale(1.03);
}

/* İletişim butonunu da alta yaslamak için */
.mt-auto {
    margin-top: auto !important;
}

/* ==========================================================
   MOBİL UYUMLULUK (RESPONSIVE)
   ========================================================== */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }

    .odisei-card {
        padding: 2rem 1.5rem;
    }

    .subscribe-form {
        flex-direction: column; /* Mobilde formu alt alta dizer */
        gap: 16px;
    }

    .subscribe-input,
    .odisei-btn {
        width: 100%; /* Mobilde tam genişlik */
        padding: 12px;
    }
}
