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

:root {
  /* Updated color palette extracted from portfolio.tsx */
  --primary: #ffffff;
  --primary-dark: #e5e5e5;
  --text: #d4d4d4;
  --text-light: #9ca3af;
  --text-lighter: #6b7280;
  --bg: #0a0a0a;
  --bg-light: #1f2937;
  --border: #374151;
  --border-light: #4b5563;
  --heading: #ffffff;
  --accent-gray: #1f2937;
  --link: #ff8c00;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    background-color: var(--bg);
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* Mobile hamburger menu button */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: #e5e5e5;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 0;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    padding: 1rem 0;
}

.nav-menu.active {
    display: flex;
    background-color: var(--bg);
    background-image: linear-gradient(rgba(180,180,180,0.08), rgba(180,180,180,0.08));
    background-blend-mode: lighten;
    border-bottom: 1px solid var(--bg-light);
}

.nav-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.nav-link:hover {
    opacity: 0.8;
    border-left-color: var(--primary);
}

/* Tablet breakpoint (640px) - Show menu horizontally */
@media (min-width: 640px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background-color: transparent;
        border: none;
        gap: 2rem;
        padding: 0;
    }

    .nav-link {
        padding: 0;
        border-left: none;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        border-left-color: transparent;
        border-bottom-color: var(--link);
    }

    .nav-container {
        padding: 1.25rem 1rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }
}

/* Medium devices (768px) - Increase spacing */
@media (min-width: 768px) {
    .nav-container {
        padding: 1.5rem 2rem;
    }

    .nav-logo {
        font-size: 1.75rem;
    }

    .nav-link {
        font-size: 1.05rem;
    }
}

/* Large devices (1024px+) - Optimal desktop experience */
@media (min-width: 1024px) {
    .nav-container {
        padding: 1.5rem 1.5rem;
    }

    .nav-menu {
        gap: 3rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

/* BLOG LAYOUT */
/* Mobile-first responsive padding and font sizing */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.content {
    font-size: 1rem;
    line-height: 1.4;
}

.content p {
    margin-bottom: 1.5rem;
}

.content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem 0;
    color: var(--heading);
    line-height: 1.3;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: var(--heading);
}

.content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem 0;
    color: #f0f0f0;
}

.content a {
    color: var(--link);
    text-decoration: underline;
}

.content a:hover {
    opacity: 0.8;
}

/* Tablet breakpoint (640px) - Increase padding and font sizes slightly */
@media (min-width: 640px) {
    body {
        padding: 1.5rem;
        font-size: 1.05rem;
    }

    .content h1 {
        font-size: 2.25rem;
    }

    .content h2 {
        font-size: 1.75rem;
    }

    .content h3 {
        font-size: 1.375rem;
    }
}

/* Medium devices (768px) - Further optimize for tablets */
@media (min-width: 768px) {
    body {
        padding: 2rem 1.5rem;
        font-size: 1.1rem;
    }

    .content h1 {
        font-size: 2.5rem;
    }

    .content h2 {
        font-size: 1.875rem;
        margin: 2.5rem 0 1.25rem 0;
    }

    .content h3 {
        font-size: 1.5rem;
    }
}

/* Large devices (1024px) - Optimize for laptops */
@media (min-width: 1024px) {
    body {
        padding: 2rem;
        font-size: 1.125rem;
    }

    .container {
        max-width: 700px;
    }

    .content h1 {
        font-size: 2.75rem;
    }

    .content h2 {
        font-size: 2rem;
    }

    .content h3 {
        font-size: 1.625rem;
    }
}

/* Extra large devices (1440px+) - Optimal experience on big screens */
@media (min-width: 1440px) {
    body {
        padding: 3rem 2rem;
        font-size: 1.115rem;
    }

    .container {
        max-width: 740px;
    }

    .content p {
      font-size: 1.15rem;
    }

    .content h1 {
        font-size: 3rem;
    }

    .content h2 {
        font-size: 2rem;
    }

    .content h3 {
        font-size: 1.75rem;
    }
}