@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

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

body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: #ecf0f1;
  overflow-x: hidden;
  position: relative;
}

/* Enhanced page transitions */
.page-transition {
  opacity: 0;
  animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced floating background elements */
.bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(78, 205, 196, 0.15),
    rgba(78, 205, 196, 0.05)
  );
  animation: float 25s infinite ease-in-out;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(78, 205, 196, 0.1);
}

.floating-circle:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.floating-circle:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 65%;
  right: 12%;
  animation-delay: 8s;
}

.floating-circle:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 25%;
  left: 18%;
  animation-delay: 16s;
}

.floating-circle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 6%;
  animation-delay: 24s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) translateX(-15px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(25px) translateX(10px) rotate(270deg);
    opacity: 0.9;
  }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Enhanced typography with better animations */
.main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  text-align: center;
  margin-bottom: 2rem;
  margin-left: 30px;
  color: #ecf0f1;
  text-transform: uppercase;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
  }
  to {
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.6),
      0 0 40px rgba(78, 205, 196, 0.2);
  }
}

.name {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 3rem;
  color: #4ecdc4;
  letter-spacing: 0.1em;
}

/* Enhanced profile image with better hover effects */
.profile-image {
  width: min(300px, 80vw);
  height: min(300px, 80vw);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 4px solid rgba(78, 205, 196, 0.3);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  cursor: pointer;
}

.profile-image::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4ecdc4, #44a08d, #4ecdc4);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.profile-image:hover {
  transform: scale(1.08) rotate(3deg);
  border-color: #4ecdc4;
  box-shadow: 0 25px 50px rgba(78, 205, 196, 0.4);
}

.profile-image:hover::before {
  opacity: 1;
}

/* Enhanced info lines with staggered animations */
.info-line {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: #95a5a6;
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
  transition: all 0.3s ease;
  padding: 0.3rem 0;
}

.info-line:nth-child(1) {
  animation-delay: 0.2s;
}
.info-line:nth-child(2) {
  animation-delay: 0.4s;
}
.info-line:nth-child(3) {
  animation-delay: 0.6s;
}
.info-line:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-line:hover {
  transform: translateX(8px);
  color: #4ecdc4;
}

.info-line a {
  color: #4ecdc4;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.info-line a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4ecdc4, #44a08d);
  transition: width 0.3s ease;
}

.info-line a:hover::after {
  width: 100%;
}

.description {
  max-width: 600px;
  text-align: center;
  line-height: 1.8;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #bdc3c7;
  margin: 3rem 0;
}

/* Enhanced left-aligned text blocks */
.text-block-left {
  max-width: 65%;
  text-align: left;
  line-height: 1.7;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #ecf0f1;
  margin: 2rem 0;
  padding: 1.5rem 0;
  font-weight: 400;
}

.text-block-left p {
  margin-bottom: 1.2rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #ecf0f1;
  text-align: left;
  max-width: none;
}

.text-block-left p:last-child {
  margin-bottom: 0;
}

.paragraph-left {
  max-width: 60%;
  text-align: left;
  line-height: 1.6;
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  color: #ecf0f1;
  margin: 1.5rem 0;
  font-weight: 400;
}

/* Enhanced left content block with better animations */
.left-content-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0;
}

.left-content-block p {
  max-width: min(70%, 100%);
  text-align: left;
  line-height: 1.8;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  color: #ecf0f1;
  margin-bottom: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
  transition: all 0.4s ease;
  padding: 1.2rem;
  border-radius: 10px;
  border-left: 3px solid transparent;
}

.left-content-block p:nth-child(odd) {
  animation-delay: 0.1s;
}

.left-content-block p:nth-child(even) {
  animation-delay: 0.3s;
}

.left-content-block p:hover {
  background: rgba(78, 205, 196, 0.05);
  border-left-color: #4ecdc4;
  transform: translateX(15px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.1);
}

.left-content-block p:last-child {
  margin-bottom: 0;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced social links with better animations */
.social-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(50px, 12vw, 60px);
  height: clamp(50px, 12vw, 60px);
  border-radius: 50%;
  background: rgba(78, 205, 196, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(78, 205, 196, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.social-link:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 30px rgba(78, 205, 196, 0.3);
}

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

.social-icon {
  width: clamp(24px, 6vw, 28px);
  height: clamp(24px, 6vw, 28px);
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 1;
}

.social-link:hover .social-icon {
  opacity: 1;
  transform: scale(1.2) rotate(5deg);
}

/* Enhanced CTA section */
.cta-section {
  margin-top: 4rem;
  text-align: center;
  background: rgba(78, 205, 196, 0.05);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  border: 1px solid rgba(78, 205, 196, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 500px;
}

.cta-section:hover {
  background: rgba(78, 205, 196, 0.08);
  border-color: rgba(78, 205, 196, 0.25);
  transform: translateY(-5px);
}

.cta-title {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 1rem;
  color: #ecf0f1;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4ecdc4;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  transition: all 0.3s ease;
  padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border: 2px solid #4ecdc4;
  border-radius: 30px;
  background: transparent;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.resume-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(78, 205, 196, 0.1);
  transition: left 0.5s ease;
}

.resume-link:hover {
  background: rgba(78, 205, 196, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(78, 205, 196, 0.2);
}

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

.resume-link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.resume-link:hover::after {
  transform: translateX(5px);
}

/* Resume Page Styles with enhancements */
.resume-container {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 60px) clamp(15px, 4vw, 20px);
  position: relative;
  z-index: 1;
}

.resume-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease;
}

.resume-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: clamp(0.1em, 1vw, 0.3em);
  margin-bottom: 1rem;
  color: #ecf0f1;
  text-transform: uppercase;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.resume-title {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 400;
  color: #4ecdc4;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.resume-section {
  margin-bottom: 4rem;
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
}

.resume-section:nth-child(odd) {
  animation-delay: 0.2s;
}
.resume-section:nth-child(even) {
  animation-delay: 0.4s;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: clamp(0.1em, 1vw, 0.3em);
  text-align: center;
  margin-bottom: 3rem;
  color: #ecf0f1;
  text-transform: uppercase;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #4ecdc4, #44a08d);
  margin: 1rem auto 0;
  animation: expandLine 0.8s ease forwards;
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* Enhanced job cards */
.job {
  margin-bottom: 3rem;
  text-align: center;
  background: rgba(78, 205, 196, 0.02);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 15px;
  border: 1px solid rgba(78, 205, 196, 0.1);
  transition: all 0.3s ease;
}

.job:hover {
  background: rgba(78, 205, 196, 0.05);
  border-color: rgba(78, 205, 196, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(78, 205, 196, 0.1);
}

.company-name {
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  font-weight: 500;
  color: #ecf0f1;
  margin-bottom: 0.5rem;
}

.job-dates {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #95a5a6;
  margin-bottom: 1rem;
  background: rgba(78, 205, 196, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  display: inline-block;
}

.job-title {
  font-size: clamp(1.1rem, 3vw, 1.2rem);
  font-weight: 500;
  color: #4ecdc4;
  margin-bottom: 1rem;
}

.job-description {
  color: #ecf0f1;
  background-color: rgba(44, 62, 80, 0.3);
  line-height: 1.8;
  max-width: min(600px, 100%);
  width: 100%;
  margin: 0 auto 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 10px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  text-align: left;
  border-left: 3px solid #4ecdc4;
}

.job-note {
  font-style: italic;
  color: #95a5a6;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  margin: 1rem 0;
}

.view-projects-link {
  color: #4ecdc4;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.view-projects-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ecdc4;
  transition: width 0.3s ease;
}

.view-projects-link:hover {
  color: #5dade2;
  transform: translateX(5px);
}

.view-projects-link:hover::after {
  width: 100%;
}

.contact-section {
  text-align: center;
  margin: 4rem 0;
  background: rgba(78, 205, 196, 0.03);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 15px;
  border: 1px solid rgba(78, 205, 196, 0.1);
}

.contact-title {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 1rem;
  color: #ecf0f1;
}

.contact-info {
  color: #95a5a6;
  margin-bottom: 1rem;
}

/* Enhanced summon button */
.summon-button {
  display: inline-block;
  background: #4ecdc4;
  color: #2c3e50;
  padding: clamp(12px, 3vw, 15px) clamp(25px, 6vw, 35px);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.summon-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: left 0.6s ease;
}

.summon-button:hover {
  background: #45b7aa;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(78, 205, 196, 0.4);
}

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

.email-button {
  display: inline-block;
  background: rgba(78, 205, 196, 0.1);
  color: #4ecdc4;
  padding: clamp(10px, 2.5vw, 12px) clamp(20px, 5vw, 24px);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  border: 2px solid rgba(78, 205, 196, 0.3);
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.email-button:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  transform: translateY(-2px);
}

/* Enhanced project showcase */
.projects-section {
  margin: 4rem 0;
}

.project-showcase {
  background: rgba(78, 205, 196, 0.05);
  border-radius: 15px;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin: 2rem 0;
  text-align: center;
  border: 1px solid rgba(78, 205, 196, 0.1);
  transition: all 0.3s ease;
}

.project-showcase:hover {
  background: rgba(78, 205, 196, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(78, 205, 196, 0.1);
}

/* FIXED: Mobile-responsive project display */
.project-display {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 2px solid rgba(78, 205, 196, 0.2);
  transition: all 0.3s ease;
}

.project-display:hover {
  transform: scale(1.02);
  border-color: #4ecdc4;
}

.project-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 2px solid rgba(78, 205, 196, 0.2);
  transition: all 0.3s ease;
}

.project-image:hover {
  transform: scale(1.02);
  border-color: #4ecdc4;
}

.project-date {
  color: #95a5a6;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  margin-bottom: 0.5rem;
  background: rgba(78, 205, 196, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  display: inline-block;
  margin-left: auto;
}

.project-meta {
  display: flex;
}

.project-name {
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  font-weight: 500;
  color: #4ecdc4;
  margin-bottom: 1rem;
}

.project-description {
  color: #ecf0f1;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.project-link {
  color: #4ecdc4;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
  border: 2px solid #4ecdc4;
  border-radius: 25px;
  display: inline-block;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.project-link:hover {
  background: rgba(78, 205, 196, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
}

/* Enhanced back link */
.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4ecdc4;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
  border: 2px solid rgba(78, 205, 196, 0.3);
  border-radius: 25px;
  background: rgba(78, 205, 196, 0.05);
  justify-content: center;
}

.back-link:hover {
  color: #5dade2;
  background: rgba(78, 205, 196, 0.1);
  border-color: #4ecdc4;
  transform: translateX(-5px);
}

.back-link::before {
  content: "←";
  transition: transform 0.3s ease;
}

.back-link:hover::before {
  transform: translateX(-5px);
}

/* Enhanced skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.skill-category {
  text-align: left;
  background: rgba(78, 205, 196, 0.03);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 10px;
  border: 1px solid rgba(78, 205, 196, 0.1);
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: rgba(78, 205, 196, 0.06);
  border-color: rgba(78, 205, 196, 0.2);
  transform: translateY(-3px);
}

.skill-category h4 {
  color: #4ecdc4;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.skill-category p {
  color: #bdc3c7;
  line-height: 1.5;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Enhanced references grid */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 3rem);
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.reference {
  text-align: center;
  background: rgba(78, 205, 196, 0.05);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 10px;
  border: 1px solid rgba(78, 205, 196, 0.1);
  transition: all 0.3s ease;
}

.reference:hover {
  background: rgba(78, 205, 196, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(78, 205, 196, 0.1);
}

.reference-name {
  color: #ecf0f1;
  font-size: clamp(1.1rem, 3vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.reference-title {
  color: #4ecdc4;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: 0.5rem;
}

/* Change this from: .reference-contact, .reference-contact a */
.reference-contact {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  text-align: center;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
  transition: all 0.3s ease;
  padding: 0.3rem 0;
}

.reference-link {
  color: #4ecdc4;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.reference-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ecdc4;
  transition: width 0.3s ease;
}

.reference-link:hover {
  color: #5dade2;
  transform: translateX(5px);
}

.reference-link:hover::after {
  width: 100%;
}

/* All Projects Page Styles with enhancements */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 60px) clamp(15px, 4vw, 20px);
  position: relative;
  z-index: 1;
}

.projects-header {
  text-align: center;
  margin-bottom: 6rem;
  animation: fadeInUp 0.8s ease;
}

.projects-main-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 200;
  letter-spacing: clamp(0.3em, 2vw, 0.8em);
  margin-bottom: 2rem;
  color: #ecf0f1;
  text-transform: uppercase;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.projects-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #95a5a6;
  margin-bottom: 2rem;
}

/* Enhanced projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 6rem;
}

.project-card {
  background: rgba(78, 205, 196, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(78, 205, 196, 0.1);
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.project-card:nth-child(odd) {
  animation-delay: 0.1s;
}
.project-card:nth-child(even) {
  animation-delay: 0.3s;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(78, 205, 196, 0.3);
}

.project-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.project-image-container a {
  display: block;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(78, 205, 196, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image-container:hover .project-overlay {
  opacity: 1;
}

.project-info {
  padding: 0;
}

.project-title {
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  font-weight: 500;
  color: #4ecdc4;
  margin-bottom: 0.5rem;
}

/* Contact Form Specific Styles */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 60px) clamp(15px, 4vw, 20px);
  position: relative;
  z-index: 1;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease;
}

.contact-form-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: clamp(0.2em, 1.5vw, 0.5em);
  text-align: center;
  margin-bottom: 1rem;
  margin-left: clamp(20px, 5vw, 34px);
  color: #ecf0f1;
  text-transform: uppercase;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.contact-form-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #95a5a6;
  margin-bottom: 3rem;
}

.contact-form {
  background: rgba(78, 205, 196, 0.05);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(78, 205, 196, 0.1);
  backdrop-filter: blur(10px);
  animation: slideInUp 0.8s ease forwards;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-label {
  display: block;
  color: #4ecdc4;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  background: rgba(44, 62, 80, 0.3);
  border: 2px solid rgba(78, 205, 196, 0.2);
  border-radius: 10px;
  color: #ecf0f1;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #4ecdc4;
  background: rgba(44, 62, 80, 0.5);
  box-shadow: 0 0 20px rgba(78, 205, 196, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #95a5a6;
  opacity: 0.7;
}

.form-textarea {
  min-height: clamp(120px, 20vw, 150px);
  max-height: 300px;
}

/* Honeypot field - hidden from users but visible to bots */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.submit-button {
  width: 100%;
  background: #4ecdc4;
  color: #2c3e50;
  padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border: none;
  border-radius: 30px;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.submit-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: left 0.6s ease;
}

.submit-button:hover {
  background: #45b7aa;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(78, 205, 196, 0.4);
}

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

.submit-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-status.success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
  opacity: 1;
  transform: translateY(0);
}

.form-status.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  opacity: 1;
  transform: translateY(0);
}

.back-link-container {
  text-align: center;
  margin-top: 3rem;
}

/* Rate limiting notice */
.rate-limit-notice {
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.3);
  color: #f1c40f;
  padding: clamp(0.8rem, 2.5vw, 1rem);
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(78, 205, 196, 0.3);
  border-top: 2px solid #4ecdc4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  max-width: 1300px;
  margin: 0 auto;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  /* Reduce floating circles on mobile */
  .floating-circle {
    opacity: 0.3;
  }

  .floating-circle:nth-child(3),
  .floating-circle:nth-child(4) {
    display: none;
  }

  /* Adjust container padding */
  .container {
    padding: 20px 15px;
  }

  /* Fix title letter spacing on mobile */
  .main-title {
    letter-spacing: clamp(0.1em, 3vw, 0.5em);
    margin-left: clamp(10px, 3vw, 30px);
  }

  /* Improve left content block on mobile */
  .left-content-block p {
    max-width: 95%;
    padding: clamp(0.8rem, 2.5vw, 1.2rem);
  }

  .left-content-block p:hover {
    transform: translateX(5px);
  }

  /* Adjust social links for mobile */
  .social-links {
    gap: 1.5rem;
  }

  /* Contact form mobile adjustments */
  .contact-form {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .contact-form-container {
    padding: 30px 10px;
  }

  /* Skills grid mobile */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Projects grid mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Experience grid mobile */
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* References grid mobile */
  .references-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .container {
    padding: 15px 10px;
  }

  .resume-container,
  .projects-container,
  .contact-form-container {
    padding: 30px 10px;
  }

  /* Reduce margins on very small screens */
  .resume-section {
    margin-bottom: 2.5rem;
  }

  .projects-header {
    margin-bottom: 3rem;
  }

  /* Adjust project showcase for very small screens */
  .project-showcase {
    padding: 1rem;
  }

  .project-display {
    max-height: min(300px, 50vh);
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .profile-image {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
  }

  .main-title {
    margin-bottom: 1rem;
  }

  .name {
    margin-bottom: 1.5rem;
  }

  .left-content-block {
    margin: 1.5rem 0;
  }
}
