
/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/iisc.jpg');
    background-color: #f7f7f7;
    background-attachment: fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    backdrop-filter: blur(2px); /* Applies blur effect to the background */
    -webkit-backdrop-filter: blur(2px); /* For Safari support */
}


/* Header Styles */
header {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
}

header h1 {
    margin: 0;
    font-size: 36px;
    font-family: "Oswald", serif;
    font-optical-sizing: auto;
    color: #62afee;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: center;
    background: #faf8f8f3;
    padding: 10px;
    border-top: 2px solid #f8f5f5;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

nav a {
    margin: 0 5px;
    text-decoration: none;
    color: #e3e1e1;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

nav a:hover {
    text-decoration: underline;
    color: #1a06f5a7;
}

/* Section Styles */
section {
    padding: 30px;
    max-width: 900px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #9baef9;
    font-family: "Oswald", serif;
    font-optical-sizing: auto;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.quote-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-left: 25px;
    padding-right: 25px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #f7f6ed;
    border-radius: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* ...existing code... */

.display-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding: 10px 0;
    width: 100%;
    background-color: #f7f6ed;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.display-item img {
    width: 180px;
    max-width: 90vw;
    height: auto;
    border-radius: 8px;
    margin: 0 8px;
    /* object-fit: cover; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}

a.external::after {
  content: url('external.jpg'); /* or use inline SVG */
  margin-left: 3px;
}


.display-item img:hover {
    transform: scale(1.04);
}

@media (max-width: 600px) {
    .display-item {
        flex-direction: column;
        gap: 10px;
        padding: 8px 0;
    }
    .display-item img {
        width: 90vw;
        max-width: 98vw;
        margin: 0 auto;
    }
}
/* ...existing code... */


.about-item {
    /* display: flex; */
    /* align-items: flex-start; */
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f2f5edca;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.display-item img {
    display: flex;
    width: 250px;
    height: 150px;
    border-radius: 5%;
    margin-right: 20px;
}

/* Education Styles */
.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #faf5f5ca;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.education-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.education-item div {
    font-size: 16px;
    color: #555;
}

.education-item div strong {
    font-size: 18px;
    color: #333;
}

.education-item div span {
    display: block;
    font-size: 14px;
    color: #444;
    margin-top: 5px;
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery img {
    width: calc(50% - 10px);
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Footer Styles */
footer {
    text-align: center;
    background: #ffffff;
    padding: 5px;
    border-top: 2px solid #e0e0e0;
    font-size: 14px;
    color: #777;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.gallery img {
    max-width: 100%;
    margin: 0;
}

.gallery img {
    width: 100%;
    max-width: 200px;
    margin: 2px;
    border: 1px solid #ccc;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 968px) {
    section {
        padding: 20px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    .gallery img {
        width: calc(50% - 10px);
    }
    body {
        background-image: none;
    }

    .display-item img{
        width: calc(50% - 10px);
        height: auto;
    }
}

@media (max-width: 480px) {
    .gallery img {
        width: calc(50% - 10px);
    }

}

/* Home Section Styles */
.home-content {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.home-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 20px;
}

.education-item, .experience-item, .achievement-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.education-item img, .experience-item img {
    width: 75px;
    height: 75px;
    margin-right: 15px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section h2:hover {
    background-color: #fffacd; /* Light yellow */
}

h3:hover {
    background-color: #fffacd; /* Light yellow */
}

/* General Button Styles */
.go-to-top, .go-to-bottom {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #7ce480;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.hire-me, .see-me {
    background-color: #dbdbdb;
    color: #131212;
    padding: 5px 5px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    /* margin-top: -5px; */
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.see-me {
    background-color: #eee9e9f3;
}

.go-to-top:hover {
    background-color: #45a049;
}

/* Section Positioning for Buttons */
section {
    position: relative; /* Allows absolutely positioned button inside */
}

/* Responsive Button Positioning */
@media (max-width: 768px) {
    .go-to-top, .go-to-bottom {
        right: 10px;
        top: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .home-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.bounce {
    animation: bounce 1s ease-in-out;
}

.contact-container a:visited { color: blueviolet; }

.contact-item img {
    width: 30px;
    height: 30px;
    border-radius: 20%;
    margin-right: 15px;
}
.contact-item {
    margin-left: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
/* 
.blue {
    color: blue;
} */

.view_more{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.view_more a{
    background-color: #b6b6b6f3;
    color: #131212;
    padding: 5px 5px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    transition: background-color 0.3s ease;
}

.view_more a:hover {
    background-color: #5c5e5cba;
}

.qr-container {  
    text-align: center; 
    margin: 0 auto; 
}  

.qr-container img {  
    display: block;  
    margin: 0 auto; 
}  

.qr-container p {  
    margin-top: 10px;  
} 

.project-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-item h3 {
    margin-top: 0;
    color: #333;
}

.project-item p {
    margin: 8px 0;
    color: #555;
}

.project-item a {
    color: #007bff;
    text-decoration: none;
}

.project-item a:hover {
    text-decoration: underline;
}