:root {
    --primary-color: #fff1f2;
    /* --secondary-color:#ddd6ff; */
    /* --secondary-color: #ffe600; */
    --secondary-color: #fef08a;
    --background-color: #1c1917;
    --surface: #fff;

}

* {
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition-duration: 0.5s;
}

body {
    color: var(--primary-color);
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    padding: 0.9rem;
    overflow-y: scroll;
}

.secondaryText {
    color: var(--secondary-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

header p {
    font-weight: 500;
    font-size: 1.3em;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

nav a {
    text-decoration: unset;
    color: var(--primary-color);
    margin: 0.4rem;
    font-size: 1em;
}

nav a:hover {
    color: var(--secondary-color);
}

main, .headingContainer, .profileContainer {
    display: flex;
    flex-direction: column;
}

main {
    gap: 4rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.headingContainer {
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.9rem;  
    padding: 0 4rem;
}

.headingText {
    font-size: 1.3em;
    font-weight: 350;
}

.headingText mark {
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 0 0.9rem;
    font-weight: 500;
}


.profileContainer {
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.profilePic {
    max-width: 9rem;
    overflow: hidden;
}

.profilePic img {
    width: 100%;
    border-radius: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}


.socialIcons {
    max-width: 12.5rem;
    display: flex;
    gap: 0.9rem;
}

.socialIcons a {
    text-decoration: unset;
    color: var(--primary-color);
    font-size: 1.2em;
}

.socialIcons a:hover {
    color: var(--secondary-color);
}

.greetingContainer {
    display: flex;
    justify-content: center;
    padding: 0 4rem;
    width: 100%;

}

.greetingContainer p {
    text-align: center;
    font-size: 0.9em;
    max-width: 100%;
}

.greetingContainer p span {
    font-weight: 500;
}

section {
    margin: 1.3rem 0;
    gap: 2rem;
}

section h2 {
    font-size: 1.2em;
    text-align: center;
    font-weight: 500;
}

section h2 span {
    background: var(--background-color);
    padding: 0 0.9rem;
}

.projectContainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projectGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    row-gap: 1rem;
    column-gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 75rem;         
    margin: 0 auto;            
    padding: 0 1rem;
}   

.card {
    width: 100%;
    background: var(--primary-color);
    border: 0.25rem solid var(--background-color);
    border-radius: 1.25rem;
    box-shadow: 0.35rem 0.35rem 0 0 var(--background-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translate(-0.1rem, -0.15rem);
    box-shadow: 0.55rem 0.55rem 0 0 var(--background-color);
}

.card-header {
    background: var(--secondary-color);
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 8px,
        rgba(28, 25, 23, 0.07) 8px,
        rgba(28, 25, 23, 0.07) 9px
    );
    padding: 2rem 1.5rem;
    border-bottom: 0.25rem solid var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image {
    width: 5.5rem;
    height: 5.5rem;
    background: var(--surface);
    border: 0.25rem solid var(--background-color);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0.2rem 0.2rem 0 0 var(--background-color);
}

.card-image img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 1rem;
}

.card-body {
    padding: 1.5rem 1.25rem 1rem;
    text-align: center;
    color: var(--background-color);
    flex: 1;
}

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.card-body p {
  font-size: 1rem;
  background: #d3d3d3;
  border: 0.13rem dashed var(--background-color);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-footer {
  text-align: center;
  padding-bottom: 1.5rem;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--secondary-color);
  border: 0.2rem solid var(--background-color);
  border-radius: 0.7rem;
  color: var(--background-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1.2rem;
  box-shadow: 0.15rem 0.15rem 0 0 var(--background-color);
  transition: background 0.1s, transform 0.1s;
}

.card-btn:hover,
.card-btn:focus {
    background: var(--background-color);
    color: var(--secondary-color);
    transform: translate(0.08rem, 0.08rem);
    box-shadow: 0.07rem 0.07rem 0 0 var(--secondary-color);
    outline: none;
}

/* ── Music ── */

.musicContainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--background-color);
}

/* ── About ── */

.aboutContainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.aboutGrid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.aboutBio {
    border: 0.25rem solid var(--primary-color);
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0.35rem 0.35rem 0 0 var(--primary-color);
}

.aboutBio p {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--primary-color);
}

.aboutBio strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.aboutSkills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aboutSkills h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.04em;
}

.skillsGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--secondary-color);
    color: var(--background-color);
    border: 0.18rem solid var(--background-color);
    border-radius: 0.45rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ── Experience ── */

.experienceContainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experienceGrid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.experience-card {
    border: 0.25rem solid var(--primary-color);
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0.35rem 0.35rem 0 0 var(--primary-color);
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.experience-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.experience-company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.experience-meta {
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.experience-list {
    list-style: disc;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.experience-list li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--primary-color);
}

/* ── Contact ── */

.contactContainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.formGroup {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.formGroup label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.formGroup input,
.formGroup textarea {
    background: transparent;
    border: 0.2rem solid var(--primary-color);
    border-radius: 0.75rem;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.formGroup input::placeholder,
.formGroup textarea::placeholder {
    color: rgba(255, 241, 242, 0.35);
}

.formGroup input:focus,
.formGroup textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0.2rem 0.2rem 0 0 var(--secondary-color);
}

.contactForm button {
    cursor: pointer;
    align-self: flex-start;
}

.contactForm button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.formSuccess {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 1.25rem 0;
}

.formError {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.siteFooter {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .aboutGrid {
        display: grid;
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }

    .experience-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .experience-meta {
        white-space: nowrap;
    }
}

@media (min-width: 640px) {
    .headingContainer {
        align-items: start;
        width: 100%;
        gap: 14px;
        padding: 0 64px;
    }

    .headingText {
        font-size: 3em;
        font-weight: 350;
    }

    .profilePic {
        max-width: 230px;
        overflow: hidden;
    }
    
}

@media (min-width: 1024px) {
   .greetingContainer {
        display: flex;
        justify-content: end;
        padding: 0px 64px;
        width: 100%;
    }

    .greetingContainer p {
        text-align: center;
        font-size: 1.3em;
        max-width: 30%;
    }

    section h2 {
        font-size: 1.2em;
        text-align: center;
        border-bottom: 1px solid var(--primary-color); 
        line-height: 0.1em;
        margin: 10px 200px;
        font-weight: 500;
        margin-bottom: 14px;
    }

    section h2 span {
        background: var(--background-color);
        padding: 0 14px;
    }
}