/* Styling the body */
body {
    font-family: 'Candara Light';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* Styling the header */
header {
    background-image: url('Images/iisc2.jfif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;;
    color: white;
    display: flex;
    padding: 0.5rem;
    padding-right: 0;
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    z-index: 10;
    font-family: 'Candara Light';
    overflow-y: auto;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent black overlay */
    z-index: 1; /* Ensure the overlay is above the background image */
}

header h1{
    font-family: 'Candara';
    font-size: 30px;
    font-weight: 400;
    align-content: left;
    margin-left: 200px;
    z-index: 10;
}

header nav ul {
    font-size: 20px;
    list-style: none;
    display: flex;
    margin-left: 100px;
    margin-top: 30px;
    padding: 0;
    z-index: 10;
}

nav ul li {
    display: inline;
    margin: 0 40px;
    z-index: 10;
}

nav ul li a {
    color: inherit;
    text-decoration: none;
    z-index: 10;
}

/* Styling each section */
section {
    padding: 3rem;
    text-align: center;
}

/* Styling the home page */
#home{
    position: relative;
    background-image: url('Images/iisc2.jfif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    margin-top: 0px; /* Adjust to your header height */
    padding-top: 1rem; /* Optional: additional padding */
    max-width: 100%;
    overflow: hidden;
    z-index: 10;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent black overlay */
    z-index: 1; /* Ensure the overlay is above the background image */
}

.home-content {
    display: flexbox;
    text-align: center;
    align-items: center;
    padding: 1rem;
    margin-top: 200px;
    color: white;
    z-index: 10;
    font-family: 'Candara Light';
}

#home h2 {
    font-size: 25px;
    text-align: center;
    margin: 0.5rem 0;
    color: white;
}

#home h1 {
    font-size: 50px;
    margin: 0.5rem 0;
    color: white;
}

#home p {
    font-size: 1.5rem;
    margin-top: 100px;
    margin: 0.5rem 0;
    color: white;
}

.download-resume-button {
    position: relative;
    margin-top: 60px;
    padding: 7px 7px;
    font-size: 16px;
    font-family: 'Candara Light';
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.download-resume-button a {
    color: white;
    font-size: 25px;
    font-family: 'Candara Light';
    z-index: 10;
}

/* Styling the About Me */
#about {
    padding: 40px;
    background-color: #f9f9f9; /* Light background for contrast */
    font-family: 'Candara Light';
    max-width: 100%; /* Optional: limit the width */
    margin: 0 auto; /* Center the content */
    z-index: -1;
}

.about-content {
    display: grid;
    gap: 20px; /* Space between columns */
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    margin-top: 50px;
    margin-bottom: 50px;
    z-index: 2;
}

.about-text-content {
    /* Default left column */
    flex: 1; /* Allows text to take up available space */
    /* margin-top: 40px; */
    margin-right: 20px; /* Space between text and image */
    z-index: 2;
}

.about-text-content p {
    font-size: 20px;
    text-align: justify;
    margin-left: 150px;
}

.about-image-content img {
    /* Default right column */
    max-width: 100%; /* Ensures image does not overflow */
    height: auto; /* Maintains aspect ratio */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
    z-index: 2;
}

/* About Me Heading */
.heading-with-lines {
    position: relative;
    align-self: center;
    text-align: center;
    margin: 30px 0;
    margin-left: 120px;
    font-family: 'Candara';
    font-size: 30px; /* Adjust as needed */
}

.heading-with-lines::before,
.heading-with-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 15%; /* Adjust to control the length of the lines */
    border-top: 3px solid #000; /* Line color and thickness */
    z-index: 0; /* Ensure lines are behind the text */
    align-content: center;
}

.heading-with-lines::before {
    left: 0;
    transform: translateX(150%); /* Shift to the left */
}

.heading-with-lines::after {
    right: 0;
    transform: translateX(-150%); /* Shift to the left */
}

/* Styling the My Journey */
/* My Journey Heading */
.my-journey {
    position: relative;
    text-align: center;
    margin: 20px 0;
    font-family: 'Candara';
    max-width: 100%;
    font-size: 30px; /* Adjust as needed */
    margin-top: 100px;
}

.my-journey::before,
.my-journey::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10%; /* Adjust to control the length of the lines */
    border-top: 3px solid #000; /* Line color and thickness */
    z-index: 0; /* Ensure lines are behind the text */
    align-content: center;
}

.my-journey::before {
    left: 0;
    transform: translateX(300%); /* Shift to the left */
}

.my-journey::after {
    right: 0;
    transform: translateX(-300%); /* Shift to the left */
}


/* My Journey Content */
.my-journey-content {
    display: grid;
    grid-template-columns: 40% 60%;
    margin-top: 50px;
    column-gap: 30px;
    padding: 0;
}

.Masters, .Bachelors, .class12, .class10 {
    display: flex;
    flex-direction: column;
    margin-right: 300px;
}

.qualcomm-image, .Masters-image, .Bachelors-image, .class12-image, .class10-image {
    text-align: right;
    margin-top: 20px;
    margin-right: 2px;
}

.qualcomm-image img{
    width: 180px;
    height: auto;
    border-radius: 7px;
    text-align: right;
    align-self: right;
    margin-top: 5px;
    margin-right: 2px;
}

.Masters-image img,
.Bachelors-image img,
.class12-image img,
.class10-image img {
    width: auto;
    height: 120px;
    border-radius: 7px;
    text-align: right;
    align-self: right;
    margin-top: 5px;
    margin-right: 2px;
}

.qualcomm-text, .Masters-text, .Bachelors-text, .class12-text, .class10-text {
    margin-right: 150px;
}

.qualcomm-text h1, h2, h3, p, ol, ul,
.Masters-text h1, h3, p, ol, ul, li,
.Bachelors-text h1, h3, p, ol, ul, li,
.class12-text h1, h3, p, ol, ul,
.class10-text h1, h3, p, ol, ul {
    margin-left: 0;
    text-align: justify;
    margin-top: 10px;
}

.Masters-text h1 {
    margin-top: 40px;
}

.school-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-info h2 {
    margin: 0;
}

.school-info h4 {
    margin: 0;
    font-weight: normal;
    margin-right: 0;
}


/* Styling the Hobbies Section */
#hobbies {
    padding: 20px;
    margin: 0px 0;
    background-color: rgb(47, 47, 47); /* Light background for contrast */
    font-family: 'Candara Light';
    color: white;
    max-width: 100%;
    box-shadow: none;
}

.hobbies-heading {
    position: relative;
    margin-bottom: 20px;
    font-size: 30px;
    text-align: center;
    width: 100%;
}

.hobbies-heading::before,
.hobbies-heading::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10%; /* Adjust to control the length of the lines */
    border-top: 3px solid white; /* Line color and thickness */
    z-index: 0; /* Ensure lines are behind the text */
    align-content: center;
}

.hobbies-heading::before {
    left: 0;
    transform: translateX(300%); /* Shift to the left */
}

.hobbies-heading::after {
    right: 0;
    transform: translateX(-300%); /* Shift to the left */
}

.hobbies-grid {
    display: grid;
    width: 100%;
    height: 230px;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.hobby {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center;
    box-sizing: border-box;
    padding: 20px; /* Add padding for spacing */
    text-align: center;
    position: relative;
}

.hobby blockquote {
    align-self: center;
    vertical-align: middle;
}

.hobby p {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

#painting {
    position: relative;
    background: url('Images/spring1.jpg'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: black;
    z-index: 1;
}

#singing {
    position: relative;
    background: url('Images/summer1.webp'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: black;
    z-index: 1;
}

#poetry {
    position: relative;
    background: url('Images/autumn1.jpg'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: black;
    z-index: 1;
}

#meditation {
    position: relative;
    background: url('Images/winter1.jfif'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: black;
    z-index: 1;
}

#painting, #singing, #poetry, #meditation {
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: black;
    z-index: 1;
}

#painting::before, #singing::before, #poetry::before, #meditation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Adjust the opacity as needed */
    z-index: -1; /* Ensure the overlay is behind the content */
}

/* Styling Beliefs */
#beliefs{
    position: relative;
    background-image: url('Images/ocean_bg1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    height: 70vh;
    display: flex;
    justify-content: center;
    margin-top: 0px;
    padding-top: 1rem;
    max-width: 100%;
    overflow: hidden;
    z-index: 10;
    color: white;
}

#beliefs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    filter:blur(5px);
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.beliefs-content {
    position: relative;
    display: flexbox;
    text-align: center;
    align-items: center;
    padding: 1rem;
    margin-top: 50px;
    color: white;
    z-index: 2;
    font-family: 'Candara Light';
}

.beliefs-heading{
    position: relative;
    text-align: center;
    margin-bottom: 10px;
    margin: 0.5rem 0;
    font-size: 30px;
    z-index: 2;
}

.beliefs-heading::before,
.beliefs-heading::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%; /* Adjust to control the length of the lines */
    border-top: 3px solid white; /* Line color and thickness */
    z-index: 0; /* Ensure lines are behind the text */
    align-content: center;
    z-index: 2;
}

.beliefs-heading::before {
    left: 0;
    transform: translateX(-20%); /* Shift to the left */
}

.beliefs-heading::after {
    right: 0;
    transform: translateX(20%); /* Shift to the left */
}

.beliefs-content h3 {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
    margin: 0.5rem 0;
    color: white;
    line-height: 35px;
}

.beliefs-button {
    margin-top: 40px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Candara Light';
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 5;
}

.beliefs-button a {
    color: white;
    font-size: 15px;
    z-index: 5;
}


/* Styling Contacts */
/* Styling the Contact section */
#contact {
    padding: 20px;
    padding-top: 50px;
    background-color: #f9f9f9; /* Light background for contrast */
    font-family: 'Candara Light';
    text-align: center;
    color: #333; /* Dark text color for readability */
    z-index: 1;
}

/* Styling the contact heading */
.contact{
    position: relative;
    font-size: 30px;
    margin-bottom: 10px;
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    z-index: 2;
}

.contact::before,
.contact::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20%; /* Adjust to control the length of the lines */
    border-top: 3px solid black; /* Line color and thickness */
    z-index: 0; /* Ensure lines are behind the text */
    align-content: center;
    z-index: 2;
}

.contact::before {
    left: 0;
    transform: translateX(120%); /* Shift to the left */
}

.contact::after {
    right: 0;
    transform: translateX(-120%); /* Shift to the left */
}

.funny-message {
    font-size: 18px;
    padding-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    color: #555; /* Slightly lighter text for the funny message */
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #555;
}

/* Styling the social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
}

.social-links img {
    width: 50px; /* Adjust the size of the icons */
    height: auto;
    border-radius: 50%;
    transition: transform 0.2s;
}

/* Styling the footer */
footer {
    position: relative;
    background-color: gray;
    color: white;
    text-align: center;
    align-content: center;
    font-family: 'Candara Light';
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    bottom: 0;
}

footer p {
    text-align: center;
    width: 100%;
    max-width: 100%;
}

/* Button to scroll to the top */
#scrollToTopButton {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 20px; /* 20px from the bottom */
    right: 30px; /* 30px from the right */
    z-index: 99; /* Make sure it does not overlap with other content */
    font-size: 18px; /* Increase font size */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white; /* Text color */
    cursor: pointer; /* Pointer cursor on hover */
    padding: 15px; /* Some padding */
    border-radius: 50px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth background color transition */
}

/* Hover effect */
#scrollToTopButton:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
}
