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

body {
    font-family: "trebuchet ms", Verdana, "verdana ref", "segoe ui", Candara, "lucida grande", "lucida sans unicode", "lucida sans", Tahoma, sans-serif;
    line-height: 1.7;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}

/* Disable all transitions during theme toggle */
body.no-transition,
body.no-transition * {
    transition: none !important;
}

.page {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    font-family: "unica one", cursive;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    color: #000;
    font-family: "unica one", cursive;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    display: inline-block;
}

.contact {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.contact:hover {
    opacity: 0.7;
}

h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.content {
    font-size: 14px;
    line-height: 1.6;
    max-width: 700px;
}

.content p {
    margin-bottom: 20px;
    text-align: justify;
}

.content p:last-child {
    margin-bottom: 0;
}


.contact-section {
    margin-top: 32px;
    text-align: center;
}

.contact-button {
    display: inline-block;
    color: #000 !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid #000;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    font-family: "unica one", cursive;
}

.contact-button:hover {
    background: #000;
    color: #fff !important;
}

.reveal-text {
    opacity: 0;
    transition: opacity 0.8s ease;
    cursor: pointer;
}

.reveal-text.visible {
    opacity: 1;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    letter-spacing: -0.01em;
}

.work-section h2, .matters-section h2 {
    margin: 0 0 12px 0;
}

.work-list {
    list-style: none;
    margin-bottom: 24px;
}

.work-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.work-list li::before {
    content: '+';
    position: absolute;
    left: 0;
}

.closing {
    font-weight: 500;
    margin-top: 32px !important;
}

.contact-note {
    font-size: 14px;
    color: #333 !important;
    margin: 0;
    text-align: center !important;;
}

.reference-link {
    color: #0066cc;
    text-decoration: none;
    font-size: inherit;
}

.reference-link:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .page {
        padding: 40px 24px;
    }
    
    header {
        margin-bottom: 60px;
    }
    
    h1 {
        margin-bottom: 40px;
    }
}

/* Dark mode styles */
body.dark-mode {
    color: #fff;
    background: #000;
}

body.dark-mode .logo,
body.dark-mode .contact,
body.dark-mode .theme-toggle {
    color: #fff;
}

body.dark-mode h1 {
    color: #fff;
}

body.dark-mode .contact-button {
    color: #fff !important;
    border-color: #fff;
}

body.dark-mode .contact-button:hover {
    background: #fff;
    color: #000 !important;
}

body.dark-mode .contact-note {
    color: #ccc !important;
}

body.dark-mode .reference-link {
    color: #66b3ff;
}
