/* CSS Variables - Updated for greyish dark contrast theme */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #a0a0a0;
  --accent-color: #6C63FF;
  --background-color: #121212;
  --card-background: #1e1e1e;
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

#app {
  position: relative;
  z-index: 1;
}

#app canvas {
  display: block;
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
  background: rgba(18, 18, 18, 0.9);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 50px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn:hover {
  background-color: #554fd8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* Navigation */
.navbar {
  background-color: rgba(26, 26, 26, 0.95);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
}

.logo span {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--heading-color);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: rgba(18, 18, 18, 0.8);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-img {
  flex: 1;
  text-align: center;
}

.hero-img .image-container {
  position: relative;
  display: inline-block;
}

.hero-img img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.2;
  color: var(--heading-color); /* text always visible */
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-tag {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 500;
}

.name-animation {
  display: inline-block;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: expandFromCenter 1s forwards ease-out;
}

/* Different delays for each word */
.first-name {
  animation-delay: 0.5s;
}
.last-name {
  animation-delay: 1.2s;
}

@keyframes expandFromCenter {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.shimmer {
  position: relative;
  display: inline-block;
  color: var(--heading-color); /* fallback color so text is always visible */
  overflow: hidden;
}

/* shimmer effect */
.shimmer::before {
  content: attr(data-text); /* duplicate the text */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #6C63FF, #ffffff, #6C63FF);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}



.hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--secondary-color);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--card-background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading-color);
  font-size: 18px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid #2d2d2d;
}

.social-link:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.4);
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-img {
  flex: 1;
  text-align: center;
}

.about-img img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #2d2d2d;
}

.about-img img:hover {
  transform: scale(1.02);
}

.about-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.about-description {
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.about-highlights {
  margin-bottom: 30px;
}

.highlight-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.highlight-item i {
  color: var(--accent-color);
  font-size: 20px;
  margin-right: 15px;
  width: 24px;
}

.highlight-item span {
  font-size: 16px;
  color: var(--text-color);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.skill-item {
  background: linear-gradient(145deg, #1e1e1e, #232323);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid #2d2d2d;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  font-size: 50px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.skill-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.skill-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

.skills-grid-container {
  margin-bottom: 60px;
}

.skills-subtitle {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 30px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.skill-badge {
  background: linear-gradient(145deg, #1e1e1e, #232323);
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: default;
  border: 1px solid #2d2d2d;
}

.skill-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.skill-badge i {
  font-size: 35px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.skill-badge span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.education-container {
  background: linear-gradient(145deg, #1e1e1e, #232323);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid #2d2d2d;
}

.education-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 30px;
  text-align: center;
}

.education-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.education-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.education-icon {
  background-color: var(--accent-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.education-details h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.education-period {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 5px;
}

.education-institution {
  color: var(--secondary-color);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: linear-gradient(145deg, #1e1e1e, #232323);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #2d2d2d;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #6C63FF, #2d2e32);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.project-description {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-color);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tag {
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--accent-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.project-link {
  font-size: 15px;
  color: var(--accent-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.project-link:hover {
  gap: 12px;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.contact-details p {
  font-size: 15px;
  color: var(--secondary-color);
}

.contact-form {
  background: linear-gradient(145deg, #1e1e1e, #232323);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid #2d2d2d;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #333;
  border-radius: 5px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
  background-color: #2d2d2d;
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #2d2d2d;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  transition: var(--transition);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.copyright {
  font-size: 14px;
  color: #ccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container,
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-img {
    order: -1;
    margin-bottom: 40px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .education-item {
    flex-direction: column;
    text-align: center;
  }
  
  .education-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .nav-container {
    padding: 15px 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    background-color: var(--card-background);
    width: 80%;
    height: calc(100vh - 80px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-left: 1px solid #2d2d2d;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-tag {
    font-size: 20px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Shimmer animation for name */
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}


