/* 
 * Cyberpunk Portfolio - Main Stylesheet
 * Based on cyberpunk_portfolio_design_guide.md
 */

/* ===== GLOBAL STYLES ===== */
:root {
  /* Color palette based on cyberpunk design guide */
  --dark-bg: #0a0a12;
  --darker-bg: #050508;
  --neon-blue: #00f0ff;
  --neon-pink: #ff00ff;
  --neon-purple: #bf00ff;
  --neon-yellow: #ffff00;
  --neon-red: #ff0055;
  --text-light: #e0e0e0;
  --text-dark: #1a1a1a;
  
  /* Shadows and glows */
  --blue-glow: 0 0 10px rgba(0, 240, 255, 0.7), 0 0 20px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.3);
  --pink-glow: 0 0 10px rgba(255, 0, 255, 0.7), 0 0 20px rgba(255, 0, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.3);
  --purple-glow: 0 0 10px rgba(191, 0, 255, 0.7), 0 0 20px rgba(191, 0, 255, 0.5), 0 0 30px rgba(191, 0, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('cyberpunk_elements/backgrounds/dark_purple_squares.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--blue-glow);
}

h2 {
  font-size: 2.5rem;
  color: var(--neon-blue);
  text-shadow: var(--blue-glow);
}

h3 {
  font-size: 1.8rem;
  color: var(--neon-pink);
  text-shadow: var(--pink-glow);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--neon-pink);
  text-shadow: var(--pink-glow);
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ===== HEADER ===== */
.header {
  padding: 20px 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-blue);
  text-shadow: var(--blue-glow);
  position: relative;
}

.logo::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 10px);
  border: 2px solid var(--neon-blue);
  border-radius: 4px;
  opacity: 0.5;
  z-index: -1;
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  padding: 8px 15px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--neon-blue);
  text-shadow: var(--blue-glow);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--neon-blue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: url('cyberpunk_elements/backgrounds/cyberpunk_city_background.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 18, 0.7);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('cyberpunk_elements/accent_elements/glitch_neon_overlay.jpg');
  background-size: cover;
  opacity: 0.15;
  mix-blend-mode: screen;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: glitch 5s infinite alternate;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--neon-purple);
  text-shadow: var(--purple-glow);
}

.hero-cta {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cta:hover::before {
  opacity: 1;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--blue-glow);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-card {
  background-color: rgba(10, 10, 18, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 350px;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--blue-glow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--neon-blue);
}

.project-description {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.project-tag {
  padding: 4px 8px;
  background-color: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-blue);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--neon-blue);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 80px 0;
  background-color: rgba(5, 5, 8, 0.8);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('cyberpunk_elements/backgrounds/futuristic_neon_grid.jpg');
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 255, 0.2));
  mix-blend-mode: overlay;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
}

.skills {
  margin-top: 30px;
}

.skills-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--neon-pink);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  padding: 8px 15px;
  background-color: rgba(255, 0, 255, 0.1);
  border: 1px solid var(--neon-pink);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--neon-pink);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background-color: rgba(255, 0, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--pink-glow);
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 80px 0;
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-links {
  margin-top: 30px;
}

.contact-link {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-light);
}

.contact-link i {
  margin-right: 10px;
  color: var(--neon-blue);
}

.contact-form {
  background-color: rgba(10, 10, 18, 0.8);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--neon-blue);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(5, 5, 8, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  color: var(--text-light);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: var(--blue-glow);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-button {
  padding: 12px 25px;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--blue-glow);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  background-color: var(--darker-bg);
  border-top: 1px solid rgba(0, 240, 255, 0.3);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.5rem;
  color: var(--neon-blue);
  text-shadow: var(--blue-glow);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-light);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--neon-blue);
  text-shadow: var(--blue-glow);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(224, 224, 224, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 var(--neon-blue), -0.05em -0.025em 0 var(--neon-pink);
  }
  14% {
    text-shadow: 0.05em 0 0 var(--neon-blue), -0.05em -0.025em 0 var(--neon-pink);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 var(--neon-blue), 0.025em 0.025em 0 var(--neon-pink);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 var(--neon-blue), 0.025em 0.025em 0 var(--neon-pink);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 var(--neon-blue), 0.05em 0 0 var(--neon-pink);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 var(--neon-blue), 0.05em 0 0 var(--neon-pink);
  }
  100% {
    text-shadow: -0.025em 0 0 var(--neon-blue), -0.025em -0.025em 0 var(--neon-pink);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 0.99;
    text-shadow: var(--blue-glow);
  }
  20%, 24%, 55% {
    opacity: 0.5;
    text-shadow: none;
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 20px;
  }
  
  .nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    display: none;
  }
  
  .nav.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--darker-bg);
    padding: 20px;
    z-index: 100;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.neon-border {
  border: 1px solid var(--neon-blue);
  box-shadow: var(--blue-glow);
}

.glitch-effect {
  animation: glitch 5s infinite alternate;
}

.flicker-effect {
  animation: flicker 3s linear infinite;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 240, 255, 0.3);
  opacity: 0.75;
  animation: scanline 6s linear infinite;
}