/* styles.css */

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
    background-color: #181818;
}

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

/* Header */
header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 0;
}

header p {
    font-size: 1.2em;
    color: #aaa;
    margin-top: 0;
}

/* Projects Section */
.projects {
    padding: 20px 0;
}

.projects h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 0;
}

.projects p{
    margin-top: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-card time {
    display: block;
    font-size: 1.2em;
    color: #8bc34a;
}

.project-card h3 a {
    font-size: 1.5em;
    color: #fff;
    text-decoration: none;
}

.project-card p {
    font-size: 1em;
    color: #aaa;
    margin-top: 20px;
    margin-bottom: 20px;
}

.project-links {
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 4px;
    background: #333;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #444;
}

/* Other Sections */
.education, .experience, .certifications, .interests {
    padding: 20px 0;
}

section h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 0;
}

.education-item, .experience-item, .certification-item, .interest-item {
    margin-bottom: 20px;
}

.interest-item{
    display: flex;
    align-items: flex-start;
}

.interest-text {
    flex: 1;
}

.education-item time, .experience-item time, .certification-item time, .interest-item time {
    display: block;
    font-size: 1.2em;
    color: #8bc34a;
}

.education-item h3, .experience-item h3, .certification-item h3, .interest-item h3 {
    margin-bottom: 10px;
}

.education-item h3 a, .experience-item a, .certification-item h3 a, .interest-item h3 a {
    font-size: 1.2em;
    color: #fff;
    text-decoration: none;
}

.certification-item h4 {
    font-size: 1.1em;
    color: #fff;
}

.education-item p, .certification-item p, .interest-item p {
    font-size: 1em;
    color: #aaa;
}

.projects p, .education p, .certification p, .interests p{
    margin-top: 0;
}

#afbt-tag a:hover{
    text-decoration: underline;
    color: rgb(110, 56, 213);

}

.afbt-image {
    max-width: 50%; /* Ensures the image doesn't exceed the container width */
    height: auto; /* Maintains the aspect ratio */
    display: block;
    margin-top: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: #222;
    color: #fff;
    margin-bottom: 3em;
}

#download-resume-btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

#download-resume-btn:hover {
    background-color: #0056b3;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.toggle-btn{
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
    border: 0;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
    width: 100%; /* Make dropdown the same width as the button */
    box-sizing: border-box;
}

.dropdown-content a {
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #444;
}

.socials{
    max-width: 16px;
    display: flex;
    align-items: flex-start;
    align-items: center;
}

.socials-img{
    max-width: 16px;
}
/* Projects */
.back-btn-container {
    text-align: center; /* Centers the button horizontally */
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

.tech-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tech-header h2 {
    font-size: 2rem;
}

.tech-images {
    display: flex;
    flex-wrap: wrap; /* Allow images to wrap onto the next line */
    gap: 15px; /* Adjust spacing between images */
    justify-content: center; /* Center images when wrapping */
}

.tech-images img {
    max-width: 60px; /* Ensure images scale properly */
    height: auto; /* Maintain aspect ratio */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tech-images {
        gap: 10px; /* Reduce gap on smaller screens */
    }

    .tech-images img {
        width: 100px; /* Adjust image size for smaller screens */
    }
}

.video-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    margin-top: 2rem;
}

.weather-images {
    display: flex;
    width: auto;
    flex-wrap: wrap; /* Allows images to wrap on smaller screens */
    justify-content: center; /* Centers the images */
    align-items: center;
    gap: 10px; /* Adds spacing between images */
}

.weather-images img {
    width: 80%; /* Adjust size dynamically */
    max-width: 600px; /* Prevents image from becoming too large */
    height: auto; /* Maintains aspect ratio */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .weather-images img {
        width: 90%; /* Increases width on smaller screens */
    }
}

@media (max-width: 480px) {
    .weather-images img {
        width: 100%; /* Full width on mobile */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1em;
    }

    .projects h2, section h2 {
        font-size: 1.8em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card h3 a, .education-item h3 a, .certification-item h3 a, .interest-item h3 a {
        font-size: 1.2em;
    }

    .project-card p, .education-item p, .certification-item p, .interest-item p {
        font-size: 0.9em;
    }

    .interest-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .afbt-image {
        max-width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 0.9em;
    }

    .projects h2, section h2 {
        font-size: 1.5em;
    }

    .project-card h3 a, .education-item h3 a, .certification-item h3 a, .interest-item h3 a {
        font-size: 1em;
    }

    .project-card p, .education-item p, .certification-item p, .interest-item p {
        font-size: 0.8em;
    }

    .interest-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .afbt-image {
        max-width: 100%;
        margin-top: 10px;
    }

    .socials {
        flex-direction: column;
        align-items: flex-start;
    }
}