/* ========================================
   BASE STYLES - REVOLUTIONARY DESIGN
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--lexpoint-gray-900);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow-x: hidden;
}

/* ========================================
   CONTAINER & LAYOUT - PREMIUM SPACING
   ======================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ========================================
   TYPOGRAPHY - PREMIUM HIERARCHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin: 0 0 var(--space-4) 0;
}

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

p {
  margin: 0 0 var(--space-4) 0;
  line-height: 1.7;
}

a {
  color: var(--lexpoint-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--lexpoint-primary-dark);
}

/* ========================================
   ANIMATIONS - REVOLUTIONARY EFFECTS
   ======================================== */

/* Brand Hover Effects for Cards */
.card.feature:hover .hover-border {
  border-color: #5404FF !important;
  box-shadow: 0 0 20px rgba(84, 4, 255, 0.3);
}

.card.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(84, 4, 255, 0.15);
}

.card.feature:hover .feature-icon > div {
  background: linear-gradient(135deg, rgba(84, 4, 255, 0.1) 0%, rgba(84, 4, 255, 0.2) 100%) !important;
  border-color: rgba(84, 4, 255, 0.4) !important;
  transform: scale(1.1);
}

.card.feature:hover .feature-title {
  color: #5404FF !important;
  transform: scale(1.02);
}

.card.feature:hover .btn-primary {
  background: linear-gradient(135deg, #5404FF 0%, #6b21a8 100%) !important;
  box-shadow: 0 4px 15px rgba(84, 4, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* About Section Card Hover Effects */
.card:hover .hover-border {
  border-color: #5404FF !important;
  box-shadow: 0 0 20px rgba(84, 4, 255, 0.3);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(84, 4, 255, 0.15);
}

.card:hover h3 {
  background: linear-gradient(135deg, #5404FF 0%, #6b21a8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  transform: scale(1.02);
}

.card:hover .text-4xl {
  transform: scale(1.1);
  transition: transform 0.4s ease;
}

.card:hover .flex-shrink-0 {
  background: linear-gradient(135deg, #5404FF 0%, #6b21a8 100%) !important;
  box-shadow: 0 4px 15px rgba(84, 4, 255, 0.4) !important;
  transform: scale(1.1);
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.rotate {
  animation: rotate 20s linear infinite;
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ========================================
   INTERSECTION OBSERVER ANIMATIONS
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ========================================
   GRADIENT OVERLAYS
   ======================================== */

.gradient-overlay {
  position: relative;
}

.gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  pointer-events: none;
}

/* ========================================
   HOVER EFFECTS - PREMIUM INTERACTIONS
   ======================================== */

.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hover-glow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.hover-scale {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   TEXT EFFECTS - PREMIUM TYPOGRAPHY
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.text-shadow {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ========================================
   STICKY NAVIGATION
   ======================================== */

.navbar-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-sticky.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ========================================
   PARALLAX EFFECTS
   ======================================== */

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }
  
  .parallax {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
  }
  
  h1 { font-size: var(--text-xl); }
  h2 { font-size: var(--text-lg); }
  h3 { font-size: var(--text-base); }
}

/* ========================================
   ACCESSIBILITY - WCAG COMPLIANT
   ======================================== */

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

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--lexpoint-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass,
  .glass-dark {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--lexpoint-gray-900);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: var(--lexpoint-white);
  }
  
  .glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Hardware acceleration for animations */
.animate-on-scroll,
.hover-lift,
.hover-glow,
.hover-scale {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Optimize for mobile */
@media (max-width: 768px) {
  .glass,
  .glass-dark {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--lexpoint-gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-black { font-weight: var(--font-weight-black); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }

.rounded { border-radius: var(--radius-base); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-max { z-index: 9999; }

/* Contact Section Card Hover Effects */
.card:hover .hover-border {
  border-color: #5404FF !important;
  box-shadow: 0 0 20px rgba(84, 4, 255, 0.3);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(84, 4, 255, 0.15);
}
.card:hover h3 {
  color: #5404FF !important;
  transform: scale(1.02);
}
.card:hover .text-4xl {
  background: linear-gradient(135deg, rgba(84, 4, 255, 0.1) 0%, rgba(84, 4, 255, 0.2) 100%) !important;
  border-color: rgba(84, 4, 255, 0.4) !important;
  transform: scale(1.1);
}
.card:hover .btn-primary {
  background: linear-gradient(135deg, #5404FF 0%, #6b21a8 100%) !important;
  box-shadow: 0 4px 15px rgba(84, 4, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* Contact Section Card Hover Effects */
.contact-card:hover .hover-border {
  border-color: #5404FF !important;
  box-shadow: 0 0 20px rgba(84, 4, 255, 0.3);
}
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(84, 4, 255, 0.15);
}
.contact-card:hover h3 {
  color: #5404FF !important;
  transform: scale(1.02);
}
.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, rgba(84, 4, 255, 0.1) 0%, rgba(84, 4, 255, 0.2) 100%) !important;
  border-color: rgba(84, 4, 255, 0.4) !important;
  transform: scale(1.1);
}
.contact-card:hover .contact-email {
  color: #5404FF !important;
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(84, 4, 255, 0.2);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5404FF 0%, #6b21a8 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(84, 4, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(84, 4, 255, 0.4);
  background: linear-gradient(135deg, #6b21a8 0%, #5404FF 100%);
}

.back-to-top-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(84, 4, 255, 0.5);
}

.back-to-top-btn svg {
  transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
} 