/* --- 1. GLOBAL STYLES (Scoped) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

main{
    margin: 50px;
}

.dev-page-wrapper {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom, #01315f, #000000);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dev-page-wrapper main {
    margin: 50px;
    flex: 1; 
}

a { text-decoration: none; }

/* --- 2. HEADER STYLES --- */
.header {
    overflow: hidden;
    background-color: #f1f1f1;
    padding: 20px 10px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.header a {
    float: left;
    color: black;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
}

.header a.logo {
    font-size: 25px;
    font-weight: bold;
    padding: 0;
    margin-left: 10px;
}

.header-right { float: right; }
.header a:hover { background-color: #ddd; color: black; }
.header a.active { background-color: dodgerblue; color: white; }

@media screen and (max-width: 768px) {
    .header a { float: none; display: block; text-align: left; }
    .header-right { float: none; }
}

/* --- 3. PROJECT CARD STYLES --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img { transform: scale(1.05); }

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- FORCE TITLE WHITE --- */
/* We target h3 specifically inside the card content */
.project-card .card-content h3, 
.card-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff !important; /* Added !important to override Bootstrap */
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- FORCE DESCRIPTION WHITE --- */
.project-card .card-content p,
.card-description {
    color: #ffffff !important; /* Added !important to ensure visibility */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-weight: 300;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aebfd3;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 4. BUTTON STYLES --- */
.github-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; 
    padding: 12px 24px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: auto;
    width: fit-content;
    text-decoration: none; /* Ensure no underline */
}

.github-btn:hover {
    background: dodgerblue;
    border-color: dodgerblue;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
    color: white;
}

/* --- 5. FOOTER STYLES --- */
.site-footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding-top: 50px;
    width: 100%;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { color: dodgerblue; margin-bottom: 20px; text-transform: uppercase; font-size: 1.2rem; }
.footer-col p { color: #ffffff; line-height: 1.6; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ffffff; transition: color 0.3s; }
.footer-links a:hover { color: dodgerblue; padding-left: 5px; }

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-icons a:hover { background: dodgerblue; transform: translateY(-3px); }

.footer-bottom {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    color: #888;
}