/* Hero Section - Arsem Style */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;
}

/* Background Image */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease;
}

/* Different backgrounds for each category */
.hero-background[data-category="insaat"] {
  background-image: url('/src/assets/images/İnsaat-main.jpg');
  opacity: 1;
}

.hero-background[data-category="yatirim"] {
  background-image: url('/src/assets/images/atik-su-main.webp');
  opacity: 0;
}

.hero-background[data-category="gayrimenkul"] {
  background-image: url('../images/hero-home.jpg');
  opacity: 0;
}

.hero-background[data-category="enerji"] {
  background-image: url('/src/assets/images/İcme-Suyu-Main.jpg');
  opacity: 0;
}

.hero-background[data-category="sanayi"] {
  background-image: url('/src/assets/images/telekom-hatlari-main.jpg');
  opacity: 0;
}

.hero-background[data-category="girisim"] {
  background-image: url('/src/assets/images/Peyzaj-Cevre-Duzenleme-Main.jpg');
  opacity: 0;
}

.hero-background.active {
  opacity: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Container */
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  width: 100%;
}

/* Left Categories Menu */
.hero-categories {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 280px;
  flex-shrink: 0;
  padding-left: var(--spacing-lg);
}

.category-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 17px;
  font-weight: var(--fontweight-regular);
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.category-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.03);
  transition: width 0.3s ease;
  z-index: 0;
}

.category-item:hover,
.category-item.active {
  color: rgba(255, 255, 255, 0.95);
}

.category-item:hover::before,
.category-item.active::before {
  width: 100%;
}

.category-item.active {
  border-left-color: rgba(255, 255, 255, 0.8);
}

.category-item > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.category-icon svg {
  width: 18px;
  height: 18px;
}

.category-item:hover .category-icon,
.category-item.active .category-icon {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.category-label {
  display: inline-block;
}

/* Right Content Area */
.hero-content-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--spacing-xxl);
  padding-left: 0;
}

.hero-text-container {
  position: relative;
  max-width: 700px;
  width: 100%;
  min-height: 140px; /* tutarlı yükseklik için */
}

.hero-text {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  text-align: right;
}

.hero-text.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-description {
  font-size: 52px;
  font-weight: var(--fontweight-bold);
  line-height: 1.2;
  color: var(--color-text-light);
  margin: 0;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.6);
  max-width: 640px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateX(-50%) scale(1.1);
  animation: none;
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Statistics Carousel Section */
.stats-section {
  background-color: #f8f8f8;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.stats-carousel {
  position: relative;
}

.stats-carousel::before,
.stats-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}

.stats-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #f8f8f8 0%, rgba(248, 248, 248, 0) 100%);
}

.stats-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #f8f8f8 0%, rgba(248, 248, 248, 0) 100%);
}

.stats-mask {
  overflow: hidden;
  position: relative;
}

.stats-track {
  display: flex;
  align-items: stretch;
  gap: var(--spacing-xl);
  animation: scroll 30s linear infinite;
  padding: var(--spacing-md) 0;
}

.stats-track:hover {
  animation-play-state: paused;
}

.stat-item {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background-color: var(--color-background-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C2BD9 0%, #4B1D9D 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  box-shadow: 0 10px 25px rgba(108, 43, 217, 0.25);
  flex-shrink: 0;
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-content h3 {
  font-size: 36px;
  font-weight: var(--fontweight-bold);
  color: var(--color-primary);
  margin: 0;
  white-space: nowrap;
}

.stat-content p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Values Section */
.values-section {
  position: relative;
  padding: var(--spacing-xxl) 0;
  background: url('/src/assets/images/banner.png') center/cover no-repeat;
  color: var(--color-text-light);
  text-align: center;
  overflow: hidden;
  min-height: 560px;
}

.values-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 7, 24, 0.85) 0%, rgba(12, 7, 24, 0.55) 100%);
  z-index: 0;
}

.values-content h4 {
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.values-content h2 {
  font-size: 42px;
  font-weight: var(--fontweight-bold);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.values-content p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.values-content, .values-section .btn-primary {
  position: relative;
  z-index: 1;
}

/* Projects Section */
.projects-section {
  padding: var(--spacing-xxl) 0;
  background-color: #f8f8f8;
}

.section-title {
  font-size: 36px;
  font-weight: var(--fontweight-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  text-align: center;
  margin: 0 auto;
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.projects-heading {
  max-width: 720px;
}

.projects-heading .section-title,
.projects-heading .section-subtitle {
  text-align: left;
}

.projects-heading .section-subtitle {
  margin: 0;
}

.projects-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-weight: var(--fontweight-medium);
  color: var(--color-primary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.projects-cta::after {
  content: '→';
  font-size: 16px;
  transition: transform var(--transition-fast);
}

.projects-cta:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.projects-cta:hover::after {
  transform: translateX(4px);
}

.projects-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 7, 24, 0.1) 0%, rgba(10, 7, 24, 0.65) 65%, rgba(10, 7, 24, 0.9) 100%);
  transition: opacity var(--transition-fast);
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-overlay {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  color: var(--color-text-light);
}

.project-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: var(--fontweight-medium);
  width: fit-content;
}

.project-overlay h3 {
  font-size: 24px;
  font-weight: var(--fontweight-bold);
  margin: 0;
  color: var(--color-text-light);
}

.project-overlay p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--spacing-sm);
  max-width: 85%;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fontweight-medium);
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  width: fit-content;
  padding-bottom: 4px;
  transition: all var(--transition-fast);
}

.project-link::after {
  content: '→';
  font-size: 16px;
  transition: transform var(--transition-fast);
}

.project-card:hover .project-link {
  border-color: rgba(255, 255, 255, 0.8);
}

.project-card:hover .project-link::after {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section {
    padding-top: 70px;
  }
  
  .hero-container {
    flex-direction: column;
    padding: var(--spacing-lg);
  }
  
  .hero-categories {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    padding-top: var(--spacing-md);
  }
  
  .hero-categories::-webkit-scrollbar {
    display: none;
  }
  
  .category-item {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    min-width: 100px;
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .category-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-text-light);
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
  }

  .category-label {
    font-size: 13px;
    white-space: nowrap;
  }
  
  .hero-content-area {
    justify-content: center;
    padding: 0;
  }
  
  .hero-description {
    font-size: 36px;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .values-content h2 {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    padding-top: 60px;
  }
  
  .hero-description {
    font-size: 28px;
  }
  
  .hero-scroll-indicator {
    bottom: var(--spacing-md);
    width: 40px;
    height: 40px;
  }
  
  .stats-section {
    padding: var(--spacing-lg) 0;
  }
  
  .stat-item {
    min-width: 220px;
    padding: var(--spacing-md);
  }
  
  .stat-item h3 {
    font-size: 32px;
  }
  
  .values-section {
    padding: var(--spacing-lg) 0;
    min-height: 420px;
  }
  
  .values-content h2 {
    font-size: 24px;
  }
  
  .values-content p {
    font-size: 16px;
  }
  
  .projects-section {
    padding: var(--spacing-lg) 0;
  }
  
  .stats-carousel::before,
  .stats-carousel::after {
    width: 80px;
  }

  .stat-item {
    flex: 0 0 240px;
  }

  .projects-header {
    align-items: flex-start;
    gap: var(--spacing-lg);
  }

  .projects-heading {
    max-width: 100%;
  }

  .projects-heading .section-subtitle {
    margin: 0;
  }

  .projects-cta {
    align-self: flex-start;
  }

  .project-overlay p {
    max-width: 100%;
  }

  .section-title {
    font-size: 22px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .projects-carousel {
    grid-template-columns: 1fr;
  }

  .stats-carousel::before,
  .stats-carousel::after {
    display: none;
  }

  .stats-track {
    gap: var(--spacing-lg);
  }

  .stat-item {
    flex: 0 0 220px;
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-content h3 {
    font-size: 30px;
  }

  .projects-header {
    align-items: center;
    text-align: center;
  }

  .projects-heading .section-title,
  .projects-heading .section-subtitle {
    text-align: center;
  }

  .projects-cta {
    align-self: center;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: auto;
    min-height: 70vh;
  }

  .hero-container {
    padding: var(--spacing-md);
  }

  .hero-categories {
    justify-content: flex-start;
    gap: var(--spacing-xs);
  }

  .category-item {
    padding: var(--spacing-sm);
  }

  .category-icon {
    width: 34px;
    height: 34px;
  }

  .category-label {
    font-size: 12px;
  }

  .hero-description {
    font-size: 24px;
  }

  .hero-scroll-indicator {
    width: 36px;
    height: 36px;
  }

  .stats-track {
    gap: var(--spacing-md);
  }

  .stat-item {
    min-width: 180px;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .stat-item h3 {
    font-size: 26px;
  }

  .values-content h2 {
    font-size: 22px;
  }

  .values-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .values-section {
    min-height: 360px;
  }

  .projects-section .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 15px;
  }
}