/* Home Page Styles */
.home {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.heroBackground {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.gradientOrb1,
.gradientOrb2,
.gradientOrb3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.gradientOrb1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3b82f6, #1e40af);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.gradientOrb2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, #0891b2);
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.gradientOrb3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #8b5cf6, #7c3aed);
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.heroContent {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.heroText {
  max-width: 600px;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: #94a3b8;
  margin-top: 15px;
}

.wave {
  font-size: 1.5rem;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%,
  50%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(-4deg);
  }
}

.heroTitle {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.name {
  display: block;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.5rem;
  min-height: 2.5rem;
}

.cursor {
  color: #3b82f6;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.heroDescription {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.heroButtons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.primaryButton,
.secondaryButton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.primaryButton {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.primaryButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.secondaryButton {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.secondaryButton:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.socialProof {
  display: flex;
  gap: 2rem;
}

.socialProofItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.socialProofItem svg {
  color: #3b82f6;
}

/* Hero Image */
.heroImage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.imageContainer {
  position: relative;
  width: 400px;
  height: 400px;
}

.profileImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Focus on the top center of the image */
  border-radius: 50%;
  border: 4px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.imageGlow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.3;
  z-index: 1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.statItem {
  text-align: center;
  padding: 1.5rem;
}

.statNumber {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.statLabel {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

/* About Section */
.about {
  padding: 6rem 0;
}

.aboutContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sectionHeader {
  margin-bottom: 2rem;
}

.sectionTag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sectionTitle {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.aboutDescription {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.serviceItem {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.serviceItem:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.serviceIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.serviceContent {
  flex: 1;
}

.serviceTitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.serviceDescription {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Skills Cloud */
.aboutVisual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skillsCloud {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.skillBubble {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  animation: skillFloat 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.skillBubble:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

.skillBubble:nth-child(odd) {
  animation-delay: 1s;
}

.skillBubble:nth-child(3n) {
  animation-delay: 2s;
}

@keyframes skillFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.5);
}

.projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.projectCard {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.projectCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.projectImage {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.projectImagePlaceholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.projectOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.projectCard:hover .projectOverlay {
  opacity: 1;
}

.projectActions {
  display: flex;
  gap: 1rem;
}

.projectAction {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.projectAction:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: scale(1.1);
}

.projectContent {
  padding: 1.5rem;
}

.projectTitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
}

.projectDescription {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.projectTech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.techTag {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.projectsCta {
  text-align: center;
}

.viewAllButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.viewAllButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .heroContent,
  .aboutContent {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .greeting {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .heroText {
    order: 2;
    text-align: center;
  }

  .heroImage {
    margin-top: 100px;
    order: 1;
  }

  .imageContainer {
    width: 300px;
    height: 300px;
  }

  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 90vh;
    padding: 2rem 0;
  }

  .heroTitle {
    font-size: 2.5rem;
  }

  .heroImage {
    margin-top: 60px;
    order: 1;
  }

  .role {
    font-size: 1.5rem;
  }

  .heroButtons {
    flex-direction: column;
    align-items: center;
  }

  .primaryButton,
  .secondaryButton {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .socialProof {
    justify-content: center;
  }

  .statsGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .statNumber {
    font-size: 2rem;
  }

  .sectionTitle {
    font-size: 2rem;
  }

  .projectsGrid {
    grid-template-columns: 1fr;
  }

  .skillsCloud {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .heroTitle {
    font-size: 2rem;
  }

  .heroImage {
    margin-top: 60px;
    order: 1;
  }

  .role {
    font-size: 1.25rem;
  }

  .imageContainer {
    width: 250px;
    height: 250px;
  }

  .about,
  .projects {
    padding: 4rem 0;
  }

  .services {
    gap: 1rem;
  }

  .serviceItem {
    padding: 1rem;
  }
}

/* Image placeholder when no image is available */
.imagePlaceholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholderIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-radius: 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.projectCard:hover .placeholderIcon {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.placeholderIcon svg {
  width: 48px;
  height: 48px;
}

/* Placeholder style for broken images */
.imagePlaceholderActive {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Blue icon container */
.imagePlaceholderActive::before {
  content: "";
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='2' x2='22' y1='2' y2='22'/%3E%3Cpath d='M10.41 10.41a2 2 0 1 1-2.83-2.83'/%3E%3Cline x1='13.5' x2='6' y1='13.5' y2='21'/%3E%3Cline x1='18' x2='21' y1='12' y2='15'/%3E%3Cpath d='M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59'/%3E%3Cpath d='M21 15V5a2 2 0 0 0-2-2H9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
