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

body {
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding: 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 30px;
  overflow: hidden;
  border: 4px solid #007AFF;
  flex-shrink: 0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  flex: 1;
}

.hero-name {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-title {
  font-size: 24px;
  font-weight: 600;
  color: #007AFF;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-bio {
  font-size: 18px;
  color: #b0b0b0;
  line-height: 1.8;
}

.hero-bio .highlight {
  color: #007AFF;
  font-weight: 500;
}

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #007AFF, transparent);
  margin: 0 auto;
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
  padding: 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 60px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #007AFF;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Project Card */
.project-card {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  padding: 40px;
  background: #242424;
  border-radius: 30px;
  border: 1px solid #333;
}

.project-card.reverse {
  flex-direction: row-reverse;
}

.project-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

/* iOS Frame */
.ios-frame {
  width: 365px;
  height: 792px;
  border: 20px solid #000;
  border-radius: 75px;
  position: relative;
  background-color: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 145px;
  height: 40px;
  background-color: #111;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: width 0.3s ease, height 0.3s ease;
  z-index: 10;
}

.dynamic-island:hover {
  width: 220px;
  height: 50px;
  border-radius: 25px;
}

/* Screen content */
.screen-content {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  background-color: #000;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.screen-content::-webkit-scrollbar {
  width: 0;
  display: none;
}

.screen-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.screen-content img {
  width: 100%;
  min-height: 100%;
  display: block;
  transition: opacity 0.15s ease;
  object-fit: cover;
  object-position: top;
}

.screen-content img.fade-out {
  opacity: 0.3;
}

/* Tap hint */
.tap-hint {
  color: #666;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Project Info */
.project-info {
  flex: 1;
}

.project-name {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.project-description {
  font-size: 16px;
  color: #b0b0b0;
  line-height: 1.8;
  margin-bottom: 25px;
}

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

.tag {
  padding: 8px 16px;
  background: rgba(255, 0, 242, 0.15);
  color: #ffffff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(0, 122, 255, 0.3);
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  padding: 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007AFF, #0056b3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 30px;
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
}

.footer p {
  color: #666;
  font-size: 14px;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
  .hero-section,
  .projects-section,
  .contact-section {
    padding: 60px 40px;
  }

  .hero-content {
    gap: 40px;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }

  .hero-name {
    font-size: 40px;
  }

  .hero-bio {
    font-size: 16px;
  }

  .project-card {
    gap: 40px;
    padding: 30px;
  }

  .ios-frame {
    width: 320px;
    height: 693px;
    border: 16px solid #000;
    border-radius: 60px;
  }

  .dynamic-island {
    width: 130px;
    height: 32px;
    font-size: 11px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-title {
    font-size: 20px;
  }

  .project-card,
  .project-card.reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-phone {
    align-self: center;
  }

  .project-tags {
    justify-content: flex-start;
  }

  .project-name {
    font-size: 28px;
  }
}

/* Tablets portrait and large phones */
@media (max-width: 768px) {
  .hero-section,
  .projects-section,
  .contact-section {
    padding: 50px 25px;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    border-radius: 25px;
  }

  .hero-name {
    font-size: 32px;
  }

  .hero-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .hero-bio {
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .project-card {
    padding: 25px;
    margin-bottom: 50px;
    border-radius: 25px;
  }

  .ios-frame {
    width: 300px;
    height: 650px;
    border: 14px solid #000;
    border-radius: 55px;
  }

  .dynamic-island {
    width: 120px;
    height: 30px;
    font-size: 10px;
  }

  .project-name {
    font-size: 24px;
  }

  .project-description {
    font-size: 15px;
  }

  .contact-links {
    gap: 20px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .hero-section,
  .projects-section,
  .contact-section {
    padding: 40px 20px;
  }

  .profile-image {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    border-width: 3px;
  }

  .hero-name {
    font-size: 28px;
  }

  .hero-title {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .hero-bio {
    font-size: 14px;
    line-height: 1.7;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .project-card {
    padding: 20px;
    border-radius: 20px;
  }

  .ios-frame {
    width: calc(100vw - 80px);
    max-width: 320px;
    height: calc((100vw - 80px) * 2.16);
    max-height: 693px;
    border: 14px solid #000;
    border-radius: 50px;
  }

  .dynamic-island {
    width: 110px;
    height: 28px;
    font-size: 9px;
    top: 8px;
  }

  .project-name {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .project-description {
    font-size: 14px;
  }

  .tag {
    padding: 6px 12px;
    font-size: 12px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .hero-name {
    font-size: 24px;
  }

  .hero-title {
    font-size: 14px;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .ios-frame {
    border: 12px solid #000;
    border-radius: 45px;
  }

  .section-title {
    font-size: 22px;
  }
}
