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

body {
  font-family: "Inter", sans-serif;
}

/* Navbar Styles */
nav{
    display: flex;
    justify-content: space-around;
    box-shadow: 4px 4px 10px gray;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 30px;
    font-weight: bold;
    gap: 10px;
    cursor: pointer;
    padding: 0 12px;
    width: fit-content;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.logo:hover {
    color: darkblue;
    background-color: lightgray;
}

.nav-links {
    display: flex;
    font-size: 30px;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links > li > a {
    text-decoration: none;
    color: black;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.nav-links > li > a:hover {
    background-color: lightgray;
    border-radius: 8px;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  color: grey;
  cursor: pointer;
}

/* Hero Section Styles */

section.hero { 
  margin: 30px 1.5em;
  height: 80vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.hero-info{
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-info > h1 {
  font-size: 60px;
}

.hero-info > p {
  font-size: large;
  line-height: 2em;
}

.hero-info > a {
  background-color:#764ba2;
  text-decoration: none;
  border: 2px solid gainsboro;
  border-radius: 45px;
  color: white;
  padding: 12px;
  cursor: pointer;
  font-size: 20px;
  width: 200px;
  text-align: center;
}

.hero-img > img {
  width: 500px;
  border-radius: 50%;
}


/* Skills Section Styles */
.skills {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.skills h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background: linear-gradient(135deg, hsl(258, 76%, 66%) 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

.category {
    font-weight: 600;
    color: #667eea;
    font-size: 1.05em;
}

.proficiency {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proficiency-text {
    min-width: 80px;
    font-weight: 500;
    color: #666;
}

@media (max-width: 768px) {
    .skills {
        padding: 20px;
    }
    
    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
}
/* Hobbies Section Styles */

section.hobbies {
  margin: 30px 1.5em;
}

.hobbies > h1 {
  text-align: center;
  font-size: 50px;
  text-decoration: underline;
  padding: 1.5em;
}

.hobbies-holder {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2em;
  justify-content: center;
}

.hobby-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2em;
  box-shadow: 2px 2px 30px gray;
  width: 300px;
  text-align: center;
}

.hobby-card > img {
  width: 100px;
  align-self: center;
}

.hobby-card > p {
  font-size: large;
  line-height: 2em;
}

/* Favorite Music Styles */
section.media {
  margin: 30px 1.5em;
}
.media > h1 {
  text-align: center;
  font-size: 50px;
  text-decoration: underline;
  padding: 1.5em;
}
.media-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2em;
  box-shadow: 2px 2px 30px gray;
  width: 100%;
  text-align: center;
}
.media-card > h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.media-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4em;
  justify-content: center;
}

.media-item iframe{
  width: 560px;
  height: 315px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.media-item iframe:hover {
  transform: scale(1.05);
}

.media-item > audio {
  width: 300px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.media-item > audio:hover {
  background-color: #0056b3;
}

.media-item p {
  margin-top: 8px;
  font-size: 20px;
  font-weight: bold;
  font-family: "Inter" sans-serif;
}

/* Contact Section Styles */

section.contacts {
  margin: 2em 1.5em;
  text-align: center;
}

.contacts > h1 {
  font-size: 50px;
  text-decoration: underline;
  padding-top: 1.5em;
  padding-bottom: 0.5em;
}

.contacts > p {
  font-size: large;
  line-height: 2em;
  margin-bottom: 20px;
  white-space:pre-line;
}

.contact-buttons {
  margin-top: 2em;
  margin-bottom: 4em;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.contact-btn img {
  width: 20px;
  height: 20px;
}

.contact-btn:hover {
  background: #808080;
}

/* Footer Styles */

footer {
  text-align: center;
  padding: 1em;
  background-color: rgb(146, 127, 255);
  color: white;
  margin-top: 30px;
}

/* Scroll to Top Button */

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007BFF; /* Button background */
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  display: none; /* Hidden by default */
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}


/* Responsive Styles */

@media (max-width: 900px) {
  .hero-img{
    display: none;
  }

  .hero-info { 
    width: 100%;
    gap: 50px;
  }
}


@media (max-width: 800px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right:20px;
    top: 35px;
  }

  nav {
    flex-direction: column; /* Stack logo and links */
    padding: 15px;
  }

  .nav-links {
    display: none;
  }

  .nav-links > li > a {
    font-size: 20px; /* Slightly smaller text */
    padding: 10px; /* Reduced padding */
    display: block; /* Make links block-level for full-width click */
    text-align: center; /* Center text */
    border-bottom: 1px solid lightgray; /* Add a separator */
    margin: 0 10px; /* Add some horizontal margin */
  }

  .nav-links.active{
    display: block;
    padding: 30px 10px;
    font-size: 24px; /* Slightly smaller text */
  }

  .nav-links.active > li{
    padding-top:30px;
  }

  .contacts>p{
    white-space: normal;
  }

  .contact-buttons{
    flex-direction: column;
    width: 50%;
  }
  .media-items {
    flex-direction: column;
    gap: 4em;
    justify-content: center;
  }
  .media-item iframe{
    width: 90%;
    height: 315px;
  }


}
