/* XOXO Inc - Custom Styles */
/* Apple-inspired glass morphism and premium aesthetics */

:root {
  --xoxo-dark: #0B0D10;
  --xoxo-light: #F7F8FA;
  --xoxo-blue: #4F8DF7;
  --xoxo-purple: #7A5AF5;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Glass Morphism Effects */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-panel-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-strong);
}

/* Navigation Styles */
#navbar {
  background: linear-gradient(135deg, rgba(11, 13, 16, 0.85), rgba(31, 41, 55, 0.75));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#navbar.scrolled {
  background: linear-gradient(135deg, rgba(11, 13, 16, 0.95), rgba(31, 41, 55, 0.85));
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link {
  color: #F7F8FA;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: #4F8DF7;
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4F8DF7, #7A5AF5);
  transition: width 0.3s ease;
}

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

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  color: #9CA3AF;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.lang-btn:hover {
  color: #F7F8FA;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  color: #4F8DF7;
  background: rgba(79, 141, 247, 0.1);
}

/* Mobile Menu */
.mobile-menu-hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-menu-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#mobile-menu {
  background: linear-gradient(135deg, rgba(11, 13, 16, 0.9), rgba(31, 41, 55, 0.8));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 8px;
  margin-left: 16px;
  margin-right: 16px;
  border-radius: 16px;
}

.mobile-nav-link {
  display: block;
  color: #F7F8FA;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #4F8DF7;
}

/* Hero Section */
.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(79, 141, 247, 0.1) 0%,
    rgba(122, 90, 245, 0.05) 50%,
    rgba(11, 13, 16, 0.9) 100%
  );
  z-index: 1;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(79, 141, 247, 0.05) 0%,
    rgba(122, 90, 245, 0.03) 50%,
    transparent 70%
  );
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Floating elements animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(90deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  75% {
    transform: translateY(-10px) rotate(270deg);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-15px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translateY(-5px) rotate(240deg) scale(0.9);
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 12s ease-in-out infinite;
  animation-delay: 2s;
}

.hero-title,
.hero-subtitle,
.hero-cta {
  animation: heroFadeIn 1.2s ease-out forwards;
}

.hero-subtitle {
  animation-delay: 0.3s;
}

.hero-cta {
  animation-delay: 0.6s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.cta-primary {
  background: linear-gradient(135deg, #4F8DF7, #7A5AF5);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(79, 141, 247, 0.3);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 141, 247, 0.4);
  background: linear-gradient(135deg, #5A9AFF, #8B6BFF);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #F7F8FA;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #F7F8FA, #9CA3AF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Service Cards */
.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(79, 141, 247, 0.1), transparent 70%);
  transition: all 0.6s ease;
  border-radius: 50%;
  z-index: -1;
}

.service-card:hover::after {
  width: 300px;
  height: 300px;
}

.service-icon {
  color: #4F8DF7;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: #5A9AFF;
  filter: drop-shadow(0 0 10px rgba(79, 141, 247, 0.3));
}


/* Digital Stars Animation */
.stars-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.star {
  position: absolute;
  background: linear-gradient(45deg, #4F8DF7, #7A5AF5);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0;
  animation: starTwinkle 3s infinite;
}

.star-1 { width: 8px; height: 8px; top: 10%; left: 10%; animation-delay: 0s; }
.star-2 { width: 6px; height: 6px; top: 20%; left: 80%; animation-delay: 0.5s; }
.star-3 { width: 10px; height: 10px; top: 30%; left: 60%; animation-delay: 1s; }
.star-4 { width: 4px; height: 4px; top: 15%; left: 40%; animation-delay: 1.5s; }
.star-5 { width: 7px; height: 7px; top: 40%; left: 20%; animation-delay: 2s; }
.star-6 { width: 5px; height: 5px; top: 50%; left: 90%; animation-delay: 2.5s; }
.star-7 { width: 9px; height: 9px; top: 60%; left: 30%; animation-delay: 0.8s; }
.star-8 { width: 6px; height: 6px; top: 70%; left: 70%; animation-delay: 1.3s; }
.star-9 { width: 8px; height: 8px; top: 80%; left: 50%; animation-delay: 1.8s; }
.star-10 { width: 5px; height: 5px; top: 25%; left: 15%; animation-delay: 2.3s; }
.star-11 { width: 7px; height: 7px; top: 35%; left: 85%; animation-delay: 0.3s; }
.star-12 { width: 4px; height: 4px; top: 45%; left: 45%; animation-delay: 0.9s; }
.star-13 { width: 6px; height: 6px; top: 55%; left: 75%; animation-delay: 1.4s; }
.star-14 { width: 8px; height: 8px; top: 65%; left: 25%; animation-delay: 1.9s; }
.star-15 { width: 5px; height: 5px; top: 75%; left: 65%; animation-delay: 2.4s; }

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2) rotate(180deg);
  }
}

/* Case Study Cards */





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

@keyframes barGrow {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

/* Partner Logos */
.partner-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6B7280;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo:hover {
  color: #F7F8FA;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px) scale(1.05);
}

.partner-logo svg {
  transition: all 0.3s ease;
}

.partner-logo:hover svg {
  transform: scale(1.1);
}

.partner-logo:hover svg circle,
.partner-logo:hover svg rect,
.partner-logo:hover svg path {
  animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Contact Form */
.contact-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #F7F8FA;
  font-size: 14px;
}

.contact-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #F7F8FA;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-input:focus {
  outline: none;
  border-color: #4F8DF7;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(79, 141, 247, 0.1);
}

.contact-input::placeholder {
  color: #6B7280;
}

/* Contact Info */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4F8DF7;
  flex-shrink: 0;
}

.contact-info-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #F7F8FA;
  margin-bottom: 0.25rem;
}

.contact-info-text {
  color: #9CA3AF;
  line-height: 1.5;
}

/* Footer */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-link {
  color: #6B7280;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover {
  color: #4F8DF7;
  background: rgba(79, 141, 247, 0.1);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(79, 141, 247, 0.2);
}

.footer-text-link {
  color: #6B7280;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.footer-text-link:hover {
  color: #F7F8FA;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.footer-text-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #4F8DF7;
  transition: width 0.3s ease;
}

.footer-text-link:hover::after {
  width: 80%;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 13, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-container {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow-strong);
  max-width: 600px;
  width: 90vw;
  max-height: 80vh;
  margin: 2rem;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F7F8FA;
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 12px;
  padding: 8px;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #F7F8FA;
  transform: scale(1.1);
}

.modal-content {
  padding: 0;
  max-height: calc(80vh - 100px);
  overflow-y: auto;
}

.modal-text {
  padding: 2rem;
  color: #E5E7EB;
  line-height: 1.6;
}

.modal-text h3 {
  color: #F7F8FA;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  background: linear-gradient(135deg, #4F8DF7, #7A5AF5);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-text h3:first-child {
  margin-top: 0;
}

.modal-text p {
  margin: 0.75rem 0;
  color: #D1D5DB;
}

.modal-text strong {
  color: #F7F8FA;
  font-weight: 600;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(79, 141, 247, 0.3);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 141, 247, 0.5);
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-container {
    width: 95vw;
    max-height: 90vh;
    margin: 1rem;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
  
  .modal-text {
    padding: 1.5rem;
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Parallax Effects */
.parallax-slow {
  transform: translateY(0px);
  transition: transform 0.1s ease-out;
}

.parallax-medium {
  transform: translateY(0px);
  transition: transform 0.1s ease-out;
}

.parallax-fast {
  transform: translateY(0px);
  transition: transform 0.1s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading * {
  cursor: wait !important;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #4F8DF7;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .glass-panel,
  .glass-panel-strong {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .nav-link,
  .footer-text-link {
    text-decoration: underline;
  }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: light) {
  /* If user prefers light mode, we could add overrides here */
  /* For now, keeping the dark theme as specified */
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .cta-primary,
  .cta-secondary {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .glass-panel-strong {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title span:first-child {
    font-size: 2.5rem !important;
  }
  
  .hero-title span:last-child {
    font-size: 1.875rem !important;
  }
  
  .cta-primary,
  .cta-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .service-card {
    padding: 1rem;
  }
}

/* Ultra-wide Monitor Support */
@media (min-width: 2560px) {
  .container {
    max-width: 2400px;
  }
  
  .section-title {
    font-size: 4rem;
  }
  
  .section-subtitle {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .glass-panel,
  .glass-panel-strong {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  .cta-primary,
  .cta-secondary {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }
}
