@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic");

/* ===== RESET & BASE ===== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    line-height: 1;
    background: #fff;
    color: #a2a2a2;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.75em;
    -webkit-text-size-adjust: none;
    min-height: 100vh;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
    animation: none !important;
    transition: none !important;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: #787878;
    font-weight: 400;
    line-height: 1em;
    margin: 0 0 1em 0;
}

h1 { font-size: 2em; line-height: 1.5em; }
h2 { font-size: 1.5em; line-height: 1.5em; }
h3 { font-size: 1.25em; line-height: 1.5em; }
h4 { font-size: 1.1em; line-height: 1.5em; }
h5 { font-size: 0.9em; line-height: 1.5em; }
h6 { font-size: 0.7em; line-height: 1.5em; }

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 2em 0;
    max-width: 75ch; /* Optimal reading width ~75 characters */
}

strong, b {
    color: #787878;
    font-weight: 400;
}

em, i {
    font-style: italic;
}

a {
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border-bottom: dotted 1px;
    color: #49bf9d;
    text-decoration: none;
}

a:hover {
    border-bottom-color: transparent;
    color: #49bf9d !important;
    text-decoration: none;
}

hr {
    border: 0;
    border-bottom: solid 2px #efefef;
    margin: 2em 0;
}

hr.major {
    margin: 3em 0;
}

blockquote {
    border-left: solid 6px #efefef;
    font-style: italic;
    margin: 0 0 2em 0;
    padding: 0.5em 0 0.5em 1.5em;
}

code {
    background: #f7f7f7;
    border-radius: 0.35em;
    border: solid 2px #efefef;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    margin: 0 0.25em;
    padding: 0.25em 0.65em;
}

pre {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    margin: 0 0 2em 0;
    overflow-x: auto;
}

pre code {
    display: block;
    line-height: 1.75em;
    padding: 1em 1.5em;
    overflow-x: auto;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    margin: 0 auto;
    max-width: calc(100% - 4em);
    width: 100%;
}

.container.xsmall { width: 25%; }
.container.small { width: 50%; }
.container.medium { width: 75%; }
.container.large { width: 125%; }
.container.xlarge { width: 150%; }
.container.max { width: 100%; }

.row {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: stretch;
    margin-left: -2.5em;
}

.row > * {
    box-sizing: border-box;
    padding: 0 0 0 2.5em;
}

.row.gtr-uniform {
    margin-top: -2.5em;
}

.row.gtr-uniform > * {
    padding-top: 2.5em;
}

.row > .col-1 { width: 8.33333%; }
.row > .col-2 { width: 16.66667%; }
.row > .col-3 { width: 25%; }
.row > .col-4 { width: 33.33333%; }
.row > .col-5 { width: 41.66667%; }
.row > .col-6 { width: 50%; }
.row > .col-7 { width: 58.33333%; }
.row > .col-8 { width: 66.66667%; }
.row > .col-9 { width: 75%; }
.row > .col-10 { width: 83.33333%; }
.row > .col-11 { width: 91.66667%; }
.row > .col-12 { width: 100%; }

/* Gutter modifiers */
.row.gtr-50 {
    margin-left: -1.25em;
}

.row.gtr-50 > * {
    padding-left: 1.25em;
}

.row.gtr-50.gtr-uniform {
    margin-top: -1.25em;
}

.row.gtr-50.gtr-uniform > * {
    padding-top: 1.25em;
}

/* Responsive columns - Small (tablets) */
@media screen and (max-width: 980px) {
    .row > .col-12-small { width: 100%; }
    .row > .col-6-small { width: 50%; }
}

/* Responsive columns - Extra Small (phones) */
@media screen and (max-width: 480px) {
    .row > .col-12-xsmall { width: 100%; }
    .row > .col-6-xsmall { width: 50%; }
}

/* ===== NAVIGATION ===== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-image: url("images/overlay.png"), url("../../images/bg.jpg");
	background-color: #1f1815;
    z-index: 999;
    padding: 1rem 0;
    color: #3da382;
	font-weight: bolder;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-menu li a:hover {
    background: #49bf9d;
    color: white;
    border-color: #49bf9d;
    transform: translateY(-2px);
}

/* ===== HEADER & MAIN LAYOUT ===== */
#header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    background-color: #1f1815;
    background-attachment: scroll, scroll;
    background-image: url("images/overlay.png"), url("../../images/bg.jpg");
    background-position: top left, top left;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    color: rgba(255, 255, 255, 0.5);
    height: auto;
    min-height: 100vh;
    left: 0;
    padding: 8em 3em 4em 3em;
    position: fixed;
    top: 0;
    width: 20%;
    max-width: 280px;
}

#header > * {
    flex-shrink: 0;
    width: 100%;
}

#header > .inner {
    flex-grow: 0;
    margin: 0;
}

#header strong, #header b {
    color: #ffffff;
}

#header h2, #header h3, #header h4, #header h5, #header h6 {
    color: #ffffff;
}

#header h1 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.35em;
    line-height: 1.75em;
    margin: 0;
}

#header .image.avatar {
    margin: 0 0 1em 0;
    width: 100px;
    height: 100px;
}

header.major {
    padding-top: 20px;
}

#main {
    margin-left: min(20%, 280px);
    width: calc(100% - min(20%, 280px));
    padding-top: 70px;
}

#main > section {
    border-top: solid 2px #efefef;
    margin: 4em 0 0 0;
    padding: 4em 0 0 0;
}

#main > section:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

/* ===== IMAGES ===== */
.image {
    border-radius: 0.35em;
    border: 0;
    display: inline-block;
    position: relative;
}

.image img {
    border-radius: 0.35em;
    display: block;
}

.image.thumb {
    text-align: center;
}

.image.fit {
    display: block;
    margin: 0 0 2em 0;
    width: 100%;
}

.image.fit img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.image.fit.thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* ===== LISTS ===== */
ol {
    list-style: decimal;
    margin: 0 0 2em 0;
    padding-left: 1.25em;
}

ol li {
    padding-left: 0.25em;
}

ul {
    list-style: disc;
    margin: 0 0 2em 0;
    padding-left: 1em;
}

ul li {
    padding-left: 0.5em;
}

ul.alt {
    list-style: none;
    padding-left: 0;
}

ul.alt li {
    border-top: solid 2px #efefef;
    padding: 0.5em 0;
}

ul.alt li:first-child {
    border-top: 0;
    padding-top: 0;
}

ul.icons {
    cursor: default;
    list-style: none;
    padding-left: 0;
}

ul.icons li {
    display: inline-block;
    padding: 0 1em 0 0;
}

ul.icons li:last-child {
    padding-right: 0;
}

ul.icons li .icon:before {
    font-size: 1.5em;
}

ul.labeled-icons {
    list-style: none;
    padding: 0;
}

ul.labeled-icons li {
    line-height: 1.75em;
    margin: 1.5em 0 0 0;
    padding-left: 2.25em;
    position: relative;
}

ul.labeled-icons li:first-child {
    margin-top: 0;
}

ul.labeled-icons li a {
    color: inherit;
}

ul.labeled-icons li h3 {
    color: #b2b2b2;
    left: 0;
    position: absolute;
    text-align: center;
    top: 0;
    width: 1em;
}

ul.actions {
    display: flex;
    cursor: default;
    list-style: none;
    margin-left: -1em;
    padding-left: 0;
}

ul.actions li {
    padding: 0 0 0 1em;
    vertical-align: middle;
}

ul.actions.special {
    justify-content: center;
    width: 100%;
    margin-left: 0;
}

ul.actions.special li:first-child {
    padding-left: 0;
}

ul.actions.stacked {
    flex-direction: column;
    margin-left: 0;
}

ul.actions.stacked li {
    padding: 1.3em 0 0 0;
}

ul.actions.stacked li:first-child {
    padding-top: 0;
}

/* ===== FORMS ===== */
form {
    margin: 0 0 2em 0;
}

label {
    color: #787878;
    display: block;
    font-size: 0.9em;
    font-weight: 400;
    margin: 0 0 1em 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    appearance: none;
    background: #f7f7f7;
    border-radius: 0.35em;
    border: solid 2px transparent;
    color: inherit;
    display: block;
    outline: 0;
    padding: 0 0.75em;
    text-decoration: none;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #49bf9d;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    height: 2.75em;
}

textarea {
    padding: 0.75em;
}

select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='%23dfdfdf' /%3E%3C/svg%3E");
    background-size: 1.25rem;
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    height: 2.75em;
    padding-right: 2.75em;
    text-overflow: ellipsis;
}

/* ===== BUTTONS ===== */
input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
    appearance: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    background-color: transparent;
    border-radius: 0.35em;
    border: solid 3px #efefef;
    color: #787878 !important;
    cursor: pointer;
    display: inline-block;
    font-weight: 400;
    height: 3.15em;
    line-height: 2.75em;
    min-width: 10em;
    padding: 0 1.5em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    border-color: #49bf9d;
    color: #49bf9d !important;
}

.button:active {
    background-color: rgba(73, 191, 157, 0.1);
    border-color: #49bf9d;
    color: #49bf9d !important;
}

.button.primary {
    background-color: #49bf9d;
    border-color: #49bf9d;
    color: #ffffff !important;
}

.button.primary:hover {
    background-color: #5cc6a7;
    border-color: #5cc6a7;
}

.button.primary:active {
    background-color: #3eb08f;
    border-color: #3eb08f;
}

.resume-button,
.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #49bf9d;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.resume-button:hover,
.see-more-btn:hover {
    background: #3da382;
    color: white;
}

.see-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* ===== ICONS ===== */
.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

.icon:before {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-transform: none !important;
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}

.icon > .label {
    display: none;
}

.icon:before {
    line-height: inherit;
}

.icon.solid:before {
    font-weight: 900;
}

.icon.brands:before {
    font-family: 'Font Awesome 5 Brands';
}

.github-link {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.github-link:hover {
    color: #49bf9d;
}

/* ===== PROJECT LAYOUT ===== */
.project-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.project-item:nth-child(even) .project-image {
    order: 2;
}

.project-item:nth-child(even) .project-content {
    order: 1;
}

.project-image {
    flex: 0 0 300px;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.project-content {
    flex: 1;
}

.project-content h3 {
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.project-content ul {
    margin: 10px 0;
    padding-left: 20px;
    max-width: 65ch; /* Readable line length for list items */
}

.project-content ul li {
    margin-bottom: 5px;
    list-style-type: disc;
	text-align: left;
}

.project-content ul li::marker {
    color: #49bf9d;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.project-header h3 {
    margin: 0;
    flex: 1;
}

/* ===== TECH STACK ===== */
.tech-stack {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tech-stack h4 {
    margin: 0 0 0.8rem 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.tech-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.tech-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tech-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tech-logo i {
    font-size: 24px;
}

.tech-logo.python i { color: #3776ab; }
.tech-logo.tensorflow i { color: #ff6f00; }
.tech-logo.opencv i { color: #5c3ee8; }
.tech-logo.flask i { color: #000; }
.tech-logo.javascript i { color: #f7df1e; }
.tech-logo.html i { color: #e34f26; }
.tech-logo.css i { color: #1572b6; }
.tech-logo.react i { color: #61dafb; }
.tech-logo.nodejs i { color: #339933; }

.tech-logo::after {
    content: attr(data-tech);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.tech-logo:hover::after {
    opacity: 1;
}

/* ===== EDUCATION ===== */
.education-item {
    margin-bottom: 1.5em;
    padding: 1em;
    background: rgba(0,0,0,0.02);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.education-content {
    flex: 1;
}

.education-item h4 {
    margin: 0 0 0.5em 0;
    color: #333;
}

.education-item .degree {
    font-weight: bold;
    color: #666;
}

.education-item .year {
    color: #999;
    font-style: italic;
}

.college-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-left: 20px;
    border-radius: 8px;
}

/* ===== TABLE ===== */
.table-wrapper {
    overflow-x: auto;
}

table {
    margin: 0 0 2em 0;
    width: 100%;
}

table tbody tr {
    border: solid 1px #efefef;
    border-left: 0;
    border-right: 0;
}

table tbody tr:nth-child(2n + 1) {
    background-color: #f7f7f7;
}

table td {
    padding: 0.75em 0.75em;
}

table th {
    color: #787878;
    font-size: 0.9em;
    font-weight: 400;
    padding: 0 0.75em 0.75em 0.75em;
    text-align: left;
}

table thead {
    border-bottom: solid 2px #efefef;
}

table tfoot {
    border-top: solid 2px #efefef;
}

/* ===== FOOTER ===== */
#footer .icons {
    margin: 1em 0 0 0;
}

#footer .icons a {
    color: rgba(255, 255, 255, 0.4);
}

#footer .copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
    list-style: none;
    margin: 1em 0 0 0;
    padding: 0;
}

#footer .copyright li {
    border-left: solid 1px rgba(255, 255, 255, 0.25);
    display: inline-block;
    line-height: 1em;
    margin-left: 0.75em;
    padding-left: 0.75em;
}

#footer .copyright li:first-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

#footer .copyright li a {
    color: inherit;
}

/* ===== UTILITIES ===== */
.hidden {
    display: none;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

section.special, article.special {
    text-align: center;
}

header p {
    color: #1f1815;
    position: relative;
    margin: 0 0 1.5em 0;
}

header h2 + p {
    font-size: 1.25em;
    margin-top: -1em;
    line-height: 1.5em;
}

header.major h2 {
    font-size: 2em;
}

/* ===== DARK MODE ===== */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .about_me,
body.dark-mode .nav-header .nav-container a {
    color: #ffffff;
}

body.dark-mode a {
    color: #90caf9;
}

body.dark-mode a:hover {
    color: #64b5f6;
}

body.dark-mode main,
body.dark-mode main section {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .project-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #e0e0e0;
}

body.dark-mode .project-item h3 {
    color: #ffffff;
}

body.dark-mode .resume-button,
body.dark-mode .see-more-btn {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

body.dark-mode .resume-button:hover {
    background-color: #333;
}

.dark-mode-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== TRANSITIONS ===== */
body, main, section, .project-item, .nav-header, #footer {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== MEDIA QUERIES ===== */

/* Large screens (1440px+) */
@media screen and (min-width: 1440px) {
    #main {
        max-width: 1100px;
    }

    #main > section {
        max-width: 850px;
    }

    .project-item {
        max-width: 1000px;
    }
}

/* Full HD screens (1920px+) */
@media screen and (min-width: 1920px) {
    body {
        font-size: 17px;
    }

    #header {
        width: 260px;
        max-width: 260px;
        padding: 6em 2em 3em 2em;
    }

    #main {
        margin-left: 260px;
        width: calc(100% - 260px);
        max-width: 1150px;
        padding: 5em 3em;
    }

    #main > section {
        max-width: 900px;
    }

    .project-item {
        max-width: 1050px;
    }

    .project-image {
        flex: 0 0 320px;
    }
}

/* 2K+ monitors (2560px+) */
@media screen and (min-width: 2560px) {
    body {
        font-size: 19px;
    }

    #header {
        width: 280px;
        max-width: 280px;
        padding: 6em 2.5em 3em 2.5em;
    }

    #main {
        margin-left: 280px;
        width: calc(100% - 280px);
        max-width: 1300px;
        padding: 5em 4em;
    }

    #main > section {
        max-width: 950px;
    }

    .project-item {
        max-width: 1200px;
        gap: 2.5rem;
        padding: 1.75rem;
    }

    .project-image {
        flex: 0 0 360px;
    }

    .project-image img {
        height: 240px;
    }

    .tech-logo {
        width: 45px;
        height: 45px;
    }

    .tech-logo img {
        width: 28px;
        height: 28px;
    }
}

/* Ultra-wide and 4K screens (3440px+) */
@media screen and (min-width: 3440px) {
    body {
        font-size: 21px;
    }

    #header {
        width: 300px;
        max-width: 300px;
        padding: 6em 2.5em 3em 2.5em;
    }

    #main {
        margin-left: 300px;
        max-width: 1450px;
        padding: 6em 5em;
    }

    #main > section {
        max-width: 1050px;
    }

    .project-item {
        max-width: 1350px;
    }

    .nav-header {
        padding: 1.25rem 0;
    }

    .nav-menu li a {
        padding: 0.9rem 1.75rem;
        font-size: 1.05rem;
    }
}

@media screen and (max-width: 1919px) and (min-width: 1440px) {
    /* Screens between 1440px and 1919px */
    #header {
        width: 250px;
        max-width: 250px;
        padding: 5em 2em 3em 2em;
    }

    #main {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

@media screen and (max-width: 1800px) {
    body, input, select, textarea {
        font-size: 12pt;
    }
}

@media screen and (max-width: 1280px) {
    #header {
        padding: 5em 2em 3em 2em;
        width: 240px;
        max-width: 240px;
    }

    #header h1 {
        font-size: 1.25em;
    }

    #header h1 br {
        display: none;
    }

    #header > .inner {
        margin-bottom: 0;
    }

    #footer .copyright li {
        border-left-width: 0;
        display: block;
        line-height: 2.25em;
        margin-left: 0;
        padding-left: 0;
    }

    #main {
        margin-left: 240px;
        max-width: none;
        padding: 5em 3em 3em 3em;
        width: calc(100% - 240px);
    }
}

@media screen and (max-width: 1024px) {
    #header {
        width: 220px;
        max-width: 220px;
        padding: 5em 1.5em 3em 1.5em;
    }

    #main {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

@media screen and (max-width: 980px) {
    .nav-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        /* backdrop-filter: blur(10px); */
        z-index: 1001;
        padding: 1rem 0;
    }

    #header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        min-width: 100vw;
        width: 100vw;
        height: auto;
        margin-top: 80px;
        z-index: 1000;
        /* backdrop-filter: blur(10px); */
        display: block;
        box-sizing: border-box;
    }

    .nav-menu li {
        color: #ffffff;
    }

    #header > .inner {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
        text-align: center;
        box-sizing: border-box;
    }

    #header img {
        display: block;
        margin: 0 auto 1rem auto;
    }

    #header h1 {
        font-size: 1.75em;
    }

    #header h1 br {
        display: inline;
    }

    #main {
        margin: 0;
        margin-left: 0;
        padding: 3em 2em;
        padding-top: 0;
        width: 100%;
    }

    h1 br, h2 br, h3 br, h4 br, h5 br, h6 br {
        display: none;
    }

    ul.icons li .icon {
        font-size: 1.25em;
    }

    #footer {
        background-attachment: scroll;
        background-color: #1f1816;
        background-image: url("images/overlay.png"), url("../../images/bg.jpg");
        background-position: top left, bottom center;
        background-repeat: repeat, no-repeat;
        background-size: auto, cover;
        bottom: auto;
        left: auto;
        padding: 2em 2em 3em 2em;
        position: relative;
        text-align: center;
        width: 100%;
    }

    #footer .icons {
        margin: 0 0 1em 0;
    }

    #footer .copyright {
        margin: 0 0 1em 0;
    }

    #footer .copyright li {
        border-left-width: 1px;
        display: inline-block;
        line-height: 1em;
        margin-left: 0.75em;
        padding-left: 0.75em;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .dark-mode-toggle {
        position: static;
        margin-top: 0.5rem;
    }

    #main {
        padding: 2em 1.5em;
    }

    .row {
        margin-left: -1em;
    }

    .row > * {
        padding-left: 1em;
    }

    .row.gtr-uniform {
        margin-top: -1em;
    }

    .row.gtr-uniform > * {
        padding-top: 1em;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 1rem;
        gap: 1rem;
    }

    .project-item:nth-child(even) .project-image,
    .project-item:nth-child(even) .project-content {
        order: initial;
    }

    .project-image {
        flex: none;
        width: 100%;
    }

    .project-image img {
        height: auto;
        max-height: 250px;
    }

    .project-content ul {
        text-align: left;
        padding-left: 1.5em;
    }

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

    .education-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .college-logo {
        margin-left: 0;
        margin-top: 15px;
    }

    /* Form adjustments */
    .col-8, .col-4 {
        width: 100%;
    }
}

/* Extra small screens (phones in portrait) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .nav-header {
        padding: 0.75rem 0;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-menu li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 15px;
    }

    #header {
        margin-top: 100px;
        padding: 2em 1em;
    }

    #header h1 {
        font-size: 1.25em;
    }

    #main {
        padding: 1.5em 1em;
    }

    #main > section {
        margin: 2em 0 0 0;
        padding: 2em 0 0 0;
    }

    h2 {
        font-size: 1.25em;
    }

    .project-item {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.1em;
        flex-wrap: wrap;
    }

    .project-content ul li {
        font-size: 0.9em;
        margin-bottom: 0.5em;
    }

    .tech-logo {
        width: 32px;
        height: 32px;
    }

    .tech-logo img {
        width: 20px;
        height: 20px;
    }

    .resume-button,
    .see-more-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .education-item {
        padding: 0.75rem;
    }

    .education-item h4 {
        font-size: 1em;
    }

    .college-logo {
        width: 60px;
        height: 60px;
    }

    #footer {
        padding: 2em 1em 3em 1em;
    }

    ul.icons li {
        padding: 0 0.5em;
    }

    /* Form on very small screens */
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

