/* Base Styles */
* {
  font-family: "Albert Sans", sans-serif;
}

/* Gradient Styles */
.gradient-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.text-gradient {
  background: linear-gradient(135deg, #d70101 0%, #ff4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile Menu Animation */
#menu {
  transition: all 0.3s ease-in-out;
  transform: translateY(-100%);
  opacity: 0;
}

#menu.show {
  transform: translateY(0);
  opacity: 1;
}

/* Prevent scrolling when menu is open */
.overflow-hidden {
  overflow: hidden !important;
}

/* Active menu state */
.menu-active {
  color: #000 !important;
  font-weight: 600;
}

/* Burger Icon Animation */
.burger-line {
  width: 24px;
  height: 2px;
  background-color: #333;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.burger-line::before,
.burger-line::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease-in-out;
}

.burger-line::before {
  transform: translateY(-8px);
}

.burger-line::after {
  transform: translateY(8px);
}

.burger-active .burger-line {
  background-color: transparent;
}

.burger-active .burger-line::before {
  transform: rotate(45deg);
}

.burger-active .burger-line::after {
  transform: rotate(-45deg);
}

/* Custom animations and transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

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

/* Custom hover effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

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

/* Navigation Link */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.menu-active:hover::after {
  width: 100%;
}

.nav-link:hover:not(.menu-active) {
  color: #d70101;
  opacity: 0.7;
}

/* Project Card */
.project-card {
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.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);
}

.project-card:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-card img {
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .content {
  transition: transform 0.3s ease;
}

.project-card:active .content {
  transform: scale(0.98);
}

/* Blog Card */
.blog-card {
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background: white;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
}

.blog-card:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  transition: transform 0.6s ease-in-out;
}

.blog-card:hover img {
  transform: scale(1.03);
}

.blog-card h3 {
  transition: color 0.3s ease;
}

.blog-card span {
  transition: opacity 0.3s ease;
}

.blog-card:hover span {
  opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
  animation: fadeIn 0.3s ease-in-out;
}

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

.content-section {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .content-section {
    font-size: 1.25rem;
  }
}