:root {
  --primary-color: #9b59b6; /* Mor ton – eski: #3fcdc7 */
  --secondary-color: #8e44ad; /* Koyu mor – eski: #4680ff */
  --accent-color: #41cf2e; /* Yeşil – değişmedi */
  --dark-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-color: #e0e0e0;
  --text-muted: #999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark-bg);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Navbar */
.navbar {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(63, 205, 199, 0.1);
}

.navbar-brand img {
  height: 40px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-color) !important;
  margin: 0 1rem;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.btn-login {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(63, 205, 199, 0.4);
  color: white;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.6s both;
}

.btn-hero {
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.btn-hero-primary {
  background: var(--primary-color);
  border: none;
  color: white;
}

.btn-hero-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(63, 205, 199, 0.4);
}

.btn-hero-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-hero-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Form Card */
.form-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(63, 205, 199, 0.2);
  animation: fadeInUp 1s ease 0.6s both;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(63, 205, 199, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.form-card > * {
  position: relative;
  z-index: 1;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(63, 205, 199, 0.25);
  color: var(--text-color);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(63, 205, 199, 0.4);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: rgba(26, 26, 26, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-extra img {
  width: 100%;
  max-width: 500px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Services Section */
.services-section {
  padding: 5rem 0;
}

.service-box {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(63, 205, 199, 0.1);
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(63, 205, 199, 0.2);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-box:nth-child(1) .service-icon {
  color: var(--primary-color);
}
.service-box:nth-child(2) .service-icon {
  color: var(--secondary-color);
}
.service-box:nth-child(3) .service-icon {
  color: var(--accent-color);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-description {
  color: var(--text-muted);
}

/* Stats Section */
.stats-section {
  padding: 5rem 0;
  background: rgba(26, 26, 26, 0.5);
}

.stat-card {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
}

.portfolio-item {
  margin-bottom: 2rem;
}

.portfolio-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-wrap:hover img {
  transform: scale(1.1);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-wrap:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
  background: rgba(26, 26, 26, 0.5);
}

.testimonial-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(63, 205, 199, 0.1);
  margin: 1rem;
}

.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

.testimonial-item h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.testimonial-item h4 {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.testimonial-item p {
  color: var(--text-color);
  font-style: italic;
}

/* Footer */
footer {
  background: var(--card-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(63, 205, 199, 0.1);
}

/* Modal */
.modal-content {
  background: var(--card-bg);
  border: 1px solid rgba(63, 205, 199, 0.2);
  border-radius: 15px;
}

.modal-header {
  border-bottom: 1px solid rgba(63, 205, 199, 0.1);
}

.modal-title {
  color: var(--primary-color);
}

.btn-close {
  filter: invert(1);
}

/* Alert Styles */
.alert {
  border-radius: 10px;
  border: none;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(65, 207, 46, 0.2);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* Loading Spinner */
.spinner-border-custom {
  border-color: var(--primary-color);
  border-right-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section-header h3 {
    font-size: 2rem;
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
