/* ============================================
   Base
   ============================================ */

body {
    background-color: #FFFFFF;
    color: #0A0A0A;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   Noise Overlay
   ============================================ */

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 40;
}

/* ============================================
   Section Spacing
   ============================================ */

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* ============================================
   Reveal Animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ============================================
   Form Inputs
   ============================================ */

.input-tech:focus {
    outline: none;
    border-color: #FF3300;
    box-shadow: 4px 4px 0px 0px rgba(255, 51, 0, 0.1);
}

/* ============================================
   Navigation Links
   ============================================ */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #FF3300;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #0A0A0A;
    opacity: 1;
}

/* ============================================
   Text Stroke Utilities
   ============================================ */

.text-stroke-black {
    -webkit-text-stroke: 1px #0A0A0A;
}

.text-stroke-0 {
    -webkit-text-stroke: 0px;
}

.text-stroke-1 {
    -webkit-text-stroke-width: 1px;
}

/* ============================================
   Post Content Typography (Blog Posts)
   ============================================ */

.post-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    border-left: 4px solid #FF3300;
    padding-left: 1rem;
}

.post-content h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
    color: rgba(10, 10, 10, 0.7);
    line-height: 1.625;
}

.post-content a {
    color: #FF3300;
    text-decoration: underline;
    transition: all 0.15s ease;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.post-content ul li + li,
.post-content ol li + li {
    margin-top: 0.5rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    color: rgba(10, 10, 10, 0.7);
}

.post-content code {
    background-color: #f3f4f6;
    border: 1px solid rgba(10, 10, 10, 0.1);
    padding: 0.125rem 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.post-content pre {
    background-color: #0A0A0A;
    color: #FFFFFF;
    padding: 1rem;
    overflow-x: auto;
    border: 2px solid #0A0A0A;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.post-content pre code {
    background-color: transparent;
    border: 0;
    padding: 0;
    color: #FFFFFF;
}

.post-content blockquote {
    border-left: 4px solid #FF3300;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-style: italic;
    color: rgba(10, 10, 10, 0.6);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content img {
    border: 2px solid #0A0A0A;
    box-shadow: 8px 8px 0px #0A0A0A;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    height: auto;
}

.post-content table {
    width: 100%;
    border: 2px solid #0A0A0A;
    margin-bottom: 1.5rem;
}

.post-content th,
.post-content td {
    border: 1px solid rgba(10, 10, 10, 0.2);
    padding: 0.75rem;
    text-align: left;
}

.post-content th {
    background-color: #f3f4f6;
    font-weight: 700;
}

.post-content hr {
    border-top: 2px solid rgba(10, 10, 10, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   Post Content Enhanced Typography
   ============================================ */

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ============================================
   Drop Cap for First Paragraph
   ============================================ */

.post-content > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 800;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: #FF3300;
}

/* ============================================
   Post Hero Section
   ============================================ */

.post-hero-overlay {
    background: linear-gradient(to top,
        rgba(10,10,10,0.95) 0%,
        rgba(10,10,10,0.7) 50%,
        rgba(10,10,10,0.3) 100%);
}

/* ============================================
   Reading Progress Bar
   ============================================ */

#reading-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 0;
    height: 3px;
    background: #FF3300;
    z-index: 9998;
    transition: width 0.1s ease-out;
}

/* ============================================
   Sticky Sidebar
   ============================================ */

.post-sidebar {
    position: sticky;
    top: 7rem;
    align-self: start;
}

/* ============================================
   Widget Styling
   ============================================ */

.widget {
    margin-bottom: 2rem;
    border: 2px solid rgba(10, 10, 10, 0.1);
    padding: 1.5rem;
    background: #FFFFFF;
}

.widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 2px solid #FF3300;
    padding-bottom: 0.5rem;
}

/* ============================================
   Newsletter Widget
   ============================================ */

.newsletter-widget {
    border: 2px solid #0A0A0A;
    padding: 1.5rem;
    background: #FF3300;
    box-shadow: 6px 6px 0px #0A0A0A;
}

/* ============================================
   Line Clamp Utility
   ============================================ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
