:root {
  /* Color Palette */
  --bg-primary: #050508;
  --bg-secondary: #0a0a0f;
  --text-primary: #f8f8f8;
  --text-secondary: #a3a3a3;
  --neon-cyan: #00f0ff;
  --neon-purple: #a200ff;
  --neon-blue: #0051ff;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Spacing & Utilities */
  --section-padding: 100px 5%;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography Utility */
h1, h2, h3, h4, .text-gradient {
  background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: var(--transition);
}

.glass:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
  transform: translateY(-5px);
}

/* Nav */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(20px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo-text {
  background: linear-gradient(90deg, var(--text-primary) 30%, var(--neon-cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.logo svg {
  animation: float 4s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Buttons */
.btn-primary {
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(162, 0, 255, 0.4);
  position: relative;
  z-index: 1;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  padding: 10px 25px;
  border-radius: 30px;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan) !important;
  font-weight: 600;
  background: transparent;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.glow-effect {
  animation: pulse-glow 2s infinite alternate;
}

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
}

.alt-bg {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 0 5%;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--neon-cyan);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  animation: scroll 1.5s infinite;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
  -webkit-background-clip: initial;
  background: none;
}

.service-list {
  color: var(--text-secondary);
}

.service-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.service-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
}

/* Tech Stack */
.tech-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tech-item {
  padding: 15px 30px;
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--neon-purple);
  background: rgba(162, 0, 255, 0.1);
  transform: translateY(-5px);
  color: var(--neon-cyan);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-card {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a1a24;
  transition: transform 0.5s ease;
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(100%);
  transition: var(--transition);
}

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

.portfolio-card:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
}

.portfolio-info p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.portfolio-link {
  color: var(--neon-cyan);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
}

.pricing-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
}

.pricing-card.popular {
  transform: scale(1.05);
  border-color: rgba(162, 0, 255, 0.4);
  background: rgba(162, 0, 255, 0.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.glow-border {
  box-shadow: 0 0 30px rgba(162, 0, 255, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  margin-bottom: 5px;
}

.price {
  font-size: 1.2rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  margin-bottom: 30px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 40px;
}

.pricing-features li {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 25px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  color: #00f0ff;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* About */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.stat-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.about-visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sphere-glow {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
  filter: blur(40px);
  animation: pulse-glow 3s infinite alternate;
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact-methods {
  padding: 40px;
}

.contact-methods h3 {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  margin-bottom: 30px;
}

.method {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.method-icon {
  font-size: 1.5rem;
}

.method a {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.method a:hover {
  color: var(--neon-cyan);
}

.mt-2 {
  margin-top: 20px;
}

.contact-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(255,255,255,0.05);
}

.w-100 {
  width: 100%;
}

/* Footer */
footer {
  background: #020203;
  padding: 40px 5%;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
}

.footer-links {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
  100% { box-shadow: 0 0 30px rgba(162, 0, 255, 0.6); }
}

@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* Scroll Revel Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-widget:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Chat Widget UI */
.whatsapp-widget {
  cursor: pointer;
  border: none;
  outline: none;
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.hidden {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
}

.chat-header {
  padding: 15px 20px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(162, 0, 255, 0.05));
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.chat-title {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background-color: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f0ff;
  animation: blink 2s infinite;
}

#close-chat {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

#close-chat:hover {
  color: #fff;
}

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

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.bot-msg {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
}

.user-msg {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(162, 0, 255, 0.2);
}

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

#chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px 15px;
  color: #fff;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}

#chat-input:focus {
  border-color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.05);
}

#chat-send {
  background: none;
  border: none;
  color: var(--neon-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: var(--transition);
}

#chat-send:disabled {
  color: var(--text-secondary);
  cursor: not-allowed;
}

#chat-send:hover:not(:disabled) {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Media Queries */
@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .about-container { grid-template-columns: 1fr; text-align: center; }
  .about-content h2 { text-align: center; }
  .contact-container { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: scale(1); }
  .pricing-card.popular:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
  }
  .hamburger span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
  }
}
