/* General Styling */

* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Lato", "Poppins";
  box-sizing: border-box;
}

body {
  background: #f8f9fa;
  padding-top: 20px;
}

html {
  scroll-behavior: smooth;
}

/* Transition */

a,
.btn {
  transition: all 300ms ease;
}

/* Desktop Navigation */

#desktop-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav,
.nav-links {
  display: flex;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 50px;
  width: 100%;
  background-color: #000000;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px; /* Adjust spacing */
}

.nav-links a.active {
  color: #e63946;
  text-decoration: underline;
  text-underline-offset: 5px;
}

a {
  color: #f8f9fa;
  text-decoration: none;
  text-decoration-color: #f8f9fa;
}

a:hover {
  color: #e63946;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0px;
}

.logo img {
  height: 90px;
  width: auto;
  margin-left: -20px;
}

.logo2 img {
  height: 50px;
  width: auto;
  margin-top: 20px;
  margin-left: -5px;
}

/* Sections */

section {
  scroll-margin-top: 100px;
  padding-top: 85px;
  box-sizing: border-box;
}

.section-container {
  display: flex;
}

/* Home Section */

#home {
  margin-top: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.demo-reel {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 8px #686c6d;
  display: flex;
  margin-bottom: 200px;
  margin-top: 200px;
}

.section__reel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.section__pic-container {
	display: flex;
    justify-content: center;
	margin-bottom: 30px;
}

.profile-pic {
	width: 90px;
	height: auto;
	border-radius: 50%;
}

.section__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section__text h1 {
  font-weight: 500;
  font-family: "Poppins";
}

.section__text__p2 {
  font-family: "Montserrat";
  font-weight: 400;
  font-size: 18px;
}

.section__text p1 {
  font-family: "Montserrat";
  font-weight: 500;
  text-align: center;
  font-size: 20px;
   margin-top: 20px;
}

.section__text__p2 {
  font-size: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.title {
  font-family: "Lato";
  font-size: 60px;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: -20px;
  padding: 35px;
  gap: 50px;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 50px;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  height: 30px;
  flex-wrap: wrap;
}

.btn {
  font-weight: 500;
  transition: all 300ms ease;
  padding: 12px 24px;
  width: 150px;
  height: 40px;
  border-radius: 25px;
  color: #000000;
  text-align: center;
}

.btn-color-1,
.btn-color-2 {
  border: #000000 2px solid;
  background: #f8f9fa;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: #000000;
  color: #f8f9fa;
}

.btn-color-1:hover {
  background: #000000;
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: #000000 2px solid;
}

/* About Me Section */

#aboutme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 100px;
  margin-bottom: 40px;
  padding: 20px;
}

#aboutme h1 {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0;
}

#aboutme h3 {
  margin-top: 5px;
  text-align: center;
  border: #f8f9fa 2px solid;
  border-radius: 25px;
  background: #054f94;
  color: #f8f9fa;
  border-color: #686c6d;
}

.about-details-container {
  display: flex;
  flex-direction: column;
  text-align: justify;
  font-size: 18px;
  line-height: 2;
  max-width: 800px;
  margin: 0;
  padding-left: 100px;
}

.about-containers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 0 20px;
}

.about-pic {
  object-fit: cover;
  margin-top: 100px;
  width: 100%;
  height: auto;
}

.about-containers,
.about-details-container {
  display: flex;
}

/* Experience Section */

#experience {
  scroll-margin-top: 90px;
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 15px;
}

.experience-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 10px;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 0;
  margin-bottom: 10px;
  padding: 0;
}

.grid-card {
  border: 2px solid #000000;
  border-radius: 25px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.grid-card:hover {
  transform: scale(1.05);
  background-color: #000000;
  color: #f8f9fa;
}

.grid-card i {
  font-size: 16px;
  font-family: "Poppins";
  margin-bottom: 20px;
}

.grid-card span {
  font-size: 20px;
  font-weight: 500;
  background: linear-gradient(to right, #e63946, #f8f9fa);
  background-clip: text;
  color: transparent;
}

/* My Projects Section */

#myprojects {
  padding: 70px 20px;
  background-color: #f4f4f4;
  text-align: center;
  width: 100%;
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.project-card {
  padding: 10px 15px; /* less padding vertically */
  max-width: 300px;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  max-height: 150px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.project-card .btn {
  padding: 10px 15px;
  max-width: 300px;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-color: 2px solid #1d1d1d;
}

.project-card:hover .btn:hover {
  border: 1px solid #e63946;
  background-color: #000000;
  color: #f8f9fa;
  cursor: pointer;
}

.project-card p {
  font-size: 0.9em;
  color: #000000;
  gap: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-bottom: 50px;
}

.project-card h3 {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #222;
}

/* Contact Me Section */

#contactme {
  display: grid;
  margin: 0;
  padding: 0;
  margin-top: 400px;
  margin-bottom: 300px;
}

.contact-container {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.contact-right img {
  width: 500px;
  height: auto;
  border-radius: 25px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}

.contact-left-title h2 {
  font-weight: 600;
  font-family: "Poppins";
  font-size: 30px;
  margin-bottom: 5px;
}

.contact-left-title hr {
  border: none;
  width: 120px;
  height: 5px;
  background-color: #e63946;
  border-radius: 10px;
  margin-bottom: 20px;
}

.contact-inputs {
  width: 500px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #000000;
  border-radius: 25px;
}

.contact-left textarea {
  height: 140px;
  width: 500px;
  padding-top: 15px;
  border-radius: 25px;
}

.contact-inputs:focus {
  border: 2px solid #e63946;
}

.contact-inputs::placeholder {
  color: #686c6d;
}

.contact-left .btn {
  padding: 5px 42px;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 10px;
  border: 2px solid #e63946;
  background-color: #e63946;
  color: #f8f9fa;
  border-radius: 25px;
  transition: all 300ms ease ease-in-out;
}

.contact-left .btn:hover {
  background-color: #000000;
  color: #f8f9fa;
  border: 2px solid #f8f9fa;
  cursor: pointer;
}

.contact-right img {
  width: 500px;
}

/* Footer Section */

#footer {
  background-color: #000000;
  color: #f8f9fa;
  padding-top: 50px;
  padding-bottom: 40px;
  
}

.footer-container {
  width: 1140px;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-content {
  line-height: 2.5;
  padding: 0 50px;
  border-right: 1px solid #f8f9fa;
}

.footer-content:last-child {
  border-right: none;
}

.footer h3 {
  font-size: 30px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: left;
}

.footer-content p {
  position: relative;
  padding: 0 20px;
  width: 190px;
  margin: auto;
  padding: 7px;
}

.footer-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.list {
  padding: 0;
  display: flex;
  justify-content: center;
}

.list li {
  width: auto;
  text-align: left;
  list-style-type: none;
  padding: 7px;
  position: relative;
  display: inline-block;
}

.list li a i {
  font-size: 50px;
}

.list li:hover::before {
  width: 70px;
}

.alt-logo {
  margin-top: 50px;
  text-align: center;
}

.alt-logo img {
  width: 100px;
  height: auto;
}

.footer-copyright {
  background-color: #000000;
  width: 100%;
  text-align: center;
  padding-top: 20px;
}

.footer-copyright p {
  color: #f8f9fa;
  margin: 0;
  font-size: 16px;
  padding: 8px;
}

.designer {
  color: #e63946;
}

/* Media Queries */

/* Extra Small Devices */
@media screen and (max-width: 310px) {
  #home {
    flex-direction: column;
    gap: 10vw;
    height: auto;
    padding: 20px;
  }

  .section__pic-container {
    width: 100%;
    height: auto;
	
  }

  .section__text {
    margin: 0 30px;
    margin-top: 100px;
    max-width: 100%;
    align-self: center;
    text-align: center;
    font-size: 30px;
  }
	
  .profile-pic {
    width: 100px;
    height: auto;
  }

  .btn-container {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
	padding: 12px 24px;
	width: 150px;
	height: 40px;
border-radius: 25px;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact-left,
  .contact-right {
    width: 100%;
    text-align: center;
  }

  .contact-inputs,
  .contact-left textarea {
    width: 90%;
  }

  .section__text {
    margin: 0;
    padding: 0 20px;
    font-size: 20px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-content {
    padding: 0 20px;
    width: 100%;
  }

  .list {
    flex-direction: column;
    align-items: center;
  }

  .list li {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* Small Devices */
@media screen and (max-width: 600px) {
  #home {
    flex-direction: column;
    gap: 20px;
    height: auto;
    padding: 20px;
    align-items: stretch;
  }

  .section__pic-container {
    width: 100%;
    height: auto;
  }

  .profile-pic {
    width: 120px;
    height: auto;
  }

  .section__text {
    margin: 0;
    padding: 0 20px;
    font-size: 22px;
  }

  .title {
    font-size: 45px;
  }

  .section__text__p2 {
    font-size: 18px;
  }

  .btn-container {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .contact-container {
    flex-direction: column;
    flex-wrap: wrap;
  }
}

/* Medium Devices */
@media screen and (min-width: 768px) and (max-width: 992px) {
  .section-container {
    font-size: 13px;
  }

  #home {
    flex-direction: row;
    gap: 10vw;
    height: auto;
    padding: 20px;
  }

  .section__pic-container {
    width: 50%;
    height: auto;
  }

  .profile-pic {
    width: 150px;
    height: auto;
  }

  .section__text {
    margin: 0;
    padding: 0 20px;
    font-size: 24px;
  }

  .title {
    font-size: 50px;
  }

  .section__text__p2 {
    font-size: 20px;
  }

  .btn-container {
    flex-direction: row;
    gap: 20px;
  }

  .btn {
    width: auto;
  }
}

/* Large Devices */
@media only screen and (min-width: 992px) {
  #home {
    flex-direction: row;
    gap: 12vw;
    height: 100vh;
    padding: 0;
  }

  .section__pic-container {
    width: 400px;
    height: 500px;
  }

  .profile-pic {
    width: 500px;
    height: auto;
  }

  .section__text {
    margin: 0px 120px;
    padding: 0;
    font-size: 30px;
  }

  .title {
    font-size: 60px;
  }

  .section__text__p2 {
    font-size: 30px;
  }

  .btn-container {
    flex-direction: row;
    gap: 40px;
  }

  .btn {
    width: 150px;
  }
}

@media (min-width: 768px) {
  .projects-grid {
    justify-content: space-between;
  }

  .project-card {
    flex: 0 0 45%;
  }
}

@media (min-width: 1024px) {
  .project-card {
    flex: 0 0 30%;
  }
}
