/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* ==========================================================
CONTENT
1. Definining the colors for both themes
2.General rules for body, heading and acnchor element
3. Header section 
4. Main content styles
5. General rules for main and sections in main
6. Hero
7. About
8. Projects
9. Skills
10.Experience
11.Footer
12. Responsiveness- different breakpoints
========================================================== */

/* ==========================================================
   MY STYLES
   ========================================================== */



/* colors and fonts for my cyber theme */
body {
    --bg: #0a0a0f;
    --card: #12121a;
    --border: #2e2e42;
    --accent: #00e87a;
    --pop: #ff4d8d;
    --text: #e8e8f0;
    --muted: #8a9ab0;
    --glow: 0 0 24px rgba(0, 232, 122, 0.32);
    --font-display: 'Space Mono', 'Courier New', 'Lucida Console', monospace;
    --font-body: 'Space Mono', 'Courier New', 'Lucida Console', monospace;
    --radius: 4px;
}

/* colors and fonts for my editorial theme */

body.editorial {
    --bg: #f0ebe0;
    --card: #ede8df;
    --border: #1c1814;
    --accent: #b52a1d;
    --pop: #0819b3;
    --text: #1a1208;
    --muted: #5c5448;
    --glow: none;
    --font-display: 'Bodoni Moda', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --radius: 0px;
}



* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    background-image: url('images/stars-bg.svg');
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.55;
    font-size: 1em;
}

/* no background image when in editorial */
body.editorial {
    background-image: none;
}

/* general rules for my headings */

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 800;
}

/* general rules for my anchor with different states */

a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.65em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65em 1.1em;
    border-radius: var(--radius);
    color: var(--text);
}

a:visited {
    color: var(--muted);
}

a:hover {
    opacity: 0.95;
}

a:active {
    opacity: 0.5;
    transform: scale(0.98);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* ==========================================================
   HEADER SECTION
   ========================================================== */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 2em;
    background: var(--card);
}

body.editorial header {
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
}

header p {
    visibility: hidden;
    font-size: 0.7em;
    color: var(--accent);
}

body.editorial header p {
    visibility: visible;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4em;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.6em 0;
    border-bottom: 1px solid var(--border);
}

header button {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5em 0.7em;
    font-family: var(--font-body);
    font-size: 0.7em;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
}

header button:hover {
    border-color: var(--accent);
    color: var(--text);
}

header button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    box-shadow: var(--glow);
}

body.editorial header>div {
    display: flex;
    justify-content: flex-end;
    padding: 0.5em 0;
}

body.editorial header button {
    font-family: var(--font-display);
    font-size: 0.6em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    color: var(--muted);
}

body.editorial header button.active {
    background: var(--border);
    border-color: var(--border);
    color: var(--bg);
    box-shadow: none;
}

body.editorial header button:hover {
    border-color: var(--border);
    color: var(--bg);
    background-color: var(--accent);
}


/* ==========================================================
   MAIN MAIN
   ========================================================== */

main {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.6em;
}

body.editorial main {
    max-width: 100%;
    padding: 0;
}


/* ==========================================================
   SECTION HEADINGS IN MAIN
   general rules for all the sections and the h2 in the section
   ========================================================== */

section {
    margin-bottom: 3em;
}

body.editorial main>section {
    margin-bottom: 0;
    border-top: 3px double var(--border);
}

section>h2 {
    font-size: 0.7em;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2em;
    display: flex;
    align-items: center;
    gap: 0.7em;
}

section>h2::after {
    content: '';
    flex: 1;
    height: 0.1em;
    background: var(--border);
}

body.editorial section>h2 {
    font-family: var(--font-display);
    font-size: 0.58em;
    font-weight: 500;
    color: var(--accent);
    padding: 0.5em 2.5rem 1.5em;
    margin: 0;
}

body.editorial section>h2::after {
    background: var(--accent);
}

/* section number div  hide on cyber*/
section>div:first-child {
    visibility: hidden;
}

/* section number div  reveal on editorial*/
body.editorial section>div:first-child {
    visibility: visible;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 4.5em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    padding: 1.5rem 1.5rem 0;

}


/* ==========================================================
   HERO SECTION
   ========================================================== */

#hero {
    padding-top: 2em;
    gap: 1em;
}


/* HERO IMAGES-- displaying the images based on the themes */
body:not(.editorial) figure img:nth-child(2) {
    display: none;
}

body.editorial figure img:nth-child(1) {
    display: none;
}

#hero>div>p:first-of-type {
    font-size: 0.75em;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 0.7em;
}

body.editorial #hero>div>p:first-of-type {
    font-family: var(--font-body);
    font-size: 0.65em;
    color: var(--muted);
    margin-bottom: 1em;
}

#hero>div>p:last-of-type {
    margin-bottom: 1.8em;
    font-size: 0.85em;
    max-width: 450px;
}

body.editorial #hero>div>p:last-of-type {
    font-family: var(--font-body);
    font-size: 1em;
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 1.5em;
    margin: 1em 0 0 0;
}

#hero>div h1 {
    font-size: 2.1em;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

body.editorial #hero>div h1 {
    font-size: 3.5em;
    line-height: 0.9;
    text-transform: none;
    margin-bottom: 0;
}

#hero>div h1 em {
    font-style: normal;
    color: var(--accent);
}

body.editorial #hero>div h1 em {
    font-style: italic;
}

#hero>div>div {
    gap: 0.75em;
}

body.editorial #hero>div>div {
    gap: 0;
    margin-top: 2em;
    flex-wrap: wrap;
}

#hero>div>div>a:first-child {
    background: var(--accent);
    color: var(--bg);
    box-shadow: var(--glow);
}

#hero>div>div>a:first-child:hover {
    box-shadow: var(--glow), 0 10px 28px rgba(0, 0, 0, 0.28);
}

#hero>div>div>a:last-child {
    border: 1.5px solid var(--border);
    color: var(--text);
    background: transparent;
}

#hero>div>div>a:last-child:hover {
    border-color: var(--accent);
}

body.editorial #hero>div>div>a {
    padding: 0.85em 1.6em;

}

body.editorial #hero>div>div>a:first-child {
    background: var(--border);
    color: var(--bg);
}

body.editorial #hero>div>div>a:first-child:hover {
    background: var(--accent);
    border-color: var(--accent);
}

body.editorial #hero>div>div>a:last-child {
    border: 1px solid var(--border);
    color: var(--text);
}

body.editorial #hero>div>div>a:last-child:hover {
    background: var(--border);
    color: var(--bg);
    border-color: var(--border);
}

body.editorial #hero>div {
    padding: 1em 1.5em 3em;
}

#hero>figure {
    display: none;

}


#hero>figure>img {
    width: 100%;
    height: auto;
    animation: astroFloat 4s ease-in-out infinite;
    transition: transform 1s ease;
}

body.editorial #hero>figure>img {
    animation: none;
}

/* animation for image on cyber theme  */

@keyframes astroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* ==========================================================
   ABOUT SECTION
   ========================================================== */

#about>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

body.editorial #about>div:last-child {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 1.5em 4em;

}

body.editorial #about>div>h3 {
    font-style: italic;
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
}

body.editorial #about>div:last-child>h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4em;
    border-left: 3px solid var(--accent);
    padding-left: 1em;
    margin-top: 1em;
}

#about>div>p {
    font-size: 0.9em;
    color: var(--muted);
}

body.editorial #about>div>p {
    font-size: 1em;
}


/* ==========================================================
   PROJECTS SECTION
   ========================================================== */

#projects>div {
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr;
}

body.editorial #projects>div:last-child {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 1.5em 4em;
}

#projects>div>div {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4em;
}

body.editorial #projects>div>div {
    padding: 1.5em 0;

}

body.editorial #projects>div:last-child>div {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--border);
}


#projects>div>div:hover {
    border-color: var(--accent);
    box-shadow: var(--glow), 0 10px 28px rgba(0, 0, 0, 0.18);
}

#projects>div>div h3 {
    margin-bottom: 0.6em;
}

body.editorial #projects>div:last-child>div>h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9em;
    line-height: 1;
}

#projects>div>div p {
    font-size: 0.82em;
    color: var(--muted);
    margin-bottom: 1.5em;
}

body.editorial #projects>div:last-child>div>p {
    font-size: 0.9em;
}

#projects ul {
    list-style: none;
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.8em;
}

#projects>div>div li {
    font-size: 0.65em;
    font-family: var(--font-body);
    padding: 0.3em 0.85em;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--muted);
}

body.editorial #projects>div:last-child>div li {
    font-size: 0.5em;
}

#projects>div>div:hover li {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

#projects>div>div>div>a {
    padding: 0 2em 0 0;
    text-decoration: underline;
    text-underline-offset: 5px;
}

body.editorial #projects>div:last-child>div>div {
    border-top: 1px solid var(--border);
    padding-top: 1em;
    display: flex;
    gap: 1.5em;
}

body.editorial #projects>div:last-child>div>div>a {
    font-size: 0.65em;
    text-transform: uppercase;
    color: var(--text);

}

body.editorial #projects>div:last-child>div>div>a::after {
    content: ' >';
}

#projects>div>div>div>a:hover {
    color: var(--accent);
}

#projects>div>div>div>a:first-child {
    color: var(--accent);
}

body.editorial #projects>div:last-child>div>div>a:first-child {
    color: var(--accent);
}

body.editorial #projects>div>div>div>a:hover {
    color: var(--accent);
}


/* ==========================================================
   SKILLS
   ========================================================== */

#skills>div {
    display: grid;
    gap: 1.5em;
    grid-template-columns: 1fr;
}

body.editorial #skills>div:last-child {
    display: grid;
    grid-template-columns: 1fr;
    margin: 1em 0 3em;

}

#skills>div>div {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4em;
}


body.editorial #skills>div:last-child>div {
    background: none;
    border: 0;
    padding: 0 1.5em;

}

#skills>div>div:hover {
    border-color: var(--accent);
    box-shadow: var(--glow);
}

body.editorial #skills>div:last-child>div:hover {
    border-color: var(--border);
    box-shadow: none;
}

dt {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.8em;
}

body.editorial dt {
    font-family: var(--font-body);

    font-size: 0.7em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--border);

}

dd {
    font-size: 0.9em;
    color: var(--muted);
    padding: 0.3em 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5em;
    list-style: none;
}

dd:last-of-type {
    border-bottom: none;
}

dd::before {
    content: '>';
    color: var(--accent);
    font-size: 0.55em;
}

body.editorial dd {
    font-size: 1em;
    color: var(--text);
    padding: 0.4em 0;
    border-bottom: 1px dotted var(--border);

}

body.editorial dd:last-of-type {
    border-bottom: none;
}

body.editorial dd::before {
    display: none;
}


/* ==========================================================
   EXPERIENCE SECTION
   ========================================================== */

#experience>ul {
    list-style: none;
}

body.editorial #experience>ul {
    padding: 0 1.5em 4em;
}

#experience>ul>li {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    border: 1px solid var(--border);
    padding: 1em;
    margin-bottom: 1.5em;
}

body.editorial #experience>ul>li {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1em 0;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid var(--border);

}

body.editorial #experience>ul>li:last-child {
    border-bottom: none;
}


#experience>ul>li>span {
    font-size: 0.75em;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
}

body.editorial #experience>ul>li>span {
    font-size: 0.88em;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding: 0.5em 0;
}

#experience>ul>li>div>h3 {
    margin-bottom: 0.2em;
}

body.editorial #experience>ul>li>div>h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 0.25em;
}

#experience>ul>li>div>p:first-of-type {
    font-size: 0.78em;
    color: var(--pop);
    margin-bottom: 0.6em;
}

body.editorial #experience>ul>li>div>p:first-of-type {
    font-size: 0.58em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75em;
}

#experience>ul>li>div>p:last-of-type {
    font-size: 0.84em;
    color: var(--muted);
}

body.editorial #experience>ul>li>div>p:last-of-type {
    font-family: var(--font-body);
    font-size: 0.95em;

}


/* ==========================================================
   CONTACT. SECTION
   ========================================================== */

#contact>div:last-of-type {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5em 1.4em;
    text-align: center;
}

body.editorial #contact {
    background: var(--text);
    color: var(--bg);
}

body.editorial #contact>div:first-child {
    -webkit-text-stroke-color: var(--bg);
}

body.editorial #contact>h2 {
    color: var(--bg);
}

body.editorial #contact>h2::after {
    background: rgba(240, 235, 224, 0.15);
}

body.editorial #contact>div:last-of-type {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1em 1.5em 3em;
    background: none;
    border: none;
    text-align: left;
}

#contact>div>h3 {
    margin-bottom: 0.5em;
}

body.editorial #contact>div:last-of-type>h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 2em;
    color: var(--bg);
}

#contact>div>p {
    color: var(--muted);
    font-size: 0.9em;
    margin-bottom: 1.6em;
}

body.editorial #contact>div:last-of-type>p {
    font-size: 1em;
    font-style: italic;
    color: var(--bg);
    opacity: 0.7;
}

#contact>div>div {
    display: flex;
    gap: 0.7em;
    align-self: center;
    justify-content: center;
}

body.editorial #contact>div:last-of-type>div {
    flex-direction: column;
}

#contact a:first-child {
    background: var(--accent);
    color: var(--bg);
}

#contact a:not(:first-child) {
    border: 1.5px solid var(--border);
    color: var(--text);
    background: transparent;
}

#contact a:not(:first-child):hover {
    border-color: var(--accent);
    color: var(--accent);
}

body.editorial #contact>div:last-of-type>div>a {
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    font-style: italic;
    color: var(--bg);
    border-bottom: 1px solid rgba(240, 235, 224, 0.12);
    text-transform: none;
    padding: 0.5em 0;

}


body.editorial #contact>div:last-of-type>div>a:first-child {
    background: none;
    color: var(--bg);
}

body.editorial #contact>div:last-of-type>div>a:not(:first-child) {
    border: none;
    border-bottom: 1px solid rgba(240, 235, 224, 0.12);
    color: var(--bg);
    background: none;
}

body.editorial #contact>div:last-of-type>div>a:hover,
body.editorial #contact>div:last-of-type>div>a:not(:first-child):hover {
    color: var(--accent);
    border-color: rgba(240, 235, 224, 0.12);
}

body.editorial #contact>div:last-of-type>div>a:hover::after {
    color: var(--accent);
    transform: translate(4px, -4px);
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    text-align: center;
    padding: 2em 1.1em;
    font-size: 0.7em;
    letter-spacing: 0.14em;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

body.editorial footer {
    background: var(--text);
    color: var(--bg);
    border-top: 1px solid rgba(240, 235, 224, 0.1);
    font-size: 0.65em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ==========================================================
   RESPONSIVE —
   ========================================================== */

@media (min-width: 571px) {
    body.editorial {
        font-size: 1.13em;
    }

    #hero {
        display: flex;
    }

    #hero>figure {
        display: block;
        width: 270px;
        margin: 0 auto;
        padding: 0.7em;
    }


    body.editorial #hero>figure {
        display: none;
    }
}

@media (min-width: 640px) {
    main {
        padding: 3em 2em 3em;
    }

    #hero>div h1 {
        font-size: 2.8em;
    }

    body.editorial #hero>div h1 {
        font-size: 3em;
        line-height: 0.9;
    }



    #about>div {
        flex-direction: row;
        align-items: flex-start;
        gap: 1em;
    }

    body.editorial #about>div>h3 {
        font-size: 2.1em;
        width: auto;
    }


    #projects>div {
        grid-template-columns: repeat(2, 1fr);
    }

    #skills>div {
        grid-template-columns: repeat(2, 1fr);
    }

    #experience>ul>li {
        flex-direction: row;
        gap: 2em;
    }

    body.editorial #experience>ul>li {
        gap: 0;

    }

    #experience>ul>li>span {
        flex-shrink: 0;
        padding-top: 0.1em;
    }
}

@media (min-width: 680px) {
    body.editorial #hero {
        justify-content: space-evenly;
        max-width: 1200px;
        margin: 0 auto;
        border: 0;
    }

    body.editorial #hero>figure {
        display: block;
        width: 350px;
        margin-top: 5em;
        padding: 0.7em;
    }

    body.editorial #hero>figure>img {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 860px) {

    body.editorial section {
        padding: 0;
    }

    #hero>div h1 {
        font-size: 3.3em;
    }

    #projects>div {
        grid-template-columns: repeat(3, 1fr);
    }

    #skills>div {
        grid-template-columns: repeat(3, 1fr);
    }

    body.editorial #hero {
        grid-template-columns: 1fr 1fr;

    }

    body.editorial #hero>div {
        border-right: none;
    }



    body.editorial #about>div:last-child {
        grid-template-columns: 1fr 1fr;
        padding-top: 2em;

    }

    body.editorial #about>div:last-child>h3 {
        margin-top: 0;
    }

    body.editorial #projects>div:last-child {
        grid-template-columns: repeat(3, 1fr);
    }

    body.editorial #projects>div:last-child>div {
        border-right: none;
        border-right: 1px solid var(--border);
        padding: 0;
        border-bottom: none;
    }


    body.editorial #skills>div:last-child {
        grid-template-columns: repeat(3, 1fr);
        margin: 0 1.5rem 3rem;
    }

    body.editorial #skills>div:last-child>div {
        border-right: 1px solid var(--border);
        padding: 2em;

    }

    body.editorial #experience>ul>li p {
        max-width: 800px;
    }

    body.editorial #experience>ul>li:last-child {
        border-bottom: 1px solid var(--border);
    }



    body.editorial #experience>ul>li>span {
        text-align: right;
    }


    body.editorial #contact>div:last-of-type {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 4rem;
        padding: 2rem 2.5rem 5rem;

    }

    body.editorial #contact>div:last-of-type>div {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
    }
}

@media (min-width: 1000px) {
    body.editorial section#hero {
        padding: 0 8em;
    }
}

@media (min-width: 1260px) {

    body.editorial section {
        padding: 0 8em;
    }

    body.editorial section#hero {
        padding: 0 9em;
    }

    body.editorial #projects>div:last-child>div {
        padding: 2em;
    }
}