/* Hi-Ai Global Styles - Fresh Modern Design */

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  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);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--medium-gray);
}

a {
  color: var(--soft-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--deep-blue);
  text-decoration: underline;
}

/* Utility Classes */
.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

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

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

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

.text-mint {
  color: var(--mint-green);
}

.text-blue {
  color: var(--soft-blue);
}

.text-deep-blue {
  color: var(--deep-blue);
}

.text-gray {
  color: var(--medium-gray);
}

.text-dark {
  color: var(--black);
}

/* Background Utilities */
.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-gradient-primary {
  background: var(--primary-gradient);
}

.bg-gradient-secondary {
  background: var(--secondary-gradient);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

/* Spacing Utilities */
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

/* Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
  border-radius: var(--rounded-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--soft-blue);
  border: 2px solid var(--soft-blue);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--soft-blue);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-large {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-header {
  margin-bottom: var(--space-6);
}

.card-title {
  color: var(--black);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  color: var(--medium-gray);
  font-size: var(--text-sm);
}

/* Section Styling */
.section {
  padding: var(--space-24) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  .section-title {
    font-size: var(--text-2xl);
  }
  
  .section-subtitle {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn-large {
    padding: var(--space-3) var(--space-6);
  }
}
/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
  .navbar {
    padding: var(--space-3) 0;
  }
  
  .nav-content {
    justify-content: space-between;
  }
  
  .nav-brand {
    font-size: var(--text-xl) !important;
    font-weight: 700;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-buttons {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }
}

@media (max-width: 414px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .nav-brand {
    font-size: var(--text-lg) !important;
  }
}

/* Touch-friendly button sizing */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    touch-action: manipulation;
  }
  
  .btn-sm {
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
  }
}
