/* styles.css - Minimalist with Dark Gray Theme */

:root {
    --background-color: #1c1c1c; /* Dark gray background */
    --text-color: #e0e0e0; /* Light gray text */
    --accent-color: #4caf50; /* Subtle green for highlights */
    --border-color: #333; /* Slightly lighter gray for borders */
    --font-primary: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background: linear-gradient(to top, #171717, #1c1c1c); /* Dark to lighter gray */
    color: var(--text-color);
    line-height: 1.6;
}

/* General link styles */
a {
    color: var(--accent-color); /* Use your accent color */
    text-decoration: none; /* Remove the underline */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

    a:hover,
    a:focus {
        color: #81c784; /* Slightly lighter green for hover/focus */
        text-decoration: underline; /* Optional underline on hover */
    }

    a:visited {
        color: var(--accent-color); /* Keep the visited link color consistent */
    }

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 40px 0;
    text-align: center;
}

    header h1 {
        font-size: 2.5rem;
        margin: 0;
        color: var(--text-color);
    }

    header h2 {
        font-size: 1.2rem;
        margin: 10px 0 0;
        color: var(--text-color);
        font-weight: 300;
    }

nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

    nav ul li a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.9rem;
        padding: 8px 12px;
        border: 1px solid transparent;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        nav ul li a:hover {
            border: 1px solid var(--text-color);
            background-color: var(--accent-color);
            color: #000;
        }

section {
    padding: 40px 0;
}

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        text-align: center;
        color: var(--text-color);
        font-weight: 600;
    }

#about p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.container p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

#about p1 {
    text-align: center;
    margin: 30px auto;
    font-weight: 800;
    display: block;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Slightly smaller for better grid */
    gap: 20px; /* Reduced gap for more compact layout */
    margin-top: 20px;
}

.project {
    background: var(--background-color);
    padding: 25px 20px; /* Reduced padding for more compact layout */
    border: 1px solid var(--border-color); /* Flat border instead of shadow */
    border-radius: 0; /* Remove rounded corners for flatter look */
    text-align: center;
    transition: border-color 0.3s ease; /* Subtle transition */
}

    .project:hover {
        border-color: var(--accent-color); /* Simple border color change on hover */
    }    .project h3 {
        font-size: 1.3rem; /* Slightly smaller title */
        margin: 0 0 12px 0; /* Reduced margins */
        color: var(--text-color);
    }    /* This is where we ensure the image resizes correctly */
    .project img {
        display: block;
        width: 100%; /* Ensure it spans the container */
        height: auto; /* Allow natural height to show complete image */
        max-height: 200px; /* Reduced max height for more compact layout */
        object-fit: contain; /* Show entire image without cropping */
        margin: 0 auto 15px auto; /* Reduced bottom margin */
        background-color: #000; /* Background if image doesn't cover fully */
        border-radius: 0; /* Remove rounded corners for flatter look */
    }    .project p {
        font-size: 0.95rem; /* Slightly smaller text */
        color: #bbb;
        margin: 10px 0 15px 0; /* Reduced margins */
        line-height: 1.5;
    }    .project a {
        display: inline-block;
        margin-top: 10px;
        padding: 10px 20px; /* Slightly smaller padding */
        color: var(--text-color);
        background-color: transparent;
        border: 2px solid var(--accent-color); /* Flat button style */
        text-decoration: none;
        font-size: 0.95rem; /* Slightly smaller font */
        border-radius: 0; /* Remove rounded corners */
        transition: all 0.3s ease;
    }

        .project a:hover {
            background-color: var(--accent-color);
            color: var(--background-color);
        }

#contact ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 20px 0;
}

    #contact ul li {
        margin: 10px 0;
        color: var(--text-color);
    }

footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #777;
}
