/* Base Styles */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --overlay-color: rgba(0, 0, 0, 0.75);
  --transition: all 0.3s ease;

  /* Classic bullet point color */
  --bullet-color: #333333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  overflow: hidden;
  /* Prevent horizontal scrollbar */
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.explore-btn {
  margin-top: 15px;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.explore-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 20px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links ul {
  display: flex;
  list-style: none;
}

.nav-links ul li {
  margin-left: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hide menu buttons on desktop */
.open-menu,
.close-menu {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* Hero Section */
.hero {
  padding: 170px 0 100px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 10px solid white;
}

/* About Section */
.about {
  background-color: var(--bg-light);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.social-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--bg-color);
  border-radius: 50%;
  margin-right: 15px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-stats {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stat {
  flex: 1;
  min-width: 120px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-text {
  color: var(--text-light);
  font-size: 1rem;
}

/* Skills Section */
.skills-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.skill-category h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
  padding-left: 15px;
}

.skill-category h3:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.skill-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.skill-item-bullet {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  padding-left: 35px;
}

.skill-item-bullet:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.skill-item-bullet:before {
  content: '•';
  position: absolute;
  left: 15px;
  font-size: 20px;
  color: var(--bullet-color);
}

.skill-name {
  font-weight: 500;
  font-size: 1.1rem;
}

/* Technologies & Tools section with classic bullet points */
.skill-tags {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.skill-tag {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  padding-left: 35px;
  font-weight: 500;
  font-size: 1.1rem;
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.skill-tag:before {
  content: '•';
  position: absolute;
  left: 15px;
  font-size: 20px;
  color: var(--bullet-color);
}

/* Projects Section */
.projects {
  background-color: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  align-items: center;
  display: flex;
  margin-top: 10%;
  justify-content: center;
  align-items: center;
}

.project-image img {
  width: fit-content;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.project-card:hover {
  transform: scale(1.05);
}

.project-details {
  padding: 25px;
  text-align: center;
}

.project-details h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.project-details p {
  color: var(--text-light);
  margin-bottom: 20px;
  height: 75px;
  /* Fixed height for description to align buttons */
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  justify-content: center;
}

.tech-tag {
  padding: 5px 10px;
  background-color: var(--bg-light);
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Project Dialog */
.project-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.project-dialog.active {
  opacity: 1;
  visibility: visible;
}

.dialog-content {
  background-color: rgb(241, 241, 241);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 12px;
  padding: 30px;
  overflow-y: auto;
  position: relative;
  animation: dialogFadeIn 0.4s ease;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-dialog {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.close-dialog:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.dialog-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-right: 40px;
}

.project-logo {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  margin-right: 20px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.dialog-title h3 {
  font-size: 26px;
  margin-bottom: 0px;
  line-height: normal;
}

.dialog-title p {
  color: var(--text-light);
}

.dialog-description {
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Contact Section */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border-radius: 50%;
}

.contact-socials {
  margin-top: 40px;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 50px;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

  .about-stats {
    justify-content: center;
  }

  .skill-tags {
    justify-content: center;
  }

  .dialog-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  /* Show menu buttons only on mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-links ul li {
    margin: 15px 0;
  }

  .open-menu,
  .close-menu {
    display: block;
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
  }

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

  .about-text,
  .about-stats {
    min-width: 100%;
  }

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

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-image img {
    max-width: 250px;
  }

  .contact-content {
    flex-direction: column;
  }

  .dialog-header {
    flex-direction: column;
    text-align: center;
  }

  .project-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }


}

@media (max-width: 480px) {
  section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

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

  .dialog-content {
    padding: 15px;
  }

  .close-dialog {
    top: 10px;
    right: 10px;
  }
}

@media (min-width: 768px) {
  .toggle-btn {
    display: none !important;
  }
}

.screenshot-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  width: 100%;
}

.screenshot-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.screenshot {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 10px;
  border-radius: 20px;
  box-sizing: border-box;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.carousel-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: 0.3s;
  z-index: 10;
  /* or higher */
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 900px) {
  .screenshot {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 600px) {
  .screenshot {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Play‑Store button */
.play-btn {
  display: inline-block;
  max-width: 180px;
  /* keep it tidy on small screens */
  transition: transform .15s ease, box-shadow .15s ease;
}

.play-btn img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* subtle hover / focus effect */
.play-btn:hover,
.play-btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  outline: none;
}

.dialog-google-play {
  margin-top: 10px;
  width: 120px;
}