/* GRAPHIETY — DIGITAL SOLUTIONS: Premium Styling Engine */

:root {
  --bg-main: #030712;
  --bg-card: #070d1b;
  --cyan-glow: #00f0ff;
  --blue-glow: #3b82f6;
  --purple-glow: #8b5cf6;
  --purple-accent: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --border-purple: rgba(168, 85, 247, 0.35);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3000;
  transform: translateY(-160%);
  border-radius: 0.6rem;
  background: #00f0ff;
  color: #030712;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Cards & Panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 1.5rem;
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.12);
  border-radius: 1.5rem;
}

/* Text Gradients */
.text-cyan-glow {
  color: var(--cyan-glow);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.text-gradient-cyan-purple {
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-electric {
  background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Futuristic Buttons & Badges */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00f0ff 0%, #2563eb 100%);
  color: #030712;
  font-weight: 800;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  border: 1px solid rgba(0, 240, 255, 0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary-glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.65), 0 8px 25px rgba(0, 240, 255, 0.3);
  border-color: #00f0ff;
}

.btn-primary-glow:focus-visible,
.btn-secondary-glass:focus-visible,
.btn-whatsapp-glow:focus-visible,
.social-icon-btn:focus-visible,
.portfolio-filter-btn:focus-visible,
.mobile-menu-toggle:focus-visible,
.float-btn:focus-visible {
  outline: 3px solid rgba(0, 240, 255, 0.9);
  outline-offset: 3px;
}

.btn-primary-glow:disabled,
.btn-secondary-glass:disabled,
.btn-whatsapp-glow:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.btn-primary-glow:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-secondary-glass:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  color: #00f0ff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.btn-whatsapp-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  border: 1px solid rgba(37, 211, 102, 0.5);
  cursor: pointer;
}
.btn-whatsapp-glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.75), 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Social Media Icon Button Styling in Footer */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.btn-social-wa:hover { color: #25d366; border-color: #25d366; box-shadow: 0 0 18px rgba(37, 211, 102, 0.5); }
.btn-social-ig:hover { color: #e1306c; border-color: #e1306c; box-shadow: 0 0 18px rgba(225, 48, 108, 0.5); }
.btn-social-li:hover { color: #0a66c2; border-color: #0a66c2; box-shadow: 0 0 18px rgba(10, 102, 194, 0.5); }
.btn-social-fb:hover { color: #1877f2; border-color: #1877f2; box-shadow: 0 0 18px rgba(24, 119, 242, 0.5); }
.btn-social-tw:hover { color: #ffffff; border-color: #ffffff; box-shadow: 0 0 18px rgba(255, 255, 255, 0.5); }
.btn-social-yt:hover { color: #ff0000; border-color: #ff0000; box-shadow: 0 0 18px rgba(255, 0, 0, 0.5); }

/* Ultra-Attractive Form Inputs & Custom Select Elements */
.input-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.input-field {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 0.85rem;
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  font-family: inherit;
}

.input-field::placeholder {
  color: #64748b;
  font-size: 0.825rem;
}

.input-field:hover {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(15, 23, 42, 0.95);
}

.input-field:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: rgba(7, 13, 27, 0.98);
}

.input-field:focus-visible {
  outline: 3px solid rgba(0, 240, 255, 0.25);
  outline-offset: 2px;
}

.input-field:user-invalid {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12);
}

select.input-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.input-field option {
  background: #070d1b;
  color: #ffffff;
  padding: 0.75rem;
}

textarea.input-field {
  resize: vertical;
  min-height: 100px;
}

.form-submit-status {
  min-height: 1.25rem;
  color: #a5f3fc;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Cybernetic Grid Canvas Background */
#cyberGridCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* Continuous Auto Brand Logo Slider / Marquee */
.brand-slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2.75rem 0;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
  gap: 2rem;
  align-items: center;
}

.brand-track:hover {
  animation-play-state: paused;
}

/* Rectangular Brand Card Container */
.brand-logo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 165px;
  height: 80px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Rectangular Logo Image (Contained within frame) */
.brand-logo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.35s ease;
}

/* Hover Reveal - Brand Name Overlay */
.brand-name-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.brand-name-overlay span {
  font-size: 0.825rem;
  font-weight: 800;
  color: #00f0ff;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  word-break: break-word;
}

/* On Card Hover: Glow cyan border, scale up, slide up Brand Name */
.brand-logo-card:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 0 15px rgba(0, 240, 255, 0.1);
  transform: translateY(-4px) scale(1.04);
}

.brand-logo-card:hover .brand-logo-box {
  transform: scale(0.85);
  opacity: 0.25;
}

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

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Floating WhatsApp & Call Action Widgets */
.floating-contact-widgets {
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.float-btn {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-whatsapp {
  background: #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
  animation: pulseGreen 2.5s infinite;
}

.float-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
}

.float-call {
  background: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.float-call:hover {
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
}

.float-tooltip {
  position: absolute;
  right: 4.2rem;
  background: #090e1a;
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform: translateX(5px);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Global Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }

.badge-futuristic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header & Mobile Sticky Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-toggle {
  display: none;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  color: #ffffff;
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  gap: 1.25rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sticky-bottom-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .desktop-nav, .desktop-cta-btn { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  .mobile-sticky-bottom-cta { display: flex; justify-content: space-between; gap: 0.75rem; }
  .floating-contact-widgets { bottom: 5.5rem; right: 1rem; }
  .float-btn { width: 3.15rem; height: 3.15rem; }
  body { padding-bottom: 4rem; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
