/* custom font */
@font-face {
  font-family: 'AritaBuriKR';
  src: url('../fonts/AritaBuriKR-light.ttf') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AritaBuriKR2';
  src: url('../fonts/AritaBuriKR-Bold.ttf') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}


body {
    font-family: 'AritaBuriKR', sans-serif;
    margin: 0 auto;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    color: black;
    margin-top: 30px;
    background-color: white;
    transition: all 0.5s ease;
    min-height: 100vh;
}

img {
    width: 25px;
    height: auto;
}

#roger {
    width: 110px;
    height: auto;

}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#roger {
    margin-bottom: 5px;
    margin-left: -20px; /* Pushes Roger to the left, adjust as needed */
}

b {
    margin: 0;
    font-family: 'AritaBuriKR2', sans-serif; /* Use the bold font */
    font-weight: 800; /* Match the font-weight for bold */
    display: block; /* Makes the <b> behave like a block element */
}


/* Target all other paragraphs to use light font */
p {
    font-family: 'AritaBuriKR', sans-serif;
    font-weight: 400;
    margin-bottom: 2em;
    
}

.experiences .exp {
    text-decoration: none; /* Remove default underline */
    border-bottom: 1px solid black; /* Thin custom underline */
    display: inline-block; /* Makes border-bottom work properly */
    padding-bottom: 0.1px; /* Small gap between text and underline */
}

/* Remove the conflicting rule */

a, a:visited {
    color: black; 
    transition: all 0.5s ease;
}

.list {
    display: flex;
    justify-content: space-between;
    margin-top: -25px;
    width: 100%;
    
}


.description {
    color: grey;
    margin-top: -30px;
    font-size: 13px; /* Smaller than default text */
}

a {
    text-decoration: none;
}

.experiences .list p:hover,
a:hover {
    color: grey !important;
    cursor: pointer;
}

.experiences img {
    width: 15px !important;
    height: auto;
    position: relative;
    top: 3px; /* Moves just the image down by 3px */
}

#footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#footer p {
    font-size: 14px;
    margin: 0; /* Remove default paragraph margins for tighter spacing */
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
    body {
        padding: 15px;
        margin-top: 20px;
        font-size: 14px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .name-section {
        align-items: center;
    }
    
    #roger {
        width: 80px;
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    img {
        width: 20px;
    }
    
    .list {
        flex-direction: column;
        gap: 5px;
        margin-top: -15px;
    }
    
    .list p:last-child {
        font-size: 12px;
        color: grey;
        margin-top: -10px;
    }
    
    .description {
        margin-top: -15px;
        font-size: 12px;
    }
    
    #footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    #footer p {
        font-size: 12px;
    }
    
    /* Make touch targets larger for mobile */
    a {
        padding: 8px 4px;
        margin: -8px -4px;
    }
    
    #image {
        padding: 10px;
        margin: -10px;
    }
}

/* Tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        padding: 20px;
        max-width: 90%;
        margin-top: 30px;
    }
    
    #roger {
        width: 90px;
    }
    
    .list {
        margin-top: -20px;
    }
    
    /* Slightly larger touch targets for tablets */
    a {
        padding: 6px 3px;
        margin: -6px -3px;
    }
    
    #image {
        padding: 8px;
        margin: -8px;
    }
}

/* Large tablets and small desktops (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        max-width: 700px;
        padding: 25px;
    }
    
    #roger {
        width: 100px;
    }
}

/* Large desktops (1025px and up) */
@media (min-width: 1025px) {
    body {
        max-width: 800px;
        padding: 30px;
        margin-top: 60px;
    }
    
    #roger {
        width: 120px;
    }
    
    /* Add hover effects only for devices that support hover */
    a:hover {
        transform: translateY(-1px);
        transition: transform 0.2s ease;
    }
    
    #image:hover {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }
}

/* High DPI displays */
@media (min-resolution: 2dppx) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        margin-top: 15px;
    }
    
    .header {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .name-section {
        align-items: flex-start;
    }
    
    #roger {
        width: 70px;
        margin-left: -15px;
    }
}

/* Dark mode media query for system preference */
@media (prefers-color-scheme: dark) {
    body {
        background-color: rgb(33, 33, 33);
        color: white;
    }
    
    a, a:visited {
        color: white;
    }
    
    .experiences .exp {
        border-bottom: 1px solid white;
    }
    
    .experiences .list p:hover,
    a:hover {
        color: grey !important;
    }
}