/* =============================================
   ELEGANT IT - Animations & Extras
   ============================================= */

/* Hero gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sparkle */
.sparkle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: sparkle-anim 2s ease-in-out infinite;
}

@keyframes sparkle-anim {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  50% { opacity: 0.6; transform: scale(1) translateY(-20px); }
  100% { opacity: 0; transform: scale(0) translateY(-40px); }
}

/* Typed cursor */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Ripple effect on buttons */
.btn { position: relative; overflow: hidden; }

.ripple {
  position: absolute;
  border-radius: 50%;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
  margin-top: -40px;
  margin-left: -40px;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Services page detailed cards */
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224,16,16,0.15);
}

.service-detail-header {
  padding: 40px 32px 28px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(224,16,16,0.05));
  border-bottom: 1px solid var(--gray-100);
}

.service-detail-header .big-icon {
  width: 70px; height: 70px;
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.service-detail-header h3 {
  font-family: 'Times New Roman', Times, Baskerville, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-detail-header p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.service-detail-body {
  padding: 28px 32px 32px;
  flex: 1;
}

.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.feature-check {
  width: 20px; height: 20px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Timeline for about page */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(224,16,16,0.1));
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(even) .timeline-content:first-child {
  grid-column: 3;
}

.timeline-dot {
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(224,16,16,0.2);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-year {
  font-family: 'Times New Roman', Times, Baskerville, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Map/location section */
.map-section {
  background: var(--off-white);
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(224,16,16,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  font-size: 4rem;
  color: rgba(224,16,16,0.3);
  position: relative;
}

.map-wrapper .map-overlay {
  position: absolute;
  text-align: center;
}

.map-overlay p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 12px;
}

/* Custom select dropdown */
.form-group select option { font-family: 'Inter', sans-serif; }

/* Campus project special banner */
.campus-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b35 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.campus-banner::before {
  content: '';
  position: absolute;
  top: -20px; right: 40px;
  width: 140px; height: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c0 2 2 3 6 3s6-1 6-3v-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
}

.campus-banner h3 {
  font-family: 'Times New Roman', Times, Baskerville, Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.campus-banner p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Glowing red dot */
.red-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(224,16,16,0.6);
}

/* Services icon colors per service */
.icon-web { background: rgba(59, 130, 246, 0.1) !important; }
.icon-ecom { background: rgba(16, 185, 129, 0.1) !important; }
.icon-app { background: rgba(139, 92, 246, 0.1) !important; }
.icon-mpos { background: rgba(245, 158, 11, 0.1) !important; }
.icon-pos { background: rgba(236, 72, 153, 0.1) !important; }
.icon-campus { background: rgba(220, 38, 38, 0.1) !important; }

/* Notification bar */
.notif-bar {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}

.notif-bar a { color: #ffffff; text-decoration: underline; }

.notif-bar-close {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

/* WhatsApp floating button */
.whatsapp-btn {
  position: fixed;
  bottom: 88px;
  right: 32px;
  width: 50px; height: 50px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* Active nav highlight for current page */
.nav-links a[data-page].current-page {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Image lazy load fade */
img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.lazy.loaded { opacity: 1; }

@media (max-width: 768px) {
  .campus-banner { padding: 32px 24px; }
  .campus-banner h3 { font-size: 1.4rem; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: auto 1fr; }
  .timeline-item .timeline-content:last-child { display: none; }
}

/* Premium Cyber Grid Overlay */
.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(224, 16, 16, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 16, 16, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Cyber Spotlights */
.cyber-spotlight {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 16, 16, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
  animation: floatSpotlight 12s ease-in-out infinite alternate;
}

.cyber-spotlight.blue {
  background: radial-gradient(circle, rgba(97, 218, 251, 0.04) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes floatSpotlight {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Neon Pulse Animation */
.neon-pulse {
  position: relative;
}
.neon-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: pulseNeon 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Card hover glow enhancements */
.glass-glow:hover {
  border-color: rgba(224, 16, 16, 0.28) !important;
  box-shadow: 0 12px 40px rgba(224, 16, 16, 0.15) !important;
  transform: translateY(-6px);
}

