/*@media (prefers-color-scheme: light) {*/
/*    :root {*/
/*        --text: oklch(0.00% 0.000 0.00);*/
/*        --background: oklch(89.14% 0.000 89.88);*/
/*        --background-hover: oklch(85% 0 90);*/
/*        --primary: oklch(75.52% 0.127 139.43);*/
/*        --secondary: oklch(63.51% 0.111 91.91);*/
/*        --accent: oklch(74.15% 0.045 51.89);*/
/*    }*/
/*}*/

:root {
    --text: oklch(100.00% 0.000 89.88);
    --background: oklch(20.00% 0.000 89.88);
    --background-hover: oklch(25% 0 90);
    --primary: oklch(57.57% 0.130 139.61);
    --secondary: oklch(78.14% 0.114 92.91);
    --accent: oklch(45.25% 0.051 51.18);
}

:root {
    --border-radius: 6px;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: "Lexend", sans-serif;
}

.pageContentStyle {
    width: 100%;
    height: 100%;
    padding: 0 0.5rem;
}

.capped-width {
    width: min(900px, 100%);
}

.sec-pad {
    padding: 3rem 0px;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-slow {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.content-section {
    margin-bottom: 3rem;
}

.section-header {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text);
    text-decoration-line: none;
    transition: color 0.2s ease-in-out;
}

a.section-header {
    display: inline-flex;
    align-items: baseline;
    position: relative;
}

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

a.section-header p {
    font-size: 0.875rem;
    color: var(--secondary);
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    transition: all 0.3s ease-in-out;
}

a.section-header:hover p {
    margin: 0 0 0 8px;
    opacity: 1;
    max-width: 200px;
}

a.section-header span {
    font-size: 1.15rem;
    margin-left: 8px;
    transition: margin-left 0.3s ease-in-out;
}

/*a.section-header:hover span {*/
/*    margin-left: 16px;*/
/*}*/

hr {
    width: 100%;
    height: 0.1rem;
    margin: 16px 0px;
    border: 0;
    background-color: var(--primary);

    opacity:0.5;
}

.subtle {
    font-size: .875rem;
}

.subtle-note {
    width: 100%;
    text-align: center;
    opacity: 0.5;
}

/* Navbar & Items */

.navbar {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0rem;
}


#nav-name {
    font-size: 2rem;
    text-decoration-line: none;
    transition: scale 0.3s ease-in-out;
}

#nav-name:hover {
    scale: 1.05;
}

.nav-items-list {
    list-style: none;
    display: flex;
    gap: .75rem;
    padding: 0px;
}

.nav-item {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text)
}

.nav-items-list .nav-item {
    white-space: nowrap;
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.nav-items-list .nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--secondary);
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.nav-items-list .nav-item:hover {
    /* no text movement; underline handles motion */
}

.nav-items-list .nav-item:hover::after {
    opacity: 0.8;
    transform: translateY(2px);
}

.nav-items-list .nav-item--active {
    color: var(--secondary);
    /* no text movement; underline handles motion */
}

.nav-items-list .nav-item--active::after {
    opacity: 0.8;
    transform: translateY(2px);
}

.nav-item.nav-blog {
    transition: all 0.2s ease-in-out;
}

.nav-item.nav-blog > span {
    font-size: 0.75rem;
    opacity: 0;
    margin-left: 4px;
    transition: all 0.2s ease-in-out;
}

.nav-item.nav-blog:hover > span {
    opacity: 100%;
}

/* Hero Section */

.hero {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5rem 0px;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    gap: 1rem;
}

.hero-image {
    height: 350px;
    width: 40%;
    border-radius: 10%;
    object-fit: contain;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    width: 60%;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2.5px;
    margin-bottom: 16px;
}

.hero-content h1 span {
    font-size: 2.5rem;
    font-weight: 400;
}

.hero-content p {
    color: silver;
    font-size: 1rem;
}

.section-link-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.cta-link-blogs {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 0.9rem;
    opacity: 0.7;
    text-decoration: none;
    padding: 0.1rem 0.75rem;
    transition: all 0.2s ease-in-out;
}

.cta-link-text-swap {
    position: relative;
    display: inline-grid;
    place-items: center;
    line-height: 1.2;
    text-align: center;
}

.cta-link-text,
.cta-link-text-hover {
    display: inline-block;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    grid-area: 1 / 1;
}

.cta-link-text-hover {
    opacity: 0;
    transform: translateY(2px);
}

.cta-link-swap:hover .cta-link-text {
    opacity: 0;
    transform: translateY(-2px);
}

.cta-link-swap:hover .cta-link-text-hover {
    opacity: 1;
    transform: translateY(0);
    color: var(--secondary);
}

.cta-link-blogs::before,
.cta-link-blogs::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--text);
    opacity: 0.3;
}

.cta-link-blogs::before {
    left: -32px;
}

.cta-link-blogs::after {
    right: -32px;
}

.cta-link-blogs:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Mobile breakpoint for hero */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
    }

    .hero-image {
        height: 200px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .hero-content {
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 span {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
}

/* Contact and Resume Section */
.contact-resume-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 1rem 0;
}

.contact-message {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: 1rem;
}

.contact-input,
.contact-textarea {
    background: var(--background-hover);
    color: var(--text);
    border: 1px solid transparent;
    outline: 2px solid transparent;
    padding: .6rem .75rem;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    width: 100%;
}

.contact-input:focus,
.contact-textarea:focus {
    transition: all 0.2s ease;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-row-split {
    flex-direction: row !important;
    gap: 0.75rem !important;
}

.form-row-split .contact-input {
    flex: 1;
    min-width: 0;
}

.contact-status {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.contact-status-success {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.contact-status-error {
    color: oklch(70% 0.18 25);
    background: color-mix(in srgb, oklch(70% 0.18 25) 12%, transparent);
}

.button-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.button-divider {
    opacity: 0.5;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    flex-shrink: 0;
}

.action-button {
/*    flex: 1;*/
    width: 100%;
    text-align: center;
    padding: .75rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
    transition: all 0.2s ease;
}

.action-button-round {
    width: 50px;
    text-align: center;
    padding: .75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
    transition: all 0.2s ease;
    border-radius: 50%;
}

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

.action-button-primary:hover {
    background: var(--primary);
    color: var(--background);
}

.action-button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-button-secondary {
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.action-button-secondary:hover {
    background: var(--secondary);
    color: var(--background);
}


.theme-toggle-button {
    padding: 0.5rem;
    background-color: transparent;
    color: var(--text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-button:hover {
    background-color: var(--background-hover);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 9999;
}

.modal-content {
    max-width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideUp 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.download-text-mobile {
    display: none;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 1rem;
    }

    #nav-name {
        font-size: 1.25rem;
    }

    .nav-item {
        font-size: 0.875rem;
    }

    .form-row-split {
        flex-direction: column !important;
    }

    .download-text-full {
        display: none;
    }

    .download-text-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Footer Section */
.footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.5;
    text-align: center;
}

.footer-social-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
}

.footer-social-link {
    color: var(--text);
    opacity: 0.6;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-social-link:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateY(-2px);
}
