
/* General Styles */
body, h1, h2, h3, p, ul {
    text-align: center;
    margin: 0;
    padding: 0;
}

html {
    height: 100%; /* Ensure html element takes full height */
    background: url('/static/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.0);
    color: hwb(0 94% 5%);/* Ensure body element takes full height */
    font-size: 110%;
}

/* Container */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: fixed; /* Fixes the header at the top */
    top: 0; /* Position it at the top */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensure it stays above other content */
    font-weight: bolder;
}
header ul {
    list-style: none;
    text-align: center;
}

header li {
    display: inline-block;
    padding: 0 1rem;
}

header a {
    color: #fff;
    text-decoration: none;
}

header a:hover {
    color: #3d474b;
}

header .header-social-links {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.header-social-links a {
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
    color: #fff;
}

.header-social-links a:hover {
    color: #007BFF; /* Bootstrap primary color */
}

.header-social-links i {
    margin-right: 5px;
}

/* Hero Section */
.hero {
    position: fixed; /* Fixes the hero section */
    top: 60px; /* Adjust this value to align below the fixed header */
    left: 50%; /* Centers the hero horizontally */
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%); /* Corrects alignment after left: 50% */
    width: 100%; /* Makes the hero full width */
    height: 300px; /* Fixed height for the hero section */
    padding: 2.5rem 0;
    text-align: center;
    color: rgb(238, 228, 228);
    z-index: 999; /* Ensure it's above other content but below the header */
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    display: inline-block;
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.hero h2 {
    margin: 0.5rem 0 0;
    font-size: 1.5rem;
}
/* Add this to your CSS file */
/* Adjusted hero section for shrinking */
.hero.shrink {
    height: 150px; /* New height when shrunk */
    -webkit-transition: height 0.5s ease opacity 0.5s ease;
    -o-transition: height 0.5s ease opacity 0.5s ease;
    transition: height 0.5s ease opacity 0.5s ease; /* Smooth transition effect */
}

/* Adjust content styles for the shrunken state */
.hero-content.shrink-content {
    padding: 1rem; /* Adjust padding when hero shrinks */
    -webkit-transition: padding 0.5s ease;
    -o-transition: padding 0.5s ease;
    transition: padding 0.5s ease; /* Smooth transition effect */
}

.hero.shrink h1 {
    font-size: 1.5rem; /* Smaller font size when hero shrinks */
}

.hero.shrink h2 {
    font-size: 1rem; /* Smaller font size for subheading */
}


/* Section Content */
.section-content {
    min-height: 75vh; /* Adjust height to fit content needs */
    padding: 60px 0; /* Internal spacing */
    margin-top: 360px; /* Space to account for fixed hero */
    /* Remove margin-top: -80px; */ /* Remove this to avoid content being pushed behind hero */
    padding-top: 40px; /* Add padding to account for header height if needed */
}

/* Anchor offset helper */
.offset-helper {
    display: block;
    height: 360px; /* Space to match the hero height */
    margin-top: -360px; /* Negative margin to offset the scroll */
    pointer-events: none; /* Ensures this doesn't interfere with clicks */
}

/* Projects Section Styling */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start; /* Ensure all items stretch to the same height */
    margin-top: 2rem;
}

.project-item {
    background-color: rgba(36, 35, 35, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Allow content to stretch and align properly */
    height: 100%; /* Make sure item takes full height available */
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 400px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-info {
    flex: 1; /* Allow this section to grow and fill available space */
}

.project-info h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
    color: #fffefe;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: #0056b3;
}


/* Skills Section Styles */
.skills-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 15px; /* Reduced gap */
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.skills-category {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 calc(15% - 5px);
            flex: 1 1 calc(15% - 5px); /* Smaller size and reduced margin */
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    padding: 15px; /* Reduced padding */
    background: rgba(36, 35, 35, 0.8); /* Slightly transparent background */
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px; /* Reduced margin */
    -webkit-transition: background 0.3s ease, border-color 0.3s ease;
    -o-transition: background 0.3s ease, border-color 0.3s ease;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.skills-category:hover {
    background: #363535; /* Light grey background on hover */
    border-color: #007BFF; /* Border color on hover */
}

.skills-category h2 {
    font-size: 1.4rem; /* Slightly smaller font size */
    color: #d8c6c6;
    margin-bottom: 0.8rem; /* Slightly reduced margin */
}

.skills-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-category ul li {
    margin: 8px 0; /* Slightly reduced margin */
    font-size: 1rem; /* Slightly reduced font size */
    color: #dad0d0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.skills-category ul li i {
    margin-right: 8px; /* Reduced icon margin */
    color: #007BFF; /* Icon color */
    font-size: 1.1rem; /* Slightly smaller icon size */
}

.skills-category ul ul {
    margin-left: 15px; /* Reduced nested list margin */
    font-size: 0.85rem; /* Slightly reduced font size */
}

.skills-category ul ul li {
    margin: 4px 0; /* Reduced margin for nested items */
}


/* Timeline styles */
.timeline {
    width: 80%;
    margin: auto;
    padding: 2rem 0;
    position: relative;
}

.timeline-container {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}


.timeline-item {
    margin-bottom: 2rem;
}

.timeline-date {
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: rgb(24,26,27);
    background-image: initial;
    opacity: .92;
    border-color: rgb(58,83,91);
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70%;
}

.timeline h3 {
    margin-top: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: auto;
    right: 0;
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: 0;
}

/* Example for timeline item fade-in */
.timeline-item {
    opacity: .80;
    -webkit-transform: translateY(20px);
        -ms-transform: translateY(20px);
            transform: translateY(20px);
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.timeline-item.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);
}

/* Styling for Resume View/Download Button */
.btn-neon {
    color: #fff;
    padding: 10px 20px;
    background-color: #1b1b1b;
    border-radius: 50px;
    border: 2px solid #00ffcc;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}


.btn-neon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 204, 0.8);
    z-index: -1;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2), 0 0 40px rgba(0, 255, 204, 0.2);
    transition: transform 0.3s ease;
}

.btn-neon:hover {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.8), 0 0 40px rgba(0, 255, 204, 0.5);
}




.about-social-links {
    margin-top: 20px;
    text-align: center; /* Center align the social links in the about page */
}

.about-social-links a {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    color: #ffffff;
}

.about-social-links a:hover {
    color: #007BFF; /* Bootstrap primary color */
}

.about-social-links i {
    margin-right: 5px;
}

/* Main content */
main {
    padding: 2rem 0;
    padding-bottom: 4rem; /* Add padding to prevent content from being hidden by footer */
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed; /* Fixes the footer at the bottom */
    width: 100%; /* Full width */
    bottom: 0; /* Position it at the bottom */
    z-index: 1000; /* Ensure it stays above other content */
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    body {
        font-size: 80%;
    }

    .timeline-content {
        width: 100%;
    }

    header nav {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
}

    header .header-social-links {
        position: static;
        margin-top: 10px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    .hero {
        height: 200px; /* Smaller height for smaller screens */
    }

    .section-content {
        min-height: 120vh; /* Keeps the minimum height for the section */
        padding: 60px 0; /* Keeps internal spacing */
        margin-top: 290px; /* Adjust this to be smaller to fit smaller screens */
        padding-top: 120px; /* Reduces top padding to fit content */
    }

    .hero-content {
        padding: 1rem;
    }

    .header-social-links a, .about-social-links a {
        margin-top: 10px;
    }

    .header-social-links i, .about-social-links i {
        margin-right: 5px;
    }
    
    .skills-category {
        -webkit-box-flex: 1;
            -ms-flex: 1 1 calc(15% - 10px);
                flex: 1 1 calc(15% - 10px);
    }
    .section-title {
        font-size: 2rem; /* Adjusted font size for better readability on smaller screens */
        margin-bottom: 1.5rem; /* Reduced margin-bottom to fit content */
    }

    .btn-neon {
        padding: 7px 14px; /* Smaller padding */
        font-size: 10px; /* Smaller font size */
        border-radius: 30px; /* Slightly smaller border radius */
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid with flexible column width */
        gap: 1.5rem; /* Adjusted gap for better spacing */
    }

    .project-item {
        padding: 1.25rem; /* Adjusted padding for better fit on smaller screens */
    }

    .project-image {
        height: 300px; /* Adjusted height for uniformity across devices */
    }

    .project-info h3 {
        font-size: 1.6rem; /* Reduced font size for better readability */
    }

    .project-info p {
        font-size: 0.95rem; /* Adjusted font size for better fit */
        margin-bottom: 1rem; /* Reduced margin-bottom for consistency */
    }

    .project-link {
        padding: 0.6rem 1.2rem; /* Adjusted padding for better touch targets */
    }
}

