/* 
 * WEBIDEA IT SERVICES DESIGN SYSTEM & GLOBAL STYLES 
 * Inspired by The Digital Panda
 */

:root {
  /* Colors */
  --bg-dark: #0a0a0a;
  --bg-surface: #141414;
  --bg-glass: rgba(20, 20, 20, 0.6);
  --bg-glass-hover: rgba(40, 40, 40, 0.8);
  
  --accent-neon: #82ff1f;
  --accent-neon-dim: rgba(130, 255, 31, 0.2);
  --accent-dark: #4a9e0a;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 3rem;
  --text-5xl: 4.5rem;
  --text-6xl: 6rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Other Tokens */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 400ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 800ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

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

a:hover {
  color: var(--accent-neon);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Selection */
::selection {
  background-color: var(--accent-neon);
  color: var(--bg-dark);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-padding-lg {
  padding: var(--space-32) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.relative { position: relative; }

/* Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
  gap: var(--space-2);
}

.btn-primary {
  background-color: #ff4500; /* Orange contact button from image */
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #ff571a;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-light);
  transform: translateY(-5px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-6) 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled {
  padding: 0;
  top: 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled .nav-container {
  background: rgba(140, 140, 140, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 8px 12px 8px 24px;
  max-width: max-content;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-neon);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-neon);
  animation: livePulseDot 2s infinite;
}

@keyframes livePulseDot {
  0% { transform: scale(1); box-shadow: 0 0 5px var(--accent-neon), 0 0 0 0 rgba(130, 255, 31, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 10px var(--accent-neon), 0 0 0 8px rgba(130, 255, 31, 0); }
  100% { transform: scale(1); box-shadow: 0 0 5px var(--accent-neon), 0 0 0 0 rgba(130, 255, 31, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 1025px) {
  .nav-links {
    background: rgba(40, 40, 40, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 50px;
    margin: 0 16px;
    gap: 4px;
    transition: all 0.4s ease;
  }

  .navbar.scrolled .nav-links {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: capitalize;
  position: relative;
  transition: all 0.3s ease;
}

@media (min-width: 1025px) {
  .nav-link {
    padding: 8px 20px;
    border-radius: 50px;
    background: #e0e0e0; /* Light gray pill */
    color: #111111 !important; /* Dark text */
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
}

@media (max-width: 1024px) {
  .nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-2) 0;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-neon);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-2xl);
  cursor: pointer;
}

/* Typography Enhancements */
.text-accent {
  color: var(--accent-neon);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-sm);
  color: var(--accent-neon);
  margin-bottom: var(--space-4);
  display: block;
}

/* Background Effects */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(130, 255, 31, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -2;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: var(--space-16) 0 var(--space-8);
  background: #050505;
  scroll-snap-align: start;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-col h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.footer-link:hover {
  color: var(--accent-neon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  color: var(--text-secondary);
  font-size: var(--text-xl);
}

.social-link:hover {
  color: var(--accent-neon);
  transform: translateY(-3px);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all var(--transition-bounce);
  text-decoration: none;
  animation: livePulseWhatsApp 2s infinite;
}

@keyframes livePulseWhatsApp {
  0% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6); transform: scale(1); }
  70% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0); transform: scale(1.05); }
  100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-neon);
  color: var(--bg-dark);
  border-color: var(--accent-neon);
  box-shadow: 0 4px 15px rgba(130, 255, 31, 0.3);
  transform: translateY(-2px);
}

/* For hiding items */
.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
  display: none !important;
}

/* Project Grid adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Process Timeline */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-neon), transparent);
  opacity: 0.3;
}

.process-step {
  display: flex;
  gap: var(--space-8);
  position: relative;
}

.process-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-neon);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 15px rgba(130, 255, 31, 0.2);
}

.process-content {
  flex-grow: 1;
}

@media (max-width: 768px) {
  .process-timeline::before {
    left: 20px;
  }
  .process-step {
    gap: var(--space-4);
  }
  .process-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
  line-height: 1;
}

.modal-close:hover {
  color: white;
}
