/*==================================================
  GLOBAL STYLES — apply to every page unless overridden
==================================================*/

/* Base */
body {
    background-color: #f0f0f0;
    font-family: 'Proxima Nova', sans-serif;
}

/* Layout */
header,
footer {
    text-align: center;
}

section {
    text-align: center;
    margin: 40px 0;
}

/* Images inside any <section> */
section img {
    width: auto;
    max-width: 475px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto 20px;
}

/* Links inside any <section> */
section a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    width: auto; /* ensures link isn’t full-width */
}


/*==================================================
  UTILITIES & COMPONENTS
==================================================*/

/* — Image Gallery / Side-by-side images — */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.image-container img {
    max-width: 300px;
    height: auto;
    border-radius: 0;
    margin: 0 5px;
}

/* — Emoji Banner — */
.emoji-section p {
    margin: 0;
    letter-spacing: -1.5rem;
}
.emoji-section h2 {
    margin-top: 0.5rem;
}


/*==================================================
  EXPERIENCE SECTION
==================================================*/

/* Override the centered <section> default */
#experience {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.experience-list {
    list-style: none;
    margin: 0;
    padding: 0;

    /* new: make it a column flex container + center each <li> */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.experience-item {
    margin-bottom: 1.5rem;

    /* new: center any inline-level children (your <a>) */
    text-align: center;
}


.experience-item a {
    display: flex;               
    flex-direction: column;      
    align-items: center;         
    text-align: center;         
  }

/* Hover/focus highlight */
.experience-item a:focus {
    background-color: #e8e8e8;
}

/* Logo size & spacing */
.company-logo {
    width: auto;
    height: auto;
    object-fit: contain;
    margin-right: 0 0 1rem;
    flex-shrink: 0;
    justify-content: center;
}

/* Wrap text vertically */
.experience-content {
    display: flex;
    flex-direction: column;
}

/* Company name */
.company-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Role & description */
.position {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}

/*===============================
   PROJECTS SECTION
===============================*/

#projects {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.1s, box-shadow 0.1s;
}

.project-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.project-logo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.project-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.project-content p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.project-content small {
  font-size: 0.85rem;
  color: #888;
}

/* make it responsive */
@media (max-width: 600px) {
  #projects { padding: 0 10px; }
  .projects-list {
    grid-template-columns: 1fr;
  }
}

/*==================================================
  RESPONSIVE TWEAKS
==================================================*/

@media (max-width: 600px) {
    /* Make images smaller on mobile */
    section img {
        width: 250px;
        height: 167px;
    }
    
    .image-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .image-container img {
        width: 200px;
        height: 133px;
    }
    
    .company-logo {
        width: 36px;
        height: 36px;
    }
    .company-name {
        font-size: 1rem;
    }
    .position {
        font-size: 0.9rem;
    }
}

/*==================================================
  BLOG/MARKDOWN CONTENT STYLES
==================================================*/

/* Main content area for blog posts */
.post-content, 
article,
.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    font-family: 'Georgia', 'Times New Roman', serif; /* Change this to your preferred font */
    font-size: 18px; /* Adjust base font size */
    color: #333;
}

/* Blog post headings */
.post-content h1,
article h1 {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    color: #222;
}

.post-content h2,
article h2 {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 1.4rem 0 0.8rem 0;
    color: #333;
}

.post-content h3,
article h3 {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.2rem 0 0.6rem 0;
    color: #444;
}

/* Blog post paragraphs */
.post-content p,
article p {
    margin: 1.2rem 0;
    text-align: justify;
    font-size: 18px; /* Paragraph font size */
}

/* Emphasized text (italic) */
.post-content em,
article em {
    font-style: italic;
    color: #555;
}

/* Strong text (bold) */
.post-content strong,
article strong {
    font-weight: 700;
    color: #222;
}

/* Lists in blog posts */
.post-content ul,
.post-content ol,
article ul,
article ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li,
article li {
    margin: 0.5rem 0;
    font-size: 18px;
}

/* Blockquotes */
.post-content blockquote,
article blockquote {
    border-left: 4px solid #ddd;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #f9f9f9;
    font-style: italic;
    font-size: 17px;
}

/* Code blocks and inline code */
.post-content code,
article code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.post-content pre,
article pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Post meta information (date, etc.) */
.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

/* Blog-specific responsive design */
@media (max-width: 768px) {
    .post-content,
    article,
    .content {
        padding: 15px;
        font-size: 16px;
    }
    
    .post-content h1,
    article h1 {
        font-size: 2rem;
    }
    
    .post-content h2,
    article h2 {
        font-size: 1.6rem;
    }
    
    .post-content h3,
    article h3 {
        font-size: 1.3rem;
    }
    
    .post-content p,
    .post-content li,
    article p,
    article li {
        font-size: 16px;
    }
}
