/* Kwabena Okyere Boakye Master Stylesheet
   Theme: Friendly DevOps (Dark Mode + Rounded Accents)
*/

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --link-brighter: #7dd3fc;
    /* Brighter color for clearer text links */
    --aws-orange: #ff9900;
    --border-color: #334155;
}

/* --- Base & Mobile Spill-over Protection --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Critical mobile fix: stops horizontal spill */
}

body {
    font-family: 'Outfit', sans-serif;
    /* Friendly, rounded font */
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* --- Navigation & Headers --- */
header {
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.scrolling-header,
.scrolling-article-header {
    position: relative !important;
    background: transparent !important;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
}

nav a:hover {
    color: var(--accent-color);
}

/* --- Hero & Profile Photo --- */
#hero {
    text-align: center;
    padding: 60px 5% 80px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    width: 100%;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.tagline {
    color: var(--aws-orange);
    font-size: 1.3rem;
    font-weight: 600;
}

/* --- Contact & Buttons --- */
.highlighted-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-pill {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1.5rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.primary {
    background: var(--accent-color);
    color: #000;
}

.secondary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

/* Story Section Special Styling */
.story-text {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.story-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.pillar {
    background: var(--card-bg);
    padding: 1.8rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pillar strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pillar i {
    color: var(--accent-color);
    margin-right: 8px;
}

.collaboration-note {
    background: rgba(56, 189, 248, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed var(--accent-color);
}

/* --- Project and GitHub Links Styling (Updated for Clarity) --- */
.project-link,
.repo-links a {
    color: var(--link-brighter);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    margin-top: auto;
}

.project-link:hover,
.repo-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.project-link i,
.repo-links a i {
    font-size: 1.1rem;
}

/* --- Sections & Grid Layouts --- */
section {
    padding: 4rem 5%;
    max-width: 100%;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    border-left: 4px solid var(--aws-orange);
    padding-left: 15px;
}

.skills-grid,
.project-grid,
.articles-grid,
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skill-category,
.project-card,
.article-snippet-card,
.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

/* --- Professional Editorial Story Formatting --- */
.editorial-container {
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.article-body p {
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    line-height: 2;
    color: #cbd5e1;
}

.highlight-box {
    background: rgba(30, 41, 59, 0.6);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px dashed var(--accent-color);
    margin: 4rem 0;
}

.drop-cap::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 12px;
    font-weight: 800;
    color: var(--accent-color);
}

/* --- Experience Styling --- */
.cv-item {
    margin-bottom: 3.5rem;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.cv-date {
    color: var(--text-secondary);
    font-style: italic;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.6rem;
    color: #cbd5e1;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 4rem 5%;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .editorial-container {
        margin: 2rem auto;
    }
}