/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables matching Squarespace theme - DARK MODE */
:root {
    color-scheme: dark;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --color-text: #fff;
    --color-background: #000;
    --color-accent: #fff;
    --max-width: 1800px;
    --page-padding: 4vw;
    --header-padding: 3vw;
}

html, body {
    background-color: #000 !important;
    color: #fff !important;
}

/* Base Styles */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

a {
    color: var(--color-text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Site Wrapper */
.site-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header */
.site-header {
    padding: var(--header-padding) var(--page-padding);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.site-logo img {
    height: 35px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    color: var(--color-text);
}

.social-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
main {
    padding-top: calc(var(--header-padding) * 3);
}

/* Section Base */
section, footer {
    padding: var(--page-padding);
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Intro Section */
.intro-section {
    min-height: auto;
    text-align: left;
    padding-top: var(--page-padding);
    padding-bottom: var(--page-padding);
    padding-left: 0;
    padding-right: 0;
}

.intro-section h4 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.8;
}

.intro-section h4 strong {
    font-weight: 700;
}

.intro-section .consulting-cta {
    font-size: 1.25rem;
    margin-top: 2rem;
}

.intro-section .consulting-cta a {
    text-decoration: underline;
}

/* My Apps Section */
.my-apps-section {
    padding: 1rem 0 0 0;
    text-align: left;
}

.my-apps-section .content-wrapper {
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}

.my-apps-section h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

.apps-grid {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.app-item:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.app-item img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
}

.app-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
}

/* Experience Section */
.experience-section {
    background: var(--color-background);
    padding: 3rem var(--page-padding) calc(var(--page-padding) * 2) var(--page-padding);
}

.experience-section .section-header {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

/* Job Cards */
.job {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #333;
}

.job:last-child {
    border-bottom: none;
}

.job-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
}

.job-role {
    font-size: 0.9rem;
    opacity: 0.8;
}

.job-content {
    font-size: 1rem;
    line-height: 1.8;
}

.job-content ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.job-content li {
    margin-bottom: 0.5rem;
}

.job-content p {
    white-space: pre-wrap;
}

/* Consulting Section */
.consulting-section {
    background: #111;
    padding: calc(var(--page-padding) * 2) var(--page-padding);
    text-align: center;
}

.consulting-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contact Section / Footer */
.contact-section {
    padding: calc(var(--page-padding) * 2) var(--page-padding);
    text-align: center;
}

.contact-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-section a {
    font-size: 1.25rem;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --page-padding: 6vw;
        --header-padding: 4vw;
    }

    .intro-section h4 {
        font-size: 1.25rem;
    }

    .job {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .company-name {
        font-size: 1.25rem;
    }

    .social-links {
        display: none;
    }
}

/* Print Styles */
@media print {
    .site-header {
        position: static;
    }

    main {
        padding-top: 0;
    }

    .job {
        break-inside: avoid;
    }
}
