/* 3D Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  perspective: 1000px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.carousel-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.carousel-item {
  position: absolute;
  width: 60%;
  height: 80%;
  left: 20%;
  top: 10%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.5s ease;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: all 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: white;
  transform: translateZ(20px);
}

.carousel-item-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.carousel-item-content p {
  font-size: 1rem;
  opacity: 0.8;
}

.carousel-nav {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  z-index: 10;
}

.carousel-nav-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav-btn.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 20px;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.5rem;
}

.carousel-arrow:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* Mouse Pointer Effect */
.custom-cursor {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

/* Magnetic Buttons */
.magnetic-btn {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.6, 0.4, 1);
  cursor: pointer;
}

.magnetic-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.magnetic-btn .btn-text {
  position: relative;
  z-index: 1;
}

.magnetic-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.4, 1);
  z-index: 0;
}

.magnetic-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Split Text Effect */
.split-text {
  overflow: hidden;
  position: relative;
}

.split-text .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.5rem;
}

.split-text .char {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.4, 1);
}

.split-text.active .char {
  transform: translateY(0);
}

/* Portfolio Showcase */
.portfolio-showcase {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.showcase-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(36, 58, 96, 0.8) 100%);
  z-index: -1;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.showcase-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  height: 300px;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.2, 0.6, 0.4, 1);
}

.showcase-item.visible {
  transform: translateY(0);
  opacity: 1;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.showcase-item:hover .showcase-item-overlay {
  opacity: 1;
}

.showcase-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
}

.showcase-item:hover .showcase-item-title {
  transform: translateY(0);
}

.showcase-item-category {
  font-size: 0.9rem;
  color: var(--primary-light);
  transform: translateY(20px);
  transition: all 0.3s ease 0.2s;
}

.showcase-item:hover .showcase-item-category {
  transform: translateY(0);
}

/* Awards Section */
.awards-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.award-item {
  background-color: var(--bg-card);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.2, 0.6, 0.4, 1);
  position: relative;
  overflow: hidden;
}

.award-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.award-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.award-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.award-organization {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.award-year {
  display: inline-block;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.award-bg-circle {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
  z-index: 0;
}

@media (max-width: 768px) {
  .carousel-item {
    width: 80%;
    left: 10%;
  }

  .showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .awards-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .carousel-container {
    height: 400px;
  }

  .carousel-item {
    width: 90%;
    left: 5%;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
