/* Custom Fonts & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

* {
  font-family: 'Inter', sans-serif;
}

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

/* Hero Pattern Background */
.hero-pattern {
  background-image: 
    linear-gradient(30deg, #0a0a0a 12%, transparent 12.5%, transparent 87%, #0a0a0a 87.5%, #0a0a0a),
    linear-gradient(150deg, #0a0a0a 12%, transparent 12.5%, transparent 87%, #0a0a0a 87.5%, #0a0a0a),
    linear-gradient(30deg, #0a0a0a 12%, transparent 12.5%, transparent 87%, #0a0a0a 87.5%, #0a0a0a),
    linear-gradient(150deg, #0a0a0a 12%, transparent 12.5%, transparent 87%, #0a0a0a 87.5%, #0a0a0a),
    linear-gradient(60deg, #1a1a1a 25%, transparent 25.5%, transparent 75%, #1a1a1a 75%, #1a1a1a),
    linear-gradient(60deg, #1a1a1a 25%, transparent 25.5%, transparent 75%, #1a1a1a 75%, #1a1a1a);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #cd7f32;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Glowing Gold Effect */
.glow-gold {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Portfolio Item Hover Effect */
.portfolio-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary i.fa-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

details summary i.fa-chevron-down {
  transition: transform 0.3s ease;
}

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #d4af37, #cd7f32);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Success/Error Messages */
.message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.message-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgb(16, 185, 129);
  color: rgb(16, 185, 129);
}

.message-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgb(239, 68, 68);
  color: rgb(239, 68, 68);
}

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

/* Accessibility - Focus Visible */
*:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Image Lazy Loading Placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
}
