/* Utilities */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    background: rgb(250, 250, 250);
}
a,
button {
    all: unset;
}
a:hover,
button:hover {
    cursor: pointer;
}
li {
    list-style: none;
}
.text_link {
    font-weight: 700;
    text-decoration: underline;
}
.basicSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 0px;
}
.basicContainer {
    width: 1000px;
    display: flex;
    flex-direction: column;
  }
.basicContainer h1 {
    font-size: 36px;
    margin-bottom: 36px;
    margin-top: 36px;
}
.basicContainer h2 {
    font-size: 24px;
    margin-bottom: 24px;
    margin-top: 24px;
}
.basicContainer h3 {
    font-size: 18px;
    margin-bottom: 18px;
    margin-top: 18px;
}
.basicContainer p {
    margin-bottom: 1em;
    margin-top: 1em;
    line-height: 1.7em;
}
.basicContainer a {
    cursor: pointer;
    text-decoration: underline;
    font-weight: 700;
}
.basicContainer img {
    margin-top: 24px;
    margin-bottom: 24px;
}
.basicContainer ul,
.basicContainer ol {
    margin-left: 96px;
}
.basicContainer ul > li,
.basicContainer ol > li {
    line-height: 1.7em;
}
.basicContainer li {
    text-indent: 12px;
}
.basicContainer img {
    max-width: 100%;
}
.mouseScroll {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 3.75vw;
    height: 6.25vw;
    border: 2px solid #879099;
    border-radius: 3.125vw;
  }
.mouseScroll::before {
    content: "";
    width: 1vw;
    height: 1vw;
    position: absolute;
    top: 1vw;
    left: 50%;
    transform: translate(-50%, 0);
    background: #3b4754;
    animation: scroll 1.3s infinite;
    border-radius: 0.5vw;
}
  
  @keyframes scroll {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translate(-50%, 26px);
    }
  }  
/* End Utilities */

.topSection {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10vw;
    border-top: 2px solid #eef1f5;
    gap: 16px;
}

.show {
    display: flex;
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 7;
    display: none;
}

/* New Navbar Start */


/* New Navbar End */

/* Home Start */
.hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    z-index: 2;
    gap: 24px;
  }
.hero__title {
    font-size: 64px;
    font-weight: 600;
    line-height: 48px;
    text-align: center;
}
.hero__info {
    font-size: 36px;
    font-weight: 400;
    color: #444e5a;
    text-align: center;
}
.section__overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(#fafafa, rgba(0, 0, 0, 0) 50%), linear-gradient(rgba(0, 0, 0, 0) 50%, #fafafa), url("../images/vector.jpg");
    background-size: cover;
    opacity: 0.5;
    z-index: 1;
}

/* Socials Start */
.socials {
    display: flex;
    gap: 24px;
    list-style-type: none;
    font-size: 18px;
  }
.socialSide {
    position: absolute;
    left: 40px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    list-style-type: none;
    font-size: 26px;
    z-index: 5;
    color: #505b66;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
}
.socialItem {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.socialItem:hover {
    background: rgb(255, 242, 169);
    cursor: pointer;
    transition: all 0.2s;
}
.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0px;
    min-height: 100vh;
}
.container {
    max-width: 1000px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}
.bighead {
    max-width: 200px;
}
.section__heading {
    text-transform: uppercase;
    font-size: 44px;
    letter-spacing: 3px;
    position: relative;
}
  
.section__heading::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 7px;
    background: rgb(252, 226, 81);
    transform: skew(-18deg) translateX(-50%);
    left: 50%;
    bottom: 0px;
    z-index: -1;
}  
/* Socials End */

/* Button Start */
.button {
    width: 160px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    border-radius: 0.4rem;
    border: 2px solid #3b4754;
    color: black;
    background: white;
    background: rgb(252, 226, 81);
    border: none;
    box-shadow: 3px 3px 0 0 #3b4754;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
}
.button:hover {
    cursor: pointer;
}
.button:active {
    transform: translate(3px, 3px);
    box-shadow: none;
    transition: all 0.1s;
}

/* Start About Grid */
.about__grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 76px;
}
.about__info {
    font-size: 18px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    color: #444e5a;
}
.about__info p {
    line-height: 1.5em;
}
.about__images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}  
.about__skills {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}
.skillIcon {
    max-height: 50px;
    filter: drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.2));
}
.skillBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #444e5a;
    font-size: 18px;
}
/* End About Grid */

/* Start Project Grid */

.gallery__grid {
  padding: 2rem;
}

.gallery__images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-template-rows: repeat(6, 200px);
  grid-gap: 1rem;
  grid-auto-flow: dense;
}

.gallery__images :nth-child(4n) {
  grid-column: span 2;
  grid-row: span 2;
}

.galleryImages :nth-child(8n) {
  grid-column: span 3;
  grid-row: span 3;
}

.galleryImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* End Project Grid */

/* Start Contact Form */
#contact .container {
    z-index: 2;
}
.contactForm {
    background: white;
    padding: 36px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
}
.formSection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.formSection label {
    font-size: 18px;
    font-weight: 500;
}
.formSection input,
.formSection textarea {
    all: unset;
    font-size: 16px;
    border-radius: 12px;
    background: rgb(242, 242, 242);
    border: none;
    padding: 12px;
    color: rgb(99, 99, 99);
}
.formSection input::placeholder,
.formSection textarea::placeholder {
    color: rgb(168, 168, 168);
}
.formSection input:focus,
.formSection textarea:focus {
    outline: 2px solid rgb(252, 226, 81);
}

#responseMessage {
	border-radius: 5px;
	color: #fff;
	font-size: 20px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

#responseMessage.success {
	color: #008000; /* Green background for success */
}

#responseMessage.error {
	color: #FF0000; /* Red background for errors */
}

#responseMessage.show {
	opacity: 1;
}

/* End Contact Form */

/* Start Footer */
.copyright {
    color: #3b4754;
    font-size: 18px;
    font-weight: 300;
}
.footer__list {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 3vw;
    color: #3b4754;
    font-weight: 600;
}
.footer__listItem:hover {
    color: orange;
}
/* End Footer */

/* Media Queries */

@media screen and (min-width: 801px) {
    .nav {
      display: block !important;
    }
	.navbar {
		position: relative;
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
	}

	.navBar {
		position: relative;
		text-align: center;
	}	

	.navDropdown {
		height: 80px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 3vh 2vh;
		position: fixed;
		width: 100%;
		background: white;
		box-shadow: 0px 0px 300px rgba(0, 0, 0, 0.2);
		z-index: 6;
	}

	.navLogo {
		width: 120px;
		font-size: 20px;
		background-size: cover;
		font-weight: 600;
		position: absolute;
		z-index: 7;
	}

	#logo {
		background-image: url(../images/navLogo.png);
		background-size: 60px;
		border-radius: 50%;
		transform: translateY(20%);
		width: 60px;
		height: 60px;
		position: fixed;
		margin: 0 auto;
		text-indent: -9999px;
	}

	.logo:hover {
		background: rgb(201, 241, 244);
		color: #3b4754;
		transition: all 0.3s;
		cursor: pointer;
	}

	.menu {
		list-style-type: none;
		display: flex;
		gap: 2vw;
		color: #3b4754;
		font-weight: 600;
		align-items: center;
	}

	nav ul {
		text-align: center;
	}

	nav li {
		padding: 6px 12px;
		border-radius: 6px;
		list-style: none;
		display: inline-block;
	}

	nav li a {
		display: block;
		text-decoration: none;
		text-transform: uppercase;
		font-size: 16px;
		font-family: 'Poppins';
		letter-spacing: 2px;
		font-weight: 600;
		transition: all ease 0.5s;
	}

	nav li a:hover {
		background-color: rgb(255, 242, 169);
		transition: all 0.3s;
		cursor: pointer;
	}

	input[type=checkbox] {
		display: none;
	}
}

@media screen and (min-width: 320px) and (max-width: 800px) {
	.navBar {
		display: flex;
		width: 100%;
		justify-content: space-between;
	}
	.navDropdown {
		position: fixed;
		padding-top: 12vw;
		flex-direction: column;
		display: grid;
		background: white;
		width: 100%;
		justify-content: center;
		align-items: center;
		z-index: 6;
	}

	.navLogo {
    		font-size: 20px;
    		background-size: cover;
    		font-weight: 600;
	}

	#logo {
    		background-image: url(../images/navLogo.png);
    		background-size: 11.737vw;
    		border-radius: 50%;
    		width: 11.737vw;
		position: fixed;
    		height: 11.737vw;
    		display: block;
    		margin: 0 auto;
    		text-indent: -9999px;
		z-index: 7;
	}

	input[type=checkbox] {
		display: none;
	}

	.menu {
		grid-auto-flow: row;
		list-style-type: none;
		background: white;
		row-gap: 40px;
		column-gap: 0;
		display: grid;
		gap: 2vw;
		color: #3b4754;
		font-weight: 600;
		justify-items: center;
	}

	nav ul {
		display: grid;
		grid-auto-flow: row;
		max-height: 0px;
		overflow: hidden;
		list-style: none;
		transition: all 1s cubic-bezier(.325, 1, .22, 1);
		justify-items: center;
	}

	nav li {
		border-bottom: .18rem solid #3b4754;
		list-style-type: none;
		color: #3b4754;
		font-size: 16px;
		gap: 2vw;
		font-weight: 600;
		padding: 5px 0;
		display: flex;
		justify-content: center;
	}

	nav li:last-of-type {
		margin-bottom: .625rem;
	}

	nav li a {
		display: block;
		font-family: Poppins;
		text-decoration: none;
		font-size: 16px;
		letter-spacing: 2px;
		font-weight: 600;
	}

	nav li a:hover {
		text-decoration: none;
		background-color: rgb(255, 242, 169);
		transition: all 0.3s;
		cursor: pointer;
	}

	input[type=checkbox]:checked ~ nav ul {
		height: auto;
		max-height: 12rem;
		transition: all 1s cubic-bezier(.5, 1, .22, 1);
	}

	.hamburger {
		display: block;
		position: absolute;
		top: 18px;
		right: 13px;
		height: 27px;
		width: 27px;
		cursor: pointer;
		transition: all 1s cubic-bezier(.19, 1, .22, 1);
	}

	.line {
		position: absolute;
		display: block;
		background: #3d3d3d;
		width: 18px;
		height: .15rem;
		border-radius: .2rem;
		left: 0;
		transition: all .6s cubic-bezier(.5, .1, 0, 1.2);
	}

	.line-1 {
		top: 0;
	}

	.line-2 {
		top: 7px;
		width: 14px;
		transform: translateX(2px);
		-webkit-transform: translateX(2px);
	}

	.line-3 {
		top: 14px;
	}

	input[type=checkbox]:checked ~ label .line-1 {
		top: 0px;
		width: 22px;
		transform: translateX(-11px) rotate(-45deg) translateY(12px);
	}

	input[type=checkbox]:checked ~ label .line-2 {
		opacity: 0;
	}

	input[type=checkbox]:checked ~ label .line-3 {
		top: 14px;
		width: 22px;
		transform: translateX(-8px) rotate(45deg) translateY(-8px);
	}
	
	.hero__text {
		gap: 3vw;
	}

	.hero__title {
		font-size: 8vw;
		line-height: 6vw;
	}

	.hero__info {
		font-size: 4.5vw;
	}

	.socials {
		gap: 3vw;
		font-size: 2.25vw;
	}

	.socialSide {
		left: 5vw;
		padding: 1vw;
		border-radius: 1vw;
		font-size: 3.25vw;
	}

	.socialItem {
		width: 6vw;
		height: 6vw;
	}

	.section__heading {
		font-size: 5.5vw;
		letter-spacing: 0.375vw;
	}

	.section__heading::after {
		width: 15vw;
		height; 0.875vw;
	}

	.button {
		width: 20vw;
		height: 6.25vw;
		font-size: 2vw;
	}

	.about__grid {
		gap: 9.5vw;
	}

	.about__info {
		font-size: 2.25vw;
		gap: 3vw;
	}

	.about__images {
		gap: 3vw;
	}

	.about__skills: {
		gap: 4.5vw;
	}

	.skillIcon {
		max-height: 6.25vw;
	}

	.skillBox {
		gap: 1.5vw;
		font-size: 2.25vw;
	}

	.gallery__images {
		grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
		grid-template-rows: repeat(6, 25vw);
	}

	.contactForm {
		padding: 4.5vw;
		gap: 4.5vw;
	}

	.formSection {
		gap: 1.5vw;
	}

	.formSection label {
		font-size: 2.25vw;
	}
	
	.formSection input,
	.formSection textarea {
		font-size: 2vw;
		padding: 1.5vw;
	}

	.copyright {
		font-size: 2.25vw;
	}

	.footer {
		display: none;
	}
}