/* External CSS stylesheet */

/* Styling the body of the page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}


/* General container settings */

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 35px;
}
p {
    font-family: V'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

.main-page .feature-section {
    background-image: url('images/20230422_221259.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 700px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: start;
    
}

.main-page .feature-section .feature-text {
    max-width: 80%;
    text-align: left;
    padding-right: 35%;
    color: #ffffff;
    z-index: 1; /* Make sure text appears above the overlay */
    position: relative; /* Ensure the text sits properly */
    text-shadow: 2px 3px 5px #61605f;
}
.main-page .feature-section .feature-text h1 {
    font-size: 30px; /* or whatever size you want */
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-page .feature-section .feature-text p {

    font-size: 20px;
  font-weight: bold; /* ✅ this is the correct way */
  line-height: 1.5;
  color: #ffffff;
    text-shadow: 2px 3px 5px #61605f;
}

/* aboutMe page styling starts */
.about-page {
    background-image: url('images/20220712_204630.jpg'); /* Use correct relative path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.about-page .main-section .main-text {
    background-image: url('images/20220721_185555.jpg');
    background-size: 400px;
    background-position:center right;
    padding: 50px;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.about-page .main-section .main-text p {
 padding-right: 5%;
}
.about-page .main-text {
   
    background-color:#f6f7f856 !important;
    flex: 1;
    padding-right: 400px !important;
    border-radius: 10px;
}

.about-page .main-text h1 {
    font-size: 30px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-page .main-text p {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    color: #050505;
    
}

.about-page .main-text .main-button {
    margin-top: 80px;
}

.education-section {
    position: relative;
  }
  
 .education-section .edu-background-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    margin-right: 70px; /* Real padding */
    z-index: 0;
    border-radius: 10px;
    opacity: 0.5; /* Optional transparency */
  }
/*Styling belongs to academic page starts*/
.academic-section {
padding: 2%;
}
/*Styling belongs to academic page ends */

/*Table section starts */

.table1 {
  padding: 20px;
  background-color: #cdcdcf;
  border-width: 5px;
  border-color: #050505;
}

.table1 h1 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
}

.skills-table thead {
  background-color: #333;
  color: #fff;
}

.skills-table th, .skills-table td {
  padding: 12px 15px;
  border: 2px solid #130909;
  text-align: left;
  font-size: 14px;
}

.skills-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}


/*Table section ends */



/*Styling belongs to experience page*/
.image-box {
    height: 500px; /* Crop height */
    width: auto;   /* Or set a width if needed */
    overflow: hidden;

}
.image-box img {
    width: 100%;
    object-fit: cover; /* Ensures it fills and crops nicely */
  }


/* Style for the whole nav */
nav {
    background-color: #333;
    padding: 10px 0;
}

/* Container flex layout */
.container {
    width: 100%;
    height: 50px;
    padding-left: 5%;
    padding-right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}

/* Logo and title */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #36a2eb;
    text-decoration: underline;
    font-weight: bold;
}


/* Styling for paragraphs */

.main-section {
    display:flex;
    align-items: stretch; /* or center */
    justify-content: space-between;
    gap: 0;
    padding: 40px;
}

.main-text {
    flex: 1;
    padding: 3%;
    place-items: center;
    background-color: #b9c1ca;
    border-right: 6px solid;
    border-image: linear-gradient(to bottom, #024a74, #36a2eb);
    border-image-slice: 3;
}
.main-image {
    flex: 1;
    display: flex;
    align-items: stretch;
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styling for all links */
a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* Styling for buttons */
.main-button {
    text-align: center;
    margin-top: 50px;
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 8px;
    margin: 15px;
}
.main-button .btn-know-more {
    color: #ffffff;
}

/* Styling for the footer */
.footer-content{
    width: 100%;
    height: 50px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
}

.footer-content .socialM {
    color: #fff;
    text-decoration-color: #ffffff;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2px;
    position: relative; /* Changed from sticky to relative */
    bottom: 0;
    width: 100%; /* Changed from full to 100% */
}

/* Class selector: .highlight for highlighted text */
.highlight {
    background-color: yellow;
    padding: 2px 5px;
}

/* Class selector: .center-text for centering text */
.center-text {
    text-align: center;
}

/* Class selector: .bold-text for bold text */
.bold-text {
    font-weight: bold;
}

/* ID selector: #main-header for styling the main header */
#main-header {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

/* ID selector: #special-paragraph for specific styling of a paragraph */
#special-paragraph {
    font-size: 18px;
    color: #ff6347;
    background-color: #f0e68c;
    padding: 10px;
    border-radius: 5px;
}

/* Descendant selector: Style paragraphs inside articles */
article p {
    font-style: italic;
    color: #555;
}


/* Styling for Contact Form */

.contact-page h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 35px;
}
.contact-page p {
    font-family: V'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}
.contact-title {
    background-image: url("images/contact.jpg"); /* Replace with your actual path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px; /* Adjust padding as needed */
    text-align: center;
    color: white; /* Or any color that contrasts with your background image */
  }


.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-left: 50px;
    padding-right: 70px;
    padding: 50px;
    flex-wrap: wrap; /* Makes it responsive */
    
  }

  .contact-image,
  .form-container {
    flex: 1;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    background-color: hsl(225, 23%, 86%);
    border-radius: 10px;
  }
 

  .form-container form {
    display: flex;
    flex-direction: column;
  }
  
  .form-container label {
    margin-top: 10px;
    font-weight: bold;
  }
  
  .form-container input,
  .form-container textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
  }
  
  .form-container button {
    margin-top: 20px;
    padding: 12px;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .form-container button:hover {
    background-color: #555;
  }

/* Special Styling for other pages */
.education-section {
    text-align: left; /* Ensures text starts from the left */
    margin-left: 20px; /* Adjusts left margin */
}

.education-section h2 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.education-section ol {
    padding-left: 40px; /* Adds left padding to the ordered list */
}

.education-section li {
    margin-bottom: 15px;
    line-height: 1.5;
}

strong {
    font-size: 1.1rem;
    color: #222;
}

em {
    color: #555;
    font-style: italic;
}
.new-buttonS {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
}

.experience {
    margin: 20px;
    padding: 20px;
}

.experience-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
}

h3 {
    font-size: 1.5rem;
    color: #333;
}

dl {
    margin-left: 20px;
}

dt {
    font-weight: bold;
    color: #222;
}

dd {
    margin-bottom: 10px;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

a {
    color: #024a74;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.youtube-short {
    display: flex;
    justify-content: center; /* Horizontally centers the iframe */
    align-items: center;     /* Vertically centers the iframe */
    padding-bottom: 20px;
}

/* Gallery Section */
.gallery {
    width: 100%; /* Full width */
    padding: 10px; /* Add padding around the entire gallery */
    background-color: #f4f4f4; /* Optional: Add a background color */
}

/* Grid-based gallery container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 15px; /* Space between images */
    justify-content: center;
    align-items: center;
}

/* Individual gallery items */
.gallery-item {
    width: auto;
    height: 250px; /* Equal height for all items */
    overflow: hidden; /* Hide any overflow */
    border-radius: 8px; /* Optional: Rounded corners */
}

/* Images inside the gallery */
.gallery-item img {
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    object-fit: cover; /* Ensures images cover the box while maintaining aspect ratio */
    display: block;
    border-radius: 8px; /* Optional: Rounded corners */
}
