:root {
    --background: #101010;
    --surface: #1D1D1D;
    --primary-text: #E0E0E0;
    --secondary-text: #A0A0A0;
    --border: #2A2A2A;
    --accent: #FFFFFF;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--primary-text);
    font-family: var(--font-sans);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    body {
        padding: 20px;
    }
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.profile h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 0;
}

.profile p {
    font-size: 16px;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.5;
}

.profile-picture svg {
    transition: transform 0.3s ease;
}

.profile-picture img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.profile-picture:hover svg {
    transform: scale(1.05);
}

.socials {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.socials a {
    color: var(--secondary-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover {
    color: var(--primary-text);
    transform: scale(1.1);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    gap: 4px;
}

.wide-card {
    grid-column: span 2;
}

.tall-card-2 {
    grid-row: span 2;
}

.tall-card-4 {
    grid-row: span 4;
}

.card input[type="email"] {
    width: 100%;
    margin:  0 0 0 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--primary-text);
    font-size: 14px;
    box-sizing: border-box;
}

.card input[type="email"]::placeholder {
    color: var(--secondary-text);
}

.card input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.card button {
    margin-top: 0px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: var(--background);
    color: var(--background);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card button:hover {
    background-color: #e0e0e0;
    color: var(--surface);
}

.card:hover {
    border-color: var(--accent);
    background-color: #252525;
    transform: translateY(-4px);
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--primary-text);
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: cover;
}

.fill-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.card p {
    font-size: 14px;
    margin: 0;
    color: var(--secondary-text);
    line-height: 1.4;
}

.grid-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grid-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.email-form {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.email-form input {
    flex-grow: 1;
    width: 100%;
    padding: 12px 56px 12px 10px; /* Add padding to the right for the button */
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--primary-text);
    font-size: 14px;
    box-sizing: border-box;
}

.email-form input::placeholder {
    color: var(--secondary-text);
}

.email-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.email-form button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0 8px 8px 0;
    background-color: transparent;
    color: var(--secondary-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

button svg {
  position: absolute;
}

.email-form button:hover {
    color: var(--accent);
}

button:active .email-sent {
  opacity: 1;
  transition:
    opacity 300ms ease-in-out,
    transform 300ms cubic-bezier(.4,0,.2,1);
}

.email-sent path {
  stroke: green;
}

button .email-sent {
  opacity: 0;
  transition:
    opacity 300ms ease-in-out,
    transform 300ms cubic-bezier(.4,0,.2,1);
}

button:active .send-email {
  opacity: 0;
  transition:
    opacity 300ms ease,
    transform 300ms cubic-bezier(.4,0,.2,1);
}

.code-snippet {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.code-snippet input {
    flex-grow: 1;
    width: 100%;
    padding: 12px 56px 12px 10px; /* Add padding to the right for the button */
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--primary-text);
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
}

.code-snippet input:focus {
    outline: none;
    border-color: var(--accent);
}

.code-snippet button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0 8px 8px 0;
    background-color: transparent;
    color: var(--secondary-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-snippet button:hover {
    color: var(--accent);
}

/* Article Styles */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.main-nav a {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-text);
}

.article-container {
    padding: 20px 0;
}

.article-container h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.article-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
}


.article-container img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.article-container p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary-text);
    margin-bottom: 16px;
}

.article-container ul,
.article-container ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-container li {
    margin-bottom: 8px;
}

.article-container a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: background-color 0.3s ease;
}

.article-container a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.article-container pre {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    word-wrap: break-word;
}

.code-block-container {
    position: relative;
    margin-bottom: 16px; /* Adjust as needed */
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--surface);
    color: var(--secondary-text);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    opacity: 1; /* Always visible for debugging */
}

.code-block-container:hover .copy-button {
    opacity: 1; /* Visible on hover */
}

.copy-button:hover {
    background-color: var(--border);
    color: var(--primary-text);
    border-color: var(--accent);
}

.article-container code {
    font-family: 'Fira Code', monospace;
    background-color: var(--surface);
    padding: 2px 4px;
    border-radius: 4px;
}

.article-container pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--secondary-text);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.articles-list {
    list-style: none;
    padding: 0;
}

.articles-list li {
    margin-bottom: 1rem;
}

.articles-list a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Custom Image Styles */
.custom-image-style {
    border: 5px solid #FF5733; /* Example: orange border */
    box-shadow: 0 0 10px rgba(255, 87, 51, 0.5); /* Example: glow effect */
    transform: rotate(-2deg); /* Example: slight rotation */
}

