/* Import Poppins Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-font: 'Poppins', sans-serif;
  --fallback-font: sans-serif;
  /* You can define additional variables (like colors) in your global CSS */
}

body {
  font-family: var(--primary-font), var(--fallback-font);
  margin: 0;
  padding: 0;
  background-color: #111;
  color: white;
}

/* Navigation Styling */
nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: whitesmoke;
  z-index: 100;
  width: 100%;
  gap: 500px;
}



nav .logo img {
  height: 50px; /* Adjust height as needed */
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.875rem;
}

nav ul li a {
  color: #F26B1D;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #0554F2;
  text-shadow: 0 0 0.3125rem #0554F2, 0 0 0.9375rem #0F5CBF;
}

/* Main Content Container */
#main-content {
  margin-top: 5rem;
  padding: 2rem;
}

/* Home Section Styling */
.content {
  text-align: center;
  padding: 5rem 1.25rem;
  background-image: url('../assets/images/walk.gif');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 37.5rem;
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.content h1 {
  font-size: 12rem;
  color: #F26B1D;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.content p {
  font-size: 1.75rem;
  color: #fff;
  line-height: 1.8;
  max-width: 56.25rem;
  margin: 0 auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 3.125rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #F26B1D;
}

.scroll-text {
  font-size: 1.375rem;
  font-weight: bold;
  letter-spacing: 0.0625rem;
  margin-bottom: 0.9375rem;
  color: #fff;
}

.scroll-icon {
  font-size: 2.8125rem;
  animation: bounce 1.5s infinite;
  transition: transform 0.3s ease, color 0.3s ease;
}

.scroll-icon:hover {
  transform: scale(1.2);
  color: #0554F2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-0.625rem); }
  60% { transform: translateY(-0.3125rem); }
}

/* Works Section Styling */
#works {
  padding: 3.75rem 1.25rem;
  /* background-color: #111; */
  color: #F26B1D;
  text-align: center;
}

#works h2 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 75rem;
  margin: 0 auto;
}

.work-card {
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center;
  perspective: 1000px;
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* Enforces a 3:2 aspect ratio */
  object-fit: cover; /* Ensures the image covers the container while preserving the aspect ratio */
  border-radius: 0.5rem;
  margin-bottom: 0.9375rem;
}


.work-card h3 {
  font-size: 1.25rem;
  color: white;
}

.work-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* About Section Styling */
#about {
  padding: 3.75rem 1.25rem;
  background-color: #111;
  color: #BFBFBF;
  font-size: 1.375rem;
  line-height: 1.8;
  max-width: 50rem;
  margin: 0 auto;
}

#about h2 {
  font-size: 3rem;
  color: #F26B1D;
  text-align: center;
  margin-bottom: 1.875rem;
}

/* Skills Section Styling */
#skills {
  padding: 3.75rem 1.25rem;
  background-color: #111;
  color: #F26B1D;
  text-align: center;
}

#skills h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.skill-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 4rem;
}

.skill-icons i {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.skill-icons i:hover {
  transform: scale(1.2);
}

.skills-image {
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
  padding: 1rem;
}

.skills-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Contact Section Styling */
#contact {
  padding: 3.75rem 1.25rem;
  background-color: #111;
  color: #F26B1D;
  text-align: center;
}

#contact h2 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

#contact p {
  font-size: 1.25rem;
  color: #BFBFBF;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 37.5rem;
  margin: 0 auto;
  width: 100%;
}

.contact-form .form-field {
  width: 100%;
  margin-bottom: 1.25rem;
  text-align: left;
}

.contact-form .form-field label {
  font-size: 1.125rem;
  color: #F26B1D;
  margin-bottom: 0.3125rem;
}

.contact-form .form-field input,
.contact-form .form-field textarea {
  width: 100%;
  padding: 0.9375rem;
  font-size: 1rem;
  border: none;
  border-bottom: 0.125rem solid #F26B1D;
  background-color: transparent;
  color: white;
  margin-bottom: 0.625rem;
  transition: all 0.3s ease;
}

.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
  border-bottom: 0.125rem solid #0554F2;
  outline: none;
}

.contact-form .submit-btn {
  background-color: transparent;
  color: #F26B1D;
  padding: 0.625rem 1.25rem;
  font-size: 1.125rem;
  border: 0.125rem solid #F26B1D;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  align-self: flex-end;
  margin-top: 1.25rem;
}

.contact-form .submit-btn:hover {
  background-color: #F26B1D;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Project Detail Overlay */
.project-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow-y: auto;
  z-index: 200;
  padding: 2rem;
  box-sizing: border-box;
}
.hidden {
  display: none;
}

/* Project Detail Content Styling */
.project-detail {
  background-color: #222;
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.project-detail .close-project {
  background: transparent;
  border: none;
  color: #F26B1D;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.project-screenshot {
  margin-top: 1rem;
  text-align: center;
}

.project-screenshot img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* New styling for About & Skills container */
.about-skills-container {
  display: flex;
  gap: 2rem;
  max-width: 75rem;
  margin: 3.75rem auto;
  padding: 1rem;
  box-sizing: border-box;
}

.about-skills-container section {
  flex: 1;
  padding: 1rem;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .about-skills-container {
    flex-direction: column;
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .work-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .work-cards {
    grid-template-columns: 1fr;
  }
  
  .about-skills-container {
    flex-direction: column;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 0;
  }
}
@media (max-width: 768px) {
  #welcome-text {
    display: none !important;
  }
}


@media (max-width: 768px) {
  /* Reduce the font size for the welcome text in the home section */
  .content h1 {
    font-size: 6rem; /* Adjust this value as needed */
  }
  
  /* Adjust padding/margins if needed */
  #main-content {
    padding: 1rem;
  }
  
  /* Optionally adjust the scroll-down indicator if it overflows */
  .scroll-down {
    bottom: 1.5rem;
  }
}

