* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 20px;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn {
  background: rgba(74, 144, 226, 0.3);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(74, 144, 226, 0.5);
}

.nav-btn:hover {
  background: rgba(74, 144, 226, 0.5);
  transform: translateY(-2px);
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 100px 20px 50px;
  scroll-margin-top: 100px;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#projects .container {
  text-align: left;
}

#projects .section-title {
  text-align: center;
}

/* Home Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.avatar-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greeting {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.name {
  color: #4a90e2;
}

.description {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.4s ease;
  background: transparent;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
  scale: 1.2;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  color: #4a90e2;
  transform: translateX(-50%) translateY(-5px);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* About Section */
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #4a90e2;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.about-left {
  text-align: left;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ffffff;
  line-height: 1.2;
}

.title-dot {
  color: #888888;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.about-text strong {
  color: #ffffff;
  font-weight: 600;
}

.about-right {
  position: sticky;
  top: 100px;
}

.tech-love-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tech-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.tech-love-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tech-tag {
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ffffff;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
}

.tech-tag:hover {
  background: rgba(45, 45, 45, 1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.project-card {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.project-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.project-title-line {
  height: 1px;
  background: #4a90e2;
  flex: 1;
  max-width: 100px;
}

.project-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.project-icon-link {
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.project-icon-link:hover {
  opacity: 1;
  color: #4a90e2;
  transform: scale(1.1);
}

.project-tech {
  font-size: 0.85rem;
  color: #a0a0a0;
  margin: 0;
  font-weight: 400;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0;
}

.project-mockup {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.project-mockup-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666666;
  gap: 10px;
  background-color: white;
}

.project-mockup-placeholder2 {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
}

.project-mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.project-mockup-image:hover {
  transform: rotate(10deg);
}

.project-mockup-placeholder i {
  font-size: 2rem;
  opacity: 0.5;
}

.project-mockup-placeholder span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .nav-container {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 15px;
    border-radius: 20px;
  }

  .nav-link {
    font-size: 11px;
    padding: 6px 12px;
  }

  .nav-btn {
    font-size: 11px;
    padding: 6px 15px;
  }

  .greeting {
    font-size: 2rem;
  }

  .description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-title {
    font-size: 2.4rem;
    margin-bottom: 30px;
  }

  .about-text {
    font-size: 0.85rem;
  }

  .about-right {
    position: static;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-header {
    flex-wrap: wrap;
    gap: 15px;
  }

  .project-title-line {
    max-width: 50px;
  }

  .social-links {
    gap: 20px;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .greeting {
    font-size: 1.6rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-text {
    font-size: 0.8rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tech-tag {
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .avatar-container {
    width: 150px;
    height: 150px;
  }

  .nav-container {
    gap: 5px;
  }

  .nav-link,
  .nav-btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-card {
    padding: 20px;
  }

  .project-tech {
    font-size: 0.75rem;
  }

  .project-description {
    font-size: 0.85rem;
  }
}
