/* ============================================
   GLOBAL FONT SETTINGS
   Let Tailwind CSS handle font sizes, just set base
   ============================================ */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display font for headings */
.font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Better text rendering - minimal styles */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

p {
  line-height: 1.7;
}

/* Links */
a {
  transition: color 0.2s ease;
}

/* ============================================
   ZOOM OUT ANIMATION - Installation to Universe
   Inspired by cosmic zoom effect
   ============================================ */

@keyframes zoomOut {
  0% {
    /* Installation close-up view */
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.4) 0%, transparent 20%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, transparent 2px, transparent 3px, rgba(255,255,255,0.05) 3px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0px, transparent 2px, transparent 3px, rgba(255,255,255,0.05) 3px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    background-position: 50% 50%, 0 0, 0 0;
    opacity: 1;
  }
  15% {
    /* Zooming out from building */
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.35) 0%, transparent 25%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0px, transparent 2px, transparent 5px, rgba(255,255,255,0.06) 5px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0px, transparent 2px, transparent 5px, rgba(255,255,255,0.06) 5px);
    background-size: 150% 150%, 50px 50px, 50px 50px;
    background-position: 50% 50%, 5px 5px, 5px 5px;
    opacity: 0.95;
  }
  30% {
    /* City block view */
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.3) 0%, transparent 30%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0px, transparent 3px, transparent 8px, rgba(255,255,255,0.07) 8px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0px, transparent 3px, transparent 8px, rgba(255,255,255,0.07) 8px);
    background-size: 250% 250%, 80px 80px, 80px 80px;
    background-position: 50% 50%, 15px 15px, 15px 15px;
    opacity: 0.9;
  }
  45% {
    /* City skyline */
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.25) 0%, transparent 35%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0px, transparent 4px, transparent 12px, rgba(255,255,255,0.08) 12px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0px, transparent 4px, transparent 12px, rgba(255,255,255,0.08) 12px);
    background-size: 400% 400%, 120px 120px, 120px 120px;
    background-position: 50% 50%, 30px 30px, 30px 30px;
    opacity: 0.85;
  }
  60% {
    /* Earth view */
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.2) 0%, transparent 40%),
      radial-gradient(ellipse at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 30%),
      radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 30%);
    background-size: 600% 600%, 300% 300%, 300% 300%;
    background-position: 50% 50%, 30% 70%, 70% 30%;
    opacity: 0.8;
  }
  75% {
    /* Solar system */
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.15) 0%, transparent 45%),
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04) 0%, transparent 25%),
      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 25%);
    background-size: 800% 800%, 400% 400%, 400% 400%;
    background-position: 50% 50%, 20% 20%, 80% 80%;
    opacity: 0.7;
  }
  100% {
    /* Universe / Galaxy view */
    background-image: 
      radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 15% 85%, rgba(255,255,255,0.02) 0%, transparent 20%),
      radial-gradient(circle at 85% 15%, rgba(255,255,255,0.02) 0%, transparent 20%);
    background-size: 1200% 1200%, 800% 800%, 800% 800%;
    background-position: 50% 50%, 15% 85%, 85% 15%;
    opacity: 0.6;
  }
}

.zoom-out-animation {
  position: absolute;
  inset: 0;
  animation: zoomOut 20s ease-in-out infinite;
}

/* Fade in animation for content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1.2s ease-out forwards;
}

/* Gradient animation for text */
@keyframes animate-gradient {
  0%, 100% {
    background-size: 200% 200%;
    background-position: left center;
  }
  50% {
    background-size: 200% 200%;
    background-position: right center;
  }
}

.animate-gradient {
  animation: animate-gradient 3s ease infinite;
}

/* ============================================
   CHATBOT WIDGET STYLES
   ============================================ */

.chat-button {
  width: 56px;
  height: 56px;
  position: relative;
}

.chat-button:hover {
  transform: scale(1.1);
}

.chat-notification {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* ============================================ */
/* CHATBOT RESPONSIVE & ANTARES THEME */
/* ============================================ */

.chat-window {
  width: 384px;
  max-width: calc(100vw - 32px);
  max-height: 600px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-window {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
    right: 12px !important;
  }
  
  #chatbot-widget {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 100px);
    right: 8px !important;
  }
  
  #chatbot-widget {
    right: 8px;
    bottom: 8px;
  }
}

/* Quick Action Buttons - Dark Theme */
.quick-action-btn {
  color: white !important;
  font-weight: 500;
}

.quick-action-btn:hover {
  background-color: #1a73e8 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(26, 115, 232, 0.3);
}

/* Shimmer Animation for Header */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 3s infinite;
}

/* Fade In Animation for Messages */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
  background: rgba(26, 115, 232, 0.1);
  border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a73e8, #0d47a1);
  border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0d47a1, #1a73e8);
}

/* Quick action buttons */
.quick-action-btn {
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
}

/* ============================================
   CALL-TO-ACTION BUTTONS
   ============================================ */

.cta-phone-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 40;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  padding: 16px 12px;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 4px 20px rgba(26, 115, 232, 0.4);
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.cta-phone-button:hover {
  padding-right: 20px;
  box-shadow: -6px 6px 30px rgba(26, 115, 232, 0.6);
}

@media (max-width: 768px) {
  .cta-phone-button {
    display: none;
  }
}

/* ============================================
   ANTARES INNOVATE - PREMIUM STYLING
   ============================================ */

:root {
  --antares-blue: #1a73e8;
  --antares-dark: #0a0f1a;
  --antares-gray: #151921;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--antares-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--antares-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1557b0;
}

/* Grid Pattern Background */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  width: 100%;
  height: 100%;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Navigation Scroll Effect */
#navbar.scrolled {
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Fade In Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Button Hover Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary {
  position: relative;
  transition: var(--transition-smooth);
}

/* Card Hover Effects */
.service-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 115, 232, 0.2);
}

/* Stat Card Animation */
.stat-card {
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(26, 115, 232, 0.15);
}

/* Compliance Card */
.compliance-card {
  transition: var(--transition-smooth);
}

.compliance-card:hover {
  transform: translateX(10px);
  box-shadow: -5px 0 20px rgba(26, 115, 232, 0.2);
}

/* Approach Phase */
.approach-phase {
  transition: var(--transition-smooth);
}

.approach-phase:hover {
  transform: translateX(10px);
  background: rgba(26, 115, 232, 0.05);
}

/* Form Input Focus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--antares-blue) !important;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid var(--antares-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Parallax Effect */
.parallax {
  transform: translateY(var(--parallax-offset, 0));
  transition: transform 0.1s linear;
}

/* Mobile Menu Animation */
#mobile-menu {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-menu.active {
  opacity: 1;
}

.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Text Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.text-gradient-animated {
  background: linear-gradient(270deg, #ffffff, #9ca3af, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  .service-card,
  .compliance-card,
  .approach-phase {
    padding: 1.25rem !important;
  }
  
  /* Stat cards mobile optimization */
  .stat-card {
    padding: 1rem !important;
  }
  
  .stat-card .text-5xl,
  .stat-card .text-4xl,
  .stat-card .text-3xl {
    font-size: 2rem !important;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  /* Even smaller stat cards for tiny screens */
  .stat-card {
    padding: 0.75rem !important;
  }
  
  .stat-card .text-5xl,
  .stat-card .text-4xl,
  .stat-card .text-3xl {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .stat-card .text-sm,
  .stat-card .text-xs {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
  }
}

/* Mobile menu improvements */
@media (max-width: 1024px) {
  #mobile-menu {
    padding: 1rem;
  }
  
  .mobile-nav-link {
    font-size: 1.25rem;
    padding: 0.75rem;
  }
}

/* Ensure buttons don't overflow on small screens */
@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary {
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
  }
}

/* Portfolio cards mobile optimization */
@media (max-width: 768px) {
  .project-card img {
    height: 16rem !important;
  }
  
  .portfolio-filter-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem !important;
  }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
  }
}

/* Responsive spacing utilities */
.section-spacing {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 768px) {
  .section-spacing {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .section-spacing {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  .service-card,
  .compliance-card,
  .approach-phase {
    padding: 1.5rem !important;
  }
}

/* Print Styles */
@media print {
  nav,
  footer,
  #contact {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.3) !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Selection Styling */
::selection {
  background-color: var(--antares-blue);
  color: white;
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--antares-blue);
  outline-offset: 2px;
}

/* ===== FONT SIZE ADJUSTMENTS ===== */
/* Base font size increase for better readability */
body {
  font-size: 18px !important;
}

/* Paragraphs and general text - increase by 10% */
/* Exclude heading children to keep titles at original size */
p {
  font-size: 1.1em;
}

/* List items */
li {
  font-size: 1.1em;
}

/* Buttons */
button, .btn {
  font-size: 1.1em;
}

/* Form elements */
input, textarea, select {
  font-size: 1.05em;
}

/* Navigation links */
nav a:not(.text-4xl):not(.text-5xl):not(.text-6xl) {
  font-size: 1.1em;
}
