/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: #121212; /* Dark background */
    color: #f5f5f5; /* Light text */
    line-height: 1.6;
    font-size: 16px;
}

/* Buttons and Links: Hover/Focus Effects */
button.hover,
button:focus,
a:hover,
a:focus {
    outline: none;
    transform: scale(1.05);
    background-color: #1db954;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.logo {
    font-family: 'Poppins', sans-serif; /* Clean, modern font */
    font-size: 1.4rem; /* Larger, attention-grabbing size */
    font-weight: 600; /* Bold for emphasis */
    color: #f5f5f5; /* Light text for dark background */
    letter-spacing: 0.04rem; /* Subtle spacing for modern look */
    display: flex;
    align-items: center; /* Aligns nicely if you add an icon later */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1e1e1e; /* Slightly darker navbar */
    border-bottom: 1px solid #242424;
}

.nav-links li {
    display: inline;
    margin: 0 1rem;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0.75rem; /* Improved padding for better clickability */
    transition: color 0.3s ease; /* Smooth color transition */
}

.nav-links a:hover,
.nav-links a:focus,
.floating-nav a:hover,
.floating-nav a:focus {
    color: #4caf50; /* Accent color */
    transform: scale(1.05);
    background-color: transparent; /* Ensure background color does not change */
}

a:focus, button:focus {
    outline: 2px dashed #4caf50;
    outline-offset: 2px;
}

.nav-links a,
.floating-nav a {
    outline: none; /* Remove default focus outline */
}

.nav-links a:focus,
.floating-nav a:focus {
    outline: none; /* Remove default focus outline */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, #1e1e1e, #121212);
    min-height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #b3b3b3; /* Secondary text */
    margin-bottom: 2rem;
}

.hero .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: #4caf50;
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover, 
.hero .btn:focus {
    background-color: #1db954;
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: 3rem 1rem;
    text-align: center;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
    justify-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    background-color: #1e1e1e;
    border: 1px solid #242424;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 280px;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #b3b3b3;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Project Card Buttons */
.project-card .btn {
    background-color: #4caf50;
    color: #121212;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-card .btn:hover,
.project-card btn:focus {
    background-color: #1db954;
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #b3b3b3;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.about img {
    width: 350px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #4caf50;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text .intro {
    font-size: 1.5rem;
    font-weight: 600; /* Valid font weight */
    color: #4caf50;
    margin-bottom: 0.25rem;
}

.about-text .intro-description {
    font-size: 1.35rem;
    font-weight: 500; /* Valid font weight */
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.about-text .highlight {
    color: #d3d3d3;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about ul {
    list-style-type: none;
    padding: 0;
    margin-top: 1.25rem;
    line-height: 1.7;
}

.about ul li {
    margin: 0.5rem 0;
    color: #4caf50;
}

.about ul li strong {
    color: #ffffff;
    font-weight: 600;
}

.about-text .closing {
    font-size: 1.15rem;
    font-weight: 500; /* Valid font weight */
    color: #d3d3d3;
    margin-top: 1.75rem;
    line-height: 1.7;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 3rem 1rem;
    text-align: center;
    background-color: #1e1e1e;
    border-top: 1px solid #242424;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact label {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #f5f5f5;
}

.contact input,
.contact textarea {
    width: 90%;
    max-width: 500px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #242424;
    border-radius: 5px;
    background-color: #121212;
    color: #f5f5f5;
}

.contact button {
    background-color: #4caf50;
    color: #121212;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover,
.contact button:focus {
    background-color: #1db954;
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #121212;
    color: #b3b3b3;
}

footer .social-links img {
    width: 30px;
    height: 30px;
    margin: 0 0.5rem;
    transition: filter 0.3s ease;
}

footer .social-links img:not(.instagram-logo) {
    filter: brightness(0) invert(1);
}

footer .social-links img:hover,
footer .social-links img:focus {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

footer .social-links img.instagram-logo {
    filter: none;
}

/* Floating Navbar */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
}

.floating-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.floating-nav li {
    margin: 1rem 0;
}

.floating-nav a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #b3b3b3;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.floating-nav a:active {
    color: #4caf50; /* Highlight color for active section */
}

.floating-nav a:hover {
    color: #1db954; /* Hover color */
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        width: 200px;
    }

    .about-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }

    .project-card {
        padding: 1rem;
        max-width: 90%;
    }

    .about img {
        width: 150px;
    }

    footer {
        font-size: 0.8rem;
    }

    footer .social-links img {
        width: 20px;
        height: 20px;
    }
}