/* Perfect Round & Ultra Modern Additions - 2025 Enhancement */

/* Enhanced Modern Variables */
:root {
  /* Perfect Round Design System */
  --curve-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --curve-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --curve-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --curve-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Modern Glass Effects */
  --glass-light: rgba(255, 255, 255, 0.05);
  --glass-medium: rgba(255, 255, 255, 0.1);
  --glass-heavy: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Glow Effects */
  --glow-primary: 0 0 30px rgba(16, 185, 129, 0.4);
  --glow-secondary: 0 0 30px rgba(59, 130, 246, 0.4);
  --glow-accent: 0 0 30px rgba(245, 158, 11, 0.4);
  --glow-soft: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Ultra Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-rounded);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #10b981, #059669);
  border-radius: var(--radius-rounded);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #059669, #047857);
  box-shadow: var(--glow-primary);
}

/* Modern Selection Colors */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
}

::-moz-selection {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
}

/* Perfect Round Cards Enhancement */
.service-card,
.gallery-item,
.contact-item {
  position: relative;
  overflow: hidden;
}

.service-card::after,
.gallery-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s var(--curve-smooth);
  opacity: 0;
}

.service-card:hover::after,
.gallery-item:hover::after {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Modern Button Enhancements */
.btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--curve-bounce);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s var(--curve-smooth);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Ultra Modern Glass Cards */
.glass-card {
  background: var(--glass-medium);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s var(--curve-smooth);
}

.glass-card:hover {
  background: var(--glass-heavy);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Modern Navigation Enhancement */
.nav-link {
  position: relative;
  transition: all 0.3s var(--curve-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: var(--radius-rounded);
  transition: width 0.3s var(--curve-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Perfect Round Hero Enhancements */
.hero-badge {
  position: relative;
  animation: float 3s ease-in-out infinite alternate;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #10b981, #059669, #34d399, #10b981);
  border-radius: var(--radius-rounded);
  z-index: -1;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Modern Form Enhancements */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  transition: all 0.3s var(--curve-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 0 4px rgba(16, 185, 129, 0.1),
    0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  color: #6b7280;
  font-size: 1rem;
  transition: all 0.3s var(--curve-smooth);
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, white 20%, white 80%, transparent 100%);
  padding: 0 0.5rem;
}

.form-group.focused label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 500;
}

/* Modern Gallery Enhancements */
.gallery-item {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.4s var(--curve-smooth);
  position: relative;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    transparent 50%,
    rgba(59, 130, 246, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  margin: 1rem;
  transition: all 0.4s var(--curve-smooth);
}

/* Modern Filter Buttons */
.filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-rounded);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s var(--curve-smooth);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

/* Modern Contact Cards */
.contact-item {
  background: var(--glass-medium);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: all 0.4s var(--curve-smooth);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  background: var(--glass-heavy);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(16, 185, 129, 0.2);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--glow-soft);
  transition: all 0.3s var(--curve-bounce);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-primary);
}

/* Ultra Modern Footer */
.footer {
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.95) 0%,
    rgba(31, 41, 55, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.5),
    transparent
  );
}

/* Modern Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-slide-up {
  animation: slideInUp 0.6s var(--curve-smooth) forwards;
}

.animate-fade-scale {
  animation: fadeInScale 0.8s var(--curve-smooth) forwards;
}

.animate-bounce-in {
  animation: bounceIn 0.8s var(--curve-bounce) forwards;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-item {
    padding: 1.5rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
}

/* Ultra High Resolution Displays */
@media (min-resolution: 2dppx) {
  .service-icon,
  .contact-icon,
  .hero-badge {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 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;
  }
  
  .hero-badge::before {
    animation: none;
  }
  
  .hero-badge {
    animation: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .glass-card,
  .contact-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #000;
  }
  
  .btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
  }
  
  .btn-secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-floating-elements,
  .scroll-indicator,
  .back-to-top {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .service-card,
  .contact-item {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
