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

:root {
    --bg-color: #000000;
    --accent-color: #ffffff;
    --text-main: #ffffff;
    --text-muted: #888888;
    --glow-color: rgba(255, 255, 255, 0.1);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    position: relative;
}

.top-header {
    margin-top: 80px;
    margin-left: 80px;
    margin-right: 80px;
    margin-bottom: 120px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.header-right {
    padding-top: 10px;
}

.contact-button {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.contact-button:hover {
    background: var(--text-main);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 5px;
}

.brand-line {
    display: flex;
    align-items: baseline;
    gap: 25px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-main);
    line-height: 1;
}

.about-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    font-weight: 300;
    letter-spacing: 0.05rem;
    word-wrap: break-word;
}

.content-area {
    margin-left: 80px;
    margin-bottom: 200px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    /* Space between sections */
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    max-width: fit-content;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.substack-svg {
    width: 1.2rem;
    height: 1.2rem;
}

.social-icon:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.section-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-link:hover {
    transform: translateX(10px);
}

.scroll-container {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    max-width: 700px;
    /* Fits 6 tiles (100px each) + 5 gaps (20px each) */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.photo-tile {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
    cursor: pointer;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.photo-tile:hover {
    transform: scale(1.05);
}

.photo-tile:hover img {
    opacity: 1;
}

.writing-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.writing-item {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
    width: fit-content;
    border-bottom: none;
}

.writing-item:hover {
    color: var(--text-muted);
    transform: translateX(10px);
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-main);
}

/* Contact Page Styles */
.contact-container {
    max-width: 700px;
    margin: 60px auto 0 auto;
    text-align: center;
}

.contact-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-muted);
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    align-self: flex-start;
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 15px 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

/* Google Form Styles */
.google-form-wrapper {
    width: 100%;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background effects for that premium feel */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .top-header {
        margin: 40px 15px 60px 15px;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 25px;
        width: calc(100% - 30px);
        max-width: 100vw;
    }

    .header-left {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        width: 100%;
    }

    .header-content {
        align-items: center;
        width: 100%;
    }

    .brand-line {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px;
        width: 100%;
    }

    .brand-name {
        font-size: 1.4rem !important;
        /* Significant reduction */
        letter-spacing: 0.1rem;
    }

    .social-links {
        justify-content: center;
        gap: 20px;
    }

    .about-text {
        font-size: 0.85rem;
        max-width: 100%;
        text-align: center;
        line-height: 1.4;
    }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .contact-button {
        display: inline-block;
        /* Downscaled by ~20% */
        font-size: 0.7rem !important;
        padding: 10px 18px !important;
        min-width: 160px;
    }

    .content-area {
        margin-left: 15px;
        margin-right: 15px;
        gap: 60px;
    }

    .scroll-container {
        max-width: 100%;
        gap: 12px;
    }

    .photo-tile {
        width: 120px;
        height: 120px;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 400px) {
    .brand-name {
        font-size: 1.2rem !important;
    }

    .profile-pic {
        width: 70px;
        height: 70px;
    }

    .top-header {
        margin: 30px 10px 40px 10px;
        gap: 20px;
    }

    .contact-button {
        font-size: 0.65rem !important;
        padding: 8px 15px !important;
    }
}