/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-small {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  animation: slideDown 0.6s ease-out;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #000000;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-resume-btn {
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: #FFFFFF;
  border-radius: 2rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-resume-btn:hover::before {
  left: 100%;
}

.nav-resume-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */

.hero{

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.hero-title {
  font-size: 2.5rem;
  font-weight: 500;
  /* margin-bottom: 1rem; */
  text-align: center;
  color: #000000;

  margin-top: 0.5rem;
}


.hero-description {

  width: 50%;
  margin: 0 auto;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
  text-align: center;
}

.cta-button {

  display: inline-block;
  padding: 1rem 2rem;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 2rem;
  font-size: 1rem;
  transition: all 0.3s ease;

  cursor: pointer;

  margin-bottom: 2rem;

  text-align: center;

}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: scale(0.95);
}

/* Projects Section */
.projects {
  padding: 8rem 0;
  background-color: #F6F6F6;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #000000;
}

.section-description {
  font-size: 1.125rem;
  color: rgba(0, 0, 0, 0.6);
  max-width: 800px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.project-card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.project-link {
  display: block;
}

.project-image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #F6F6 F6;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-info {
  padding: 2rem;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #000000;
}

.project-description {
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #000000;
}

.metric-label {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
  padding: 8rem 0;
  background-color: #FFFFFF;
}

.about-content {
  margin-bottom: 3rem;
}

.about-text {
  font-size: 1.125rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.stat {
  transition: transform 0.3s ease;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #000000;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.contact .section-title {
  color: #FFFFFF;
}

.contact-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
  min-width: 140px;
}

.contact-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-0.5rem);
}

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

.contact-link span {
  font-size: 0.95rem;
  font-weight: 500;
}

.footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;

  background-color: aqua;
}

/* Project Detail Page Styles */
.project-detail {
  padding-top: 4rem;
}

.close-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  width: 3rem;
  height: 3rem;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease 0.2s backwards;
}

.close-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
  background-color: #F6F6F6;
  animation: zoomIn 0.8s ease-out;
}

.project-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.project-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 1.5rem;
  color: #FFFFFF;
  animation: slideUp 0.6s ease 0.3s backwards;
}

.project-hero-title {
  font-size: 3.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-metrics-section {
  padding: 3rem 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.project-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.detail-section {
  padding: 8rem 0;
}

.detail-section:nth-child(even) {
  background-color: #F6F6F6;
}

.detail-section:nth-child(odd) {
  background-color: #FFFFFF;
}

.detail-section h2 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #000000;
}

.detail-section p {
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.8;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.screenshot-item {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #F6F6F6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-0.5rem) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cta {
  padding: 8rem 0;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.project-cta h2 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.project-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.project-cta-button:hover {
  transform: translateY(-0.25rem) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(2rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in-scale {
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}

.delay-2 {
  animation-delay: 0.4s;
  animation-fill-mode: backwards;
}

.delay-3 {
  animation-delay: 0.6s;
  animation-fill-mode: backwards;
}

.hover-scale:hover {
  transform: scale(1.1);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .nav-resume-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .hero{

    margin-top: 100px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 0;
  }

  .hero-image-wrapper {
    order: 1;
  }

  .hero-text {
    order: 2;
    text-align: center;
  }

  .hero-image {
    
    width: 256px;
    height: 256px;
    
  }



  .hero-title {
    font-size: 2.5rem;
    line-height: 100%;
    margin-bottom: 10px;
  }

  .hero-description {
    width: 80%;
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links {
    gap: 1rem;
  }

  .project-hero-title {
    font-size: 2.5rem;
  }

  .project-hero-description {
    font-size: 1.125rem;
  }

  .project-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-section h2 {
    font-size: 2.25rem;
  }

  .detail-section p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    display: none;
  }

  .nav-link:last-child {
    display: block;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}
