:root {
  --bg-dark: #0a0a0c;
  --bg-darker: #050506;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --accent: #5e43f3;
  /* purple/blue accent */
  --accent-glow: rgba(94, 67, 243, 0.4);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 2000; /* Extremely high to stay above all glow effects */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 6, 0.85); /* Slightly darker for better text contrast */
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.4);
  /* Biraz artırılmış neon ışık */
  transition: text-shadow 0.3s ease;
}

.logo span {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dynamic Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Parallax Banner Styles --- */
.parallax-banner-section {
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.parallax-container {
  position: relative;
  width: 100% !important;
  aspect-ratio: 16 / 7 !important;
  min-height: 400px !important;
  max-height: 450px !important;
  background: #0a0a0c;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  perspective: 1000px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .parallax-container {
    aspect-ratio: 4 / 3;
    max-height: 300px;
  }
}

.parallax-layer {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  border-radius: 16px;
}

.layer-bg {
  /* Arkaplan için kullanıcının yüklediği fotoğraf */
  background-image: url('../assets/images/banner-bg.png');
  background-blend-mode: normal;
  z-index: 1;
}

.layer-mid {
  /* Orta katman: Neon yazı görseli */
  background-image: url('../assets/images/banner-mid.png');
  background-size: contain;
  /* Görselin tamamı çerçevenin içinde kalsın */
  background-position: center;
  /* Tam ortada dursaın */
  background-repeat: no-repeat;
  z-index: 2;
  /* Arka plan ile ön plan arasında */
}

.layer-fg {
  /* Ön plan objesi */
  background-image: url('../assets/images/banner-fg.png');
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  z-index: 3;
}

/* --- Carousel / Slider Styles --- */
.press-videos {
  margin-top: 6rem;
  margin-bottom: 4rem;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc((100% - 4rem) / 3);
  /* 3 items visible, minus gaps */
  min-width: calc((100% - 4rem) / 3);
  display: flex;
  flex-direction: column;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hint {
  position: absolute;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  gap: 1rem;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.95);
}

@media (max-width: 900px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 2rem) / 2);
    /* 2 items visible */
    min-width: calc((100% - 2rem) / 2);
  }
}

@media (max-width: 600px) {
  .carousel-slide {
    flex: 0 0 100%;
    /* 1 item visible */
    min-width: 100%;
  }
}

/* --- Playful OS Window Styles --- */
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Gradients and Effects */
.glow-bg {
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* --- Premium & Playful Interaction UI --- */
.premium-glass-window {
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(94, 67, 243, 0.15);
}

/* Shape Shifter Button Effect */
.btn-shape-shifter {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-shape-shifter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn-shape-shifter:hover {
  color: #fff;
  border-radius: 8px;
  /* shape shifts from pill to rounded square */
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-shape-shifter:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.glow-shadow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.glow-shadow:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* OS Window */
/* OS Window Frame */
.os-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  height: 80vh;
  max-height: 600px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translate(-50%, -45%) scale(0.95);
  /* starting animation state */
}

.os-window.active {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.os-header {
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  cursor: grab;
}

.os-header:active {
  cursor: grabbing;
}

.os-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.os-controls {
  display: flex;
  gap: 0.5rem;
}

.os-control-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-control-btn:hover {
  filter: brightness(1.2);
}

.os-control-btn.close {
  background: #ff5f56;
}

.os-control-btn.minimize {
  background: #ffbd2e;
  display: none;
}

.os-control-btn.maximize {
  background: #27c93f;
  display: none;
}

/* Add X icon on hover for close button */
.os-control-btn.close::before,
.os-control-btn.close::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.os-control-btn.close::before {
  transform: rotate(45deg);
}

.os-control-btn.close::after {
  transform: rotate(-45deg);
}

.os-control-btn.close:hover::before,
.os-control-btn.close:hover::after {
  opacity: 1;
}

.os-body {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: transparent;
}

/* Floating Avatar / Chatbot Button */
.floating-avatar {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  width: 65px;
  height: 65px;
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(94, 67, 243, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(94, 67, 243, 0.6), 0 0 10px rgba(255, 255, 255, 0.5);
  background: rgba(94, 67, 243, 0.2);
}

.chat-bubble {
  position: absolute;
  bottom: 85px;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg-dark);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border-bottom-left-radius: 0;
  /* Tail pointing to avatar */
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.floating-avatar:hover .chat-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* --- Pejbot Interactive Chat Styles --- */
.chat-history::-webkit-scrollbar {
  width: 6px;
}

.chat-history::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.chat-history::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.chat-message.user {
  align-self: flex-end !important;
  background: var(--accent-blue) !important;
  color: #fff !important;
  border-radius: 12px 12px 2px 12px !important;
  border: none !important;
}

.chat-input-area input:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 10px rgba(94, 67, 243, 0.2);
}

.chat-input-area button:hover {
  background: #fff;
  color: var(--accent-blue);
  transform: scale(1.05);
}

.quick-reply-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.quick-reply-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* --- Digital Workshop Panels --- */
.workshop-panels {
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Glow effect underneath the panel */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
  opacity: 0.1;
  filter: blur(40px);
}

.glass-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(94, 67, 243, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(94, 67, 243, 0.15);
}

.glass-panel:hover::before {
  width: 250%;
  height: 250%;
}

.panel-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}

.panel-icon svg, .panel-icon .material-symbols-outlined {
  width: 48px;
  height: 48px;
  font-size: 48px;
  fill: currentColor;
  stroke: none;
  display: flex !important;
  justify-content: center;
  align-items: center;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.glass-panel:hover .panel-icon {
  transform: scale(1.2) translateY(-5px);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.glass-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.glass-panel:hover h3 {
  color: #fff;
}

.glass-panel p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.glass-panel:hover p {
  color: #e2e8f0;
}

/* --- OS File Explorer System --- */
.os-explorer-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.breadcrumb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.folder-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.folder-icon {
  width: 60px;
  height: 60px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.folder-icon svg, .folder-icon img, .folder-icon .material-symbols-outlined {
  width: 100%;
  height: 100%;
  font-size: 40px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.folder-item:hover .folder-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.folder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
  word-break: break-word;
}

/* Used for hiding/showing views */
.explorer-hidden {
  display: none !important;
}

/* --- Responsive Design for Main Site --- */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 1rem 0;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .parallax-container {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem 1.2rem;
        margin-top: 0.5rem;
        display: flex !important; /* Force show */
    }

    .nav-links a {
        font-size: 0.85rem !important;
        color: #fff !important;
        font-weight: 500;
    }

    .search-box {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        height: auto;
    }

    .search-box input {
        width: 100%;
        padding: 0.8rem;
        text-align: center;
    }

    .search-box button {
        width: 100%;
    }

    .parallax-container {
        height: 220px;
        margin-top: 1rem;
    }

    .carousel-slide {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.5rem 1rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .parallax-container {
        height: 180px;
    }
}