/* background-image: url(https://i.ibb.co/hHtDx0Z/light-Back.webp); */
/*
Color for light theme :
1. #F9E0D9
2. #E6DBD0
3. #7D6167
4. #754F5B
5. #5D4954
--primCol: #f9004d;
    --secCol : white;
    dark back col : #191919
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League Spartan', sans-serif;
  }
  
  :root {
    --primCol: #FFC857;
    --secCol: #323031;
    --backCol: #F4F4F8;
  }
  
  .dark-theme {
    --secCol: #F4F4F8;
    --backCol: #191919;
  }
  
  body {
    display: block;
    overflow-x: hidden;
  }
  
  .hero {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
  }
  
  a {
    text-decoration: none;
  }
  
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 8% 0 8%;

    position: fixed; /* Make the navbar fixed to the top */
    top: 0; /* Position it at the top of the viewport */
    left: 0; /* Position it at the left of the viewport */
    width: 100%; /* Make it span the entire width of the viewport */
    z-index: 10;

    background-color: transparent; /* Initial transparent background */
    transition: background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
  }
  
  .logo {
    color: var(--secCol);
    font-size: 3rem;
    letter-spacing: 1px;
    cursor: pointer;
  }
  
  span {
    color: var(--primCol);
  }
  
  nav ul li {
    list-style-type: none;
    display: inline-block;
    padding: 10px 25px;
  }
  
  nav ul li a {
    color: var(--secCol);
    text-decoration: none;
    font-weight: 600;
    text-transform: capitalize;
  }
  
  nav ul li a:hover {
    color: var(--primCol);
    transition: .5s;
  }
  
  .btn {
    background-color: var(--primCol);
    color: var(--secCol);
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
    transition: transform .5s;
  }
  
  .btn:hover {
    transform: scale(1.3);
    background-color: var(--secCol);
    color: var(--primCol);
  }
  
  .content {
    width: 100%;
    display: flex;
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
  }
  .content > div:first-child{
    padding: 20px 20px;
    width: 60%;
  }
  .content > div:last-child{
    width: 40%;
    float: right;
  }
  .name-title {
    display: flex; /* Make elements display side-by-side */
    align-items: center; /* Vertically align content within */
  }
  
  .name-title h1,
  .name-title h4 {
    /* Adjust margins or padding if needed for spacing */
    margin-right: 20px; /* Example spacing between h1 and h4 */
  }
  
  
  h1, h2, h3, h4 {
    color: var(--secCol);
    margin: 20px 0; /* Combined margins */
  }
  
  h3 span {
    padding: 5px;
    position: relative;
    color: var(--primCol);
    font-size: 40px;
    border-right: 2px solid var(--primCol);
  }
  
  h4 {
    letter-spacing: 2px;
    font-size: 1.5rem;
  }
  
  .aboutMe .skill .projects{
    width: 100%;
    padding: 100px 0;
    background-color: var(--backCol);
  }
  
  .aboutMe .main img {
    width: 40%;
    transform: rotateY(180deg);
  }
  
  .aboutMeText {
    width: 500px;
  }
  
  .main {
    width: 1130px;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  
  .aboutMeText h2,
  .aboutMeText h5,
  .aboutMeText p {
    color: var(--secCol);
    letter-spacing: 0.5px;
    line-height: 28px; /* Removed redundant font-size */
  }
  
  .aboutMeText p {
    margin-bottom: 40px;
  }
button{
    background-color: var(--primCol);
    color: var(--secCol);
    text-decoration: none;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 30px;
    transition: .3s;
}
button:hover{
    background-color: transparent;
    border: 2px solid var(--primCol);
    cursor: pointer;
}

.skill-logos, 
.project-links{
    width: 400px; 
    height: 400px;
}
.skill-logos {
    display: flex; /* Make skill-logos a flex container */
    justify-content: center; /* Center the matrix horizontally */
    align-items: center; /* Center the matrix vertically (optional) */
  }
  .skill-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Set 3 columns */
    grid-gap: 10px; /* Add spacing between boxes */
    width: fit-content; /* Adjust width as needed */
  }
  .skill-box {
    border: 1px solid blue;
    text-align: center;
    font-size: 2em; /* Adjust icon size */
    color: #333; /* Set a default color for icons */
  }
/* 
Responsiveness for mobile view */

/* Target screens less than 1024px (tablets and laptops) */
@media only screen and (max-width: 1024px) {
    .main {
      /* Adjust max-width for a better layout on wider screens */
      max-width: 80%;
    }
  
    .content {
      flex-direction: column-reverse; /* Stack elements on top of each other (reverse order for name first) */
    }
  
    .content > div:first-child,
    .content > div:last-child {
      width: 100%; /* Make sections full width on medium screens */
      padding: 30px 20px; /* Adjust padding for better spacing */
    }
  
    .aboutMeText {
      /* Increase font size for better readability */
      font-size: 1.1rem;
    }
  }
  
  /* Target screens less than 768px wide (tablets and mobiles) */
  @media only screen and (max-width: 768px) {
    .hero {
      /* Adjust background behavior for mobile (optional) */
      /* You can add styles here to change the hero section 
         background image or size for mobile */
    }
  
    .nav {
        /* Adjust padding for smaller screens */
        padding: 15px 20px;
      }
    
      .logo {
        font-size: 2.2rem; /* Adjust font size for better scaling */
      }
    
      nav ul {
        /* Hide navigation links initially and show a menu button */
        display: none;
      }
    
      /* Create a hamburger menu button */
      .nav .menu-btn {
        display: block;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 20px;
        top: 15px;
        cursor: pointer;
        z-index: 11; /* Ensure button appears above other elements */
      }
    
      /* Style the menu button lines (adjust as needed) */
      .nav .menu-btn:before,
      .nav .menu-btn:after {
        content: '';
        display: block;
        width: 2px;
        height: 20px;
        background-color: var(--secCol);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }
    
      .nav .menu-btn:before {
        left: 10px;
      }
    
      .nav .menu-btn:after {
        left: 0;
      }
    
      /* Toggle navigation links on menu button click */
      .nav.active ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%; /* Position the menu below the navbar */
        left: 0;
        width: 100%;
        background-color: var(--backCol);
        padding: 20px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
        transition: all 0.3s ease-in-out;
      }
    
      .nav.active .menu-btn:before {
        /* Rotate first line on menu open */
        transform: translateY(-50%) rotate(-45deg);
      }
    
      .nav.active .menu-btn:after {
        /* Rotate second line on menu open */
        transform: translateY(-50%) rotate(45deg);
      }
    
      nav ul li {
        padding: 10px 0; /* Adjust padding for vertical menu */
      }
  
    .logo {
      font-size: 2.5rem; /* Adjust font size for better scaling */
    }
  
    nav ul li {
      padding: 5px 10px; /* Reduce padding for smaller navigation */
    }
  
    .content {
      align-items: center; /* Center elements horizontally on mobile */
    }
  
    .name-title {
      text-align: center; /* Center title elements vertically */
    }
  
    .aboutMe .skill,
    .aboutMe .projects {
      padding: 30px 0; /* Adjust padding for sections on mobile */
    }
  
    .skill-logos,
    .project-links {
      width: 250px; /* Adjust width for smaller screens */
      height: 250px; /* Adjust height as needed */
    }
  
    .skill-matrix {
      grid-template-columns: repeat(2, 1fr); /* Adjust to 2 columns on mobile */
    }
  }
  
  