/**
 * Custom CSS - Override & Component Styles
 * Evden Eve Nakliyat - Professional Moving Company Website
 *
 * This file contains:
 * - Component-specific styles
 * - Animation keyframes for AOS integration
 * - Override styles
 * - Print styles
 * - Utility extensions
 */

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS VARIABLES EXTENSIONS
   2. TYPOGRAPHY OVERRIDES
   3. HEADER & NAVIGATION
   4. HERO SECTION
   5. SERVICE CARDS
   6. TESTIMONIALS
   7. CONTACT FORM
   8. FOOTER
   9. ANIMATIONS & KEYFRAMES
   10. RESPONSIVE UTILITIES
   11. PRINT STYLES
   ============================================ */

/* ============================================
   1. CSS VARIABLES EXTENSIONS
   ============================================ */

/* Prevent horizontal scroll from animations */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

:root {
  /* Extended Color Palette */
  --gradient-primary: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  --gradient-secondary: linear-gradient(135deg, #1E3A5F 0%, #152A45 100%);
  --gradient-accent: linear-gradient(135deg, #D4A03C 0%, #B88A2A 100%);
  --gradient-hero: linear-gradient(180deg, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.8) 50%, rgba(249, 115, 22, 0.1) 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.8) 100%);

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Timing Functions */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snap: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   2. TYPOGRAPHY OVERRIDES
   ============================================ */

/* Heading Styles */
.heading-display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.heading-primary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--color-text);
}

.heading-secondary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--color-text);
}

.heading-tertiary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--color-text);
}

/* Text Styles */
.text-lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgb(75 85 99);
}

.text-highlight {
  position: relative;
  display: inline;
}

.text-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.3em;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.3) 0%, rgba(212, 160, 60, 0.3) 100%);
  z-index: -1;
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: transparent;
  transition: all 0.3s var(--ease-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.site-header.scrolled .nav-link {
  color: rgb(17 24 39);
}

.site-header.scrolled .nav-link:hover {
  color: rgb(249 115 22);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: rgb(255 255 255);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: rgb(249 115 22);
  transition: width 0.3s var(--ease-smooth);
}

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

/* Mobile Navigation */
.mobile-nav-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav-trigger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

.mobile-nav-trigger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-trigger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-trigger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1023px) {
  .mobile-nav-trigger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    background: rgb(255 255 255);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-smooth);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav .nav-link {
    color: rgb(17 24 39);
    font-size: 1.125rem;
    padding: 0.75rem 0;
  }
}

/* ============================================
   4. HERO SECTION
   ============================================ */

/* Hero Section with Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-secondary);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  color: rgb(255 255 255);
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: rgb(249 115 22);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Shapes (Optional Decorative) */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: rgb(249 115 22);
  top: -100px;
  right: -100px;
  filter: blur(80px);
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: rgb(212 160 60);
  bottom: -50px;
  left: -50px;
  filter: blur(60px);
}

/* ============================================
   5. SERVICE CARDS
   ============================================ */

.service-card {
  position: relative;
  padding: 2rem;
  background: rgb(255 255 255);
  border-radius: 0.75rem;
  transition: all 0.3s var(--ease-smooth);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: rgb(249 115 22);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(212, 160, 60, 0.1) 100%);
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgb(249 115 22);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: rgb(17 24 39);
  margin-bottom: 0.75rem;
}

.service-card-description {
  color: rgb(75 85 99);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: rgb(249 115 22);
  transition: gap 0.2s ease;
}

.service-card-link:hover {
  gap: 0.75rem;
}

/* ============================================
   6. TESTIMONIALS
   ============================================ */

.testimonial-card {
  position: relative;
  padding: 2rem;
  background: rgb(255 255 255);
  border-radius: 1rem;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: rgba(249, 115, 22, 0.15);
  pointer-events: none;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgb(55 65 81);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgb(229 231 235);
}

.testimonial-author-info {
  flex: 1;
}

.testimonial-author-name {
  font-weight: 600;
  color: rgb(17 24 39);
}

.testimonial-author-role {
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: rgb(212 160 60);
}

/* ============================================
   7. CONTACT FORM
   ============================================ */

.contact-form {
  background: rgb(255 255 255);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-form {
    padding: 3rem;
  }
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.form-success-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 0.5rem;
  color: rgb(22 163 74);
}

.form-error-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
  color: rgb(220 38 38);
}

/* ============================================
   8. FOOTER
   ============================================ */

.site-footer {
  background: rgb(30 58 95);
  color: rgba(255, 255, 255, 0.85);
}

.footer-main {
  padding: 4rem 0;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: rgb(255 255 255);
  margin-bottom: 0.75rem;
}

.footer-brand-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: rgb(255 255 255);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgb(249 115 22);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: rgb(249 115 22);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgb(249 115 22);
  color: rgb(255 255 255);
}

/* ============================================
   9. ANIMATIONS & KEYFRAMES
   ============================================ */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade Up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Down */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Left */
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade Right */
@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Pulse Subtle */
@keyframes pulseSubtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Bounce In */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Slide In From Bottom */
@keyframes slideInBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Rotate In */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

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

.animate-fade-down {
  animation: fadeDown 0.6s ease-out forwards;
}

.animate-fade-left {
  animation: fadeLeft 0.6s ease-out forwards;
}

.animate-fade-right {
  animation: fadeRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

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

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

.animate-bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Shimmer Loading Effect */
.shimmer-loading {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   10. RESPONSIVE UTILITIES
   ============================================ */

/* Hide on specific breakpoints */
@media (max-width: 639px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hide-sm {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-md {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Responsive Text Alignment */
@media (max-width: 767px) {
  .text-center-mobile {
    text-align: center !important;
  }
}

@media (min-width: 768px) {
  .text-left-md-up {
    text-align: left !important;
  }
}

/* Responsive Padding */
@media (max-width: 639px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ============================================
   11. PRINT STYLES
   ============================================ */
@media print {
  /* Hide non-essential elements */
  .site-header,
  .mobile-nav-trigger,
  .hero-shape,
  .footer-social,
  .btn,
  button {
    display: none !important;
  }

  /* Reset backgrounds */
  body {
    background: white !important;
    color: black !important;
  }

  /* Reset text colors */
  h1, h2, h3, h4, h5, h6, p, a {
    color: black !important;
    background: transparent !important;
  }

  /* Show link URLs */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Page breaks */
  .section {
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Remove shadows and effects */
  .card,
  .service-card,
  .testimonial-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

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

/* Visually Hidden (Accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: rgb(249 115 22);
  color: white;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus Visible Polyfill */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

/* Container Queries Support (Future) */
@supports (container-type: inline-size) {
  .container-query {
    container-type: inline-size;
  }
}