
/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', Arial, sans-serif;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

html, body {
    margin: 0;
    scroll-behavior: smooth;
    font-family: 'Poppins', Arial, sans-serif;
    box-sizing: border-box;
    background-color: #121212;
    color: #E0E0E0;
    line-height: 1.6;
    max-width: 100vw; /* avoid accidental overflow from child elements */
    overflow-x: hidden; /* prevent horizontal scroll on small devices */
}

/* Make media elements responsive */
img, picture, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent sections from exceeding viewport and ensure content wraps */
section, .intro, .about, .projects, .certificates-container, .skill-bar-list, .form {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Navbar*/
.hamburger {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #E0E0E0;
    transition: all 0.3s ease-in-out;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1E1E1E;
    padding-block: 1rem;
    padding-inline: 2rem;
    flex-wrap: wrap;
}
/* optional container to keep content centered */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #00F5D4;
}
.menu{
    display:flex;
    align-items:center;
}
.menu a {
    color: #E0E0E0;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: 0.3s;
}
.menu a:hover {
    color: #00F5D4;
}

/*Home Section */
.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    gap: 2rem;
}
.intro-text {
    max-width: 500px;
}
/* Download Resume button styles */

.btn {
    padding: 0.4rem;
    border-radius: 20px;
    border: none;
    background-color: #1E1E1E;
  color: #00F5D4;
    font-weight: 500;
    cursor: pointer;
    font-size:17px;
    transition: 0.3s;
}
.download-btn {
    text-decoration: none;
     padding: 0.4rem;
    border-radius: 20px;
    border: none;
}
.download-btn:hover {
    background-color: #00F5D4;
    color: #121212;
    text-decoration: none;
}
.intro-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.intro-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00F5D4;
}
.intro-text p {
    color: #ccc;
    margin-bottom: 1.5rem;
}
.icons a {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #E0E0E0;
    transition: 0.3s;
}
.icons a:hover {
    color: #00F5D4;
}


.intro-circle {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}
.intro-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.typed-cursor{
    color:#00F5D4;
    animation:blink 0.7s infinite;
    font-size:1.5rem;
}

/* About Section*/
.bbb {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}
/* spacing for heading pairs inside .bbb */
.bbb .ccc {
    margin-right: 0.5rem;
}
.about {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
}
.about-photo {
    border-radius: 15px;
    width: 300px;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-text {
    max-width: 600px;
}
.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.about-text p {
    color: #bbb;
    margin-bottom: 1rem;
}
.personal-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.personal-info p {
    margin: 0.3rem 0;
    font-weight: 500;
}
.btn-2 {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
    background-color: #1E1E1E;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-2 a {
    color: #2039aa; /* inherit from the button for consistent color */
    text-decoration: none;
    display: inline-block;
}
.btn-2:hover {
    background-color: #00c9a8; /* slightly darker teal on hover */
    transform: translateY(-2px);
}


/* Skills Section */
.skill-bar-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
}
.left-column, .right-column {
    flex: 1 1 300px;
}
.skill-item {
    margin-bottom: 1rem;
   
}
.bar-fill {
    height:100%;
    width:0;
    border-radius: 20px;
     background-color: #00F5D4;
    transition:width 1.5s ease-in-out;
}
.bar-container {
    background-color: #1E1E1E;
    border-radius: 20px;
    height:15px;
    overflow: hidden;  
}

.skill-percent{
    position:relative;
    float:right; 
}


/* Tools & Tech */
.tools-tech {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}
.active {
    background-color: #1E1E1E;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
}
.active i {
    font-size: 2rem;
         background-color: #00F5D4;
         color: #0c0c0c;

}
.active p {
    margin-top: 0.5rem;
    font-weight: 500;
}

/*Certificates*/
.certificates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}
.certificate-item {
    background-color: #1E1E1E;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    width: 250px;
}
.certificate-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.certificate-item p {
   color: #00F5D4;

    padding: 0.5rem 0;
}

/*Projects*/
.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}
.project-item {
    background-color: #0c0c0c;
    border-radius: 15px;
    max-width: 400px;
    flex: 1 1 300px;
    overflow: hidden;
}
.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-item h3 {
    margin: 1rem;
}
.project-item p {
    color: #bbb;
    margin: 0 1rem 1rem 1rem;
}
.project-skills {
    margin: 0 1rem 1rem 1rem;
}
.skill-tag {
    display: inline-block;
    background-color: #1E1E1E;
    padding: 0.3rem 0.7rem;
    margin: 0.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #f1e5e5;
}
.project-links {
    margin: 0 1rem 1rem 1rem;
}
.project-links a {
    text-decoration: none;
    color: #00F5D4;

    margin-right: 1rem;
}

/*Contact*/
.form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}
.form-1 {
    background-color: #1E1E1E;
    padding: 2rem;
    border-radius: 15px;
    flex: 1 1 300px;
    max-width: 500px;
}
.form-1 h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.text label {
    display: block;
    margin-bottom: 0.3rem;
}
.text input, .text textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: #121212;
    border: 1px solid #444;
    color: #fff;
}
.submit-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 25px;
    border: none;
        background-color: #00F5D4;

    color: #181414;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover {
    background-color: #00F5D4;
    color: #121212;
}

/*media queries*/
@media (max-width: 768px) {
    .intro {
         flex-direction: column; 
         text-align: center;
         padding: 2rem 1rem;
         }
    .about {
         flex-direction: column;
          align-items: center;
         }
    .personal-info {
         flex-direction: column;
          align-items: center; 
          gap: 1rem;
         }
    .skill-bar-list {
         flex-direction: column; 
         align-items: center; 
         padding: 1rem;
        }
    .about, .projects, .certificates-container, .form {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .hamburger {
        display: block;
    }
    .navbar .menu {
            position: fixed;
            left: -100vw; /* hide off-canvas using viewport units to avoid overflow */
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: #1E1E1E;
            width: 100vw;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease-in-out;
        padding: 4rem 0;
        z-index: 1000;
    }
    .navbar.active .menu {
            left: 0;
    }
    .navbar { 
        flex-direction: column;
         gap: 0.5rem; 
         text-align: center;
         padding: 1rem; /* reduce outer padding on small screens */
         }
        .menu {
            position: fixed;
            left: -100vw;
            top: 70px;
            gap: 0;
            flex-direction: column;
            background-color: #1E1E1E;
            width: 100vw;
            text-align: center;
            transition: 0.3s;
            padding:1rem 0;
            z-index:1000;
            box-sizing: border-box; /* ensure padding doesn't cause overflow */
        }

    .menu.active {
        left: 0;
    }
    .menu a {
        margin: 1rem;
        font-size: 1.2rem;
        display: block;
    }
    .intro-circle {
        width: min(40vw, 220px);
        height: min(40vw, 220px);
         }
    .active { 
        padding: 0.7rem; 
    }
    .project-item img { 
        height: 150px;
     }
    .certificate-item img {
         height: 150px;
         }
         .hamburger.active .bar:nth-child(2){
            opacity:0;
         }
         .hamburger.active .bar:nth-child(1){
            transform:translateY(8px) rotate(45deg);
         }
         .hamburger.active .bar:nth-child(3){
            transform:translateY(-8px) rotate(-45deg);
         }
}

@media (max-width: 480px) {
    .logo { 
        font-size: 1.5rem;
    }
    h2, h3 { 
        font-size: 1.2rem;
         text-align: center;
         }
    .intro-text h1 { 
        font-size: 1.6rem; 
    }
    .intro-text h2 { 
        font-size: 1rem;
     }
    .project-item {
         max-width: 100%;
         }
}

/* Tablet / small laptop adjustments to remove side gaps */
@media (max-width: 1024px) {
    .navbar, .intro, .about, .skill-bar-list, .projects, .certificates-container, .form {
        padding-inline: 1rem;
    }
    .menu a {
        margin: 0 0.5rem;
    }
    .intro-text, .about-text {
        max-width: 100%;
    }
    .intro-circle {
        width: 40vw;
        height: 40vw;
        max-width: 220px;
        max-height: 220px;
    }
    .about-photo {
        width: 40vw;
        height: 40vw;
        max-width: 300px;
        max-height: 300px;
    }
    .project-item {
        max-width: 100%;
    }
}
.site-footer{
     text-align:center; 
     padding:1.5rem; 
     color:#9ea6a6;
      background:transparent;
}

