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

body {
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

nav {
    background-color: var(--primary-color);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.header {
    width: 95%;
    margin: auto;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 50px;
}

nav a {
    height: 100%;
    padding: 0 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
    font-family: poppins;
    transition: 0.4s all ease;
    font-style: italic;
}

nav a:hover {
    background-color: #303ef7;
    color: white;
}

.sidebar li:hover a {
    background-color: #303ef7;
    color: white;
}

nav .sidebar li a:hover {
    background-color: #f0f0f0;
}

nav li:first-child {
    margin-right: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: white;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}

.menu-button {
    display: none;
}

.logo {
    font-family: 'DM Serif Text';
    font-weight: 900;
    font-size: 34px;
    color: #303ef7;
}

.logo:hover {
    background-color: white;
    color: #303ef7;
}

.show-modal {
    color: #303ef7;
    background: transparent;
    transition: transform 0.5s, background 0.5s;
}

.show-modal:hover {
    background-color: #303ef7;
    color: #fff;
    transform: scale(1.05);
}

main {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8) url(images/hero-bg4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: darken;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 50px;
}

.main-intro h1 {
    font-size: 96px;
    line-height: 106px;
    font-family: 'DM Serif Text';
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    letter-spacing: 3px;
    font-style: italic;
}

.main-intro p {
    font-size: 18px;
    font-style: italic;
    width: 90%;
    font-family: poppins;
    color: white;
    margin-bottom: 40px;
    margin-top: 10px;
    width: 80%;
}

.main-intro a {
    color: black;
    font-style: italic;
    background-color: white;
    text-decoration: none;
    font-family: poppins;
    padding: 15px 30px;
    transition: all ease 0.4s;
}

.main-intro a:hover {
  padding: 20px 35px;
  background-color: #303ef7;
  color: white;
}


#about {
    padding: 80px 0;
}

.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.about-col-1 {
    flex-basis: 35%;
}

#about .container .row .about-col-1 img {
    width: 50%;
    margin-left: 50px;
}

#about .container .row .about-col-2 h1 {
    font-family: 'DM Serif Text';
    font-size: 42px;
    font-style: italic;
}

#about .container .row .about-col-2 p {
    font-style: italic;
    font-family: poppins;
    margin-top: 50px;
    text-align: justify;
    width: 80%;
}

.about-col-2 {
    flex-basis: 60%;
}

.tabs {
    width: 500px;
    height: 300px;
    display: flex;
    position: relative;
    margin-left: 130px;
    margin-top: 50px;
}

.tabs input {
    display: none;
}

.tab-name {
    color: black;
    font-family: poppins;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 30px;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.25s;
    font-style: italic;
}

input:checked + label .tab-name {
    background: #303ef7;
    color: white;
    font-size: 18px;
    font-weight: 800;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.tab-content {
    position: absolute;
    top: 50px;
    left: 0;
    background: white;
    color: black;
    font-family: poppins;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 5px;
    opacity: 0;
    z-index: 10;
    transition: 0.5s;
    text-align: justify;
}

.tab-content ul li {
    padding: 5px 0;
    font-style: italic;
}

input:checked + label .tab-content {
    opacity: 1;
    z-index: 1;
}

.button {
    text-align: center;
}

.button .download-btn, .hire-btn {
    color: black;
    text-decoration: none;
    background-color: #303ef7;
    color: white;
    padding: 15px 30px;
    margin: 15px;
    font-family: poppins;
    transition: 0.4s all ease;
    font-style: italic;
}

.button .download-btn:hover {
    padding: 20px 35px;
}

.button .hire-btn:hover {
    padding: 20px 35px;
}

.projects {
    text-align: center;
    font-size: 42px;
    font-family: 'DM Serif Text';
    margin-top: 100px;
    font-style: italic;
}

.project-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 100px;
}

.card {
    width: 325px;
    background-color: #f7f7ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 20px;
}

.project-container .card img {
    width: 100%;
    height: auto;
}

.project-container .card .card-content {
    padding: 16px;
}


.project-container .card .card-content h3 {
    font-size: 28px;
    margin-bottom: 8px;
    font-family: 'DM Serif Text';
    font-style: italic;
}

.project-container .card .card-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.3;
    font-family: poppins;
    font-style: italic;
}

.project-container .card .card-content .btn {
    font-family: poppins;
    display: inline-block;
    padding: 8px 16px;
    background-color: #303ef7;
    text-decoration: none;
    margin-top: 16px;
    color: #fff;
    transition: 0.4s ease all;
    font-style: italic;
}

.project-container .card .card-content .btn:hover {
    padding: 8px 20px;
}






.skills-section {
	position: relative;
	width: 100%;
	min-height: 100vh;
	padding: 30px 10%;
}

.skills-section .main-title {
	max-width: 700px;
	margin: 0px auto;
	text-align: center;
	font-family: helvetica;
}

.skills-section .main-title h1 {
	position: relative;
	font-size: 42px;
	color: #242223;
	margin-bottom: 30px;
	display: inline-block;
    font-family: 'DM Serif Text';
    margin-top: 100px;
    font-style: italic;
}

.skills-section .main-title h1::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 1px;
	top: 125%;
	left: 0;
	background-color: #808080;
}

.skills-section .main-title h1::after {
	content: '';
	position: absolute;
	width: 50%;
	height: 3px;
	background-color: #303ef7;
	top: calc(125% - 1px);
	left: 50%;
	transform: translateX(-50%);
}

.main-title p {
    font-style: italic;
	color: black;
    font-family: poppins;
    margin-top: 30px;
}

.skills-section .skills-row{
	width: 100%;
	display: flex;
	justify-content: space-between;
	margin-top: 100px;
}

.skills-row .col{
	flex-basis: 46%;
}

.skills-row .sub-title h2{
	position: relative;
	color: #242223;
	font-size: 24px;
	font-family: 'DM Serif Text';
	display: inline-block;
	margin-bottom: 30px;
    font-style: italic;
}

.skills-row .sub-title h2::before{
	content: '';
	position: absolute;
	width: 50%;
	height: 1px;
	top: 125%;
	left: 0;
	background-color: #808080;
}

.skills-row .sub-title h2::after{
	content: '';
	position: absolute;
	width: 25%;
	height: 3px;
	top: calc(125% - 1px);
	left: 0;
	background-color: #303ef7;
}

.subject{
	font-size: 18px;
	font-weight: 400;
	color: #808080;
	padding-bottom: 15px;
	text-transform: uppercase;
    font-family: 'DM Serif Text';
    font-style: italic;
}

.progress-bar{
	position: relative;
	width: 100%;
	height: 5px;
	background-color: #808080;
	border-radius: 15px;
	margin-bottom: 20px;
}

.progress-bar::after{
	position: absolute;
	content: attr(value);
	top: -35px;
	right: 0;
	color: #808080;
	font-size: 18px;
}

.progress-line{
	position: absolute;
	width: 0%;
	height: 7px;
	background-color: #303ef7;
	border-radius: 15px;
	top: -1px;
	animation: animate 1.5s cubic-bezier(1, 0.2, 0.2, 1) forwards;
}

@keyframes animate{
	100%{
		width: 100%;
	}
}

.progress-line::after{
	content: '';
	position: absolute;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	top: 50%;
	left: 100%;
	transform: translate(-50%, -50%);
	background-color: #303ef7;
}

.services-container {
    width: 100%;
    margin-bottom: 100px;
    padding: 0 8%;
}

.services-container h1 {
    text-align: center;
    padding-top: 10%;
    margin-bottom: 60px;
    font-weight: 600;
    position: relative;
    font-family: 'DM Serif Text';
    font-style: italic;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.services {
    text-align: center;
    padding: 25px 10px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    background: transparent;
    transition: transform 0.5s, background 0.5s;
}

.services i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #303ef7;
}

.services h2 {
    font-family: poppins;
    font-weight: 600;
    margin-bottom: 8px;
    font-style: italic;
}

.services p {
    font-family: poppins;
    font-style: italic;
}

.services:hover {
    background-color: #303ef7;
    color: #fff;
    transform: scale(1.05);
}

.services:hover i {
    color: #fff;
}

.contact {
    position: relative;
    min-height: 100vh;
    padding: 50px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8) url(images/hero-bg1.jpg);
    background-blend-mode: darken;
    background-size: cover;
}

.contact .content {
    max-width: 800px;
    text-align: center;
}

.contact .content h2 {
    font-size: 42px;
    font-family: 'DM Serif Text';
    font-weight: 600;
    color: #fff;
    font-style: italic;
}

.contact .content p {
    font-family: poppins;
    padding-top: 30px;
    color: #fff;
    font-style: italic;
}

.contact-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.contact-container .contactInfo {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.contact-container .contactInfo .box {
    position: relative;
    padding: 20px 0;
    display: flex;
}

.contact-container .contactInfo .box .location {
    min-width: 60px;
    height: 60px;
    background: #424ef8;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 22px;
}

.contact-container .contactInfo .box .phone {
    min-width: 60px;
    height: 60px;
    background: #424ef8;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 22px;
}

.contact-container .contactInfo .box .mail {
    min-width: 60px;
    height: 60px;
    background: #424ef8;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 22px;
}

.contact-container .contactInfo .box .text {
    display: flex;
    margin-left: 20px;
    font-size: 16px;
    color: #fff;
    flex-direction: column;
    font-family: poppins;
    font-weight: 300;
}

.contact-container .contactInfo .box .text h3 {
    font-weight: 500;
    color: #a4aaff;
    font-style: italic;
}

.contact-container .contactInfo .box .text p {
    font-style: italic;
}

.contactForm {
    width: 40%;
    padding: 40px;
    background: #fff;
}

.contactForm h2 {
    font-size: 30px;
    font-weight: 500;
    font-family: 'DM Serif Text';
    font-style: italic;
}

.contactForm .inputBox {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.contactForm .inputBox input,
.contactForm .inputBox textarea {
    
    width: 100%;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    resize: none;
    font-family: poppins;
    font-style: italic;
}

.contactForm .inputBox span {
    position: absolute;
    left: 0;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    pointer-events: none;
    color: #666;
    font-family: poppins;
    font-style: italic;
}

.contactForm .inputBox input:focus ~ span,
.contactForm .inputBox input:valid ~ span,
.contactForm .inputBox textarea:focus ~ span,
.contactForm .inputBox textarea:valid ~ span
 {
    color: #303ef7;
    font-size: 12px;
    transform: translateY(-20px);
    transition: 0.4s all ease;
}

.contactForm .inputBox input[type='submit'] {
    width: 200px;
    background: #303ef7;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 18px;
    font-style: italic;
}




footer {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 80px;
    background-color: #ffffff;
}
  
.footer-container {
width: 100%;
max-width: 1320px;
margin: 0 auto;
padding: 0 12px;
}

.wrapper {
display: flex;
justify-content: space-between;
flex-direction: row;
flex-wrap: wrap;
}

.wrapper .footer-widget {
width: calc(20% - 30px);
margin: 0 15px 50px;
padding: 0 12px;
}

.wrapper .footer-widget:nth-child(1) {
width: calc(40% - 50px);
margin-right: 15px;
}

.wrapper .footer-widget .logo {
    color: #303ef7;
    text-decoration: none;
    font-style: italic;
}

.wrapper .footer-widget p {
    font-family: poppins;
    margin: 30px 0;
    font-size: 16px;
    line-height: 24px;
    font-style: italic;
}

.wrapper .footer-widget .socials {
display: flex;
align-items: center;
justify-content: flex-start;
}

.wrapper .footer-widget .socials li {
list-style: none;
}

.wrapper .footer-widget .socials li a {
width: 44px;
height: 44px;
margin-right: 10px;
color: #ffffff;
background-color: #303df7c8;
border-radius: 50%;
font-size: 20px;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease-out;
}

.wrapper .footer-widget .socials li a:hover {
background-color: #303ef7;
}

.wrapper .footer-widget h6 {
    margin: 10px 0 35px;
    font-size: 20px;
    font-weight: 600;
    font-family: 'DM Serif Text';
    color: #303ef7;
    font-style: italic;
}

.wrapper .footer-widget .links li {
list-style: none;
}

.wrapper .footer-widget .links li a {
    color: #585978;
    font-size: 16px;
    text-decoration: none;
    text-transform: capitalize;
    line-height: 32px;
    transition: all 0.3s ease-out;
    font-family: poppins;
    font-style: italic;
}

.wrapper .footer-widget .links li a:hover {
color: #303ef7;
}

.copyright-wrapper {
padding: 20px 0;
border-top: 1px solid rgba(88, 89, 120, 0.4);
}

.copyright-wrapper p {
color: rgba(88, 89, 120, 0.6);
font-size: 14px;
font-weight: 500;
text-align: center;
font-family: poppins;
font-style: italic;
}
  
.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 77, 77, 0.7);
    transition: all 0.4s;
    visibility: hidden;
    opacity: 0;
    z-index: 20;
}

.modal.visible {
    visibility: visible;
    opacity: 1;
}

.modalcontent {
    position: absolute;
    background: #fff;
    width: 500px;
    max-width: 90%;
    padding: 1em 2em;
    border-radius: 4px;
    z-index: 21;
}

.modalcontent h1 {
    font-family: 'DM Sans Serif';
    text-transform: capitalize;
    color: #303ef7;
    font-style: italic;
}

.modalcontent ul li {
    font-family: poppins;
    font-style: italic;
    padding-top: 20px;
}

.modalclose {
    position: absolute;
    top: 0;
    right: 15px;
    color: #303ef7;
    text-decoration: none;
    font-size: 36px;
}

.back-to-top .btn {
    position: fixed;
    right: 20px;
    
    top: 90%;
    background-color: #303ef7;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; 
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.back-to-top.show .btn {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
}


@media (max-width: 768px) {
    .footer-container {
        max-width: 720px;
    }

    .wrapper .footer-widget,
    .wrapper .footer-widget:nth-child(1) {
        width: 100%;
        margin: 0 10px 50px;
    }
}
  



@media(max-width: 991px) {
    .contact {
        padding: 50px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-container .contactInfo, .contactForm {
        width: 100%;
    }

    .footer-container {
        max-width: 960px;
    }

    .wrapper .footer-widget,
    .wrapper .footer-widget:nth-child(1) {
        width: calc(50% - 30px);
    }
}


@media(max-width: 800px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }

    .main-intro h1 {
        font-size: 76px;
        line-height: 80px;
    }

    .about-col-1 {
        flex-basis: 100%;
    }

    #about .container .row .about-col-1 img {
        width: 40%;
        margin: 0;
    }

    #about .container .row .about-col-1 {
        text-align: center;
    }

    .about-col-2 {
        flex-basis: 100%;
    }

    #about .container .row .about-col-2 h1 {
        text-align: center;
        margin-top: 50px;
    }

    #about .container .row .about-col-2 p {
        text-align: justify;
        margin: auto;
        margin-top: 30px;
        width: 90%;
    }

    .tabs {
        margin-left: 0px;
        margin-top: 100px;
    }
}

@media(max-width: 768px){
	.skills-section{
		padding: 30px 8%;
	}

    .footer-container {
        max-width: 720px;
    }

    .wrapper .footer-widget,
    .wrapper .footer-widget:nth-child(1) {
        width: 100%;
        margin: 0 10px 50px;
    }
}

@media(max-width: 676px) {
    .main-intro h1 {
        font-size: 62px;
        line-height: 68px;
    }

    .main-intro p {
        font-size: 16px;
        width: 95%;
    }
}

@media(max-width: 590px) {
    .main-intro h1 {
        font-size: 48px;
        line-height: 54px;
    }

    .main-intro p {
        font-size: 15px;
        width: 90%;
    }

    #about .container .row .about-col-2 h1 {
        margin-top: 30px;
    }

    #about .container .row .about-col-2 p {
        font-size: 15px;
        width: 85%;
    }

    .tabs {
        margin-left: 0px;
        margin-top: 50px;
    }

    .tabs .tab-name {
        font-size: 15px;
    }

    input:checked + label .tab-name {
        font-size: 16px;
        font-weight: 600;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        margin-left: 10px;
    }

    .tab-content {
        font-size: 15px;
    }

    .button .download-btn, .hire-btn {
        font-size: 15px;
        margin: 0 15px;
    }
}


@media(max-width: 568px){
	.skills-section .skills-row{
		flex-direction: column;
	}
	.skills-section .main-title h1{
		font-size: 36px;
	}
	.skills-section .skills-row{
		margin-top: 30px;
	}
	.skills-row .col:nth-child(2){
		margin-top: 20px;
	}
}


@media(max-width: 528px) {
    .tabs {
        margin-left: 30px;
    }
}

@media(max-width: 469px) {
    .main-intro h1 {
        font-size: 38px;
        line-height: 44px;
    }

    .main-intro p {
        font-size: 14px;
    }

    .tabs .tab-name {
        font-size: 14px;
    }

    .tabs {
        width: 400px;
        margin: 0;
        margin-top: 30px;
    }

    input:checked + label .tab-name {
        font-size: 15px;
        font-weight: 500;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        margin-left: 10px;
    }

    .tab-content {
        font-size: 14px;
    }

    #about .container .row .about-col-2 h1 {
        font-size: 34px;
        margin-top: 20px;
    }

    #about .container .row .about-col-2 p {
        font-size: 14px;
    }

    #about .container .row .about-col-1 img {
        width: 45%;
    }

    .tab-content {
        margin-right: 25px;
    }

    .button .download-btn, .hire-btn {
        font-size: 15px;
        margin: 0 10px;
    }
}

@media(max-width: 393px) {
    .logo {
        font-size: 26px;
    }
    .main-intro h1 {
        font-size: 32px;
        line-height: 38px;
    }

    .main-intro p {
        font-size: 13px;
    }

    #about .container .row .about-col-2 p {
        font-size: 13px;
    }

    .tab-content {
        font-size: 13px;
    }

    .tabs .tab-name {
        font-size: 13px;
    }

    input:checked + label .tab-name {
        font-size: 14px;
        font-weight: 500;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        margin-left: 10px;
    }
}

@media(max-width: 370px) {
    .sidebar {
        width: 100%;
    }

    #about .container .row .about-col-2 p {
        font-size: 12px;
    }

    .tab-content {
        font-size: 12px;
    }

    .tabs .tab-name {
        font-size: 12px;
    }

    input:checked + label .tab-name {
        font-size: 13px;
        font-weight: 500;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        margin-left: 7px;
    }

    .button .download-btn {
        display: block;
        margin-bottom: 35px;
    }

    .contactForm .inputBox input[type='submit'] {
        width: 150px;
        font-size: 16px;
    }
}