:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --font-serif: Georgia, "Times New Roman", Times, serif;
    --base-size: 16px;
    --scale-xxs: 0.75rem;
    --scale-xs: 0.875rem;
    --scale-sm: 1rem;
    --scale-md: 1.125rem;
    --scale-lg: 1.5rem;
    --scale-xl: 2rem;
    --line-height: 1.6;
    --heading-line-height: 1.15;
    --color-text: #222222;
    --color-muted: #666666;
    --measure: 65ch;
}

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

html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    color: var(--color-text);
}

body {
    margin: 0;
    padding: 0;
    font-size: var(--scale-sm);
    line-height: var(--line-height);
    background: #DAE7FF;
    color: var(--color-text);
}

section {
    display: block;
    width: auto;
    padding: 20px;
    margin: 42px auto 32px auto;
    max-width: none;
}

p { margin: 0 0 1rem 0; }
.lead { font-size: var(--scale-md); color: var(--color-muted); margin-bottom: 1rem; }
small, .small { font-size: var(--scale-xs); }

h1,h2,h3 {
    margin: 0 0 0.5rem 0;
    padding: 8px;
    line-height: var(--heading-line-height);
    font-weight: 600;
    color: var(--color-text);
}

h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.2vw + 0.8rem, 2rem); }
h3 { font-size: clamp(1.2rem, 2.0vw + 0.6rem, 1.25rem); }

.contact-h1 {
    margin: 0 0 0.5rem 0;
    padding: 8px;
    line-height: var(--heading-line-height);
    font-weight: 600;
    color: var(--color-text);
}

.custom-h1 { font-size: clamp(3.6rem, 4.6vw + 3rem, 4.5rem); }

a { color: #222222; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; font-size: 0.875em; }

nav{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    background: #F2F7FF;
    color: #222222;
    font-family: 'Jacques Francois', serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    flex-wrap: wrap;
}

.nav-name{
    font-weight: 600;
    font-size: var(--scale-lg);
    line-height: 1;
}

.nav-links{
    display: flex;
    gap: 1.25rem;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

footer{
    width: 90%;
    margin: 16px auto;
    padding: 12px 0;
    text-align: center;
    color: #666;
    font-family: 'Hahmlet', serif;
}

.title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 90%;
    margin: 24px auto;
    padding: 12px 16px;
    font-family: 'Jacques Francois', serif;
}
.title-details{
    flex: 1 1 50%;
    text-align: left;
}

.title-details-right{
    text-align: right;
}


.title-right{
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-end;
}
.title-right img{
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 0;
    display: block;
}
.titlebtn{
    display: flex;
    gap: 0.75rem;
    margin-top: calc(0.75rem + 30px);
    align-items: center;
}
.btn{
    display: inline-block;
    padding: 1.2rem 2rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.75rem;
    text-decoration: none;
    text-align: center;
    color: var(--color-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn-primary{
    background: #73BEFF;
    border: 1px solid #222222;
    box-shadow: #222222 2px 2px 0 0;
    color: #222222;
}
.btn-secondary{
    background: #ACD8FF;
    border: 1px solid #222222;
    box-shadow: #222222 2px 2px 0 0;
    color: #222222;
}

.page-divider{
    width: calc(100% - 128px);
    height: 2px;
    background: #000000;
    margin: 0 auto;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}

.footer-divider{
    width: calc(100% - 12px);
    height: 1px;
    background: #000000;
    margin: 0 auto;
    margin-top: -24px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.info-grid{
    width: 90%;
    margin: 28px auto 48px auto;
    margin-top: -8px;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 1.15rem;
    font-family: 'Jacques Francois', serif;
}
.info-block{
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 180px;
    padding: 8px 12px;
}
.info-block p{
    margin: 0;
    padding: 8px 0;
    text-align: left;
    color: var(--color-text);
}
.info-block p:first-of-type{
    font-size: 2rem;
    font-weight: 700;
}


.about-grid {
    display: grid;
    grid-template-columns: 45% 45%;
    grid-template-rows: repeat(4, 1fr);
    gap: 4rem;
    column-gap: 10rem;
    min-height: 1000px;
    width: 90%;
    margin: 1rem auto;
    padding: 2rem 3.5rem;
}

.about-grid .grid-item {
    background: #ACD8FF;
    border: 1px solid #222222;
    box-shadow: #222222 2px 2px 0 0;
    border-radius: 18px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.about-grid .grid-item:nth-child(1),
.about-grid .grid-item:nth-child(2) {
    min-height: 500px;
}

.about-grid .grid-item:nth-child(n+3) {
    min-height: 200px;
}

.work-grid-updates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4rem;
    min-height: 1000px;
    width: 90%;
    margin: 1rem auto;
    padding: 2rem 3.5rem;
}

.work-grid-updates .grid-item {
    background: #ACD8FF;
    border: 1px solid #222222;
    box-shadow: #222222 2px 2px 0 0;
    border-radius: 18px;
    padding: 1rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 4rem;
    min-height: 600px;
    width: 90%;
    margin: auto;
    padding: 2rem 3.5rem;
}

.contact-grid .grid-item {
    background: #ACD8FF;
    border: 1px solid #222222;
    box-shadow: #222222 2px 2px 0 0;
    border-radius: 18px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.slider {
    position: relative;
    width: 60%;
    overflow: hidden;
    background: #ACD8FF;
    border: 1px solid #222222;
    box-shadow: #222222 2px 2px 0 0;
    border-radius: 18px;
    min-height: 60px;
    display: block;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;

}



@media (max-width: 600px) {
    .titlebtn { margin-top: 0.75rem; }
    .btn { padding: 0.9rem 1.2rem; font-size: 1rem; }
}
