/* Base Styles & Variables */
:root {
  --color-purple: #b829f7;
  --color-dark-purple: #6a0dad;
  --color-blue: #0b1e51;
  --color-dark-blue: #050a24;
  --color-red: #ff2b6e;
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray: #333333;
  --color-light-gray: #aaaaaa;
  --grid-color: rgba(184, 41, 247, 0.2);
  --font-main: 'Orbitron', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --glow-shadow: 0 0 10px rgba(184, 41, 247, 0.7), 0 0 20px rgba(184, 41, 247, 0.5), 0 0 30px rgba(184, 41, 247, 0.3);
}

/* Import Orbitron font for cyberpunk/synthwave feel */


/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Three.js Container */
#three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

/* Noise Overlay for Retro Effect */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcGEgAPOKt0EQAAAMVJREFUaN7t2csNgzAQhGHHSgEpgVSWLtJFukgJKYFUgDwHLBk9IILsfzpHMXz2WOOHGUIIIYQQQgghhBBCyA2k6pnqmJn7i3uqQ6p9Zs5R5VRHxRxVzlT7VLvMnKPKqfapjoo5qpypjpl5R5VTHVPtFHNUOVMdMvOOKqc6KeaocqZaZeYdVU51VsxR5Uy1zcw7qpzqopijypnqkJl3VDnVWTFHlTPVNjPvqHKqi2KOKmeqQ2beUeVUZ8UcVU51zcw7qpwQQshf5A2wOAm/+0MEhAAAAABJRU5ErkJggg==');
  opacity: 0.05;
  z-index: -2;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-purple);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 4;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(5, 10, 36, 0.8);
  border-bottom: 1px solid rgba(184, 41, 247, 0.3);
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-purple);
  text-shadow: var(--glow-shadow);
}



nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-purple);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 4;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 36, 0.3); /* Adjust opacity as needed */
  z-index: 4;
}


.hero-content {
  background: rgba(0, 0, 0, 0.4); /* Subtle dark background */
  backdrop-filter: blur(1px);
  border-radius: 10px;
  padding: 2rem;
  max-width: 800px;
  z-index: 4;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-light-gray);
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.highlight {
  color: var(--color-red);
  font-weight: bold;
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--color-white);
  text-shadow: 0 0 10px var(--color-purple);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--color-red);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--color-purple);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(20% 0 80% 0);
  }
  20% {
    clip-path: inset(60% 0 40% 0);
  }
  40% {
    clip-path: inset(40% 0 60% 0);
  }
  60% {
    clip-path: inset(80% 0 20% 0);
  }
  80% {
    clip-path: inset(10% 0 90% 0);
  }
  100% {
    clip-path: inset(30% 0 70% 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(15% 0 85% 0);
  }
  20% {
    clip-path: inset(55% 0 45% 0);
  }
  40% {
    clip-path: inset(35% 0 65% 0);
  }
  60% {
    clip-path: inset(75% 0 25% 0);
  }
  80% {
    clip-path: inset(5% 0 95% 0);
  }
  100% {
    clip-path: inset(25% 0 75% 0);
  }
}

/* Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 4;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 4;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: 4;
}

.btn:hover::before {
  width: 100%;
}

.btn.primary {
  background-color: var(--color-purple);
  color: var(--color-white);
  border: none;
  box-shadow: 0 0 15px rgba(184, 41, 247, 0.5);
}

.btn.primary:hover {
  box-shadow: 0 0 20px rgba(184, 41, 247, 0.7);
  transform: translateY(-3px);
}

.btn.secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-purple);
}

.btn.secondary:hover {
  background-color: var(--color-purple);
  transform: translateY(-3px);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-purple), transparent);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: rgba(11, 30, 81, 0.5);
  border: 1px solid rgba(184, 41, 247, 0.3);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(184, 41, 247, 0.5);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-purple);
}

/* Process Section */
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  margin: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-purple), transparent);
}

.timeline-item {
  width: 45%;
  margin-bottom: 2rem;
  position: relative;
  padding: 1.5rem;
  background-color: rgba(11, 30, 81, 0.5);
  border: 1px solid rgba(184, 41, 247, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
}

.timeline-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-purple);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(184, 41, 247, 0.7);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background-color: rgba(11, 30, 81, 0.5);
  border: 1px solid rgba(184, 41, 247, 0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(184, 41, 247, 0.5);
}

.project-image {
  height: 200px;
  background-color: var(--color-gray);
  background-size: cover;
  background-position: center;
}

.project-card:nth-child(1) .project-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/random/600x400/?ecommerce');
}

.project-card:nth-child(2) .project-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/random/600x400/?restaurant');
}

.project-card:nth-child(3) .project-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/random/600x400/?realestate');
}

.project-content {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tags span {
  background-color: rgba(184, 41, 247, 0.2);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
  height: 400px;
  /*background-color: var(--color-gray);*/
  border-radius: 10px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/manav.jpeg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(184, 41, 247, 0.3);
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.skills {
  margin-top: 2rem;
}

.skill {
  margin-bottom: 1rem;
}

.skill span {
  display: block;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, var(--color-purple), var(--color-red));
  border-radius: 5px;
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-purple);
  margin-right: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-purple);
  transform: translateY(-5px);
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 41, 247, 0.3);
  border-radius: 5px;
  color: var(--color-white);
  255,255,0.05);
  border: 1px solid rgba(184, 41, 247, 0.3);
  border-radius: 5px;
  color: var(--color-white);
  
  font-family: var(--font-main);
  resize: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 10px rgba(184, 41, 247, 0.5);
}

.form-group textarea {
  min-height: 150px;
}

/* Footer */
footer {
  background-color: rgba(5, 10, 36, 0.9);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(184, 41, 247, 0.3);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-purple);
  text-shadow: var(--glow-shadow);
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  nav ul {
    display: none;
  }
  
  .timeline-item {
    width: 100%;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
}