body { 
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-image: url(images/bgpf2.avif);
    color: #0037ffc1;
}


.navbar {
    display: flex;             
    justify-content: space-between; 
    align-items: center;  
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;      
    background-color: #fff20499;     
    padding: 10px 20px;    
    position: sticky;
    top: 0;  /* Stick it to the top */
    z-index: 1000;
    overflow: hidden; /* Prevent overflow */
}
.navbar-left a, .navbar-right a {
    color: #000000;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 20px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden; /* Prevent overflow */
}
/* ✨ Smooth Hover Effect */
.navbar a {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.navbar a:hover {
    color: #fff; /* Bright text on hover */
    text-shadow: 0 0 8px #4CAF50;
    transform: scale(1.05);
}

/* ✅ Active Page Highlight */
.navbar .active {
    background-color: #4caf4f8b;
    color: white;
    border-radius: 5px;
    padding: 14px 20px;
    
    transition: all 0.3s ease-in-out;
}


/* nav bar end */

#changingText {
    font-size: 4em;
    line-height:0.3;
    animation: colorChange 4s infinite; /* Runs forever */
}
@keyframes colorChange {
    0% { color: rgb(244, 0, 199); } /* Pink */
    50% { color: rgb(0, 102, 255); } /* Blue */
    75% { color: rgb(255, 165, 0); } /* Orange */
    100% { color: rgb(244, 0, 199); } /* Back to Pink */
}
header {
    position: relative;
    color: rgb(0, 30, 255);
    text-align: center;
    padding: 50px;
}
header h2{
    font-size: 50px;
    animation: colorChangeH2 5s infinite alternate;
}
header p{
    font-size: 30px;
    font-weight: bold;
    animation: colorChangeP 5s infinite alternate;
}
@keyframes colorChangeH2 {
    75% { color: magenta; }
}

@keyframes colorChangeP {
    0% { color: purple; }
}

header button {
    position:absolute;
    background-color: white;
    color: #000000;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    top: 50px; 
    right: 80px; 
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

header button:hover {
    background-color: #007bff; /* Blue color on hover */
    color: white;
    transform: scale(1.1); /* Slightly enlarges button */
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3); /* Adds glow */
    border: 2px solid #007bff; /* Blue border */
}



/* about me eduaction box start */
.container {
    display: flex;
    gap: 20px;
    padding: 40px;
}
.box {
    width: 400px;
    height: 600px;
    background-color: rgba(255, 255, 255, 0.405);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(4, 232, 167, 0.425);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    left: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box:hover {
    transform: scale(1.05); /* Slightly enlarges the box */
    box-shadow: 0 8px 16px rgba(239, 193, 7, 0.4); /* Adds a glowing effect */
}

/* Additional Glow Effect */
.box:hover::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 8px;
    background: rgba(7, 73, 239, 0.3);
    z-index: -1;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}
.content {
    margin-top: 0px;
    text-align: center;
}
h1 {
    font-size: 30px;
    margin-bottom: 10px;
}
.edu {
    padding: 5px;
    margin-top: 5px;
    border-radius: 5px;
}
.edu h1{
    font-size: 20px;
}
 
/* about me eduaction box end */

/* skills in progress start*/

.skills-wrapper {
    text-align: center;
    width: 100%;
}

#skills-heading {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.skills-container {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
}

svg {
    transform: rotate(360deg);
}

circle {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

.progress-text {
    font-size: 18px;
    font-weight: bold;
    fill: #2196F3;
    text-anchor: middle;
    dominant-baseline: central;
}

.skill-name {
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* skills in progress end*/

/* projects start*/

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}
.project-card {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.5);
    transition: transform 0.3s;
}
.project-card:hover {
    transform: scale(1.05);
}
.project-title {
    font-size: 24px;
    font-weight: bold;
}
.project-desc {
    margin: 10px 0;
    font-size: 16px;
}
.project-tech {
    font-style: italic;
    font-size: 14px;
    color: #ffd700;
}
.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #fff;
    color: #ff4b2b;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}
.project-link:hover {
    background: #ffd700;
    color: #000;
}

/* project end */

/* internship start */

.ski {
    text-align: center;
    padding: 10px;
}

.skills-box {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.skills-item {
    width: 250px; /* Adjust width as needed */
    border: 2px solid #0c0c0c;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skills-item:hover {
    transform: scale(1.05); /* Slightly enlarges */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skills-image {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.skills-text h4 {
    font-size: 1.1em;
    margin: 10px 0 5px;
}

.skills-text p {
    font-size: 0.9em;
    color: #555;
    padding: 0 5px;
}

/* internship start */ 


/* certificate card start */

/* Container Styling */
.container-cert {
    text-align: center;
    padding: 20px;
}

/* Heading */
#certificate-heading {
    font-size: 32px;
    margin-bottom: 30px;
    
    font-weight: bold;
}

/* Card Grid */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* Individual Card Container */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card Styling */
.card {
    width: 250px;
    height: 350px;
    perspective: 1000px;
}

/* Inner Card */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Front & Back */
.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

/* Front */
.card-front {
    background: white;
}

.card-front img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Back */
.card-back {
    background: #2196F3;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
    padding: 15px;
}

.card-back h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-back p {
    font-size: 14px;
}

/* certificate card end */

/* links start */
.links{
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #bbbbbb, #ff4b2b);
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(19, 19, 19, 0.5);
    transition: transform 0.3s;
}
.social-button{
    display: flex;
    flex-direction:column; /* Stack heading and icons vertically */
    align-items: center; /* Center-aligns content horizontally */
    gap: 20px;
}

.social-button h1 {
    font-size: 1.5em;
    text-align: center;
}
.social-link img {
    width: 50px;
    height: 50px;
    margin: 10px 10px;
}
.social-link a {
    text-decoration: none; /* Removes the underline from links */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.social-link a:hover {
    transform: scale(1.2); /* Slightly enlarges the icon */
    filter: brightness(1.2); /* Slightly brightens the image */
}

/* Individual Platform Effects - Different Colors on Hover */
.social-link a:nth-child(1):hover img { /* LinkedIn */
    filter: drop-shadow(0 0 10px #0077b5); /* Blue glow */
}
.social-link a:nth-child(2):hover img { /* GitHub */
    filter: drop-shadow(0 0 10px #333); /* Dark shadow */
}
.social-link a:nth-child(3):hover img { /* WhatsApp */
    filter: drop-shadow(0 0 10px #25D366); /* Green glow */
}
.social-link a:nth-child(4):hover img { /* YouTube */
    filter: drop-shadow(0 0 10px #ff0000); /* Red glow */
}
.social-link a:nth-child(5):hover img { /* Instagram */
    filter: drop-shadow(0 0 10px #E1306C); /* Pinkish-red glow */
}

/* links end */

.form {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Ensure inputs & labels are displayed one below another */
.input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

/* Label styling */
.input-container label {
    font-weight: bold;
    margin-bottom: 30px;
}

/* Styling for input fields */
.input,
.textarea {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Adjust height of textarea */
.textarea {
    min-height: 100px;
}

/* Contact Button Styling */
.contact-btn {
    background-color: #5b23cb;
    color: white;
    border: none;
    padding: 5px;
    font-size: 13px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

/* Hover effect */
.contact-btn:hover {
    background-color: #29b4c4;
}
.contact-btn{
    font-size: 10px;
}
.contact h1{
    font-size: 40px;
}
.contact h2,h3{
    font-size: 30px;
}







@media (max-width: 768px) {
    /* General Styles for Tablets */
    
    .navbar {
        flex-direction: column; /* Stack navbar items */
        padding: 5px; /* Adjust padding */
    }

    .navbar-left a, .navbar-right a {
        padding: 10px 15px; /* Adjust padding for links */
    }

    header {
        padding: 100px 20px; /* Adjust header padding */
        height: auto; /* Allow header to adjust height */
    }

    header h2 {
        font-size: 36px; /* Smaller heading */
    }

    header p {
        font-size: 20px; /* Smaller paragraph */
    }

    header button {
        top: 80px; /* Adjust button position */
        right: 20px; 
        padding: 8px 16px; /* Adjust button size */
    }

    .myimage {
        flex-direction: column; /* Stack images vertically */
        padding: 10px; /* Adjust padding */
    }

    .myimage img {
        width: 40%; /* Increase image size for tablets */
    }

    .container {
        flex-direction: column; /* Stack container items */
        height: auto; /* Allow height to adjust */
    }

    .container h1 {
        font-size: 36px; /* Decrease heading size */
    }

    .box {
        width: 90%; /* Full width for boxes */
        height: auto; /* Allow height to adjust */
    }

    .skills-item {
        width: 80%; /* Set skills items to be wider */
        margin: 10px 0; /* Add margin for spacing */
    }
}

@media (max-width: 480px) {
    /* General Styles for Small Smartphones */
    
    body {
        width: 100vw; /* This can cause overflow */
        overflow-x: hidden;
        width: auto;
    }

    #changingText {
        font-size: 1.5em; /* Reduce text size for small devices */
    }

    .myimage{
        padding: 20px;
    }

    .myimage img {
        width: 90%; /* 1 image per row on very small screens */
    }

    .navbar {
        flex-direction: column; /* Stack navbar items vertically */
        padding: 10px; /* Reduce padding */
        width: 100%; /* Ensure navbar takes full width */
        box-sizing: border-box; /* Include padding and border in the element's total width */
    }
    .navbar-left a, .navbar-right a {
        padding: 8px; /* Adjust padding for links */
        font-size: 14px; /* Smaller font size for links */
    }

    header {
        height: 200px; /* Adjust height for mobile devices */
        padding: 50px 20px;
        background-size: cover; /* Adjust background size */
        background-position: center;
    
    }
    header h1{
        font-size: 10px;
    }
    header h2 {
        font-size: 28px; /* Smaller heading */
    }

    header p {
        font-size: 15px; /* Smaller paragraph */
    }

    header button {
        top: 15px; /* Adjust button position */
        right: 10px; 
        padding: 6px 12px; /* Adjust button size */
    }

    .darkmode {
        position: absolute;
        top: 200px;
        right: 8px;
    }

    #darkModeToggle {
        display: flex;
        align-items: center; /* Aligns icon & text horizontally */
        justify-content: center; /* Centers content */
        width: 120px; /* Set button width */
        height: 30px; 
        font-size: 14px;
        cursor: pointer;
        border: none;
        background: #444;
        color: white;
        border-radius: 5px;
        transition: background 0.3s, color 0.3s;
    }
    .container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center-align each box */
        justify-content: center;
        height: auto; /* Allow height to adjust based on content */ /* Add some padding around the container */
    }

    .container h1 {
        font-size: 35px; /* Smaller font size for headings */
    }

    .box {
        position: relative;
        width: 350px;
        height: 600px;
        perspective: 1000px;
        align-items: center; /* Center the elements horizontally */
        justify-content: center; 
        padding:30px;
        left: 5px;
    }
 
    .box-front, .box-back {
        /* Adjust padding to fit content */
        font-size: 0.9em; /* Reduce font size */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
        width:90%;
        height: 100%;
    }  

    .box-front {
        background-color: rgba(7, 7, 239, 0.442);
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the elements horizontally */
        justify-content: center; 
        padding: 0px;
        box-sizing: border-box;
    }
    
    .box-back {
        background-color: #4b8b3b;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0px;
        transform: rotateY(180deg);
    }

    .skills-box {
        padding: 0px;
        flex-direction: column; /* Stack skills items vertically */
        align-items: center;
    }

    .skills-item {
        width: 90%; /* Full width for skills item */
        margin: 10px 0; /* Space between items */
    }

    .social-button{
        padding: 10px;
    }
    .social-button h1 {
        font-size: 1.2em;
    }

    .social-link img {
        width: 40px; /* Smaller icons */
        height: 40px;
    }

    .contact{
        padding: 10px;
    }
    .contact h1 {
        font-size: 28px;
    }

    .contact h2, .contact h3 {
        font-size: 18px;
    }

   
}