/* ===== CSS Variables ===== */
:root {
    --bg: rgb(255, 255, 255);
    --fg: #2d2d2d;
    --muted: #6b6b6b;
    --border: #d4d1c6;
    --accent: #0015b5;
    --radius: 8px;
}

/* ===== Base Styles ===== */
* { 
    box-sizing: border-box; 
}

html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: Arial, sans-serif;
    font-size: 19px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* ===== Layout ===== */
main {
    max-width: 960px;
    padding: 0 20px 20px;
    margin: 0 auto;
}

header {
    margin-top: 50px;
    text-align: center;
    padding-bottom: 10px;
}

#shelf-container {
    position: relative;
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    display: inline-block;
}

#shelf-base {
    width: 100%;
    display: block;
}

.shelf-object {
    position: absolute;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

section {
    margin: 70px 0;
}

section > h2 {
    margin-bottom: 20px;
}

/* ===== Typography ===== */
h2 {
    margin: 0 0 0px;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: normal;
    color: var(--fg);
    display: inline-block;
    background-color: #182c9e;
    color: white;
    padding: 8px;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

ul, ol {
    margin: 12px 0;
    padding-left: 24px;
}

li {
    margin: 8px 0;
}

/* ===== Card Components ===== */
.card h3 {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: normal;
}

.card p {
    margin-top: 5px;
}

.dot {
    width: 17px;
    height: 17px;
    margin-right: 8px;
    margin-top: 7px;
}

/* ===== Grid Layout ===== */
.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid { 
        grid-template-columns: 1fr 1fr; 
    }
}

/* ===== Services Section ===== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
}

.services-grid .card {
    flex: 1 1 200px;
    border: 1px solid #10129b;
    border-radius: 0px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255);
}

.services-grid .card:hover {
    box-shadow: 5px 5px 4px rgba(0, 0, 0, 0.15);
}

.services-grid .card > * {
    margin-bottom: 12px;
}

.services-grid .card > *:last-child {
    margin-bottom: 0;
}

.price {
    color: var(--muted);
    margin-top: auto !important;
}

/* ===== Portfolio Table ===== */
.work-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.work-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.work-table td:nth-child(2) {
    text-align: left;
}

.work-table td:nth-child(3) {
    width: 80px;
}

.work-table tr:last-child td {
    border-bottom: none;
}

.work-table tr.current-project {
    background: rgb(255, 255, 210);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.current-label {
    font-size: 0.75rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.current-square {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgb(255, 255, 210);
    border: 1px solid var(--border);
}

.work-table .credit {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}


/* Preview Thumbnails */
.thumbnail-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.thumbnail-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
    pointer-events: none;
    display: none;
}

.preview-thumbnail {
    width: 100px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.thumbnail-wrapper:hover .preview-thumbnail {
    filter: brightness(120%);
}

.work-table .tag {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid;
    border-radius: 4px;
    margin-right: 6px;
    white-space: nowrap;
}

.tag.design {
    border-color: #ff6b9d;
}

.tag.programming {
    border-color: #4a90e2;
}

.tag.maintenance {
    border-color: #ae23ae;
}

/* ===== Testimonials ===== */
.testimonial-author {
    margin-top: 14px;
    color: var(--muted);
}


/* ===== FAQ Section ===== */
.faq-item {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin: 14px 0;
}

.faq-item summary {
    cursor: pointer;
    padding: 10px;
    font-weight: 500;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '▸';
    float: right;
}

.faq-item[open] summary::after {
    transform: rotate(90deg);
}

.faq-item p {
    margin: 0;
    padding: 0 10px 10px 10px;
    color: var(--muted);
}

/* ===== Intake Form Section ===== */
.intake-form {
    text-align: center;
    margin: 80px 0 60px;
    padding: 40px;
    color: white;
    border-radius: var(--radius);
    background-color: rgb(37, 28, 157);
}
.intake-form a {
    color: white;
}


/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    border-top: 2px solid var(--border);
}

/* ===== Under Construction Banner ===== */
#under-construction {
    text-align: center;
    padding: 15px 20px;
    border-bottom: 1px solid #0015b5;
    /* background-color: rgb(229, 229, 229); */
    background-color: rgb(255, 255, 210);
}

#under-construction p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4rem;
}

#under-construction a {
    color: #0015b5;
    font-weight: 600;
}

/* ===== Toggle Switches ===== */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.toggle-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}


.toggle-switch {
    display: inline-flex;
    border: 1px solid #136f42;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.toggle-switch button {
    padding: 6px 10px;
    border: none;
    background: white;
    color: var(--fg);
    cursor: pointer;
    font-size: 0.75rem;
    font-family: Arial, sans-serif;
}

.toggle-switch button.active {
    background: #136f42;
    color: white;
}

.toggle-switch button:hover:not(.active) {
    background: #f0f0f0;
}

/* Currency toggle - dark orange */
#toggle-eur.active,
#toggle-usd.active {
    background: #c86400;
}

#toggle-eur,
#toggle-usd {
    border-color: #c86400;
}

#toggle-eur:hover:not(.active),
#toggle-usd:hover:not(.active) {
    background: #f0f0f0;
}

#toggle-eur:is(.active),
#toggle-usd:is(.active) {
    background: #c86400;
    color: white;
}

#toggle-eur:first-child:is(.active) ~ #toggle-usd,
#toggle-usd:is(.active) ~ #toggle-eur {
    background: white;
}

.toggle-switch:has(#toggle-eur) {
    border-color: #c86400;
}

#fine-print {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 20px;
    text-align: center;
}

.big-video {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}
.big-video video {
    aspect-ratio: 16/9;
}
.big-video figcaption {
    font-size: 0.8rem;
    padding: 12px;
    padding-top: 0px;
    margin-top: 0px;
}
@media (min-width: 1240px) {
    .big-video figcaption {
        padding: 0px;
        padding-top: 0px;
        margin-top: 0px;
    }
}

video, iframe {
    width: 100%;
    background-color: #0015b5;
}

#my-hand-container {
    position: relative;
    margin-bottom: -100px;
}
#my-hand-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 400px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,21,181,0) 0%, #0015b5 100%);
    z-index: 1;
}
#my-hand-container img#my-hand {
    width: 100%;
    
    max-width: 700px;
    position: relative;
    z-index: 2;
    display: block;
}


/* ===== Mobile ===== */
@media (max-width: 767px) {
    .work-table a {
        word-break: break-all;
    }
    
    .work-table td {
        display: block;
        border-bottom: none;
        padding: 4px 8px;
    }
    
    .work-table td:first-child {
        padding-top: 8px;
    }
    
    .work-table td:last-child {
        padding-bottom: 8px;
    }
    
    .work-table td:nth-child(3) {
        width: 100%;
    }
    
    .work-table tr {
        border-bottom: 1px solid var(--border);
    }
    
    .work-table tr:last-child {
        border-bottom: none;
    }
    
    .thumbnail-wrapper {
        width: 50%;
        margin-top: 8px;
    }
    
    .thumbnail-wrapper::after {
        display: block;
        border-width: 16px 0 16px 26px;
    }
    
    .preview-thumbnail {
        width: 100%;
    }
    
    .big-video video {
        aspect-ratio: 4/3;
        object-fit: cover;
    }
    
    .toggle-container {
        justify-content: flex-end;
    }
}