/* ===== No Name Group - Custom Styles ===== */

/* ===== Additional Hero Animations ===== */
.hero__title {
  animation: heroTitleSlide 1.2s ease-out 0.3s both;
}

.hero__subtitle {
  animation: heroSubtitleFade 1s ease-out 0.6s both;
}

.hero__description {
  animation: heroDescriptionFade 1s ease-out 0.9s both;
}

.hero__actions {
  animation: heroActionsSlide 1s ease-out 1.2s both;
}

@keyframes heroTitleSlide {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDescriptionFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroActionsSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Enhanced Card Animations ===== */
.department-card,
.service-card,
.project-card,
.benefit-card,
.value-card {
  animation: cardFadeIn 0.8s ease-out both;
}

.department-card:nth-child(1) { animation-delay: 0.1s; }
.department-card:nth-child(2) { animation-delay: 0.2s; }
.department-card:nth-child(3) { animation-delay: 0.3s; }
.department-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Button Hover Effects ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 15px rgba(85, 195, 183, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(85, 195, 183, 0.4);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--primary);
  background: transparent;
  transition: all 0.3s ease;
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(85, 195, 183, 0.3);
}

/* ===== Section Reveal Animations ===== */
.section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.section.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header Scroll Effect ===== */
.header {
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

/* ===== Mobile Navigation Enhancements ===== */
.mobile-nav {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

.mobile-nav__link {
  position: relative;
  transition: all 0.3s ease;
}

.mobile-nav__link::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.mobile-nav__link:hover::before,
.mobile-nav__link--active::before {
  width: 20px;
}

/* ===== Form Enhancements ===== */
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 195, 183, 0.1);
  transform: translateY(-1px);
}

.form__input.error,
.form__textarea.error,
.form__select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ===== File Upload Enhancements ===== */
.file-upload__label {
  transition: all 0.3s ease;
  position: relative;
}

.file-upload__label:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.file-upload__label.dragover {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: scale(1.02);
}

/* ===== Loading States ===== */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Toast Notifications ===== */
.toast {
  animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.hide {
  animation: toastSlideOut 0.3s ease-in;
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ===== Parallax Effects ===== */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

.parallax-slow {
  transform: translateY(var(--scroll-y, 0) * 0.5);
}

.parallax-fast {
  transform: translateY(var(--scroll-y, 0) * -0.5);
}

/* ===== Gradient Text Effects ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glass Morphism Effects ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== Selection Colors ===== */
::selection {
  background: var(--primary-200);
  color: var(--text-primary);
}

::-moz-selection {
  background: var(--primary-200);
  color: var(--text-primary);
}

/* ===== Focus Visible ===== */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== Print Optimizations ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-before: always;
  }
  
  .print-break-after {
    page-break-after: always;
  }
}

/* ===== High DPI Displays ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero__background {
    background-size: 10px 10px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .parallax,
  .parallax-slow,
  .parallax-fast {
    transform: none !important;
  }
}

/* ===== Dark Mode Enhancements ===== */
@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-nav {
    background: rgba(17, 24, 39, 0.95);
  }
  
  .header.scrolled {
    background: rgba(17, 24, 39, 0.98);
  }
}

/* ===== RTL Specific Enhancements ===== */
[dir="rtl"] .hero__shape--1 {
  right: 10%;
  left: auto;
}

[dir="rtl"] .hero__shape--2 {
  left: 5%;
  right: auto;
}

[dir="rtl"] .hero__shape--3 {
  right: 20%;
  left: auto;
}

/* ===== LTR Specific Enhancements ===== */
[dir="ltr"] .hero__shape--1 {
  left: 10%;
  right: auto;
}

[dir="ltr"] .hero__shape--2 {
  right: 5%;
  left: auto;
}

[dir="ltr"] .hero__shape--3 {
  left: 20%;
  right: auto;
}

/* ===== Utility Classes ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(85, 195, 183, 0.3);
}

.shadow-glow-lg {
  box-shadow: 0 0 40px rgba(85, 195, 183, 0.4);
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) 1;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
  .hero__title {
    font-size: var(--text-3xl);
  }
  
  .section__title {
    font-size: var(--text-2xl);
  }
  
  .card__title {
    font-size: var(--text-lg);
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero__title {
    font-size: var(--text-4xl);
  }
  
  .section__title {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1025px) {
  .hero__title {
    font-size: var(--text-6xl);
  }
  
  .section__title {
    font-size: var(--text-4xl);
  }
}
