/* Base Styles & Variables */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #fd79a8;
  --accent-color: #00b894;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
  --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  @media screen and (max-width: 500px) {
    font-size: 14px;
  }
  @media screen and (max-width: 375px) {
    font-size: 13px;
  }
  @media screen and (max-width: 320px) {
    font-size: 12px;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-color);
  color: var(--light-color);
  overflow-x: hidden;
  cursor: auto; /* Restore default cursor */
}

/* Custom Cursor - hide these elements */
.cursor-dot,
.cursor-outline {
  display: none; /* Hide custom cursor elements */
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  mix-blend-mode: difference;
}

.nav-scrolled {
  background-color: rgba(45, 52, 54, 0.95);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 40px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  z-index: 1001; /* Keep logo above mobile menu */
}

.artist-name {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  transition: var(--transition);
}

.nav-links a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001; /* Keep toggle above the mobile menu */
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--light-color);
  transition: var(--transition);
}

/* Bar animations for active state */
.bar-top-active {
  transform: translateY(9px) rotate(45deg);
}

.bar-middle-active {
  opacity: 0;
}

.bar-bottom-active {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px; /* Add padding for better spacing on small screens */
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.artist-image-container {
  position: relative;
  flex: 1;
  max-width: 500px;
  margin: 0 auto; /* Center on mobile */
}

.artist-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.artist-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-effects .effect-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-color), transparent);
  opacity: 0.4;
  filter: blur(30px);
}

.image-effects .effect-circle:nth-child(1) {
  width: 60%;
  height: 60%;
  top: -15%;
  right: -10%;
}

.image-effects .effect-circle:nth-child(2) {
  width: 50%;
  height: 50%;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, var(--secondary-color), transparent);
}

.image-effects .effect-circle:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 50%;
  left: -10%;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--accent-color), transparent);
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.glitch-effect {
  position: relative;
  color: var(--light-color);
}

.glitch-effect::before,
.glitch-effect::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-effect::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-effect::after {
  left: -2px;
  text-shadow: -2px 0 var(--primary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(14px, 9999px, 67px, 0);
  }
  20% {
    clip: rect(72px, 9999px, 5px, 0);
  }
  40% {
    clip: rect(23px, 9999px, 92px, 0);
  }
  60% {
    clip: rect(54px, 9999px, 25px, 0);
  }
  80% {
    clip: rect(10px, 9999px, 85px, 0);
  }
  100% {
    clip: rect(95px, 9999px, 3px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(40px, 9999px, 29px, 0);
  }
  20% {
    clip: rect(18px, 9999px, 92px, 0);
  }
  40% {
    clip: rect(2px, 9999px, 49px, 0);
  }
  60% {
    clip: rect(67px, 9999px, 11px, 0);
  }
  80% {
    clip: rect(86px, 9999px, 74px, 0);
  }
  100% {
    clip: rect(31px, 9999px, 16px, 0);
  }
}

.typewriter {
  font-size: 1.4rem;
  font-weight: 300;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-color);
  width: 0;
  animation: 
    typing 3.5s steps(40, end) 1s forwards,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-color) }
}

.art-categories {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.art-categories span {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.art-categories span:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.cta-button::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: var(--transition);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(108, 92, 231, 0.5);
}

/* Section Common Styles */
section {
  padding: 120px 40px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  @media screen and (max-width: 768px) {
    margin-bottom: 20px;
  }
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.brush-stroke {
  position: relative;
  height: 15px;
  width: 100px;
  margin: 10px auto 0;
  background-color: var(--accent-color);
  mask: url('../assets/images/brush-stroke.svg') no-repeat center;
  -webkit-mask: url('../assets/images/brush-stroke.svg') no-repeat center;
  animation: fillStroke 2s ease forwards;
  transform-origin: center;
}

@keyframes fillStroke {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* About Section */
.about-section {
  background-color: #2b2b2b;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 40px;
  }
}

.about-text {
  flex: 1;
}

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

.skills-container {
  flex: 1;
  text-align: center;
  width: 90%;
  margin-top: -6%;
}

.skills-container h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.skills-graph {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  position: relative;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.skill-item span {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1;
}

/* Experience Section */
.experience-section {
  background-color: #222;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background-color: var(--accent-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-content .date {
  font-size: 0.9rem;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 15px;
}

.timeline-content p {
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
}

.filter-btn {
  padding: 12px 28px;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 30px;
  color: var(--light-color);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::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: var(--transition);
  z-index: -1;
}

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

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  /* cursor: none; */
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.3s ease;
  height: 280px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  scale: 1;
}

.portfolio-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  color: white;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item-info p {
  font-size: 0.95rem;
  opacity: 0.8;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.portfolio-item:hover .portfolio-item-info h3,
.portfolio-item:hover .portfolio-item-info p {
  transform: translateY(0);
}

.portfolio-item-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.portfolio-item:hover .portfolio-item-hover {
  opacity: 1;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(108, 92, 231, 0.2), 
    rgba(253, 121, 168, 0.2));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.portfolio-item:hover::after {
  opacity: 1;
}

/* Enhanced Portfolio Modal */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  /* cursor: none; Indicate it's clickable */
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background-color: #222;
  border-radius: 15px;
  overflow: auto; /* Allow scrolling for content */
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: var(--transition);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* cursor: default; Reset cursor for modal content */
  z-index: 2001; /* Ensure content is above the modal background */
}

.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
}

.portfolio-modal.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  /* cursor: none; */
  z-index: 2;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

.modal-image-container {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.modal-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #222, transparent);
  pointer-events: none;
}

.modal-info {
  padding: 40px;
}

.modal-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.modal-details {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.modal-details span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-details span::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.modal-navigation {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-navigation button {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: var(--light-color);
  font-size: 1rem;
  /* cursor: none; */
  padding: 12px 25px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.modal-navigation button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

/* Add highlight effect for navigation buttons to indicate they're clickable */
.modal-navigation button:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-navigation button:active {
  transform: translateY(0);
}

.modal-prev::before {
  content: '←';
  margin-right: 8px;
}

.modal-next::after {
  content: '→';
  margin-left: 8px;
}

/* Contact Section */
.contact-section {
  background-color: #222;
}

.contact-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;  
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

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

.social-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

/* Leetcode icon styling */
.social-icon img {
  width: 20px;
  height: 20px;
  filter: invert(1); /* Make SVG white to match other icons */
  transition: var(--transition);
}

.social-icon:hover img {
  filter: invert(1) brightness(1.1); /* Keep it white but slightly brighter on hover */
  transform: scale(1.1);
}

.contact-form {
  flex: 1;
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  font-size: 1rem;
  color: var(--light-color);
  transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

.input-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.form-group input:focus ~ .input-animation,
.form-group textarea:focus ~ .input-animation {
  transform: scaleX(1);
}

.submit-btn {
  position: relative;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  padding: 15px 40px;
  border-radius: 40px;
  cursor: none;
  overflow: hidden;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.btn-animation {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.submit-btn:hover .btn-animation {
  left: 100%;
}

/* Footer */
.main-footer {
  background-color: #1a1a1a;
  padding: 40px;
  text-align: center;
}

/* Developer Project Modal Styles */
.dev-project-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.dev-project-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0.2;
  z-index: 0;
  transform: scale(1.1);
}

.dev-project-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.dev-project-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--light-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
}

.dev-project-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.9);
}

.dev-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: auto;
  align-items: center;
}

.dev-project-tech {
  flex: 1;
}

.dev-project-tech h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  padding: 8px 16px;
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--light-color);
  display: inline-block;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.dev-project-live {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 184, 148, 0.3);
  text-align: center;
}

.dev-project-live:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 184, 148, 0.4);
  background-color: #00d1a7;
}

/* Make sure navigation buttons stay at the bottom */
.dev-project-modal + .modal-navigation {
  margin-top: auto;
  background: rgba(34, 34, 34, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for developer project modal */
@media (max-width: 768px) {
  .dev-project-title {
    font-size: 2rem;
  }
  
  .dev-project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .dev-project-live {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 3.2rem;
  }
  
  .hero-content {
    gap: 30px;
  }
  
  .artist-image-container {
    max-width: 400px;
  }
  
  .typewriter {
    font-size: 1.3rem;
  }
}

@media (max-width: 992px) {
  .main-nav {
    padding: 15px 25px;
  }
  
  .nav-scrolled {
    padding: 12px 25px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(45, 52, 54, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    z-index: 1000;
  }
  
  .nav-active {
    transform: translateX(0);
  }
  
  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.4s ease;
    transition-delay: calc(0.1s * var(--i));
  }
  
  .nav-active li {
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-links a {
    font-size: 1.4rem;
    padding: 10px 0;
  }
  
  /* Mix-blend-mode can cause issues on mobile */
  .main-nav {
    mix-blend-mode: normal;
  }
  
  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .main-nav {
    padding: 12px 20px;
  }
  
  .nav-scrolled {
    padding: 10px 20px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: 30px;
    padding: 0 15px;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
}

@media (max-width: 375px) {
  .main-nav {
    padding: 10px 15px;
  }
  
  .nav-scrolled {
    padding: 8px 15px;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .nav-links {
    gap: 25px;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }
  
  .menu-toggle {
    width: 25px;
    height: 18px;
  }
  
  .bar {
    height: 2px;
  }
}

/* Hero Section Fixes */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.artist-image-container {
  position: relative;
  flex: 1;
  max-width: 500px;
  margin: 0 auto; /* Center on mobile */
}

.artist-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.artist-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

/* Improved Media Queries for Hero Section */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .artist-image-container {
    max-width: 350px;
    width: 80%;
  }
  
  .art-categories {
    justify-content: center;
  }
  
  /* Fix typewriter animation for centered text */
  .typewriter {
    margin: 0 auto;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100%; max-width: 580px; margin: 0 auto; }
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 15px 60px;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .typewriter {
    font-size: 1.1rem;
  }
  
  .art-categories span {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
  
  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 90px 12px 40px;
  }
  
  .hero-text h1 {
    font-size: 2.3rem;
  }
  
  .artist-image-container {
    max-width: 280px;
    width: 90%;
  }
  
  .typewriter {
    font-size: 0.95rem;
  }
  
  .art-categories {
    margin: 20px 0;
    gap: 10px;
  }
  
  .art-categories span {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 425px) {
  .hero-section {
    padding: 80px 10px 30px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .artist-image-container {
    max-width: 240px;
  }
  
  .typewriter {
    font-size: 0.9rem;
  }
  
  .art-categories {
    margin: 15px 0;
    gap: 8px;
  }
  
  .art-categories span {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  .cta-button {
    padding: 10px 24px;
    font-size: 0.9rem;
    margin-top: 15px;
  }
  
  /* Simplify glitch effect on small screens */
  .glitch-effect::before,
  .glitch-effect::after {
    animation-duration: 4s;
  }
}

@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .artist-image-container {
    max-width: 220px;
  }
  
  .typewriter {
    font-size: 0.85rem;
  }
  
  .art-categories span {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .cta-button {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 320px) {
  .hero-section {
    padding: 70px 8px 25px;
  }
  
  .hero-content {
    gap: 20px;
  }
  
  .hero-text h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  .artist-image-container {
    max-width: 180px;
  }
  
  .typewriter {
    font-size: 0.75rem;
    /* Adjust animation to work with smaller screens */
    animation: 
      typing 6s steps(30, end) 1s forwards,
      blink-caret 0.75s step-end infinite;
  }
  
  .art-categories {
    margin: 12px 0;
    gap: 6px;
  }
  
  .art-categories span {
    padding: 3px 6px;
    font-size: 0.65rem;
  }
  
  .cta-button {
    padding: 7px 16px;
    font-size: 0.8rem;
    margin-top: 10px;
  }
  
  /* Override the animation for 320px */
  @keyframes typing {
    from { width: 0 }
    to { width: 100%; max-width: 260px; margin: 0 auto; }
  }
}

/* Fix for very small devices to ensure text readability */
@media (max-width: 280px) {
  .hero-text h1 {
    font-size: 1.4rem;
  }
  
  .typewriter {
    font-size: 0.7rem;
  }
  
  .art-categories span {
    padding: 2px 5px;
    font-size: 0.6rem;
  }
  
  .cta-button {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 30px 15px;
    min-height: 500px; /* Minimum height for landscape */
  }
  
  .hero-content {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }
  
  .artist-image-container {
    max-width: 180px;
  }
  
  .artist-image-wrapper {
    padding-top: 100%;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .typewriter {
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
  }
  
  .art-categories {
    justify-content: flex-start;
    margin: 10px 0;
  }
  
  .cta-button {
    margin-top: 5px;
  }
}

/* Fix for devices with notches */
@supports (padding-top: env(safe-area-inset-top)) {
  .hero-section {
    padding-top: calc(env(safe-area-inset-top) + 80px);
    padding-left: calc(env(safe-area-inset-left) + 20px);
    padding-right: calc(env(safe-area-inset-right) + 20px);
  }
}

#CreditNims:link {
  color: var(--primary-color);
  text-decoration: none;
  
}

/* visited link */
#CreditNims:visited {
  color: var(--accent-color);
}

/* mouse over link */
#CreditNims:hover {
  color: var(--secondary-color);
}

/* selected link */
#CreditNims:active {
  color: var(--accent-color);
}

/* Add Contact Section Responsive Styles (without changing existing style) */
@media (max-width: 992px) {
  .contact-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 50px;
  }
  
  .info-item span {
    word-break: break-word;
  }
}

@media (max-width: 576px) {
  section#contact {
    padding: 80px 20px;
  }
  
  .contact-info h3 {
    font-size: 1.8rem;
  }
  
  .form-group input, 
  .form-group textarea {
    font-size: 0.95rem;
    padding: 12px;
  }
  
  .form-group textarea {
    min-height: 120px;
  }
  
  .social-links {
    margin-top: 30px;
  }
}

@media (max-width: 425px) {
  .contact-info h3 {
    font-size: 1.6rem;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 375px) {
  section#contact {
    padding: 60px 15px;
  }
  
  .contact-info h3 {
    font-size: 1.5rem;
  }
  
  .contact-info p {
    font-size: 1rem;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 320px) {
  section#contact {
    padding: 50px 10px;
  }
  
  .contact-info h3 {
    font-size: 1.4rem;
  }
  
  .info-item {
    gap: 10px;
  }
  
  .form-group input, 
  .form-group textarea {
    padding: 10px;
  }
  
  .submit-btn {
    padding: 12px 25px;
  }
}

/* Experience/Education Section Responsive Fixes */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px; /* Move timeline line to left side */
    height: calc(100% - 30px); /* Adjust height to prevent overflow */
  }
  
  .timeline-marker {
    left: 30px; /* Move markers to left side */
    width: 16px;
    height: 16px;
  }
  
  .timeline-item {
    margin-bottom: 40px;
  }
  
  .timeline-content {
    width: calc(100% - 70px); /* Full width minus marker and spacing */
    margin-left: 70px !important; /* Force all items to left side */
    padding: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 70px; /* Override auto margin for odd items */
  }
  
  /* Add connecting line from marker to content */
  .timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -20px;
    width: 20px;
    height: 2px;
    background-color: var(--accent-color);
  }
}

@media (max-width: 576px) {
  .timeline::before {
    left: 20px; /* Adjust for smaller screens */
  }
  
  .timeline-marker {
    left: 20px;
    width: 14px;
    height: 14px;
  }
  
  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    padding: 15px;
  }
  
  .timeline-content::before {
    left: -15px;
    width: 15px;
  }
  
  .timeline-content h3 {
    font-size: 1.3rem;
  }
  
  .timeline-content h4 {
    font-size: 1rem;
  }
}

@media (max-width: 375px) {
  .timeline-content {
    padding: 12px;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem;
  }
  
  .timeline-content h4 {
    font-size: 0.95rem;
  }
  
  .timeline-content .date {
    font-size: 0.8rem;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 320px) {
  .timeline::before {
    left: 15px;
  }
  
  .timeline-marker {
    left: 15px;
    width: 12px;
    height: 12px;
  }
  
  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    padding: 10px;
  }
  
  .timeline-content::before {
    left: -12px;
    width: 12px;
    top: 8px;
  }
  
  .timeline-content h3 {
    font-size: 1.1rem;
  }
  
  .timeline-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .timeline-content .date {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  
  .timeline-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}