/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f3f8fb;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header Styling */
header {
    background-color: #fff;
    padding: 20px;
    color: #333;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* .profile-img {
    max-width: 100px;
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

/* .profile-img {
    width: 100px; 
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}
 */
 .profile-img {
    max-width: 100px;
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-text {
    flex-grow: 1;
}

.header-text h1 {
    margin: 0;
    font-size: 2em;
}

.header-text p {
    margin: 5px 0 0;
    font-size: 1.1em;
    color: #666;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tab Container */
.tab-container {
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 10px 0;
    border-radius: 8px;
    margin: 20px auto 0;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: white;
    text-align: center;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
    background-color: transparent; /* ✅ Transparent background */
}

.tab:hover {
    background-color: #505050; /* Optional subtle hover effect */
}

.tab.active {
    background-color: #4a637d; /* ✅ Only selected tab has background */
    color: white;
}

/* Collapsible Button Styles */
.collapsible {
    background-color: #466273;
    color: white;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    margin-top: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Icon and Text Spacing */
.collapsible i {
    margin-right: 10px;
}

/* Arrow Icon */
.arrow-icon {
    margin-left: auto;
}

/* Collapsible Content Styles */
.collapsible-content {
    padding: 20px;
    display: block;
    overflow: hidden;
    /* background-color: #f9f9f9; */
    border-radius: 8px;
    margin-top: 10px;
}

/* Education Card Styles */
.education-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
    /* Add transition for hover animation */
}

/* Hover effect for education cards */
.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Background styles for education sections */
.ms-statistics,
.bs-electrical-engineering {
    /* background-image: url('https://barefootcampusoutfitter.com/wp-content/uploads/2017/07/6023526804-scaled-scaled.jpg'); */
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #f3f8fb;
    background-position: center;
    color: #000;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.bs-electrical-engineering {
    /* background-image: url('https://pulse.nitk.ac.in/wp-content/uploads/2020/06/NITK-Surathkal-logo.png'); */
    background-size: cover;
    /* Cover the entire section */
    background-repeat: no-repeat;
    background-position: center;
    color: #000;
    /* Change text color to black for visibility */
    padding: 20px;
    border-radius: 8px;
    position: relative;
    /* Ensure positioning for the overlay */
}

/* Adjust education card styles to enhance readability on background images */
.education-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

/* Contact Styles */
.contact-container {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin: 20px auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}

.contact-image {
    flex: 0 0 auto;
    margin-right: 55px;
    padding-right: 0;
}

.contact-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-box p {
    margin: 0 0 20px;
}

#contact ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#contact li {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

#contact li i {
    margin-right: 10px;
    color: #466273;
}

#contact .location {
    color: #666;
    font-style: italic;
    display: flex;
    align-items: center;
}

#contact .location .badge {
    background-color: #e0f7fa;
    color: #00796b;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
}

a {
    color: #466273;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-image,
    .contact-box {
        margin-left: 0;
        width: 100%;
    }
}

/* Skill Card Styles */
.skill-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-card-icon {
    font-size: 2em;
    color: #466273;
    margin-right: 15px;
}

.skill-card-content {
    flex-grow: 1;
}

.skill-card-content h3 {
    margin: 0;
    font-size: 1.5em;
}

.goodreads-button {
    background-color: #466273;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.university-logo {
    max-width: 100px;
    display: block;
    margin: 0 auto 20px;
}


/* Footer Styles */
.footer {
    background: linear-gradient(90deg, #466273, #293241);
    padding: 10px;
    text-align: center;
    color: white;
    margin-top: 40px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer ul li {
    display: inline;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.tech-stack {
    font-weight: bold;
    background-color: #ffffff;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

.business-focus {
    font-weight: bold;
    background-color: #f9f9f9; /* Light Gray */
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

/* Responsive Typography for Skills & Timeline */

.skills-container,
.timeline {
    font-size: clamp(0.95rem, 1vw + 0.1rem, 1.05rem);
    line-height: 1.6;
}

.skill-card-content h3,
.timeline h3 {
    font-size: clamp(1.2rem, 1.4vw + 0.2rem, 1.5rem);
    margin-bottom: 0.5rem;
}

.skill-card-content ul li,
.timeline p {
    font-size: inherit;
}

/* Contact card container */
.contact-card-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
  }
  
  /* Individual card (both links and text) */
  .contact-card {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f9fbfd;
    box-shadow: inset 0 0 0 1px #e1e7ed;
  }
  
  /* Hover effect only on interactive items (links) */
  .contact-card a {
    color: #466273;
    font-weight: 600;
    text-decoration: none;
  }
  
  .contact-card a:hover {
    text-decoration: underline;
  }
  
  /* Icon styling */
  .contact-card i {
    min-width: 20px;
    font-size: 1.1rem;
    color: #466273;
  }
  
/* Tab Row Layout */
.tab-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: white;
    text-align: center;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
    background-color: transparent; /* ✅ Transparent background */
}

.tab:hover {
    background-color: #505050; /* Optional subtle hover effect */
}

.tab.active {
    background-color: #4a637d; /* ✅ Only selected tab has background */
    color: white;
}
