* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'SF UI Text Medium', Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;

    /* border: 1px dashed #e5e5e5; */
}

:root {
    --primary: #ff5c5c;
    --secondary: #ff4c4c;
}

::selection {
    background: var(--primary); /* highlight color */
    color: white;        /* text color */
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0f0f0f;
    background-color: #efefef;
    background-color: white;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

body {
    background-image: url('/assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.white-text {
    color: white;
}

.black-text {
    color: black;
}

.gray-text {
    color: rgb(100, 100, 100);
}

.primary-text {
    color: var(--primary);
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

p {
    font-size: 16px;
}

.giant-text {
    font-size: 64px;
    font-family: 'SF UI Text Heavy', Arial, Helvetica, sans-serif;
}

.small-text {
    font-size: 12px;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: ease-in-out .2s;
}

a:hover {
    color: var(--primary);
}

button {
    padding: .5rem 1rem;
    border-radius: 1rem;

    white-space: nowrap;

    transition: ease-in-out .15s;
}

button.dark-button {
    background-color: black;
    border: 2px solid black;
    color: white;
}

button.dark-button:hover {
    background-color: #1b1b1b;
    cursor: pointer;
}

button.light-button {
    background-color: white;
    border: 2px solid black;
    color: black;
}

button.light-button:hover {
    background-color: black;
    color: white;
    cursor: pointer;
}

button.colored-button {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: white;
}

button.colored-button:hover {
    background-color: var(--secondary);
    cursor: pointer;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-even {
    justify-content: space-evenly;
}

.align-start {
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.grid-container {
    display: grid;
    width: 100%;
}

.grid-two {
    grid-template-columns: 1fr 1fr;
}

.grid-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-four {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.grid-large-left {
    grid-template-columns: 2fr 1fr;
}

.grid-large-right {
    grid-template-columns: 1fr 2fr;
}

.grid-large-center {
    grid-template-columns: 1fr 2fr 1fr;
}

.gap-half {
    gap: .5rem;
}

.gap-one {
    gap: 1rem;
}

.gap-two {
    gap: 2rem;
}

.gap-four {
    gap: 4rem;
}

.gap-six {
    gap: 6rem;
}

.width {
    width: 60rem;
}

.full-width {
    width: 100%;
}

/* Container Styles */

nav {
    position: sticky;
    top: 0;
    left: 0;

    padding: 1rem;

    background-color: rgba(255, 255, 255, .98);

    justify-content: space-between;

    z-index: 1000;
}

header {
    padding: 6rem 1rem;
}

section {
    padding: 4rem 1rem;
}

footer {
    width: 100%;

    padding: 8rem 1rem 1rem;
}

/* Custom Card Styles */

.card {
    border: 0.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    background: #fdfdfd;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%; /* fills the grid row height */
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card .flex-col.gap-half {
    flex: 1; /* pushes buttons to the bottom */
}

.tech-card {
    border: 0.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    width: 90px;
    background: #fdfdfd;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tech-card img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.tech-card h4 {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: #555;
    margin-top: 0.5rem;
}

/* Misc Custom Styles */

.social-icon {
    width: 1.5rem;
}

.qualification-img {
    height: 2rem;
    width: fit-content;
}

/* Contact Form Custom Styling */

.contact-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.contact-input:focus {
    border-color: #000;
}

textarea.contact-input {
    resize: vertical;
}

@media only screen and (max-width: 61rem) {
    .width {
        width: 100%;
    }
}

@media only screen and (max-width: 800px) {
    nav a {
        display: none;
    }

    header {
        padding: 4rem 1rem;
    }

    #background {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #background img {
        width: 50%;
    }

    #education {
       display: flex;
       flex-direction: column;
    }

    #featured-projects {
        display: flex;
        flex-direction: column;
    }

    #more-projects {
        grid-template-columns: 1fr 1fr;
    }

    #more-projects p {
        font-size: 12px;
    }

    #contact-mobile {
        grid-template-columns: 1fr;
    }

    .qualification-img {
        width: 100%;
    }
        
    .giant-text {
        font-size: 56px;
        font-family: 'SF UI Text Heavy', Arial, Helvetica, sans-serif;
    }
}