/* Enhanced Styles for Better Design and Fixed Footer */
@import 'colors.css';

/* Global Enhancements */
body {
  background: linear-gradient(135deg, var(--matrix-bg-dark), var(--matrix-bg));
  animation: gradientShift 15s ease infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Card Styles */
.glass-card {
  border: 1px solid rgba(138, 99, 210, 0.3);
  box-shadow: var(--elevation-3);
  transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
  background: rgba(45, 27, 78, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--elevation-4), 0 0 20px rgba(138, 99, 210, 0.3);
  border-color: rgba(138, 99, 210, 0.5);
}

/* Enhanced Button Styles */
.cta-button, 
.submit-button, 
.reset-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button::before,
.submit-button::before,
.reset-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.cta-button:hover::before,
.submit-button:hover::before,
.reset-button:hover::before {
  left: 100%;
}

.cta-button.primary:hover,
.submit-button:hover {
  box-shadow: 0 8px 20px rgba(63, 81, 181, 0.4);
  transform: translateY(-3px) scale(1.02);
}

.cta-button.secondary:hover,
.reset-button:hover {
  background: rgba(45, 27, 78, 0.5);
  transform: translateY(-3px);
}

/* Enhanced Wrapper Styles */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  margin-bottom: 60px; /* Add space between wrapper and footer */
}

/* Enhanced Header */
.main-header {
  background: rgba(22, 25, 34, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 99, 210, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.main-nav a {
  position: relative;
  padding: 8px 12px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--primary-light));
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Fixed Footer Styles */
footer.glass-footer {
  background: linear-gradient(to bottom, rgba(13, 43, 69, 0.9), rgba(0, 0, 0, 0.95));
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(138, 99, 210, 0.3);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

footer.glass-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(58, 124, 165, 0.3);
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-nav ul li a {
  color: var(--light-gray-1);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 3px 0;
}

.footer-nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-nav ul li a:hover::before {
  width: 100%;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(138, 99, 210, 0.5);
  color: var(--accent);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9em;
}

.heart {
  color: #ff5e5e;
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Responsive Wrapper and Footer */
@media (max-width: 1200px) {
  .wrapper {
    max-width: 100%;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 20px 15px;
  }

  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto 20px;
  }

  .footer-nav, .footer-connect {
    width: 100%;
    min-width: 100%;
    text-align: center;
  }

  .footer-nav h3, .footer-connect h3 {
    display: block;
    text-align: center;
  }

  .footer-nav ul li a:hover {
    transform: translateX(0) translateY(-2px);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 15px 10px;
  }
}

/* Enhanced Project Cards */
.project-card {
  border-radius: 15px;
  background: rgba(45, 27, 78, 0.3);
  border: 1px solid rgba(138, 99, 210, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(138, 99, 210, 0.5);
}

.project-card:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.project-icon {
  color: var(--accent);
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.2);
  color: var(--white);
}

/* Enhanced Skill Tags */
.skill-tag {
  background: rgba(45, 27, 78, 0.4);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.9em;
  color: var(--light-gray-1);
  border: 1px solid rgba(138, 99, 210, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-tag:hover {
  background: rgba(45, 27, 78, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
  border-color: rgba(138, 99, 210, 0.5);
}

.skill-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--primary-light));
  transition: width 0.5s ease;
}

.skill-tag:hover::after {
  width: 100%;
}
