
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

body {
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    color: white;
}

section {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.03);
}

footer ul li a,
.footer p,
.grid-card p {
    color: white;
}

.grid-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.grid-card:hover{
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    color: white;
}

.section-title {
    background: linear-gradient(to right, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px #00f2fe;
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: rgba(0,0, 0,0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

.logo{
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3 ease-in-out;
}

.logo:hover{
    transform: scale(1.1);
}

.nav-links{
    display: flex;
    gap: 2rem;
}

li a{
    position: relative;
    color: white;
    font-weight: 300;
}
li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3 ease-in-out;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
}

li a:hover::before{
    width: 100%;
}


.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    background: none;     
    border-radius: 0;      
    padding: 0;           
  }
  


.btn {
    background: linear-gradient(to right, #00c6ff, #ff00cc);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem;
    text-align: center;
    justify-content: center;
    text-wrap: nowrap;
}

.btn:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #ff00cc, #00c6ff);
    color: white;
}

section{
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

.about{
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.about img{
    width: 30vw;
    border-radius: 60%; 
}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box h1{
    font-size: 4rem;
    font-weight: 600;
}

.info-box span{
    background: linear-gradient(to right, rgb(255,0,255), rgb(0,157,255));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.socials{
    display: flex;
    gap: 2rem;
}

.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.socials i:hover{
    transform: scale(1.1);
}

.experience-info{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

#projects .experience-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
}


.grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}

.grid-card {
    border: 2px solid black;
    border-radius: 3rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;     /* This centers content horizontally */
    justify-content: center;
    gap: 1rem;               /* Adds spacing between elements */
    cursor: pointer;
    transition: 0.2s ease-in-out;
    text-align: center;      /* Ensures text is centered */
  }
  


.grid-card i{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.grid-card span{
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(to right, rgb(0,157,255),  rgb(255,0,255));
    background-clip: text;
    color: transparent;
}

::-webkit-scrollbar{
    width: 20px;
}

::-webkit-scrollbar-track{
    background-color: rgb(219,219,219);
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, rgb(0,157,255),  rgb(255,0,255));
}

.grid-card img {
    width: 70%;  
    height: auto;
}

.btn:hover{
    border: 2px solid white;
    background-color: white;
    color: black;
}

footer {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    background: linear-gradient(to right, #141e30, #243b55);
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer ul {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

footer ul li a {
    color: #f1f1f1;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #00f2fe;
    text-decoration: underline;
}

.copyright {
    font-weight: 400;
    font-size: 1rem;
    color: #fff;
    margin-top: 1rem;
}

.subheading {
        font-size: 2rem;
        font-weight: 600;
        margin-top: 3rem;
        margin-bottom: 1rem;
        text-align: center;
        opacity: 0.85;
}
    
    section#aboutme {
        min-height: auto;
        padding: 8rem 12%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 2rem;
        margin-bottom: 4rem;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    }
    
    #aboutme .section-title {
        text-align: center;
        font-size: 4rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: white;
    }
    
    #aboutme .content {
        max-width: 900px;
        margin: 0 auto;
        font-size: 1.25rem;
        line-height: 2.2rem;
        color: #f1f1f1;
        text-align: left;
        white-space: pre-line;
    }

    .skills {
        padding: 4rem 10%;
        text-align: center;
      }
      
      .skills .section-title {
        font-size: 3rem;
        font-weight: bold;
        margin-bottom: 2rem;
      }
      
      .skills-category {
        text-align: left;
        margin-bottom: 3rem;
      }
      
      .skills-category h3 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 1rem;
        border-bottom: 3px solid #fff;
        display: inline-block;
        padding-bottom: 0.2rem;
      }

      .toast {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 10px 20px;
        border-radius: 8px;
        opacity: 0.9;
        z-index: 1000;
    }
    
      .video-wrapper {
        position: fixed;
        bottom: 5rem;
        right: 5rem;
        z-index: 100;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
      }
      
      
    /* Makes portfolio responsive */
    .menu-toggle {
        display: none;
        font-size: 2rem;
        cursor: pointer;
        color: white;
        z-index: 1001;
      }      


      /* Tablets (<= 1024px) */
@media (max-width: 1024px) {
    .about .about-container {
        flex-direction: column;
        gap: 4rem;
    }

    .about img {
        width: 50vw;
    }

    .experience-info,
    #projects .experience-info,
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 3rem;
    }

    .info-box h1 {
        font-size: 3rem;
    }

    .info-box span {
        font-size: 1.5rem;
    }
}

/* Mobile devices (<= 768px) */
@media (max-width: 768px) {
    header {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      gap: 0;
      padding: 1rem 2rem;
      border-radius: 1.5rem;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      position: absolute;
      top: 5.5rem;
      left: 50%;
      transform: translateX(-50%);
      flex-direction: column;
      align-items: center;
      background-color: rgba(0, 0, 0, 0.95);
      border-radius: 1.5rem;
      padding: 2rem;
      display: none;
      z-index: 1000;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .nav-links li {
        margin: 0;          /* Remove any extra spacing */
        padding: 0;         /* Remove padding */
      }
      
      .nav-links li a {
        font-size: 1.1rem;
        padding: 0.4rem 0;
        line-height: 1.2;
        font-weight: 500;
        color: white;
        transition: color 0.3s ease;
      }
      
      .nav-links li a:hover {
        color: #00f2fe;
      }
      
  
    .btn {
      padding: 0.6rem 1.2rem;
      font-size: 1rem;
    }
  
    /* Keep your other styles here unchanged */
  }
  

/* Extra small devices (<= 480px) */
@media (max-width: 480px) {
    .about img {
        width: 80vw;
    }

    .section-title,
    #aboutme .section-title {
        font-size: 2rem;
    }

    .info-box h1 {
        font-size: 2rem;
    }

    .info-box span {
        font-size: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .socials {
        flex-direction: column;
        gap: 1rem;
    }

    .video-wrapper {
        right: 1rem;
        bottom: 1rem;
        width: 90%;
    }
}



