/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Theme Colors */
:root {
  --primary-dark: #0a0a1a;
  --secondary-dark: #121225;
  --accent-purple: #8a2be2;
  --accent-pink: #ff00ff;
  --accent-cyan: #00ffff;
  --accent-green: #00ffaa;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --neon-glow: 0 0 10px var(--accent-purple), 0 0 20px var(--accent-purple), 0 0 30px var(--accent-purple);
  --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Elements */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

.element.circle {
  background: radial-gradient(circle, var(--accent-purple), transparent);
  border: 1px solid var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  width: 20px;
  height: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.element.triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 20px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  top: 70%;
  left: 80%;
  animation-delay: 2s;
}

.element.square {
  background: transparent;
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  width: 15px;
  height: 15px;
  top: 40%;
  left: 90%;
  animation-delay: 4s;
}

.element.large {
  transform: scale(2);
}

.element.circle.large {
  width: 40px;
  height: 40px;
}

.element.triangle.large {
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 40px solid var(--accent-cyan);
}

.element.square.large {
  width: 30px;
  height: 30px;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, 20px) rotate(90deg);
  }
  50% {
    transform: translate(0, 40px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 20px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 26, 0.8);
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 26, 0.95);
}

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

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  padding-left: 2rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

@media (max-width: 576px) {
  .logo-text {
    font-size: 1.5rem;
    padding-left: 1rem;
  }
}

.logo-text .neon {
  text-shadow: var(--neon-glow);
  animation: neon-pulse 2s infinite alternate;
}

@keyframes neon-pulse {
  0% {
    text-shadow: 0 0 5px var(--accent-purple), 0 0 10px var(--accent-purple);
  }
  100% {
    text-shadow: 0 0 15px var(--accent-purple), 0 0 30px var(--accent-purple), 0 0 45px var(--accent-purple);
  }
}

.navigation {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-purple);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 50px;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.4s;
  color: var(--accent-purple);
  text-shadow: 0 0 10px var(--accent-purple);
}

.hero-title .line:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glitch-image {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 30px var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glitch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

.glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan), var(--accent-green));
  opacity: 0.7;
  mix-blend-mode: multiply;
}

.glitch-layer:nth-child(1) {
  background: linear-gradient(45deg, var(--accent-purple), transparent);
  animation: glitch-anim 2s infinite;
}

.glitch-layer:nth-child(2) {
  background: linear-gradient(45deg, var(--accent-cyan), transparent);
  animation: glitch-anim 3s infinite reverse;
}

.glitch-layer:nth-child(3) {
  background: linear-gradient(45deg, var(--accent-green), transparent);
  animation: glitch-anim 4s infinite;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
    opacity: 0.7;
  }
  20% {
    transform: translate(-2px, 2px);
    opacity: 0.8;
  }
  40% {
    transform: translate(-2px, -2px);
    opacity: 0.6;
  }
  60% {
    transform: translate(2px, 2px);
    opacity: 0.8;
  }
  80% {
    transform: translate(2px, -2px);
    opacity: 0.7;
  }
  100% {
    transform: translate(0);
    opacity: 0.7;
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.mouse {
  margin-top: 10px;
  width: 30px;
  height: 50px;
  border: 2px solid var(--accent-purple);
  border-radius: 20px;
  position: relative;
}

.mouse span {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--accent-purple);
  border-radius: 3px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 20px;
    opacity: 0.5;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

/* Section Styles */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  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, var(--accent-purple), var(--accent-cyan));
}

.section-line {
  width: 100px;
  height: 2px;
  background: var(--accent-purple);
  margin: 20px auto 0;
  box-shadow: 0 0 10px var(--accent-purple);
}

/* About Section */
.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 20px;
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 10px;
  background: rgba(18, 18, 37, 0.5);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
  border-color: var(--accent-purple);
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-purple);
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-visual {
  flex: 1;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.progress-item {
  margin-bottom: 20px;
}

.progress-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 5px;
  width: 0;
  transition: width 2s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Skills Section */
.skills-content {
  padding: 0 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background: rgba(18, 18, 37, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
  border-color: var(--accent-purple);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.skill-card:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--accent-purple);
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--accent-purple);
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.skill-level {
  margin-bottom: 15px;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% {
    background-position: -100px 0;
  }
  100% {
    background-position: 100px 0;
  }
}

.skill-percent {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--accent-purple);
  text-shadow: 0 0 5px var(--accent-purple);
}

/* Projects Section */
.projects-content {
  padding: 0 20px;
}

.projects-button {
  text-align: center;
  margin-top: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.project-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-image img[src$=".svg"] {
  width: 100%;
  height: 300px;
  object-fit: contain;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.project-overlay h3 {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.project-overlay p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--accent-purple);
  margin-right: 15px;
  width: 20px;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(138, 43, 226, 0.2);
  transition: all 0.3s ease;
}

.social-links img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
}

.social-links a:hover {
  background: var(--accent-purple);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.contact-form {
  flex: 1;
  background: rgba(18, 18, 37, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 15px;
  padding: 30px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(10, 10, 26, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

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

/* Footer */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  text-align: center;
}

.footer-content p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.heart {
  color: #ff4d94;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(138, 43, 226, 0.8);
}

.btn-primary::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: all 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.btn-secondary:hover {
  background: rgba(138, 43, 226, 0.2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Interactive Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: all 0.1s ease;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-follower.active {
  transform: translate(-50%, -50%) scale(1.5);
  border-color: var(--accent-purple);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    padding: 20px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
  }
  
  .navigation.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stats {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 100px 0 30px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}