@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&family=Orbitron:wght@400..900&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  float: right;
}

/* Navbar */
nav {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 2rem;
}

nav .logo {
  font-family: "Fredericka the Great", serif;
  font-size: 1.8rem;
  font-weight: bold;
}

nav div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav ul li button {
  background-color: #3498db;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

/* Home Section */
.home {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2rem;
  background-color: #ecf0f1;
}

.home .me {
  flex: 1 1 50%;
  font-size: 1.2rem;
  line-height: 1.8;
  padding: 2% 1%;
  float: left;
  transform: translateY(30%);
}

.home .me b {
  font-family: 'Orbitron',sans-serif;
  font-size: 2rem;
  color: #2980b9;
}

.home .my-img {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1% 3%;
}

.my-img img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Education Section */
.Education {
  padding: 2rem;
  text-align: center;
  background-color: #ffffff;
}

.Education .college{
    font-weight: bold;
}

/* Projects Section */
.About {
  padding: 2rem;
  background-color: #ecf0f1;
}

.Project {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}


.card {
  cursor: pointer;
  width: 280px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 1rem;
  position: relative;
}


.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer */
footer {
  background-color: #545454;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: auto;
  gap: 2%;
  justify-content: space-between;
}


.footer-container h2 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.social-links {
  width: 70%;
  float: right;
}

.social-links a {
  color: #fff;
  margin-top: 50px;
  font-size: 1.5rem;
  transition: color 0.3s;
  margin-right: 5%; 
}

.social-links a:hover {
  color: #00aced;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.875rem;
  color: #aaa;
}


@media screen and (max-width: 700px) {

    nav div {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    nav ul {
        width: 100%;
        padding: 0;
        text-align: center;
        gap:auto;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .home {
        flex-direction: column;
        padding: 5px;
        top: 5px;
        height:100%;
    }

    .me {
        font-size: 1.1rem;
        float: none;
        transform: translateY(-10%);
    }

    .my-img img {
        margin-top: 15%;
        width: 90%;
        float: none;
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section {
        width: 100%;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Extra small devices (less than 480px) */
@media (max-width: 480px) {
    nav ul {
        display:block;
    }

    .home {
        display:block;
        /* flex-direction: column;
        flex-wrap:wrap; */
        padding: 5px;
        top: 5px;
        height:125vh;
        position: relative;
    }

    .me{
      position: relative;
      top: 0;
      float:none;
      font-size: 1rem;
      padding-top:3px;
      margin-top:2px;
    }

    .my-img {
      position: relative;
      bottom: 0;
      width: 70%;
      top: 15%;
      left: 12%;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .card img {
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 1rem;
    }
}
