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

body {
  font-family: 'Outfit', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.profile-img {
  display:flex;
  justify-content: center;
}

#profile-img {
  max-width: 60%;
  display: block;
  border-radius: 50%;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0;
}

.site-header {
  background-color: #222;
  color: #fff;
  padding: 1rem 0;
}

.site-header h1 {
  font-size: 2rem;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  font-family: 'Cinzel', serif;
}

.site-subtitle {
  font-size: 1rem;
  color: #ccc;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 600;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

.section-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem 0;
}

.section-grid .text {
  flex: 1 1 60%;
}

.section-grid .profile-img {
  flex: 1 1 35%;
}

.project-intro {
  max-width: 900px;
  margin: 4rem auto 2rem;
  padding: 2rem 2.5rem;
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
          box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.project-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  font-family: 'Cinzel', serif;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.project-intro p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.project-section {
  margin: 4rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.project-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-around;
}

.project-description {
  flex: 1 1 350px;
  max-width: 500px;
}

.project-description h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.project-description p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.project-description ul {
  list-style: none;
  padding-left: 0;
}

.project-description li {
  margin-bottom: 1em;
}

.project-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 6px rgba(0,0,0,0.05);
          box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
}

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

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #222;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #3366cc;
  font-weight: 600;
  text-decoration: none;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-list li {
  display: inline-block;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background-color: #333;
  -webkit-transition: background-color 0.3s, -webkit-transform 0.2s;
  transition: background-color 0.3s, -webkit-transform 0.2s;
  transition: background-color 0.3s, transform 0.2s;
  transition: background-color 0.3s, transform 0.2s, -webkit-transform 0.2s;
}

.contact-list a:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.contact-list a.github { background-color: #24292f; }
.contact-list a.linkedin { background-color: #0077b5; }
.contact-list a.email { background-color: #d93025; }

.site-footer {
  background-color: #eee;
  color: #555;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.mobile-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.mobile-gallery img {
  max-width: 180px;
  border-radius: 20px;
  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,0.1);
          box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.mockup-frame {
  max-width: 300px;
  border: 8px solid #222;
  border-radius: 30px;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.3);
          box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mockup-frame-white {
  max-width: 300px;
  border: 8px solid #eee;
  border-radius: 30px;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.5);
          box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.demo-img {
  width: 180px;
  height: 390px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 24px;
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  background-color: #f8f8f8;
}

.project-links {
  margin-top: 2rem;
  font-size: 1.1rem;
  text-align: center;
}

.cta-link {
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.cta-link.demo {
  background-color: #4CAF50;
  color: #fff;
}

.cta-link.github {
  background-color: #333;
  color: #fff;
  margin-left: 0.5rem;
}

.cta-link:hover {
  opacity: 0.85;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.cta-link i {
  margin-right: 0.4rem;
}

.back-link {
  margin-top: 1rem;
  text-align: center;
}

.back-link a {
  text-decoration: none;
  color: #3366cc;
  font-size: 1rem;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.back-link a:hover {
  color: #ff6600;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-grid {
    flex-direction: column;
    text-align: center;
  }
  .site-header h1 {
    font-size: 1.5rem;
  }
  .project-layout {
    flex-direction: column-reverse;
    text-align: center;
  }
}
