/* Creative Modern Design Styles for PT TBE */

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
  --gradient-creative: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-outline: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Enhanced Body Styles */
body {
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* Creative Navbar */
.navbar {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: transparent;
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.nav-link {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-creative);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7));
  z-index: 1;
}

/* Creative Particles Effect */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
}

/* Creative Button Styles */
.btn-creative {
  position: relative;
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.btn-creative::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-creative);
  z-index: -1;
  transition: all 0.4s ease;
}

.btn-creative:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-creative:active {
  transform: translateY(-1px);
}

.btn-outline-creative {
  position: relative;
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  background: transparent;
  color: white;
  overflow: hidden;
  z-index: 1;
  border: 2px solid white;
  transition: all 0.4s ease;
  cursor: pointer;
}

.btn-outline-creative:hover {
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline-creative::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient-creative);
  z-index: -1;
  transition: all 0.4s ease;
}

.btn-outline-creative:hover::before {
  width: 100%;
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 4px;
  background: var(--gradient-creative);
  z-index: -1;
  border-radius: 2px;
}

.section-title-center {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.section-title-center::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-creative);
  z-index: -1;
  border-radius: 2px;
}

/* Enhanced Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: white;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-creative);
  opacity: 0;
  z-index: -1;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  opacity: 0.05;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.1);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--gradient-creative);
  transform: rotate(5deg) scale(1.1);
  box-shadow: var(--shadow);
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card img {
  transition: all 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  padding: 2rem 1.5rem;
  transform: translateY(20%);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Client Section */
.client-box {
  position: relative;
  padding: 1.5rem;
  margin: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  min-width: 150px;
  height: 150px;
}

.client-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* FAQ Section */
.faq-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.faq-item:hover {
  border-left-color: var(--primary);
  transform: translateX(5px);
}

.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* Contact Section */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
  background: var(--gradient-creative);
  color: white;
  transform: rotate(5deg) scale(1.1);
}

/* Footer */
.footer {
  position: relative;
  background-color: var(--dark);
  color: var(--gray);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-creative);
}

.footer-link {
  position: relative;
  display: inline-block;
  color: var(--gray);
  transition: all 0.3s ease;
  padding-left: 15px;
}

.footer-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.footer-link:hover::before {
  background: var(--accent);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray);
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.social-icon:hover {
  background: var(--gradient-creative);
  color: white;
  transform: translateY(-5px);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating {
  animation: float 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulsing {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 20s linear infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .service-card, .project-card, .faq-item, .client-box {
    transform: none !important;
  }
  
  .btn-creative, .btn-outline-creative {
    padding: 0.6rem 1.5rem;
  }
  
  .section-title::before, .section-title-center::before {
    height: 3px;
  }
}