/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration:none;
}
html,body{
    font-family:roboto;
    scroll-behavior: smooth;
}

#name{
    font-size:30px;
    font-weight:600;
}
#hi{
    font-size:50px;
    font-weight:600;
}
/* Navbar */
#port-text{
    font-weight:1000;
    margin-right:60rem;
}
#navbar {
    position: sticky;
    top: 0;
    width: 100%;
        z-index:.75;
        background-color: rgb(65, 172, 211);
    color: white;
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    margin-bottom:2px;
}

#navbar a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

#navbar a:hover {
    color: #ddd;
}

.heroimg {
    height: 25rem;
    width: 20rem;
    /* background-color: blue; */
    background-image: url(https://raw.githubusercontent.com/DebashisDhali/Html-CSS-10-Projects/refs/heads/New/imagess/Surjo.jpg);
    background-size: cover;
    border-radius: 15rem;
    margin-left: 1.5rem;
    margin-top:-25px;

}
/* Welcome Section */

#welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    background-color: #2b3767;
    color: white;
    padding: 20px;
    gap:1rem;
}

#welcome-section h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

#greeting {
    padding:5px;
    border-radius: 7px;
    font-size: 2rem;
    font-weight: bold;
    color: #8b3570;
    background-color: white;
    margin: 20px 0;
    animation: fadeIn 1s ease-in-out;
}

.form-container {
    background: #ffffff;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
  }
  
  h2 {
    color: #333333;
    margin-bottom: 15px;
  }
  
  form {
    display: flex;
    flex-direction: column;
  }
  
  label {
    margin-top: 10px;
    font-weight: bold;
    color: white;
    text-align: left;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    resize: none;
  }
  
  input[type="text"]:focus,
  input[type="email"]:focus,
  textarea:focus {
    border-color: #4CAF50;
    outline: none;
  }
  
  button {
    width:5rem;
    margin-top: 15px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #45a049;
  }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



#welcome-section p {
    font-size: 1.25rem;
}

/* Projects Section */
#projects {
    padding: 50px 20px;
    background-color: #224153b6;
    text-align: center;
    margin-bottom:-25px;
}

#projects h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.project-tile {
    display: inline-block;
    width: 300px;
    margin: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.project-tile h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color:blue;
}

.project-tile p {
    padding: 10px 15px;
    color: #666;
}
.footer {
    height: 35rem;
    background-color: #2f344a;
    display: flex;
    justify-content: center;
    align-items: center;
    /* flex-direction: column;
    line-height: 6rem; */
    margin-top: 2rem;
    gap:2.5rem;
}

.footer h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    font-family: "Roboto", sans-serif;
}

.footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    gap: 3rem;
    list-style: none;
    font-family: "Roboto", sans-serif;
}

a {
    text-decoration: none;
    color: white;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    #navbar {
        font-size: 0.9rem;
    }

    #welcome-section h1 {
        font-size: 2.5rem;
    }

    #projects h2 {
        font-size: 2rem;
    }

    .project-tile {
        width: 90%;
    }
}

@media(max-width:1300px)
{
    #port-text{
        margin-right:50rem;
    }
}
@media(max-width:1200px)
{
    #port-text{
        margin-right:45rem;
    }
}
@media(max-width:1100px)
{
    #port-text{
        margin-right:40rem;
    }
}
@media(max-width:1000px)
{
    #port-text{
        margin-right:35rem;
    }
}
@media(max-width:900px)
{
    #port-text{
        margin-right:30rem;
    }
}
@media(max-width:800px)
{
    #port-text{
        margin-right:25rem;
    }
}
@media(max-width:700px)
{
    #port-text{
        margin-right:20rem;
    }
}