/* Web fonts - loaded after critical path */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');
}

/* Enhanced typography with web fonts */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.summary, h3, .form-group label, .api-explanation, .tech-item {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
}

/* GPU Acceleration for animated elements */
.theme-toggle,
.profile-image,
.tech-item,
.system-example,
.endpoint,
.submit-button,
.availability {
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Font loading optimization */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: var(--bg-gradient);
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    transition: all 0.3s ease;
    /* Performance optimizations */
    will-change: color, background;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    border-radius: 50%;
    background: #25A7DA;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 167, 218, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(37, 167, 218, 0.4);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(37, 167, 218, 0.7);
}

.theme-toggle .fa-sun {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.theme-toggle .fa-moon {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

header {
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.profile-section {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.profile-image {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    padding: 3px;
    animation: profileGlow 3s ease-in-out infinite;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg);
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
    }
}

.header-text {
    flex: 1;
    min-width: 0;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.375rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.summary {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    padding-left: 1.5rem;
}

.summary::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2 i {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--text-muted);
}

ul {
    margin-left: 0;
    margin-bottom: 1.25rem;
    list-style: none;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--text-muted);
    padding-left: 2rem;
    position: relative;
}

li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
}

li strong {
    color: var(--text);
    font-weight: 600;
}

.code-block {
    background: var(--code-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.code-block::before {
    content: '● ● ●';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5rem;
    opacity: 0.5;
}

.endpoint {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.endpoint {
    will-change: transform, box-shadow;
}

.endpoint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.4);
}

.endpoint .method {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 2rem;
}

.json {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.tech-item {
    will-change: transform, box-shadow;
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.tech-item:hover i {
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.system-example {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.system-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-secondary) 100%);
}

.system-example {
    will-change: transform, box-shadow;
}

.system-example:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(0, 217, 255, 0.1);
}

.system-example h3 {
    margin-bottom: 1rem;
    margin-left: 0.5rem;
}

.system-example p {
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* SLA Tiers Styling */
.sla-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.sla-tier {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.sla-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.15);
    border-color: var(--accent);
}

.sla-tier.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.sla-tier.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sla-tier h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.sla-tier h3 i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.sla-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.sla-hours {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.sla-tier ul {
    text-align: left;
    margin: 0;
}

.sla-tier li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.sla-tier li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 0.85rem;
}

.linux-expertise {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.linux-expertise h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.linux-expertise ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem 2rem;
    margin: 0;
}

.linux-expertise li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact p {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.contact p strong {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.availability {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-weight: 500;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.4); }
    50% { box-shadow: 0 0 30px rgba(0, 217, 255, 0.6); }
}

code {
    background: var(--code-bg);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--accent);
    border: 1px solid var(--code-border);
}

.api-explanation {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
}

.form-group label i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

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

.challenge-group {
    background: var(--glass);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.challenge-group label {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

#challenge-question {
    color: var(--text);
    font-weight: 700;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button {
    will-change: transform, box-shadow;
}

.submit-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.4);
}

.submit-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    min-height: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-info p {
    color: var(--text);
}

.contact-info p strong {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info p strong i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.email-protected {
    color: var(--accent);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.email-protected:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

/* Desktop-first responsive design */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 2.5rem 1.75rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    section {
        margin-bottom: 3.5rem;
    }

    .theme-toggle {
        width: 55px;
        height: 55px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    .container {
        max-width: 720px;
        padding: 2rem 1.5rem;
    }

    header {
        padding: 2.5rem 1.5rem;
        margin-bottom: 3rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }


    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .summary {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    p, li {
        font-size: 1rem;
    }

    section {
        margin-bottom: 3rem;
    }

    .tech-stack {
        gap: 0.75rem;
    }

    .tech-item {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .endpoint {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }

    .contact {
        padding: 2rem;
    }

    .contact p {
        font-size: 1rem;
    }

}

/* Large phones */
@media (max-width: 640px) {
    .container {
        padding: 1.75rem 1.25rem;
    }

    header {
        border-radius: 16px;
        padding: 2rem 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.375rem;
        padding-bottom: 0.5rem;
    }

    ul {
        margin-left: 0;
    }

    li {
        padding-left: 1.75rem;
    }

    .code-block {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 8px;
    }

    pre {
        font-size: 0.875rem;
    }

    .system-example {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .api-explanation {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .contact-form {
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .challenge-group {
        padding: 0.875rem;
    }

    .submit-button {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .contact-info {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    .container {
        padding: 1.5rem 1rem;
    }

    header {
        padding: 1.75rem 1rem;
        margin-bottom: 2.5rem;
        border-radius: 12px;
    }

    .header-content {
        gap: 1.25rem;
    }


    header::before {
        width: 200px;
        height: 200px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .summary {
        font-size: 0.9375rem;
        margin-top: 1rem;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    h3 {
        font-size: 1.0625rem;
        margin-bottom: 0.875rem;
    }

    p, li {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    section {
        margin-bottom: 2.5rem;
    }

    li {
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
    }

    li::before {
        left: 0.25rem;
    }

    .code-block {
        padding: 0.875rem;
        border-radius: 8px;
    }

    .code-block::before {
        font-size: 0.625rem;
        letter-spacing: 0.4rem;
    }

    .endpoint {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }

    .endpoint .method {
        padding: 0.2rem 0.4rem;
        margin-right: 0.5rem;
    }

    pre {
        font-size: 0.8125rem;
        line-height: 1.5;
        margin-top: 1.5rem;
    }

    .tech-stack {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .tech-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .system-example {
        padding: 1rem;
        margin-bottom: 1.25rem;
        border-radius: 8px;
    }

    .system-example h3 {
        margin-bottom: 0.75rem;
        margin-left: 0.25rem;
    }

    .system-example p {
        font-size: 0.9375rem;
        margin-left: 0.25rem;
    }

    .api-explanation {
        padding: 0.875rem;
        margin-top: 1rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .contact {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .contact p {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    .availability {
        font-size: 1rem;
        margin-top: 1rem;
        padding: 0.625rem 1.25rem;
        border-radius: 6px;
    }

    code {
        font-size: 0.875rem;
        padding: 0.2rem 0.35rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
        top: 1rem;
        right: 1rem;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .container {
        padding: 1.25rem 0.75rem;
    }

    header {
        padding: 1.5rem 0.875rem;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    .endpoint {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
        display: block;
        word-break: break-all;
    }

    .tech-item {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }

    .contact {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .availability {
        font-size: 0.9375rem;
        padding: 0.5rem 1rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}