/* Custom CSS for Ozar Kanoat Resume */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0f172a;
}

/* Selection color */
::selection {
  background-color: rgba(59, 130, 246, 0.3);
  color: #0f172a;
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

/* Timeline styling */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #3b82f6;
  border: 3px solid #f8fafc;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background-color: #e2e8f0;
}

.timeline-item:last-child::after {
  display: none;
}

/* Card hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}

/* Animation classes */
.animate-fade-in {
  animation: slideUp 1.2s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu */
#mobile-menu {
  transition: max-height 0.3s ease;
}

/* Footer contact container - responsive layout */
.footer-contact-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-right {
  flex: 1;
  text-align: right;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer - single column on mobile */
  .footer-contact-container {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .footer-left,
  .footer-right {
    text-align: center !important;
    flex: 1;
    width: 100%;
  }

  /* Make education badges smaller on mobile */
  .md\:grid-cols-2 span.bg-accent {
    font-size: 0.65rem !important;
    padding: 0.35rem 0.6rem !important;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .grid-cols-5 {
    grid-template-columns: 1fr;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  /* Reorganize footer layout on mobile */
  .footer-contact-container {
    display: flex !important;
    flex-direction: column;
    gap: 1rem !important;
  }

  .footer-left,
  .footer-right {
    text-align: center !important;
    flex: 1;
    width: 100%;
  }

  .footer-left {
    order: 1;
    text-align: center;
  }

  .footer-left p {
    margin-top: 0.5rem !important;
  }

  .footer-right {
    order: 2;
    text-align: center;
  }

  .footer-right a {
    margin-top: 0.5rem !important;
    display: block !important;
  }

  .footer-right p {
    margin: 0.5rem 0 !important;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    background: white !important;
    color: black !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  a {
    color: black !important;
    text-decoration: none !important;
  }

  .break-after {
    page-break-after: always;
  }
}

/* ============================================
   SPLASH SCREEN STYLES
   ============================================ */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(30, 58, 138, 0.7) 50%,
    rgba(59, 130, 246, 0.7) 100%
  );
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Animated blur elements for dynamic effect */
.splash-blur-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.blur-1 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.4);
  top: -50px;
  left: -100px;
  animation-delay: 0s;
}

.blur-2 {
  width: 250px;
  height: 250px;
  background: rgba(30, 58, 138, 0.3);
  bottom: -50px;
  right: -50px;
  animation-delay: 1s;
}

.blur-3 {
  width: 280px;
  height: 280px;
  background: rgba(59, 130, 246, 0.3);
  top: 50%;
  right: -80px;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -20px);
  }
  50% {
    transform: translate(-15px, 20px);
  }
  75% {
    transform: translate(25px, 10px);
  }
}

/* Splash text styling */
.splash-text-wrapper {
  position: relative;
  z-index: 20;
  margin-bottom: 60px;
  animation: textSlideIn 0.8s ease-out;
}

.splash-text {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 700;
  color: white;
  line-height: 1.4;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin: 0;
  word-spacing: 0.1em;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-text.typing {
  border-right: 3px solid white;
  padding-right: 8px;
  animation: blink 0.7s infinite;
}

@keyframes textSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  49% {
    border-right-color: white;
  }
  50%,
  100% {
    border-right-color: transparent;
  }
}

/* Animated loader dots */
.splash-loader {
  position: relative;
  z-index: 20;
  display: flex;
  gap: 12px;
  justify-content: center;
  height: 20px;
}

.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  animation: bounce 1.4s infinite ease-in-out;
}

.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}
