/* === RESET / BODY === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Nunito Sans', sans-serif;
    background: #121212;
    color: #e0e0e0;
}

/* === HEADER & FOOTER === */
header, footer {
    background: rgba(30,30,30,0.95);
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header {
    border-radius: 0 0 12px 12px;
}

footer {
    border-radius: 12px 12px 0 0;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.3);
}

header nav a,
footer nav a {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: 0.25s;
}

header nav a:hover,
footer nav a:hover {
    color: #1db954;
    transform: translateY(-2px);
}

/* === HERO / MAIN === */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-container h1 {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 6px 18px rgba(0,0,0,0.7), 0 0 40px rgba(255,255,255,0.08);
    margin: 0;
}

.hero-container p {
    font-weight: 300;
    color: #d0d0d0;
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 700px;
    margin-top: 30px;
}

/* === RESPONSIVE HERO === */
@media(max-width:1024px) {
    .hero-container h1 {
        font-size: 4rem;
    }
    .hero-container p {
        font-size: 1.2rem;
    }
}

@media(max-width:768px) {
    .hero-container h1 {
        font-size: 3.5rem;
    }
    .hero-container p {
        font-size: 1.1rem;
    }
}

@media(max-width:480px) {
    .hero-container h1 {
        font-size: 2.8rem;
    }
    .hero-container p {
        font-size: 1rem;
    }
}

/* === HR STYLING === */
.heading-wrapper {
    display: inline-block;
    text-align: center;
}

.heading-wrapper hr {
    width: 100%;
    height: 3px;
    border: none;
    background: #1db954;
    margin: 10px 0 30px;
    border-radius: 2px;
}

/* === PROJECTS === */
.projects-container {
    padding: 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;          /* allows cards to wrap onto next row */
    gap: 1.5rem;              /* space between cards */
    justify-content: center;  /* center the row content */
}

.project-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1 1 250px;          /* flexible width, min 250px, grows if space allows */
    max-width: 300px;         /* prevents cards from getting too wide */
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    background-color: #1db954b4;
}

.project-card:hover p {
    color: white;
}

.project-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.project-card p {
    font-size: 1rem;
    color: #ccc;
}

nav a.active {
    color: #1db954d0;
    font-weight: bold; /* optional emphasis */
}

/* === ABOUT CARDS STYLING === */
.about-container {
    flex: 1;
    width: 100%;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;                 
    justify-content: space-between;
    align-items: stretch;         
    flex-wrap: wrap;              
}

.about-card {
    flex: 1;                     
    background-color: #1e1e1e;   /* solid dark color */
    border-radius: 16px;
    padding: 2.5rem;
    min-height: 450px;           
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
    font-family: 'Nunito Sans', sans-serif;
    color: #d0d0d0;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    background-color: #1db954b4;  /* subtle green overlay */
    color: #ffffff;               /* text turns white */
}

.about-card:hover h2,
.about-card:hover h3,
.about-card:hover p,
.about-card:hover li {
    color: #ffffff; /* all inner text turns white */
}

.about-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 3px solid #1db954;
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1db954;
    text-transform: uppercase;
}

.about-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.about-card ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.about-card ul li {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: #ccc;
    text-align: left;
}

/* RESPONSIVE */
@media(max-width: 1200px) {
    .about-card {
        min-height: 400px;
    }
}

@media(max-width: 1024px) {
    .about-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .about-card {
        min-height: auto;
        width: 100%;
    }
}


/* === PROJECT CARD HEADINGS HR === */
.project-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 2px solid #1db954;  /* adds the green underline */
    padding-bottom: 0.5rem;
}

.project-card:hover h2 {
    border-bottom: 2px solid #ffffff;  /* adds the green underline */
}
