:root {
  --primary-color: rgb(254, 128, 37);
  --secondary-color: rgb(97, 69, 156);
  --tertiary-color: rgb(68, 39, 129);
  --text-color: rgb(29, 19, 51);
  --extra-color: rgb(37, 162, 254);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
:-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Video Background Styling */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Add a semi-transparent overlay for better text contrast */
.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video covers the screen without distortion */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0; /* Hide all videos by default */
  transition: opacity 1s ease-in-out; /* Fade transition effect */
}

.video-background video.active {
  opacity: 1; /* Show the active video */
}

/* Seamless Navbar Styling */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 6rem 3rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: whitesmoke;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.logo img {
  width: 90px;
  height: auto;
  object-fit: contain;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem; /* <-- Burayı 1rem olarak güncelledik */
  font-weight: bold;
  padding: 8px 10px;
  transition: all 0.3s ease-in-out;

  /* --- Yeni Stil --- */
  background-color: transparent;
  color: whitesmoke; /* <-- Doğru renk bu olmalı */
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar nav a.active {
  background-color: transparent;
  color: var(--primary-color); /* Aktif link metni turuncu olacak */
  border-color: transparent;
  box-shadow: none;
}

.navbar nav a:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: none; /* Yükselme efektini kaldırdık */
  box-shadow: none;
}

/* Alt çizgi için temel stil (başlangıçta gizli) */
.navbar nav a::after {
  content: '';
  position: absolute;
  width: 0%; /* Başlangıçta genişliği 0 */
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0; /* Linkin hemen altına konumlanır */
  left: 50%; /* Ortadan başlaması için */
  transform: translateX(-50%); /* Tam olarak ortalamak için */
  transition: width 0.3s ease-in-out;
}

/* Üzerine gelince veya aktif olunca çizgiyi göster */
.navbar nav a:hover::after,
.navbar nav a.active::after {
  width: 70%; /* Genişliği 70% yap (daha şık durur, 100% de yapabilirsiniz) */
}

/* Hero Content Styling */
.hero-content {
  text-align: center;
  z-index: 3;
}

.hero-content h1 {
  font-family: 'Montserrat', serif;
  font-size: 4.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 0; /* Start hidden before animation begins */
}

.hero-content p {
  font-size: 1.5rem;
  color: whitesmoke;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 12px 30px;
  margin-top: 3rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(254, 128, 37, 0.4);
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

.cta-button:hover {
  background-color: whitesmoke;
  color: var(--primary-color);
  transform: translateY(-3px); /* Subtle lift effect */
  box-shadow: 0 6px 20px rgba(254, 128, 37, 0.6);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-h1 {
  animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.animate-p {
  animation: fadeInUp 1.2s ease-out 0.8s forwards;
}

.animate-btn {
  animation: fadeInUp 1.2s ease-out 1.1s forwards;
}

/* ============================================ */
/* STICKY NAVBAR                   */
/* ============================================ */

.navbar.navbar-fixed {
  /* --- The "Sticky" Properties --- */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensures it's on top of everything */

  /* --- Style Changes --- */
  background-color: var(--text-color); /* Adds a solid background */
  padding: 0.5rem 6rem; /* Makes the navbar padding smaller */
  margin: 0; /* Removes any top margin */
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3); /* Adds a shadow */
  background-color: rgba(29, 19, 51, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  /* --- Animation --- */
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
}

/* Shrink the links inside the fixed navbar */
.navbar.navbar-fixed nav a {
  padding: 6px 10px; /* Padding'i yatayda azalttık */
  margin-top: 0;
  font-size: 1rem;
}

.navbar.navbar-fixed .logo img {
  width: 50px;
  height: auto;
  transition: all 0.3s ease-in-out;
}

.navbar.navbar-fixed .logo span {
  font-size: 1.5rem; /* Was 2rem */
  transition: all 0.3s ease-in-out;
}

/* ============================================ */
/*              PROJECTS SECTION                */
/* ============================================ */

#projects {
  padding: 6rem 2rem;
  position: relative;
  z-index: 2;

  background-image: linear-gradient(
      rgba(29, 19, 51, 0.9),
      rgba(29, 19, 51, 0.9)
    ),
    url('resources/images/Screenshot_5.png');
  background-size: cover;
  background-position: center;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header {
  text-align: center;
  margin-bottom: 4rem;
}

.projects-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: whitesmoke;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Creates the decorative underline */
.projects-header h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: whitesmoke;
  bottom: -10px;
  left: 25%;
}

.projects-header p {
  font-size: 1.1rem;
  color: whitesmoke;
  max-width: 800px;
  margin: 1.5rem auto 0;
}

/* Responsive Grid for the cards */
.projects-grid {
  display: grid;
  /* This creates a responsive grid that automatically adjusts columns */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: whitesmoke;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* 
  By adding ".aos-animate", we make this rule more specific.
  It now only applies the hover effect AFTER the scroll animation is complete
*/
.project-card.aos-animate:hover {
  transform: translateY(-10px) scale(1.06);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  box-shadow: 0 10px 25px var(--primary-color);
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--tertiary-color);
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-bottom: 5px;
}

/* Underline effect for the link */
.card-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-in-out;
}

.card-link:hover::after {
  transform: scaleX(1);
}

/* ============================================ */
/*              STATISTICS SECTION              */
/* ============================================ */

#statistics {
  position: relative;
  display: block;

  background-image: linear-gradient(
      rgba(29, 19, 51, 0.4),
      rgba(29, 19, 51, 0.4)
    ),
    url('resources/images/Screenshot_4.png');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 6rem 0;
}

.fullWidth {
  width: 100% !important;
  display: table;
  float: none;
  padding: 0;
  min-height: 1px;
  height: 100%;
  position: relative;
}

.projectFactsWrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#projectFacts .fullWidth {
  padding: 0;
}

.projectFactsWrap .item {
  width: 25%;
  height: 100%;
  padding: 50px 0px;
  text-align: center;
  background-color: rgba(68, 39, 129, 0.8);
}

.projectFactsWrap .item p.number {
  font-size: 40px;
  padding: 0;
  font-weight: bold;
  color: whitesmoke;
}

.projectFactsWrap .item p {
  color: whitesmoke;
  font-size: 18px;
  margin: 0;
  padding: 10px;
  font-family: 'Open Sans';
}

.projectFactsWrap .item span {
  width: 60px;
  background: whitesmoke;
  height: 2px;
  display: block;
  margin: 0 auto;
}

.projectFactsWrap .item i {
  vertical-align: middle;
  font-size: 50px;
  color: whitesmoke;
}

.projectFactsWrap .item i,
.projectFactsWrap .item p,
.projectFactsWrap .item span {
  transition: color 0.3s ease-in-out;
}

.projectFactsWrap .item:hover i,
.projectFactsWrap .item:hover p.number,
.projectFactsWrap .item:hover span {
  color: var(--primary-color);
}

@media (max-width: 786px) {
  .projectFactsWrap .item {
    flex: 0 0 50%;
  }
}

/* ============================================ */
/*              ANIMATED TEXT                   */
/* ============================================ */

#slider {
  width: 600px;
  display: flex;
  gap: 15px;
  font-size: 30px;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
  color: #666;
}

#sliderValue {
  display: flex;
  color: var(--primary-color);
  font-weight: 700;
}

.start {
  opacity: 0;
}

.animation {
  animation: fade 0.3s forwards;
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.holder-animation {
  animation: holder 4s;
}

@keyframes holder {
  0% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ============================================ */
/*              SERVICES SECTION                */
/* ============================================ */

.section-services {
	font-family: "Poppins", sans-serif;
	background-color: #e6edf7;
	color: #202020;
	padding-top: 115px;
    padding-bottom: 120px;
}

.section-services .header-section {
	margin-bottom: 34px;
}

.section-services .header-section .title {
	position: relative;
    padding-bottom: 14px;
    margin-bottom: 25px;
	font-weight: 700;
    font-size: 32px;
}

.section-services .header-section .title:before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 3px;
	background-color: var(--primary-color);
    border-radius: 3px;
}

.section-services .header-section .title:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
    transform: translateX(30px);
	width: 10px;
	height: 3px;
	background-color: #504f93;
    border-radius: 3px;
}

.section-services .header-section .description {
	font-size: 14px;
    color: #282828;
}

.section-services .single-service {
    position: relative;
    margin-top: 30px;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    overflow: hidden;
}

.section-services .single-service .content {
	position: relative;
	z-index: 20;
}

.section-services .single-service .circle-before {
    position: absolute;
    top: 0;
    right: 0px;
    transform: translate(40%, -40%);
    width: 150px;
    height: 150px;
    background-color: #ff4500;
    border: 6px solid #504f93;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 10;
    transition: all .6s;
}

.section-services .single-service:hover .circle-before {
	width: 100%;
	height: 100%;
	transform: none;
	border: 0;
	border-radius: 0;
	opacity: 1;
}

.section-services .single-service .icon {
	display: inline-block;
	margin-bottom: 26px;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 5px;
    line-height: 70px;
    text-align: center;
    color: #fff;
    font-size: 30px;
    transition: all .3s;
}

.section-services .single-service:hover .icon {
	background-color: #fff;
	color: #ff4500;
}

.section-services .single-service .title {
    margin-bottom: 18px;
	font-weight: 700;
    font-size: 23px;
    transition: color .3s;
}

.section-services .single-service:hover .title {
	color: #fff;
}

.section-services .single-service .description {
    margin-bottom: 20px;
    font-size: 14px;
    transition: color .3s;
}

.section-services .single-service:hover .description {
	color: #fff;
}

.section-services .single-service a {
	position: relative;
	font-size: 18px;
    color: #202020;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.section-services .single-service:hover a {
	color: #fff;
}

.section-services .single-service a:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #ff4500;
	transition: background-color .3s;
}

.section-services .single-service:hover a:after {
	background-color: #fff;
}

/* ============================================ */
/*              SLIDING LOGOS SECTION           */
/* ============================================ */

.logo-slider {
  overflow: hidden;
  padding: 30px 0 20px 0;
  white-space: nowrap;
  position: relative;
  background-color: var(--text-color);
}

.logo-slider:hover .logos-slide {
  animation-play-state: paused;
}

.logos-slide {
  display: inline-block;
  animation: 30s slide infinite linear;
}

.logos-slide img {
  width: 183px;
  height: 83px;
  margin: 0 40px;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ============================================ */
/*              FOOTER SECTION                  */
/* ============================================ */

#site-footer {
  background-color: #222;
  color: whitesmoke;
  padding: 4rem 2rem 2rem;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #444;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.about-column p {
  line-height: 1.7;
  max-width: 350px;
}

.footer-column h4 {
  font-family: 'Playfair Display', serif;
  color: whitesmoke;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.links-column ul {
  list-style: none;
  padding: 0;
}

.links-column li {
  margin-bottom: 0.75rem;
}

.links-column a {
  color: whitesmoke;
  text-decoration: none;
  transition: color 0.3s ease;
}

.links-column a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  color: whitesmoke;
  font-size: 1.6rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* Responsive adjustments for the footer */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .about-column p {
    margin: 0 auto;
  }

  .social-icons {
    justify-content: center;
  }
}
