:root {
  --brand-yellow: #F3EC20;
  --brand-purple: #7E51A1;
  --light-bg: #f9f9f9;
}

body {
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
}

.btn-brand {
  background-color: var(--brand-purple);
  color: black;
  font-weight: bold;
}

.btn-brand:hover {
  background-color: #F3EC20;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar {
  background-color: white;
  height: 70px;
  z-index: 1050;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
}

.nav-item.dropdown {
  position: static;
}

/* Desktop Menu Styles */
.desktop-menu {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100vw;
  padding: 3rem 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.desktop-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mega-menu {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

.mega-menu-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-menu-header {
  background: none;
  padding: 1rem 0 0.5rem;
}

.mega-menu-header h5 {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.mega-menu-header p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.mega-menu-column {
  flex: 1;
  padding: 0 1rem;
}

.mega-menu-column h6 {
  font-weight: bold;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  color: #333;
}

.mega-menu-column h6:first-child {
  margin-top: 0;
}

.mega-menu-column .dropdown-item {
  padding: 0.25rem 0;
  border: none;
  background: none;
  color: #666;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.2rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 0.1rem 0;
}

.mega-menu-column .dropdown-item::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: #999;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.mega-menu-column .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(126, 81, 161, 0.05) 0%, rgba(243, 236, 32, 0.05) 100%);
  color: var(--brand-purple);
  padding-left: 1.5rem;
  box-shadow: 0 2px 8px rgba(126, 81, 161, 0.1);
  transform: translateX(3px);
}

.mega-menu-column .dropdown-item:hover::before {
  content: '→';
  color: var(--brand-purple);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.mega-menu-image {
  flex: 1;
  position: relative;
}

.mega-menu-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Mobile Menu Styles - Improved Hierarchical */
.mobile-submenu {
  display: none;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  margin-top: 0.5rem;
  overflow: hidden;
}

.mobile-menu-level {
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-level.slide-left {
  transform: translateX(-100%);
}

.mobile-category-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  transition: all 0.2s ease;
}

.mobile-category-item:hover {
  background-color: #fff;
  color: var(--brand-purple);
  text-decoration: none;
}

.mobile-category-item::after {
  content: '→';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #999;
}

.mobile-back-btn {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--brand-purple);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--brand-purple);
  background-color: #fff;
  position: relative;
}

.mobile-back-btn::before {
  content: '<';
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.mobile-back-btn:hover {
  text-decoration: none;
  color: var(--brand-purple);
  background-color: #f8f9fa;
}

.mobile-submenu-header {
  padding: 1rem;
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  font-weight: bold;
  color: var(--brand-purple);
}

.mobile-menu-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 2rem;
}

.mobile-menu-item::before {
  content: '>';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: bold;
  color: #999;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
  background-color: #fff;
  color: var(--brand-purple);
  text-decoration: none;
  padding-left: 2.5rem;
  box-shadow: 0 1px 4px rgba(126, 81, 161, 0.1);
}

.mobile-menu-item:hover::before,
.mobile-menu-item:focus::before {
  content: '>';
  color: var(--brand-purple);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

/* Hover states for desktop */
.dropdown-hover:hover .desktop-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Mobile specific styles */
@media (max-width: 991.98px) {
  /* Hide desktop menu on mobile */
  .desktop-menu {
    display: none !important;
  }
  
  /* Show mobile submenu when active */
  .mobile-submenu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
  }
  
  /* Mobile dropdown toggle styling */
  .dropdown-hover .dropdown-toggle {
    position: relative;
  }
  
  .dropdown-hover .dropdown-toggle::after {
    transition: transform 0.2s ease;
    margin-left: auto;
  }
  
  .dropdown-hover.active .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  /* Better mobile navbar styling */
  .navbar-collapse {
    background-color: white;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .nav-item {
    border-bottom: 1px solid #f8f9fa;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    color: #333 !important;
  }
  
  .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--brand-purple) !important;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.hover-card:hover .learn-more {
  color: #000 !important;
}

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.project-learn-more {
  color: #888;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}
.project-card:hover .project-learn-more {
  color: var(--brand-purple);
  opacity: 1;
  transform: translateX(4px);
}

/* Industries Section - Sticky Left Content */
.industries-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  scroll-margin-top: 120px;
}

.sticky-industry-content {
  position: sticky;
  top: 100px;
  z-index: 10;
  height: fit-content;
}

/* Industry blocks styling */
.industry-block {
  opacity: 0.4;
  transition: all 0.4s ease;
  padding: 2rem 0;
  min-height: 300px; /* Minimum yükseklik ile görsel geçişlerini daha stabil yapalım */
}

.industry-block.active {
  opacity: 1;
  transform: translateX(0);
}

.industry-block h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
}

.industry-block p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Badge styling - iki satırlık düzenleme */
.industry-block .badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.industry-block .badge {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.industry-block.active .badge {
  background-color: var(--brand-purple) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(126, 81, 161, 0.3);
}

/* Industry image styling */
#industry-image {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
  transition: all 0.5s ease-in-out;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Sağdaki sektör bloğunun hizalanması */
@media (min-width: 768px) {
  .offset-industry {
    padding-top: 0;
  }
  
  /* İlk industry block'u sticky content'in başlangıcıyla hizala */
  .industry-block:first-child {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (min-width: 992px) {
  .industry-block {
    min-height: 350px; /* Desktop'ta biraz daha yüksek */
    padding: 2.5rem 0;
  }
  
  .industry-block:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  
  /* Son industry block için extra padding */
  .industry-block:last-child {
    padding-bottom: 4rem;
  }
}

/* Learn more link styling */
.industry-block a[href="#"] {
  color: var(--brand-purple);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.industry-block a[href="#"]:hover {
  transform: translateX(5px);
  color: #5a3a7a;
}

/* HR styling */
.industry-block hr {
  border-color: #e9ecef;
  margin: 2rem 0;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.industry-block.active hr {
  border-color: var(--brand-purple);
  opacity: 0.2;
}

.why-work-section h5 {
  color: var(--brand-purple);
}
.contact-section form .form-check-label {
  font-weight: 400;
}
.contact-section textarea::placeholder,
.contact-section input::placeholder {
  color: #bbb;
}
.footer a:hover {
  text-decoration: underline;
  color: var(--brand-yellow);
}
.footer i {
  font-size: 1.2rem;
}
.footer-heading {
  color: #f8f9fa;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer ul li a {
  color: #ffffff;
  opacity: 0.8;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--brand-yellow);
}
.card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.03);
}
/* START FIX: Align left mega header with right column headings */
.desktop-menu .mega-menu {
  align-items: flex-start; /* tüm sütunlar tepeden hizalansın */
}
.desktop-menu .mega-menu-left .mega-menu-header {
  padding-top: 0;    /* soldaki başlıktaki fazladan boşluğu kaldır */
  margin-top: 0;
}
/* Mikro ayar: 14px arası oynatılabilir */
:root { --mega-header-top-nudge: 2px; }
.desktop-menu .mega-menu-left .mega-menu-header h5 {
  margin-top: var(--mega-header-top-nudge);
}
/* END FIX */
/* === FIX START: software-dev hero parallax & alignment === */
.hero-contact-section .parallax-col {
  background-image: url('assets/images/Software-Development-Services-scaled.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: fixed; /* desktop parallax */
  min-height: 560px;
}

/* iOS/Android için 'fixed' yerine scroll */
@media (max-width: 991.98px) {
  .hero-contact-section .parallax-col {
    background-attachment: scroll;
    min-height: 420px;
  }
}

/* Kartı görselin üstünde, sağda ve dikey ortalı tut */
.hero-contact-section .parallax-col .contact-card {
  position: absolute;
  top: 50%;
  right: clamp(16px, 5vw, 40px);
  transform: translateY(-50%);
  width: min(92%, 420px);
  z-index: 2;
  background: #fff;
}

/* Mobilde kart akışa girsin */
@media (max-width: 991.98px) {
  .hero-contact-section .parallax-col .contact-card {
    position: static;
    transform: none;
    margin: 24px auto;
    width: min(94%, 520px);
  }
}

/* Soldaki metin bloğunu index hizasına yaklaştır */
.hero-contact-section .content-wrap {
  max-width: 560px;
  margin-left: clamp(16px, 6vw, 56px);
  margin-right: clamp(16px, 4vw, 32px);
}
/* === FIX END === */

