/* AI Theme Customizations for Hossein Shirali's Portfolio 
   Created July 2025
*/

/* Modern Color Scheme */
:root {
  --ai-primary: #3a86ff;
  --ai-secondary: #8338ec;
  --ai-accent: #ff006e;
  --ai-dark: #0a1128;
  --ai-light: #f8f9fa;
  --ai-gradient-1: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
  --ai-gradient-2: linear-gradient(135deg, var(--ai-secondary), var(--ai-accent));
}

/* Enhanced Body Background */
body {
  background-color: var(--ai-dark) !important;
}

/* Animated Neural Network Background Effect */
#bg:after {
  background-image: url('../images/ai-network.svg');
  background-size: cover;
  opacity: 0.15;
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.2;
  }
}

/* Modern Typography */
body, input, select, textarea {
  font-family: 'Space Grotesk', 'Source Sans Pro', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

/* Enhanced Header */
#header .logo .icon {
  border: none;
  box-shadow: none;
}

#header .content .inner h1 {
  background: var(--ai-gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
}

/* Glowing Nav Links */
#header nav ul li a {
  border: 1px solid rgba(58, 134, 255, 0.3);
  box-shadow: 0 0 10px rgba(58, 134, 255, 0.1);
  transition: all 0.3s ease;
}

#header nav ul li a:hover {
  background: var(--ai-gradient-1);
  border-color: var(--ai-primary);
  box-shadow: 0 0 15px rgba(58, 134, 255, 0.4);
}

/* Animated Article Transitions */
article {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

article.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

article.inactive {
  transform: translateY(1rem);
}

/* Enhanced Skills Section */
#skills ul li {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(58, 134, 255, 0.1);
  border-left: 3px solid var(--ai-primary);
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease;
}

#skills ul li:hover {
  background: rgba(58, 134, 255, 0.2);
  transform: translateX(5px);
}

/* Project Cards */
#projects h3 {
  border-bottom: 2px solid var(--ai-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

#projects ul li {
  padding-left: 1.5rem;
  position: relative;
}

#projects ul li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--ai-primary);
}

/* Publication Styling */
#publications ul li {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(10, 17, 40, 0.5);
  border-radius: 4px;
  border-left: 3px solid var(--ai-secondary);
  transition: all 0.3s ease;
}

#publications ul li:hover {
  background: rgba(10, 17, 40, 0.8);
  transform: translateX(5px);
}

#publications ul li a {
  color: var(--ai-primary);
  transition: all 0.3s ease;
}

#publications ul li a:hover {
  color: var(--ai-accent);
  text-decoration: none;
}

/* Contact Icons Animation */
#contact .icons a {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#contact .icons a:before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ai-gradient-2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

#contact .icons a:hover:before {
  top: 0;
  opacity: 0.2;
}

#contact .icons a:hover {
  transform: translateY(-3px);
  color: var(--ai-primary);
}

/* Button Enhancement */
.button {
  background: var(--ai-gradient-1) !important;
  box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3) !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4) !important;
}

/* AI Timeline for Education Section */
#education ul li {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid rgba(58, 134, 255, 0.3);
}

#education ul li:before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  background: var(--ai-gradient-1);
  border-radius: 50%;
}

#education ul li:last-child {
  border-left: 2px solid transparent;
}

/* Custom Animation for Logo */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px 0 rgba(58, 134, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px 0 rgba(58, 134, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px 0 rgba(58, 134, 255, 0.5);
  }
}

#header .logo .icon {
  animation: pulse-glow 3s infinite;
}

/* Floating Particles for AI Theme */
.particles-js-canvas-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Footer Enhancement */
#footer {
  position: relative;
  overflow: hidden;
}

#footer:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ai-gradient-1);
  opacity: 0.3;
}

#footer .copyright {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

.footer-separator {
  margin: 0 0.5rem;
  color: var(--ai-primary);
  opacity: 0.7;
}

.ai-footer-text {
  color: var(--ai-primary);
  font-weight: 500;
}

/* Media Queries for Responsive Adjustments */
@media screen and (max-width: 980px) {
  #education ul li {
    padding-left: 1.5rem;
  }
  
  #header .content .inner h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 736px) {
  #education ul li:before {
    width: 0.8rem;
    height: 0.8rem;
    left: -0.4rem;
  }
  
  #header .content .inner h1 {
    font-size: 2rem;
  }
}
