/* ============================================
   PORTFOLIO WEBSITE - HORIZONTAL SCROLL DESIGN
   Açık Tema - Beyaz, Gri, Siyah Renk Paleti
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  --color-primary: #ffffff;
  --color-secondary: #f8f9fa;
  --color-accent: #e9ecef;
  --color-text-primary: #212529;
  --color-text-secondary: #6c757d;
  --color-border: #dee2e6;
  --color-hover: #495057;
  --sidebar-width: 400px;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
}

.loading-content {
  text-align: center;
}

#lottieLoader {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.loading-text {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  font-weight: 600;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Mobil/Tablet için overflow aç */
@media (max-width: 991px) {
  html,
  body {
    overflow: visible;
    height: auto;
  }
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-secondary);
  color: var(--color-text-primary);
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ============================================
   3. MAIN WRAPPER - HORIZONTAL LAYOUT
   ============================================ */
.main-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   4. SOL PANEL - FLIP CARD
   ============================================ */
.sidebar-flip-container {
  width: var(--sidebar-width);
  height: 100vh;
  flex-shrink: 0;
  perspective: 1000px;
}

.sidebar-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.sidebar-flip-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  backface-visibility: hidden;
  background-color: var(--color-primary);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-y;
}

/* Scrollbar stilleri */
.card-face::-webkit-scrollbar {
  width: 8px;
}

.card-face::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

.card-face::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.card-face::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

.card-back {
  transform: rotateY(180deg);
}

/* Profil Bölümü - Ön Yüz */
.profile-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 1.5rem 1.5rem;
}

.logo-container {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
}

.logo-container.hidden {
  display: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.profile-title {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem 0;
}

/* CV Download Button */
.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  border: 1.5px solid var(--color-text-primary);
}

.cv-download-btn:hover {
  background-color: transparent;
  color: var(--color-text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cv-download-btn i {
  font-size: 0.75rem;
}

/* Hakkımda Bölümü */
.about-section {
  flex: 1 1 auto;
  margin-bottom: 1rem;
  overflow-y: visible;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.about-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  text-align: justify;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-preview {
  margin-bottom: 1rem;
}

.about-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.about-details.expanded {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

.btn-read-more {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.75rem;
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-read-more:hover {
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  border-color: var(--color-text-primary);
}

.btn-read-more i {
  transition: transform var(--transition-speed) ease;
}

.btn-read-more.expanded i {
  transform: rotate(180deg);
}

.bottom-section {
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.social-btn:hover {
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.contact-btn {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* İletişim Bölümü - Arka Yüz */
.contact-section {
  padding: 2rem 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-primary);
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.back-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.back-btn:hover {
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  transform: translateX(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  color: var(--color-text-primary);
  background-color: var(--color-secondary);
  transition: border-color var(--transition-speed) ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-text-primary);
  border-width: 1px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  padding: 0.875rem 2rem;
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background-color: var(--color-hover);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form Message */
.form-message {
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   5. SAĞ PANEL - HORIZONTAL SCROLL CONTAINER
   ============================================ */
.horizontal-scroll-container {
  flex: 1;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  position: relative;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: var(--color-accent);
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* ============================================
   6. SECTIONS WRAPPER - HORIZONTAL LAYOUT
   ============================================ */
.sections-wrapper {
  display: flex;
  height: 100%;
  width: max-content;
}

.content-section {
  width: calc(100vw - var(--sidebar-width));
  height: 100vh;
  flex-shrink: 0;
  padding: 3rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Content Section Scrollbar */
.content-section::-webkit-scrollbar {
  width: 8px;
}

.content-section::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

.content-section::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.content-section::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

.content-section::-webkit-scrollbar {
  width: 8px;
}

.content-section::-webkit-scrollbar-track {
  background: transparent;
}

.content-section::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.section-header {
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* ============================================
   7. PORTFOLIO CARDS
   ============================================ */

/* About Card - Hakkımda Kartı */
.about-card {
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--color-text-primary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  grid-column: 1 / -1;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.portfolio-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

/* Portfolio Cards */
.portfolio-card {
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  height: 100%;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
}

.project-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.portfolio-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-accent);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

/* Carousel Styles */
.portfolio-carousel {
  width: 100%;
}

.portfolio-carousel .carousel-inner {
  height: 220px;
}

.portfolio-carousel .carousel-item {
  height: 220px;
}

.portfolio-carousel .carousel-item img {
  height: 100%;
  object-fit: cover;
}

.portfolio-carousel .carousel-indicators {
  bottom: 10px;
  margin-bottom: 0;
}

.portfolio-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  margin: 0 4px;
}

.portfolio-carousel .carousel-indicators button.active {
  background-color: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

.portfolio-carousel .carousel-control-prev,
.portfolio-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.portfolio-card:hover .carousel-control-prev,
.portfolio-card:hover .carousel-control-next {
  opacity: 1;
}

.portfolio-carousel .carousel-control-prev {
  left: 10px;
}

.portfolio-carousel .carousel-control-next {
  right: 10px;
}

.portfolio-carousel .carousel-control-prev-icon,
.portfolio-carousel .carousel-control-next-icon {
  width: 30px;
  height: 30px;
  background-color: rgba(33, 37, 41, 0.7);
  border-radius: 50%;
  padding: 6px;
}

.portfolio-carousel .carousel-control-prev-icon:hover,
.portfolio-carousel .carousel-control-next-icon:hover {
  background-color: var(--color-text-primary);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  transition: color var(--transition-speed) ease;
}

.project-link:hover {
  color: var(--color-hover);
}

.project-link i {
  font-size: 0.8rem;
}

.project-tech {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Skills Section - Table Style */
.tech-stack-container {
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.tech-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-speed) ease;
}

.tech-row:last-child {
  border-bottom: none;
}

.tech-row:hover {
  background-color: var(--color-secondary);
}

.tech-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  min-width: 200px;
  background-color: rgba(0, 0, 0, 0.15);
  border-right: 2px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.tech-label i {
  font-size: 1.2rem;
  color: var(--color-text-primary);
  min-width: 20px;
  text-align: center;
}

.tech-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.tech-tag {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.tech-tag:hover {
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Tech Stack */
@media (max-width: 991px) {
  .tech-label {
    min-width: 160px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }

  .tech-values {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 767px) {
  .tech-row {
    flex-direction: column;
  }

  .tech-label {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .tech-values {
    padding: 1rem 1.25rem 1.25rem;
  }
}

@media (max-width: 767px) {
  .skill-category {
    padding: 1.25rem;
  }

  .skill-header i {
    font-size: 1.1rem;
  }

  .skill-category-title {
    font-size: 1rem;
  }

  .skill-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Experience Section */
.experience-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  background-color: var(--color-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--color-text-primary);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.experience-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.experience-date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.company-name {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.experience-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Education Section */
.education-section,
.certificates-section {
  margin-bottom: 2.5rem;
}

.education-section:last-child,
.certificates-section:last-child {
  margin-bottom: 0;
}

.subsection-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.education-item {
  background-color: var(--color-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1rem;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.education-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.education-date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.institution-name {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Certificates */
.certificate-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.certificate-item {
  background-color: var(--color-primary);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-speed) ease;
}

.certificate-item:hover {
  transform: translateX(5px);
  box-shadow: var(--box-shadow-hover);
}

.certificate-item i {
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.certificate-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem 0;
}

.certificate-info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================
   8. CIRCULAR NAVIGATION MENU
   ============================================ */
.circular-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.circular-nav-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--box-shadow-hover);
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.circular-nav-trigger:hover {
  transform: scale(1.1);
  background-color: var(--color-hover);
}

.circular-nav-trigger.active {
  transform: rotate(90deg);
}

.circular-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
}

.menu-item {
  position: absolute;
  width: 95px;
  height: 55px;
  border-radius: 10px;
  background-color: var(--color-primary);
  border: 2px solid var(--color-text-primary);
  color: var(--color-text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  visibility: hidden;
  top: 5px;
  right: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem 0.5rem;
  gap: 0.25rem;
  line-height: 1.1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
  overflow: hidden;
}

.circular-menu.active .menu-item {
  opacity: 1;
  visibility: visible;
}

.circular-menu.active .menu-item:nth-child(1) {
  transform: translate(-110px, 0);
}

.circular-menu.active .menu-item:nth-child(2) {
  transform: translate(-90px, 50px);
}

.circular-menu.active .menu-item:nth-child(3) {
  transform: translate(-50px, 90px);
}

.circular-menu.active .menu-item:nth-child(4) {
  transform: translate(0, 110px);
}

.menu-item:hover {
  background-color: var(--color-text-primary);
  color: var(--color-primary);
  transform: translate(-110px, 0) scale(1.1) !important;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.menu-item:nth-child(2):hover {
  transform: translate(-90px, 50px) scale(1.1) !important;
  z-index: 200;
}

.menu-item:nth-child(3):hover {
  transform: translate(-50px, 90px) scale(1.1) !important;
  z-index: 200;
}

.menu-item:nth-child(4):hover {
  transform: translate(0, 110px) scale(1.1) !important;
  z-index: 200;
}

.menu-item span {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.menu-item i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ============================================
   9. RESPONSIVE DESIGN
   ============================================ */
/* Desktop: Yatay scroll korunur, mobil kurallar yukarıda */
@media (min-width: 992px) {
  .main-wrapper {
    overflow: hidden;
  }

  .horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .sections-wrapper {
    flex-direction: row;
  }

  .content-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (max-width: 991px) {
  :root {
    --sidebar-width: 100vw;
  }

  /* Tablet/Mobil: Sol panel tam ekran */
  .main-wrapper {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
  }

  .sidebar-flip-container {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    perspective: none;
  }

  .sidebar-flip-card {
    height: 100vh;
    min-height: 100vh;
    transform-style: flat;
    transition: none;
  }

  .sidebar-flip-card.flipped {
    transform: none;
  }

  .card-face {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    border-right: none;
    border-bottom: 2px solid var(--color-border);
    backface-visibility: visible;
    overflow-x: hidden;
  }

  .card-front {
    display: block;
  }

  .card-back {
    display: none;
    transform: none;
  }

  .sidebar-flip-card.flipped .card-front {
    display: none;
  }

  .sidebar-flip-card.flipped .card-back {
    display: block;
  }

  /* Sol panel daha belirgin */
  .profile-section {
    background: linear-gradient(
      135deg,
      var(--color-primary) 0%,
      var(--color-secondary) 100%
    );
    padding: 1.5rem 1.25rem;
    height: 100%;
    min-height: 100vh;
    overflow: visible;
  }

  /* Dikey scroll için horizontal container'ı devre dışı bırak */
  .horizontal-scroll-container {
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .sections-wrapper {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .content-section {
    width: 100%;
    height: auto;
    min-height: 50vh;
    padding: 2rem 1.5rem;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Circular nav mobil için ayarla */
  .circular-nav {
    top: 1.5rem;
    right: 1.5rem;
  }

  .circular-nav-trigger {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .menu-item {
    width: 85px;
    height: 50px;
    font-size: 0.75rem;
    padding: 0.35rem 0.45rem;
  }

  .menu-item span {
    font-size: 0.7rem;
  }

  .menu-item i {
    font-size: 1.05rem;
  }

  /* Contact section mobil */
  .contact-section {
    height: auto;
    min-height: 60vh;
    padding: 2rem 1.5rem;
  }

  .contact-form {
    overflow-y: visible;
  }
}

@media (max-width: 767px) {
  .sidebar-flip-container {
    min-height: auto;
  }

  .profile-section {
    padding: 1.5rem 1.25rem;
  }

  .logo-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
  }

  .profile-info {
    margin-bottom: 1rem;
  }

  .profile-name {
    font-size: 1.4rem;
    font-weight: 700;
  }

  .profile-title {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .about-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .about-section {
    margin-bottom: 0.75rem;
  }

  .bottom-section {
    padding-top: 0.75rem;
  }

  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .content-section {
    padding: 1.5rem 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* ============================================
   10. UTILITY CLASSES
   ============================================ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.row.g-4 {
  margin: -1rem;
}

.row.g-4 > * {
  padding: 1rem;
}

.col-lg-4,
.col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* ============================================
   11. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   12. PREVIEW MODAL
   ============================================ */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.preview-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  width: 95%;
  height: 90%;
  background: var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10001;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
}

.device-switcher {
  display: flex;
  gap: 10px;
}

.device-btn {
  width: 45px;
  height: 45px;
  border: 2px solid var(--color-border);
  background: var(--color-primary);
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-text-secondary);
  transition: all var(--transition-speed);
}

.device-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

.device-btn.active {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: var(--color-primary);
}

.modal-close {
  width: 45px;
  height: 45px;
  border: none;
  background: var(--color-primary);
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-text-secondary);
  transition: all var(--transition-speed);
}

.modal-close:hover {
  background: #dc3545;
  color: white;
}

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--color-accent);
  overflow: hidden;
}

.iframe-wrapper {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all var(--transition-speed);
}

/* Desktop görünüm (varsayılan) */
.iframe-wrapper.desktop {
  max-width: 100%;
  height: 100%;
}

/* Tablet görünüm */
.iframe-wrapper.tablet {
  max-width: 768px;
  height: 100%;
  margin: 0 auto;
}

/* Mobil görünüm */
.iframe-wrapper.mobile {
  max-width: 375px;
  height: 100%;
  margin: 0 auto;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobil cihazlarda modal ayarları */
@media (max-width: 768px) {
  .modal-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .modal-header {
    padding: 10px 15px;
  }

  .device-btn,
  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .modal-body {
    padding: 10px;
  }

  .iframe-wrapper.mobile,
  .iframe-wrapper.tablet {
    max-width: 100%;
  }
}

/* ============================================
   13. FULLSCREEN IMAGE MODAL
   ============================================ */
.fullscreen-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(33, 37, 41, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-card:hover .fullscreen-btn {
  opacity: 1;
}

.fullscreen-btn:hover {
  background: rgba(33, 37, 41, 0.95);
  border-color: white;
  transform: translate(-50%, -50%) scale(1.15);
}

.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.fullscreen-content {
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fullscreen-content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

#fullscreenCarousel {
  width: 90vw;
  max-width: 1200px;
}

#fullscreenCarousel .carousel-inner {
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

#fullscreenCarousel .carousel-item img {
  max-height: 85vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

#fullscreenCarousel .carousel-indicators {
  bottom: -40px;
}

#fullscreenCarousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
}

#fullscreenCarousel .carousel-indicators button.active {
  background-color: white;
  width: 30px;
  border-radius: 5px;
}

#fullscreenCarousel .carousel-control-prev,
#fullscreenCarousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

#fullscreenCarousel .carousel-control-prev {
  left: -80px;
}

#fullscreenCarousel .carousel-control-next {
  right: -80px;
}

#fullscreenCarousel .carousel-control-prev-icon,
#fullscreenCarousel .carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 8px;
}

#fullscreenCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#fullscreenCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.video-modal.active {
  display: flex;
}

.video-modal-container {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
}

.video-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 991px) {
  .video-modal-container {
    width: 95vw;
  }
}

/* ============================================
   14. PERFORMANCE OPTIMIZATIONS
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

.portfolio-image,
.logo-container {
  will-change: transform;
}
