/* Custom Properties for Colors (from your style.css) */
:root {
    --color-dark: #5A827E;   /* Dark Teal */
    --color-medium: #84AE92; /* Medium Green */
    --color-light: #B9D4AA;  /* Light Green */
    --color-accent: #FAFFCA; /* Very Light Yellow / Cream */
    --text-color-dark: #333;
    --text-color-light: #FAFFCA;
    --code-bg: #2d2d2d; /* Dark background for code blocks */
    --code-text: #f8f8f2; /* Light text for code blocks */
}

/* General Body Styles */
body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-accent);
    color: var(--text-color-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Styling */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: var(--color-light);
}
body::-webkit-scrollbar-thumb {
    background: var(--color-medium);
    border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark);
}

/* Header Styles */
header {
    background-color: var(--color-dark);
    color: var(--text-color-light);
    padding: 2rem 2rem 3rem; /* Adjusted padding for nav items */
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    /* clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); */ /* Optional: if you want the slant */
}

header div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

header span { /* JUSTAWAKE */
    font-weight: 600;
    font-size: 1.3em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

header h1 {
    margin: 0.5rem 0 1rem 0;
    font-size: 2.8em;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}
header h1 .subtitle {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--color-light);
}

header .intro-text {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0 auto 1.5rem auto;
    max-width: 700px;
    font-size: 1.1em;
}

/* Navigation Links in Header (e.g., HOME, CONTACT US) */
.a1 {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.a1:hover {
    background-color: var(--color-medium);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    border-color: var(--color-light);
}

/* Project Navigation (Blink Master, Rainbow Spectrum, etc.) */
nav.project-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0.1); /* Subtle background for the nav area */
    border-radius: 8px;
}

nav.project-navigation .nav-link {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--color-medium);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.9em;
}

nav.project-navigation .nav-link:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* Main Content Styles */
main {
    flex-grow: 1;
    padding: 2rem 1.5rem; /* Slightly less padding for more content focus */
    display: flex;
    flex-direction: column; /* Stack project cards vertically */
    align-items: center; /* Center cards */
    gap: 2.5rem;
}

/* Project Card Styles */
.project-card {
    background-color: #ffffff; /* White background for cards */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 900px; /* Max width for readability */
    border-left: 5px solid var(--color-dark); /* Accent border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.project-card h2 {
    font-family: 'Fira Code', monospace;
    font-size: 1.8em;
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 0.5rem;
}
.project-card h2 .icon {
    margin-right: 0.75rem;
    color: var(--color-medium);
}

.code-info-container {
    display: flex;
    flex-wrap: wrap; /* Wrap if not enough space */
    gap: 1.5rem;
}

.code-block {
    flex: 2; /* Takes more space */
    min-width: 300px; /* Minimum width before wrapping */
}

.info-block {
    flex: 1; /* Takes less space */
    min-width: 250px; /* Minimum width */
    background-color: var(--color-accent);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95em;
}

.code-block h3, .info-block h3 {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.3em;
    border-bottom: 1px solid var(--color-medium);
    padding-bottom: 0.3rem;
}

pre {
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto; /* Scroll for long lines of code */
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre-wrap; /* Wrap code, but preserve formatting */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

/* Button Group for Copy/Download */
.button-group {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.button-group button {
    background-color: var(--color-medium);
    color: var(--text-color-light);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-group button:hover {
    background-color: var(--color-dark);
    transform: translateY(-2px);
}
.button-group button.copied {
    background-color: var(--color-light);
    color: var(--color-dark);
}


/* Navigation Footer (Next/Previous Projects) */
.navigation-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
}

.navigation-footer p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

.next-page-button {
    display: inline-block;
    background-color: var(--color-dark);
    color: var(--text-color-light);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1em;
}

.next-page-button:hover {
    background-color: var(--color-medium);
    transform: translateY(-3px) scale(1.03);
}
.next-page-button .fas {
    margin-left: 0.5rem;
}
.next-page-button .fa-arrow-left { /* For previous button */
    margin-right: 0.5rem;
    margin-left: 0;
}


/* Footer Styles */
footer {
    background-color: var(--color-dark);
    color: var(--text-color-light);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto; /* Pushes footer to bottom */
    font-size: 0.9em;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.15);
}