/* Big Container - Mobile Optimized */
.big-container {
    font-family: 'Noto Sans';
    margin: 0 12% 0 14%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet optimization */
@media (max-width: 1024px) {
    .big-container {
        margin: 0 8% 0 8%;
    }
}

/* Mobile tablet optimization */
@media (max-width: 768px) {
    .big-container {
        margin: 0 4% 0 4%;
        padding: 0 1rem;
    }
}

/* Mobile phone optimization */
@media (max-width: 576px) {
    .big-container {
        margin: 0 2% 0 2%;
        padding: 0 0.8rem;
    }
}

/* Small mobile optimization */
@media (max-width: 400px) {
    .big-container {
        margin: 0 1% 0 1%;
        padding: 0 0.5rem;
    }
}

/* Ensure child elements don't overflow */
.big-container * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Special handling for images and media */
.big-container img,
.big-container video,
.big-container iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
.big-container {
    overflow-x: hidden;
}

.top {
    font-family: 'Noto Sans';
    margin: 2rem 0 1rem 12%;
    font-size: 1.8rem;
}

.menu {
    font-family: 'Noto Sans';
    margin: 2rem 0 1rem 12%;
    font-size: 1.8rem;
}

.intro-text {
    font-family: 'Noto Sans';
    margin: .0rem 2rem 1rem 0;
    font-size: 1.1rem;
}

/* Additional CSS to fix navigation overlapping */
.navbar {
    padding: 0;
}

.navbar-brand {
    margin-right: 0;
    padding: 0;
}

.logo {
    font-family: 'Bebas Neue';
    font-size: 3.8rem;
    margin: 2rem 0 1rem 0;
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-nav {
    margin-right: 22%;
}

.nav-link {
    font-family: 'Noto Sans';
    font-size: 1.2rem;
    margin: 0.5rem 0.2rem;
    position: relative;
}

/* Active navigation state with centered underline */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background-color: currentColor;
}

/* Responsive adjustments */
@media (max-width: 991px) {

    .navbar-nav {
        margin-right: 5%;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 2.2rem;
    }

    .navbar-toggler {
        margin-right: 1rem;
    }

    .navbar-nav {
        margin-right: 0;
        padding-left: 1rem;
    }
}

/* Style for the link to maintain the original design */
.section-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Container to ensure consistent width */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.inner:hover {
    background-color: #f5f5f3;

}

.section {
    font-family: 'Noto Sans';
    font-size: 1.6rem;
    padding: 0rem;
    margin: 3rem 0 0rem 0;
    display: flex;
    background-color: rgba(255, 255, 255, .5);
    width: 100%;
}

/* Update the inner class for consistent width and responsive alignment */
.inner {
    display: flex;
    justify-content: space-between;
    padding: 3rem 2rem;
    border-radius: 10px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    background-color: #f5f5f370;
}

/* Make content columns consistent width */
.inner .col-md-3 {
    width: 25%;
    flex: 0 0 25%;
}

.inner .col-md-8 {
    width: 66.66%;
    flex: 0 0 66.66%;
}

@media (max-width: 768px) {
    .inner {
        padding: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
    }

    .inner .col-md-3,
    .inner .col-md-8 {
        width: 100%;
        flex: 0 0 100%;
    }

    /* Add this to ensure content aligns left in the column layout */
    .inner>div {
        text-align: left;
        width: 100%;
    }

    /* Ensure images maintain proper alignment */
    .image-card {
        margin-left: 0;
        height: 300px;
    }

    .hero-image-card {
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    .image-card {
        height: 300px;
    }

}

.section>div {
    width: 100%;
}

.image-card {
    overflow: hidden;
    padding: 1rem;
    border: solid 1px #8c887d82;
    background-color: #fff;
}

.image-card img {
    width: 100%;
    /* Maintains the parent width */
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.hero-image-card {
    aspect-ratio: 5 / 1;
    overflow: hidden;
    padding: 1rem;
    border: solid 1px #8c887d82;
    background-color: #fff;
}

.hero-image-card img {
    width: 100%;
    position: relative;
}

/* Fixed aspect ratio carousel container */
.image-card-carousel {
    overflow: hidden;
    padding: 1rem;
    border: solid 1px #39672882;
    background-color: #fff;
    /* Remove the fixed height, use aspect ratio instead */
}

/* Create the aspect ratio container */
.image-card-carousel .carousel-inner {
    aspect-ratio: 4 / 3;
    /* Adjust this ratio as needed (width / height) */
    width: 100%;
    position: relative;
}

/* Style the images to fit within the aspect ratio container */
.image-card-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Maintains image proportions */
    object-position: center;
    background-color: #f8f8f6;
    /* Optional: background for letterboxing */
}

.viewmore {
    background-color: #8c887d82 !important;
    transition: background-color 0.3s, transform 0.2s;
}

.viewmore:hover {
    background-color: #7a7669 !important;

}

/* Footer Styles - Updated */
.footer {
    background-color: #f8f8f6;
    padding: 4rem 0 3rem;
    border-top: 1px solid #e0ded8;
    font-family: 'Noto Sans', sans-serif;
    text-align: center;
}

.footer .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

.footer-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #4d4d4d;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #333;
    text-decoration: none;
}

.footer p {
    margin-bottom: 1.2rem;
}

.copyright {
    color: #4d4d4d;
    font-size: 0.9rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0ded8;
}

/* Media queries for responsive footer */
@media (min-width: 768px) {
    .footer {
        text-align: left;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer .row {
        display: flex;
        justify-content: space-between;
        margin: 0 8%;
    }

    .copyright {
        text-align: center;
    }
}

.gap-analysis {
    padding: 18px;
    margin: 40px -30px !important;
    border: solid 0px #bbb;
    font-size: 1.1rem;
    background-color: #f5f5f3af;
}

/* Additional styles for gap analysis carousel */
/* Your existing styles */
.gap-analysis-carousel {
    padding: 18px;
    margin: 3rem -30px 40px -30px !important;
    border-top: solid 1px rgba(202, 202, 202, 0.5);
    border-bottom: solid 1px rgba(202, 202, 202, 0.5);
    font-size: 1.1rem;

    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.gap-analysis-carousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gap-analysis-carousel .carousel-item {
    min-height: 200px;
    display: none;
    align-items: flex-start;
    padding: 10px 60px;
    position: relative;
    width: 100%;
    font-size: 1.3rem;
    line-height: 2rem;
}

.gap-analysis-carousel .carousel-item.active {
    display: flex;
}

.gap-analysis-carousel .carousel-indicators {
    position: static;
    margin: 20px 0 0 0;
    justify-content: center;
}

/* Fixed indicator styles - more specific selectors */
.gap-analysis-carousel .carousel-indicators [data-bs-target] {
    background-color: #8c887d82 !important;
    border: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 8px !important;
    opacity: 0.5 !important;
}

.gap-analysis-carousel .carousel-indicators [data-bs-target].active {
    background-color: #7a7669 !important;
    opacity: 1 !important;
}


.carousel-control-next, .carousel-control-prev {
    width: 5% !important;
}

.gap-analysis-carousel .carousel-control-prev,
.gap-analysis-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(140, 136, 125, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.gap-analysis-carousel .carousel-control-prev:hover,
.gap-analysis-carousel .carousel-control-next:hover {
    background-color: rgba(122, 118, 105, 0.8);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    transform: scale(1.5) !important;
}

.gap-analysis-carousel .carousel-control-prev {
    left: 10px;
}

.gap-analysis-carousel .carousel-control-next {
    right: 10px;
}

.gap-analysis-carousel .carousel-control-prev-icon,
.gap-analysis-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.hero-title {
    font-family: "Merriweather", serif;
    font-size: 2rem;
    font-weight: 500;
   
    padding: .4rem .5rem .5rem 1.5rem;
    border-radius: 0px;
    border: solid 0px #8c887d82;
    margin-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Add this CSS to your style.css file, after the existing .hero-title rule */

/* Hide Hero Title in Mobile View */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.3rem;
        margin-top: 0;
    }
}

/* Mobile Optimizations for Hero Image */
@media (max-width: 768px) {
    .hero-image-card {
        margin: 0 -1rem;
        padding: 0.8rem;
        border-left: none;
        border-right: none;
        border-radius: 0px;
        aspect-ratio: 3 / 1; /* Adjust aspect ratio for mobile */
    }
    
    .hero-image-card img {
        object-fit: cover;
        object-position: center center; /* Better centering for mobile */
        border-radius: 4px;
    }
}

@media (max-width: 576px) {
    .hero-image-card {
        margin: 0 -0.8rem;
        padding: 0.6rem;
        aspect-ratio: 2.5 / 1; /* Taller ratio for small screens */
    }
}

@media (max-width: 400px) {
    .hero-image-card {
        margin: 0 -0.5rem;
        padding: 0.5rem;
        aspect-ratio: 2 / 1; /* Even taller for very small screens */
    }
}

.design-theory {
    padding: 1rem 2.4rem 1rem 2.7rem;
    border-left: solid 3px rgb(13, 202, 240);
    border-right: solid 3px rgb(13, 202, 240);
    margin: 3.8rem 0px 1rem 0px;
}

.example-section {
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: solid 2px rgba(202, 202, 202, 0);
    position: relative;
    overflow: hidden;
}

.example-section.theory {
    padding-top: 0;
    border: solid 2px #f5f5f3af;
    margin: -1rem -3rem -1rem -1rem;
    padding: 1rem;
    display: none;
}

.example-section.ex-item {
    margin-top: 5.2rem;
}

/* Create the animated border using a pseudo-element */
.example-section.ex-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(129, 202, 202);
    transition: width 0.3s ease;
    z-index: 1;
}

/* Use a class to maintain the animated state */
.example-section.ex-item.animated::before {
    width: 16%;
}


/* Updated tech-skills layout to better fill page width */
.tech-skills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: flex-start;
    justify-content: space-between;
    /* Better distribution */
}

.tech-skills li {
    position: relative;
    flex: 1 1 calc(50% - 0.6rem);
    /* Two columns with gap consideration */
    min-width: 180px;
    /* Reduced minimum width */
    line-height: 1.4;
    margin-bottom: 0.5rem;
}



/* Skills list with dash bullets and flex responsive layout */
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;

}

.skills-list li {
    position: relative;
    padding-left: 1.2rem;
    flex: 1 1 300px;
    /* Grow and shrink, with minimum width of 300px */
    min-width: 0;
    /* Allow shrinking below content width */
}

.skills-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 0;
    color: #8c887d;
    font-weight: bold;
}

/* Responsive adjustments for skills list */
@media (max-width: 768px) {
    .skills-list {
        flex-direction: column;
        gap: 0.8rem;
    }

    .skills-list li {
        flex: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .skills-list li {
        flex: 1 1 250px;
    }
}

.res-category {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.res-header {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

/* Education section responsive layout */
.education-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.education-category {
    flex: 0 0 auto;
    min-width: 150px;
    margin-right: 2rem;
}

.education-items {
    flex: 1 1 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    min-width: 0;
    font-size: 1.18rem;
}

.education-item {
    flex: 1 1 250px;
    min-width: 0;
}

.experience-items {
    flex: 1 1 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    min-width: 0;
    font-size: 1.18rem;
}

.experience-item {
    flex: 1 1 350px;
    min-width: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .education-section {
        flex-direction: column;
        gap: 1rem;
    }

    .education-category {
        min-width: auto;
    }

    .education-items {
        flex-direction: column;
        gap: 1.5rem;
    }

    .education-item {
        flex: none;
    }
}

.project-section {
    margin: 3rem 2rem;
}

.project-item {
    margin: .2rem .6rem;
}

.project-title {
    font-size: 1.48rem;
}

/* Project Card Styles - Mobile Optimized */
.project-card {
    border: solid 1px #8c887d39;
    border-radius: 0px 0px 15px 15px;
    padding: 2rem;
    background-color: #f2f2f01b;
}

.project-label {
    min-width: 7rem;
    margin-right: 1rem;
    font-weight: bold;
    font-size: 1.3rem;
    color: #555;
    flex-shrink: 0;
}

/* Mobile Optimizations for Project Card */
@media (max-width: 768px) {
    .project-card {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
        border-radius: 0px;
        border-left: none;
        border-right: none;
    }
    
    .project-card .example-section {
        font-size: 1.1rem;
        padding-top: 0.8rem;
    }
    
    .project-card .d-flex.align-items-start {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .project-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.3rem;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .project-card .flex-shrink-1 {
        margin-left: 0;
        line-height: 1.5;
    }
    
    /* Collapse button adjustments */
    .project-card .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 1rem 0.8rem;
    }
    
    .project-card .example-section {
        font-size: 1rem;
        padding-top: 0.6rem;
    }
    
    .project-label {
        font-size: 1.1rem;
    }
    
    .project-card .flex-shrink-1 {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* Highlighter effect when hovering over project card */
.project-card .btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 0, 0.7);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 8px;
}

/* Only apply hover effects on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .project-card:hover .btn::before {
        width: 100%;
        box-shadow: 0 0 15px rgba(255, 255, 0, 0.4);
    }

    .project-card:hover .btn {
        color: #333 !important;
        transform: scale(1.05);
    }
}

/* Disable hover effect when card is expanded */
.project-card.expanded:hover .btn::before {
    width: 0;
    box-shadow: none;
}

.project-card.expanded:hover .btn {
    color: inherit !important;
    transform: none;
}

/* Resume Page: Semantic Heading Overrides - Maintain Visual Appearance */

/* H2 Resume Section Headings - Reset defaults and match p.res-category styling */
h2.res-category {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: inherit;
}

/* H3 Resume Subsection Headings - Reset defaults and match p.res-header styling */
h3.res-header {
    margin: 0 0 .4rem 0;  /* Keep bottom margin from original */
    padding: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: inherit;
}