
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {
    --bg-color: #FAF9F6;
    --text-color: #333;
    --text-color-light: #666;
    --text-color-dark: #111;
    --border-color: #e5e5e5;
    --border-color-light: #f0f0f0;
    --link-hover-border: #333;
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-color-light: #999;
    --text-color-dark: #f5f5f5;
    --border-color: #333;
    --border-color-light: #2a2a2a;
    --link-hover-border: #e0e0e0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
}

/* Layout Grid */
.layout-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    /* This creates the 1/3 sidebar and 2/3 content split */
    grid-template-columns: auto 1fr; 
    gap: 4rem;
}

.sidebar {
    max-width: 250px;
}

.content {
    padding-top: 1rem;
    align-self: start;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    color: var(--text-color-dark);
    transition: color var(--transition-speed) ease;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent; /* subtle hover effect setup */
    transition: border-color 0.2s;
}

a:hover {
    border-bottom: 1px solid var(--link-hover-border);
}

/* Company Links - no underline, smooth color transitions */
.company-link {
    border-bottom: none !important;
    transition: color 0.6s ease;
}

.company-link:hover {
    border-bottom: none !important;
}

.company-link-stripe:hover {
    color: #7C3AED; /* Blue-purple */
}

.company-link-radar:hover {
    color: #FF6C00; /* Bright orange */
}

.company-link-goldman:hover {
    color: #003087; /* Dark blue */
}

strong {
    font-weight: 600;
}

/* Left Sidebar Styling */
.site-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.title-note {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
    transition: color var(--transition-speed) ease;
}


.theme-toggle-container {
    position: fixed;
    top: 4.65rem;
    right: 8rem;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.theme-toggle-track {
    position: relative;
    width: 70px;
    height: 26px;
    background: linear-gradient(135deg, #87CEEB 0%, #87CEEB 100%);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    user-select: none;
    overflow: hidden;
}

[data-theme="dark"] .theme-toggle-track {
    background: #000000;
}


.clouds-container {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .clouds-container {
    opacity: 0;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud-1 {
    width: 8px;
    height: 8px;
    left: 32px;
    top: 6px;
}

.cloud-1:before {
    width: 10px;
    height: 10px;
    top: -4px;
    left: 2px;
}

.cloud-1:after {
    width: 8px;
    height: 8px;
    top: -2px;
    left: 6px;
}

.cloud-2 {
    width: 6px;
    height: 6px;
    left: 48px;
    top: 10px;
}

.cloud-2:before {
    width: 8px;
    height: 8px;
    top: -3px;
    left: 2px;
}

.cloud-2:after {
    width: 6px;
    height: 6px;
    top: -2px;
    left: 5px;
}

/* Stars */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .stars-container {
    opacity: 1;
}

.star {
    position: absolute;
    color: white;
    font-size: 6px;
    line-height: 1;
    animation: twinkle 2s infinite;
}

.star-1 {
    left: 12px;
    top: 8px;
    animation-delay: 0s;
}

.star-2 {
    left: 24px;
    top: 14px;
    animation-delay: 0.6s;
}

.star-3 {
    left: 36px;
    top: 10px;
    animation-delay: 1.2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.theme-toggle-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    left: 2px;
    z-index: 2;
    touch-action: none;
}

.theme-toggle-thumb:active,
.theme-toggle-thumb.dragging {
    cursor: grabbing;
    transition: none;
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(46px);
}

.theme-icon-left,
.theme-icon-right {
    font-size: 14px;
    z-index: 1;
    transition: opacity 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
}

.theme-icon-left {
    opacity: 1;
}

.theme-icon-right {
    opacity: 0.4;
}

[data-theme="dark"] .theme-icon-left {
    opacity: 0.4;
}

[data-theme="dark"] .theme-icon-right {
    opacity: 1;
}

.section {
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.note {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: color var(--transition-speed) ease;
}

/* Right Content Styling */
.content-heading {
    font-size: 2rem;
    margin-bottom: 0.1rem;
    font-weight: 400; /* Matching the lighter weight in screenshot */
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.00rem;
    max-width: 65ch; /* Optimal reading width */
}

.content #about {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.content #about p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.6;
}

.content .things-grid {
    max-width: 100% !important;
}

/* The Dog Image */
.image-container {
    margin: -8.5rem 0 0.25rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
    padding: 0;
}

.dog-image {
    max-width: 400px;
    width: auto;
    height: auto;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

/* Sections created for Anchor Links */
#things-i-like, #investments {
    padding-top: 1rem; /* Adds space when scrolling to these ids */
    margin-bottom: 4rem; /* Extra space to allow scrolling */
}

hr {
    margin: 0 0 1rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
    transition: border-color var(--transition-speed) ease;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

/* Portfolio Styling */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--transition-speed) ease;
}

[data-theme="dark"] .portfolio-item {
    background-color: rgba(255, 255, 255, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.portfolio-item p {
    margin-bottom: 0.75rem;
}

.portfolio-meta {
    font-size: 0.9rem;
    color: var(--text-color-light);
    font-style: italic;
    transition: color var(--transition-speed) ease;
}

/* Things I Like Section */
.section-subtitle {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 2rem;
    font-style: italic;
    transition: color var(--transition-speed) ease;
}

/* Investments Table */
.investments-table-container {
    margin-top: 1.5rem;
}

.investments-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.investments-table thead {
    border-bottom: 1px solid var(--border-color);
    transition: border-color var(--transition-speed) ease;
}

.investments-table th {
    text-align: left;
    padding: 0.5rem 10rem 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

.investments-table td {
    padding: 0.5rem 10rem 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color-light);
    transition: color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

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

.investment-link {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--text-color);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.investment-link:hover {
    color: #0066cc;
    text-decoration-color: #0066cc;
}

.investments-note {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-top: 2rem;
    font-style: italic;
    transition: color var(--transition-speed) ease;
}

.things-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    max-width: none;
}

.things-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.things-item {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

.things-item a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    transition: opacity 0.2s ease;
}

.things-item a:hover {
    opacity: 0.7;
    border-bottom: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .layout-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 3rem;
        padding: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .things-grid {
        grid-template-columns: 1fr;
    }
}