body {
  background-color: #f0f0f0;
  background-image: radial-gradient(#b9b9b9 1px, transparent 1px);
  background-size: 20px 20px;
}
html{
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
span{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

p{
    color: rgb(121, 121, 121);
}
hr{
    padding: 3px 0;
    margin: 0 350px;
    background-color: rgb(164, 207, 248);
    border-radius: 10px;
    border: 0px solid;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
header{
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.7rem;
    padding-bottom: 1.7rem;
    padding-right:0;
    padding-left: 0;
    width: 115%;
    
}
.logo{
    margin-right: auto;
    font-weight: 700;
    margin-right: auto; /* Pushes nav links to the right */
    position: relative;
    left: -17rem;
    font-size: 180%;
}
.nav-links{
    display: flex;
    gap: 4rem;
}
.nav-links a{
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    color: black;
    font-size: 110%;
}
.nav-links a:hover{
    color: rgb(28, 40, 212)
}
.hamburger{
    display: none;
    cursor: pointer;
    right: 50px;
    position: absolute;
}
/*hero section*/
#hero{
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content{
    align-items: center;
    gap: 4rem;
}

.hero-text{
    flex: 1;
}
.hero-text h1{
    font-size:4rem;
    margin-bottom: 6rem;
    line-height: 1.2;
}
.hero-text p{
    font-family: 1rem;
    margin-bottom: 9rem;
    width: 650px;
    font-size: 1.5rem;
}
.hero-text a{
    margin: 10px 20px;
    text-decoration: none;
    background-color: #003bb9;
    color:#ffffff;
    padding: 23px 60px;
    border-radius: 5px;
    font-size: 1.3rem;
}
/*about me section*/
#about-me{
    height: 120vh;
    display: flex;
    align-items: center;
    background-color: #f7f5f5;
}
.section-title{
    margin-bottom: 34rem;
}
.section-title h2{
    font-size: 2.3rem;
    font-weight: 660;
    margin-bottom: 1rem;
}
.section-title p{
    margin-top: 1rem;
}
.section-title hr{
    padding: 3px 0;
    margin: 0 350px;
    background-color: rgb(164, 207, 248);
    border-radius: 10px;
    border: 0px solid;
    margin-bottom: 1rem;

}
.section-info{
    left: 320px;
    position: absolute;
    top: 150%;
    line-height: 1.9;
}
.section-info h3{
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}
.section-info p{
    width: 520px;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
    margin-bottom: 1rem;
    margin-right: -35rem;
    font-size: 1.1rem;
}
.section-info a{
    text-decoration: none;
    background-color: #003bb9;
    color:#ffffff;
    padding: 23px 60px;
    border-radius: 5px;
    font-size: 1.3rem;
}
.skill-title{
    top: 151%;
    right:750px;
    position: absolute;
    font-size: 1.2rem;
}

.sections-skills{
    right: 180px;
    position: absolute;
    top: 160%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}
.skill-item{
    background-color: #e4e2e2;
    padding: 8px 16px;
    border-radius: 10px;
    text-align: center;
    color: rgb(92, 92, 92);
}

/*project section*/
#projects{
    height: 150vh;
    background-color: #c7c7c7;
    display: flex;
    align-items: center;
}
.section-title-project {
    margin-bottom: 9rem;
}
.section-title-project hr{
    margin: 10px 370px;
}
        
.section-title-project h2 {
    font-size: 3rem;
}
        
.section-title-project p {
    color: rgb(95, 95, 95);
    max-width: 600px;
    margin: 0 auto;
}
        
.project-grids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    width: 800px;
}
        
.project-cards {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    
}
.project-cards:hover {
    transform: translateY(-10px);
}
.project-img {
    height: 200px;
    overflow: hidden;
}
        
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.project-cards:hover .project-img img{
    transform: scale(1.1);
}
.project-info {
    padding: 1.5rem;
}
        
.project-info h3 {
    margin-bottom: 0.5rem;
}
        
.project-info p {
    color: rgb(95, 95, 95);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.project-info a{
    text-decoration: none;
    color: #808080;
}
/*contact section*/
#contact-me{
    height: 120vh;
    display: flex;
    align-items: center;
    background-color: #f7f5f5;
}
.section-title-contact{
margin-bottom: 48rem;
}
.section-title-contact h2{
    margin-bottom: 1rem;
    font-size: 3rem;
}
.section-title-contact p{
    margin-top: 2rem;
    font-size: 1.1rem;
}
.section-title-contact hr{
    padding: 3px 0;
    margin: 0 310px;
    background-color: rgb(164, 207, 248);
    border-radius: 10px;
    border: 0px solid;

}
.contact-info{
    left: 450px;
    position: absolute;
    top: 415%;
    line-height: 1.9;
}
.contact-info h3{
    top: -90px;
    right: 40px;
    position: absolute;
    font-size: 1.5rem;
}
.contact-info span{
    font-size: 1.1rem;
    color: rgb(121, 121, 121);
}
.contact-info i{
    border-radius: 10px 10px;
    background-color: lightblue;
    color: #003bb9;
    padding: 8px 8px;
}

.contact-item{
    margin-top: 2rem;
    
}

.contact-form{
    flex: 1;
    right: 300px;
    position: absolute;
    top: 405%;
    line-height: 1.9;
    background-color: rgb(255, 255, 255);
    box-shadow: #e6e6e6;
    width: 400px;
    padding-right: 530px;
    padding-left: 70px;
    padding-top: 25px;
    padding-bottom:20px;
    color:rgb(121, 121, 121);
}

.form-group textarea, .form-group input{
    display: block;
    margin-bottom: 3rem;
    padding: 19px 150px;
    border-radius: 4px;
    padding-right: auto;
    border: 1px solid rgb(216, 216, 216);
}
.form-group textarea{
    resize: vertical;
    min-height: 120px;
    padding-right: 117px;
}

.btn {
  width: 20%;
  position: absolute;
  background-color: #275aca;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 9px 0;
  top: 92%;
}

.btn:hover {
  background-color: #003bb9; /* Slightly darker blue */
}

/* Placeholder styling */
::placeholder {
  color: #94a3b8; /* Light gray */
  opacity: 1;
}

/*footer*/
footer{
    height: 20vh;
    background-color: #777777;
}
footer p{
color: #333;
display: flex;
align-items: center;
position: absolute;
top: 500%;
right: 800px;
}

/*media bar*/
.media-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    padding: 35px 18px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    }

.media-bar a {
    color: #333;
    font-size: 29px;
    transition: all 0.3s ease;
    }

.media-bar a:hover {
    transform: translateX(5px);
    color: #2563eb;
    }

/* Vertical line decoration */
.media-bar::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 1px;
    background: #ddd;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
     .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .logo {
    left: 0;
    margin-right: 0;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p {
    width: 100%;
    margin: 0 auto 5rem;
    font-size: 1rem;
  }
  
  #about-me {
    height: auto;
    padding: 4rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-info {
    position: static;
    margin: 2rem auto;
    text-align: center;
  }
  
  .section-info p {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
  
  .skill-title {
    position: static;
    text-align: center;
    margin: 2rem 0;
  }
  
  .sections-skills {
    position: static;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  #projects {
    height: auto;
    padding: 4rem 0;
  }
  
  .project-grids {
    width: 100%;
    padding: 0 1rem;
  }
  
  #contact-me {
    height: auto;
    padding: 4rem 0;
  }
  
  .section-title-contact {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    position: static;
    text-align: center;
    margin: 2rem auto;
  }
  
  .contact-info h3 {
    position: static;
  }
  
  .contact-form {
    position: static;
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
  }
  
  .form-group textarea, 
  .form-group input {
    padding: 15px;
    width: 100%;
  }
  
  footer {
    height: auto;
    padding: 2rem 0;
  }
  
  footer p {
    position: static;
    text-align: center;
    justify-content: center;
  }
  
    .media-bar {
        flex-direction: row;
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        border-radius: 10px 10px 0 0;
        justify-content: center;
        padding: 15px;
        }
            
    .media-bar::after {
        display: none;
        }
            
    .media-bar a:hover {
        transform: translateY(-5px);
        }
    }

    
@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text a {
    padding: 15px 30px;
    font-size: 1rem;
  }
  
  .section-title h2,
  .section-title-project h2,
  .section-title-contact h2 {
    font-size: 1.8rem;
  }
  
  .section-title hr,
  .section-title-project hr,
  .section-title-contact hr {
    margin: 0 2rem;
  }
  
  .section-info a,
  .section-info-contact a {
    padding: 15px 30px;
    font-size: 1rem;
  }
  
  .project-grids {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
  
  .logo {
    left: -10rem;
  }
  
  .hero-text p {
    width: 500px;
  }
  
  .section-info {
    left: 200px;
  }
  
  .sections-skills {
    right: 100px;
  }
  
  .project-grids {
    width: 700px;
  }
  
  .contact-info {
    left: 300px;
  }
  
  .contact-form {
    right: 200px;
  }
  
  footer p {
    right: 600px;
  }
}
@media only screen and (max-width: 430px) {
  /* General adjustments */
  body {
    background-size: 15px 15px;
  }
  
  .container {
    padding: 0 1rem;
    width: 100%;
  }
  
  hr {
    margin: 0 1rem !important;
  }
  
  /* Header/Navigation */
  header {
    padding: 0 1rem;
  }
  
  nav {
    width: 100%;
    padding: 0;
    height: 75px;
  }
  
  .logo {
    left: 20px !important;
    font-size: 1.5rem;
  }
  
  .nav-links {
    display: none; /* Hide desktop nav */
    flex-direction: column;
    position: absolute;
    top: 80px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
    gap: 1rem
  }
  .nav-links.active{
    display: flex;
  }
  
  .hamburger {
    display: block;
    right: 20px;
    position: absolute;
    top: 25px;
    font-size: 1.5rem;
  }
  
  /* Hero Section */
  #hero {
    height: auto;
    padding: 6rem 0 3rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .hero-text p {
    width: 100%;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
  }
  
  .hero-text a {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* About Me Section */
  #about-me {
    height: auto;
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-info,
  .skill-title,
  .sections-skills {
    position: static;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  
  .section-info p {
    width: 100%;
    text-align: center;
    margin-right: 0;
    padding: 0 1rem;
  }
  
  .section-info a {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-block;
    margin-top: 1rem;
  }
  
  .sections-skills {
    padding: 0 1rem;
    margin-top: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Projects Section */
  #projects {
    height: auto;
    padding: 3rem 0;
  }
  
  .section-title-project {
    margin-bottom: 2rem;
  }
  
  .project-grids {
    width: 100%;
    padding: 0 1rem;
    grid-template-columns: 1fr;
  }
  
  /* Contact Section */
  #contact-me {
    height: auto;
    padding: 3rem 0;
  }
  
  .section-title-contact {
    margin-bottom: 2rem;
  }
  
  .contact-info,
  .contact-form {
    position: static;
    width: 100%;
    padding: 0 1rem;
    margin: 2rem auto;
  }
  
  .contact-form {
    padding: 1.5rem !important;
  }
  
  .form-group textarea,
  .form-group input {
    padding: 1rem !important;
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
  .btn{
    position: relative;
  }
  
  /* Footer */
  footer {
    height: auto;
    padding: 2rem 0;
  }
  
  footer p {
    position: static;
    text-align: center;
    justify-content: center;
  }
  
  /* Media Bar */
  .media-bar {
    flex-direction: row;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    padding: 1rem;
    justify-content: space-around;
  }
  
  .media-bar::after {
    display: none;
  }
  
  .media-bar a {
    font-size: 1.5rem;
  }
  
  .media-bar a:hover {
    transform: translateY(-3px);
  }
}
