:root {
  --primary-bg: #0a0a0c;
  --panel-bg: rgba(15, 15, 20, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --neon-cyan: #00f2ff;
  --neon-purple: #bc00ff;
  --neon-green: #39ff14;
  --neon-pink: #ff007f;
  --text-main: #ffffff;
  --text-dim: #d0d0d0;
  --glow-shadow: 0 0 25px rgba(0, 242, 255, 0.8);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0c 100%);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  perspective: 2000px;
}

body.menu-open {
  transform: translateX(250px) rotateY(-15deg) scale(0.9);
  overflow: hidden;
}

#bg-image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.6) saturate(1.1);
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(188, 0, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.perspective-container {
  perspective: 2000px;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.neon-text {
  text-shadow: 0 0 10px currentColor;
}

.neon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.neon-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--neon-cyan);
}

/* 3D Scene Setup */
.scene-3d {
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Navigation */
.main-nav {
  position: fixed;
  top: 20px;
  width: 90%;
  max-width: 800px;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-radius: 50px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 20px;
}

.nav-link.active, .nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.nav-status {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  gap: 15px;
}

/* Carousel Layout */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform-style: preserve-3d;
  width: 100%;
  height: 500px;
  position: relative;
}

.project-card {
  width: 320px;
  height: 450px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: absolute;
  transform-style: preserve-3d;
}

.project-card.left {
  transform: translateX(-350px) rotateY(25deg) scale(0.85);
  opacity: 0.6;
  z-index: 1;
}

.project-card.center {
  transform: translateX(0) rotateY(0) scale(1.1);
  z-index: 10;
  opacity: 1;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
}

.project-card.right {
  transform: translateX(350px) rotateY(-25deg) scale(0.85);
  opacity: 0.6;
  z-index: 1;
}

.card-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  background-color: #1a1a2e;
}

.card-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.card-content p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.tags {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 25px;
  background: rgba(255,255,255,0.05);
  padding: 5px 10px;
  border-radius: 4px;
  width: fit-content;
}

/* Controls */
.carousel-controls {
  position: absolute;
  bottom: 50px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.2);
}

.indicators {
  display: flex;
  gap: 10px;
}

.dot {
  width: 30px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: all 0.3s;
}

.dot.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  width: 50px;
}

/* Project Specific Colors */
.card-image.pharma {
  background: linear-gradient(135deg, #001a1a 0%, #00f2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image.pharma::before {
  content: '✚';
  font-size: 80px;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
}

.card-image.marketing {
  background: linear-gradient(135deg, #1a1a00 0%, #ffbb00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image.marketing::before {
  content: '📈';
  font-size: 80px;
  color: #ffbb00;
  text-shadow: 0 0 20px #ffbb00;
}

.card-image.boutique {
  background: linear-gradient(135deg, #1a001a 0%, #bc00ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image.boutique::before {
  content: '✨';
  font-size: 80px;
  color: var(--neon-purple);
  text-shadow: 0 0 20px var(--neon-purple);
}

/* Panel System (Image 2) */
.content-section {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.content-section.active {
  display: flex;
}

.panel-section {
  display: flex;
  gap: 30px;
  transform-style: preserve-3d;
  padding: 50px;
  perspective: 1500px;
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
}

.panel-card {
  flex: 1;
  min-width: 300px;
  height: min-content;
  padding: 40px;
  transform: rotateY(15deg);
  transition: all 0.5s ease;
  margin: 10px;
}

.panel-card:hover {
  transform: rotateY(0deg) scale(1.02);
  border-color: var(--neon-cyan);
}

.panel-card h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* Hide scrollbar for panel-section */
.panel-section::-webkit-scrollbar {
  display: none;
}
.panel-section {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px;
  color: white;
  outline: none;
}

.form-group textarea {
  height: 80px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .main-nav {
    width: 95%;
    padding: 10px;
  }
  .main-nav ul { gap: 10px; }
  .nav-link { font-size: 0.6rem; padding: 5px; }
  .nav-status { display: none; }
  
  .carousel-container { height: 400px; }
  .project-card { width: 260px; height: 380px; }
  .project-card.left { transform: translateX(-150px) scale(0.7); opacity: 0.3; }
  .project-card.right { transform: translateX(150px) scale(0.7); opacity: 0.3; }
  .project-card.center { transform: translateX(0) scale(0.9); }
  
  .panel-section { flex-direction: column; padding: 20px; }
  .panel-card { transform: none !important; min-width: 100%; }
  
  #mobile-menu-trigger {
    display: flex;
    position: fixed;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 2000;
    cursor: pointer;
    border-radius: 12px;
  }
  
  #mobile-menu-trigger span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--neon-cyan);
  }
  
  .menu-open #mobile-menu-trigger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open #mobile-menu-trigger span:nth-child(2) { opacity: 0; }
  .menu-open #mobile-menu-trigger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    left: -300px;
    top: 0;
    width: 250px;
    height: 100vh;
    border-radius: 0;
    flex-direction: column;
    padding: 100px 30px;
    justify-content: flex-start;
    transition: 0.6s;
    background: rgba(10, 10, 12, 0.95);
  }
  
  .menu-open .main-nav {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    display: block;
    text-align: center;
  }
}

/* Services & Contact Icons */
.service-icon {
  font-size: 50px;
  margin-top: 30px;
  text-align: right;
  opacity: 0.8;
}

.contact-info p {
  margin: 15px 0;
  font-size: 1.1rem;
}

.contact-info strong {
  color: var(--neon-cyan);
}

/* WhatsApp Button */
.whatsapp-btn-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 30px;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* AI Chatbot */
.ai-chat-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
}

#chat-toggle {
  padding: 12px 25px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--neon-cyan);
  cursor: pointer;
  border-color: var(--neon-cyan);
}

.ai-orb {
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.5; transform: scale(1); }
}

#chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 350px;
  height: 450px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--neon-cyan);
}

#chat-window.active {
  display: flex;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.3);
}

#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 10px;
  border-radius: 10px;
  max-width: 85%;
  font-size: 0.9rem;
}

.message.ai {
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.2);
  align-self: flex-start;
}

.message.user {
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-end;
}

.chat-input-area {
  padding: 15px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--glass-border);
}

#chat-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  padding: 8px;
  color: white;
  outline: none;
}

#send-chat {
  background: var(--neon-cyan);
  border: none;
  border-radius: 5px;
  padding: 0 15px;
  cursor: pointer;
}

/* Profile Photo Styling */
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 25px;
  border: 4px solid var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.8), inset 0 0 20px rgba(0, 242, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('profile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(0, 242, 255, 1), inset 0 0 30px rgba(0, 242, 255, 0.6);
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--neon-cyan)); opacity: 0.8; }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 25px var(--neon-cyan)); opacity: 1; }
}

.profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .profile-photo {
    width: 120px;
    height: 120px;
  }
}

/* Marketing Decorative Elements */
.floating-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
  animation: float 10s ease-in-out infinite;
}

