/* General Resets and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    background-color: #000000; /* Complete black */
    color: #f8f9fa; /* Light text color for contrast */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background: #0d0d0d; /* Very dark grey for containers */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    color: #e0e0e0; /* Light text for container content */
}

h2 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8em;
    color: #007bff; /* Primary blue for headings */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #007bff; /* Primary blue accent underline */
    border-radius: 2px;
}

/* Buttons (General) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.primary-btn {
    background-color: #007bff; /* Primary blue for primary button */
    color: #ffffff; /* White text on button */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.primary-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: #007bff; /* Primary blue border/text */
    border: 2px solid #007bff;
    box-shadow: none;
}

.secondary-btn:hover {
    background-color: #007bff22; /* Light blue transparent background on hover */
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.small-btn {
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 25px;
}


/* Header and Navigation */
header {
    background-color: #0d0d0d; /* Very dark grey for header */
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: #e0e0e0; /* Light text */
    margin: 0;
}

.brand .role {
    font-size: 0.9em;
    color: #aaa; /* Lighter grey */
    margin-top: 5px;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: #e0e0e0; /* Light text */
    font-weight: 600;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: #007bff; /* Primary blue accent */
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #007bff; /* Highlight active link with primary blue */
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d0d0d 0%, #000000 100%); /* Subtle dark gradient background */
    padding: 100px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content .intro {
    font-size: 1.3em;
    color: #007bff; /* Primary blue */
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5em;
    color: #ffffff; /* White text for main name */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.1;
}

.hero-content h2::after {
    display: none;
}

.hero-content .tagline {
    font-size: 1.4em;
    color: #b0b0b0; /* Lighter grey for tagline */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* About Section */
.about-section {
    text-align: center;
}

.about-description {
    font-size: 1.1em;
    color: #d0d0d0; /* Light text on dark background */
    max-width: 850px;
    margin: 0 auto 40px auto;
}

.contact-info-block {
    background-color: #1a1a1a; /* Darker background */
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    max-width: 700px;
    margin: 40px auto 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.contact-info-block h3 {
    font-family: 'Montserrat', sans-serif;
    color: #007bff; /* Primary blue heading */
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #333; /* Darker border */
    padding-bottom: 10px;
}

.contact-info-block p {
    margin-bottom: 8px;
    font-size: 1.05em;
    color: #e0e0e0; /* Light text */
}

.contact-info-block p a {
    color: #007bff; /* Primary blue links */
    text-decoration: none;
}
.contact-info-block p a:hover {
    text-decoration: underline;
}


/* Skills Section (Blue Button Type) */
.skills-section {
    background-color: #0a0a0a;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for cards */
    gap: 25px;
    margin-top: 40px;
    justify-content: center;
}

.skill-item-button { /* New class for the skill item as a button */
    background: #007bff; /* Primary blue background for skill button */
    color: #ffffff; /* White text color for skill name */
    border-radius: 50px; /* Pill shape */
    padding: 15px 25px; /* Adjusted padding for a button feel */
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    border: none;

    display: flex; /* Use flexbox for logo/icon and text */
    flex-direction: row; /* Logo/icon and text side-by-side */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    gap: 10px; /* Space between logo/icon and text */
    flex-wrap: wrap; /* Allow wrapping if content is too long */
}

.skill-item-button:hover {
    background: #0056b3; /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.skill-button-logo { /* For image-based logos within the button */
    width: 30px; /* Size of the image logo */
    height: 30px;
    object-fit: contain;
    /* Adjust filter if dark logos need to be lighter on blue background */
    filter: invert(100%) brightness(150%);
    transition: filter 0.3s ease;
}

.skill-button-icon-container { /* For Font Awesome icons within the button */
    line-height: 1; /* Ensure icon is vertically centered */
}
.skill-button-icon-container i {
    font-size: 1.8em; /* Size for Font Awesome icon within button */
    /* You might want to remove specific colors from .fa-* if you want them to be white on blue button */
    color: #ffffff; /* Make icon white on blue button */
}


.skill-item-button h3 { /* Style for skill name inside button */
    font-family: 'Roboto', sans-serif; /* Simpler font for button text */
    font-size: 1.1em; /* Smaller font to fit button */
    color: #ffffff; /* White text */
    margin: 0; /* Remove default margins */
    text-align: center;
}

.skill-item-button h3::after {
    display: none;
}

.skill-item-button p { /* Style for description inside button */
    font-size: 0.8em; /* Smaller font for description */
    color: #e0e0e0; /* Lighter grey for description */
    margin: 0; /* Remove default margins */
    text-align: center;
    width: 100%; /* Make description take full width below title/logo */
    margin-top: 5px; /* Space from title */
    line-height: 1.3;
}


/* Projects Section */
.projects-section {}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.project-card-top-title {
    font-size: 1.2em;
    color: #b0b0b0;
    margin-bottom: 5px;
    font-weight: 500;
}

.project-card-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #e0e0e0;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-card-description {
    font-size: 0.95em;
    color: #d0d0d0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-card-technologies {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 10px;
}

.project-card-technologies .tech-tag {
    background-color: #007bff;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
    margin-top: 5px;
}

.project-card-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.project-card-links .project-link-button {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 25px;
}
.project-card-links .project-link-button i {
    margin-right: 5px;
}


/* GitHub Link for Projects (General) */
.projects-github-link {
    text-align: center;
    margin-top: 50px;
}
.projects-github-link .btn {
    padding: 10px 25px;
    font-size: 1em;
}
.projects-github-link .fab.fa-github {
    font-size: 1.2em;
    margin-right: 8px;
}


/* Education Section */
.education-section {
    background-color: #0a0a0a;
}

.education-timeline {
    margin-top: 40px;
    position: relative;
    padding-left: 30px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #444;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    border-radius: 50%;
    border: 3px solid #000000;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.timeline-content {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    margin-left: 40px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #e0e0e0;
    margin-bottom: 8px;
    text-align: left;
}
.timeline-content h3::after {
    display: none;
}

.timeline-content .institute {
    font-style: italic;
    color: #aaa;
    margin-bottom: 5px;
}

.timeline-content .year {
    color: #bbb;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.timeline-content .grade {
    font-weight: 700;
    color: #007bff;
}


/* Additional Information Section */
.additional-info-section {
    text-align: center;
}

.additional-info-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: left;
}

.additional-info-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #007bff;
    margin-bottom: 25px;
    text-align: center;
}

.additional-info-block h3::after {
    display: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-item {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.info-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: #e0e0e0;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Styling for Certifications and Languages as blue buttons (remain the same) */
.info-item .simple-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.info-item .simple-list li {
    background: #007bff;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
    cursor: default;
    position: static;
    padding-left: 15px;
    margin-bottom: 0;
}

.info-item .simple-list li::before {
    content: none;
}

.info-item .simple-list li:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


/* Connect With Me Section */
.connect-with-me-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #0a0a0a;
}

.connect-with-me-section .section-description {
    font-size: 1.1em;
    color: #d0d0d0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.connect-with-me-section .contact-buttons-main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.connect-with-me-section .note {
    font-style: italic;
    color: #aaa;
    margin-top: 30px;
    font-size: 0.95em;
}


/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background-color: #0d0d0d;
    color: #e0e0e0;
    margin-top: 60px;
    font-size: 0.95em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background-color: #0056b3;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .main-nav {
        margin-top: 20px;
    }
    .main-nav .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .main-nav .nav-list li {
        margin: 0;
    }

    .hero-content h2 {
        font-size: 3.5em;
    }
    .hero-content .tagline {
        font-size: 1.2em;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 80%;
        margin: 0 auto;
    }

    .container {
        width: 95%;
        padding: 30px 15px;
    }

    h2 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    h2::after {
        width: 50px;
    }

    .skills-grid, .project-grid, .info-grid {
        grid-template-columns: 1fr;
    }

    .education-timeline::before {
        left: 5px;
    }
    .timeline-dot {
        left: -10px;
    }
    .timeline-content {
        margin-left: 20px;
        padding: 20px;
    }
    .timeline-content h3 {
        font-size: 1.5em;
    }

    /* Adjust contact buttons for mobile */
    .connect-with-me-section .contact-buttons-main {
        flex-direction: column;
        align-items: center;
    }
    .connect-with-me-section .contact-buttons-main .btn {
        width: 80%;
    }

    .info-item .simple-list {
        justify-content: center; /* Center buttons on mobile */
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.8em;
    }
    .hero-content h2 {
        font-size: 2.8em;
    }
    .hero-content .tagline {
        font-size: 1em;
    }
    .btn {
        font-size: 1em;
        padding: 10px 25px;
    }

    .skill-item {
        flex-direction: column; /* Stack elements vertically on small screens */
        gap: 5px;
        font-size: 0.9em;
        padding: 15px 10px; /* Adjust padding */
    }
    .skill-icon-container i { /* Adjust icon size for very small screens */
        font-size: 2.5em;
    }
}