/* Custom CSS for the portfolio website */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

/* Base typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.25rem;
}

@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.75rem;
  }
}

h2 {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  h2 {
    font-size: 2.25rem;
  }
}

h3 {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  h3 {
    font-size: 1.875rem;
  }
}

h4 {
  font-size: 1.25rem;
}

p {
  line-height: 1.75;
}

section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-active {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll arrow transitions */
.fixed.bottom-10.left-1\/2 {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Staggered animations for children elements */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.animate-active > *:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children.animate-active > *:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children.animate-active > *:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children.animate-active > *:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children.animate-active > *:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children.animate-active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Loading animation for form submission */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Custom focus styles */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Mobile menu animation */
.mobile-menu-enter {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

.mobile-menu-enter-active {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-exit {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-exit-active {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Skill bar animation */
.skill-bar {
  width: 0%;
  transition: width 1s ease-out;
}

.skill-bar.animate {
  width: var(--skill-level);
}

/* Project card hover effects */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image hover effects */
.image-hover {
  transition: transform 0.3s ease;
}

.image-hover:hover {
  transform: scale(1.05);
}

/* Button hover effects */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Social media icons hover effects */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

/* Form input focus effects */
.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .text-responsive {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .text-responsive {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .text-responsive {
    font-size: 2.5rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .dark {
    background: white !important;
    color: black !important;
  }
} 