:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --hover-color: #6fa3ff;
  --font-main: "Poppins", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
}


.text-container {
  position: absolute;
  top: 40px;
  left: 40px;
  padding: 30px;
}

.name {
  font-size: 48px;
  margin: 0 0 10px 0;
}

.description {
  font-size: 18px;
  margin: 0;
  opacity: 0.8;
}

.main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}

.main-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (max-width: 768px) {
  .text-container {
    top: 20px;
    left: 20px;
    padding: 20px;
  }

  .name {
    font-size: 32px;
  }

  .description {
    font-size: 14px;
  }

  .button-row {
    flex-direction: column;
    gap: 30px;
  }

  .main-btn {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .text-container {
    top: 15px;
    left: 15px;
    padding: 15px;
  }

  .name {
    font-size: 28px;
  }

  .description {
    font-size: 13px;
  }

  .button-row {
    gap: 25px;
  }

  .main-btn {
    font-size: 20px;
  }
}

.main-btn:hover {
  color: var(--hover-color);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-color);
  border: 4px solid var(--text-color);
  border-radius: 8px;
  width: 90%;
  max-width: 1200px;
  height: 85%;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--text-color);
  background: var(--bg-color);
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--hover-color);
}

.modal-content {
  flex: 1;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.projects-content {
  padding: 40px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-section {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 40px;
  box-sizing: border-box;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  flex: 1 1 0;
  min-width: 200px;
  max-width: 300px;
  box-sizing: border-box;
}

.contact-icon {
  margin-bottom: 20px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 40px;
  height: 40px;
}

.contact-item h3 {
  color: var(--text-color);
  font-size: 24px;
  margin: 0 0 12px 0;
  font-weight: bold;
}

.contact-item p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.skills-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  min-height: 60vh;
  padding: 40px;
  box-sizing: border-box;
}

.modal-content:has(.skills-section) {
  padding: 40px;
}

.skill-item {
  flex: 1 1 calc(33.333% - 30px);
  box-sizing: border-box;
  text-align: left;
  min-width: 250px;         
}

.skill-item h3 {
  color: var(--text-color);
  font-size: 20px;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.skill-item p {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
  width: 100%;
}

.project-item {
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  padding: 20px;
  padding-left: 80px;
  padding-right: 80px;
  box-sizing: border-box;
}

.phone-mockup {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  padding: 12px;
  background: var(--bg-color);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: var(--text-color);
  border-radius: 3px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  display: block;
  border: none;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  max-width: 500px;
}

.project-info.full-width {
  max-width: 800px;
  text-align: center;
}

.project-item h3 {
  color: var(--text-color);
  font-size: 32px;
  margin: 0 0 20px 0;
  font-weight: bold;
  line-height: 1.2;
}

.project-item p {
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 30px 0;
  opacity: 0.9;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px 0;
}

.tech-tag {
  color: var(--text-color);
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid var(--text-color);
  background: transparent;
}

.download-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 30px;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  background: transparent;
  width: fit-content;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  font-size: 28px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

@media (max-width: 968px) {
  .text-container {
    top: 30px;
    left: 30px;
    padding: 25px;
  }

  .name {
    font-size: 40px;
  }

  .description {
    font-size: 16px;
  }

  .button-row {
    gap: 60px;
  }

  .main-btn {
    font-size: 26px;
  }
  .project-layout {
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    padding-left: 70px;
    padding-right: 70px;
  }

  .phone-frame {
    width: 240px;
    height: 480px;
  }

  .project-info {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .modal {
    width: 95%;
    height: 90%;
    max-height: none;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-content:has(.skills-section) {
    padding: 20px;
  }

  .projects-content {
    padding: 20px;
  }

  .project-layout {
    gap: 30px;
    padding-left: 60px;
    padding-right: 60px;
  }

  .phone-frame {
    width: 200px;
    height: 400px;
    border-radius: 25px;
    padding: 10px;
  }

  .phone-frame::before {
    width: 50px;
    height: 5px;
    top: 15px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }

  .project-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .project-item p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .tech-tag {
    font-size: 11px;
    padding: 5px 12px;
  }

  .download-link {
    padding: 10px 24px;
    font-size: 14px;
  }

  .skills-section {
    gap: 20px;
    padding: 20px;
    min-height: auto;
  }

  .skill-item {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .skill-item h3 {
    font-size: 18px;
  }

  .skill-item p {
    font-size: 13px;
  }

  .contact-section {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .contact-item {
    padding: 25px;
    min-width: 100%;
  }

  .contact-icon svg {
    width: 36px;
    height: 36px;
  }

  .contact-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .contact-item p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .modal-content {
    padding: 15px;
  }

  .modal-content:has(.skills-section) {
    padding: 15px;
  }

  .projects-content {
    padding: 15px;
  }

  .project-layout {
    gap: 25px;
    padding: 10px;
    padding-left: 50px;
    padding-right: 50px;
  }

  .phone-frame {
    width: 180px;
    height: 360px;
    border-radius: 20px;
    padding: 8px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .carousel-btn.prev { left: 5px; }
  .carousel-btn.next { right: 5px; }

  .project-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .project-item p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .skills-section {
    gap: 15px;
    padding: 15px;
    min-height: auto;
  }

  .skill-item h3 {
    font-size: 16px;
  }

  .skill-item p {
    font-size: 12px;
  }

  .contact-section {
    gap: 15px;
    padding: 15px;
  }

  .contact-item {
    padding: 20px;
  }

  .contact-icon svg {
    width: 32px;
    height: 32px;
  }

  .contact-icon {
    margin-bottom: 15px;
  }

  .contact-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .contact-item p {
    font-size: 14px;
  }

  .project-layout {
    padding-left: 45px;
    padding-right: 45px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .carousel-btn.prev { left: 5px; }
  .carousel-btn.next { right: 5px; }
}

@media (max-width: 360px) {
  .project-layout {
    padding-left: 40px;
    padding-right: 40px;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}