@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #ffffff;      
    --bg-alt: #f8f9fa;        
    --primary-navy: #0A192F;  
    --accent-gold: #D4AF37;   
    --text-main: #333333;
    --text-light: #555555;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1000px;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 20px;
}

section { padding: 80px 0; }
.bg-alt { background-color: var(--bg-alt); }

/* --- Buttons --- */
.btn-group { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.btn-primary { background: var(--accent-gold); color: var(--primary-navy); border: 2px solid var(--accent-gold); }
.btn-primary:hover { background: transparent; color: var(--accent-gold); }
.btn-outline { background: transparent; color: var(--primary-navy); border: 2px solid var(--primary-navy); }
.btn-outline:hover { background: var(--primary-navy); color: #fff; }


/* --- Header Layout --- */
.site-header { 
    background: var(--bg-color); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.03);
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.site-branding { 
    flex-shrink: 0; 
}

.site-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    letter-spacing: -0.5px;
}

.site-title a { 
    color: var(--primary-navy); 
    text-decoration: none; 
}

/* Adds a subtle gold dot after your name for a premium touch */
.site-title a::after {
    content: '.';
    color: var(--accent-gold);
}

/* --- Language Toggle Button --- */
.lang-toggle { 
    text-decoration: none; 
    padding: 6px 14px; 
    border: 2px solid var(--primary-navy); 
    color: var(--primary-navy); 
    border-radius: 4px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    transition: all 0.3s ease; 
}

.lang-toggle:hover { 
    background: var(--primary-navy); 
    color: #fff; 
}

/* Mobile adjustments for the header */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: row; /* Keeps title and lang toggle on the same line on mobile */
    }
}

/* --- Hero Section --- */
.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 70vh;
}
.hero-content { flex: 1; }
.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-navy);
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.1);
}
.hero-title { font-size: 3rem; color: var(--primary-navy); line-height: 1.1; margin-bottom: 10px; }
.hero-subtitle { font-size: 1.25rem; color: var(--accent-gold); font-weight: 600; margin-bottom: 25px; }
.hero-value { font-size: 1.1rem; color: var(--text-light); border-left: 3px solid var(--accent-gold); padding-left: 20px; font-style: italic; }

/* --- Projects Section --- */
.section-title { font-size: 2rem; color: var(--primary-navy); margin-bottom: 40px; text-align: center; }
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 15px auto 0;
}
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.project-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-navy);
}
.project-card:hover { transform: translateY(-5px); }
.project-card h3 { color: var(--primary-navy); margin-bottom: 20px; font-size: 1.3rem; }
.project-card h4 { font-size: 0.9rem; color: var(--accent-gold); text-transform: uppercase; margin-top: 15px; margin-bottom: 5px; }
.project-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 10px; }
.project-tools { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge { background: var(--bg-alt); color: var(--primary-navy); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

@media (max-width: 768px) {
    .hero-wrapper { flex-direction: column-reverse; text-align: center; padding-top: 40px; }
    .hero-value { border-left: none; border-top: 3px solid var(--accent-gold); padding-left: 0; padding-top: 15px; }
    .btn-group { justify-content: center; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* --- About Section --- */
.about-content { 
    max-width: 800px; 
    margin: 0 auto; 
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    text-align: start;
}

.about-content h3 {
    color: var(--primary-navy);
    font-size: 1.4rem;
    margin: 40px 0 15px;
    text-align: center;
}

/* Adds a subtle gold underline to your about subheadings */
.about-content h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
    margin: 10px auto 0;
}

.about-highlights { 
    display: flex; 
    justify-content: center; 
    gap: 50px; 
    margin-top: 50px; 
    flex-wrap: wrap; 
}
.highlight-item { text-align: center; }
.highlight-number { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--accent-gold); 
    line-height: 1; 
    margin-bottom: 5px;
}
.highlight-label { 
    font-size: 0.85rem; 
    color: var(--primary-navy); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* --- Expertise Section --- */
.expertise-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.expertise-card { 
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 8px; 
    border: 1px solid #eaeaea;
    border-bottom: 4px solid var(--primary-navy); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.expertise-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.05);
}
.expertise-icon { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    display: block;
}
.expertise-card h3 { 
    color: var(--primary-navy); 
    margin-bottom: 20px; 
    font-size: 1.3rem; 
    text-align: center;
}
.expertise-list { 
    list-style: none; 
}
.expertise-list li { 
    position: relative; 
    padding-left: 20px; 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
    color: var(--text-light); 
}
.expertise-list li::before { 
    content: '■'; 
    position: absolute; 
    left: 0; 
    top: 2px;
    font-size: 0.6rem;
    color: var(--accent-gold); 
}


/* --- Timeline Section --- */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--accent-gold);
    z-index: 2;
}
.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.timeline-date {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--primary-navy);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.timeline-content h3 { color: var(--primary-navy); font-size: 1.3rem; margin-bottom: 5px; }
.timeline-content h4 { color: var(--text-light); font-size: 1rem; font-weight: 400; margin-bottom: 20px; }
.timeline-content ul { list-style: none; }
.timeline-content li { 
    position: relative; 
    padding-left: 20px; 
    margin-bottom: 10px; 
    color: var(--text-light);
    font-size: 0.95rem; 
}
.timeline-content li::before { 
    content: '→'; 
    position: absolute; 
    left: 0; 
    color: var(--accent-gold); 
    font-weight: bold;
}

/* --- Education & Languages --- */
.edu-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.edu-card { margin-bottom: 30px; }
.edu-card:last-child { margin-bottom: 0; }
.edu-card h3 { color: var(--primary-navy); margin-bottom: 5px; }
.edu-card h4 { color: var(--accent-gold); font-size: 0.95rem; margin-bottom: 10px; }
.lang-list { display: flex; flex-direction: column; gap: 15px; }
.lang-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eaeaea; padding-bottom: 10px; }
.lang-name { font-weight: 600; color: var(--primary-navy); }
.lang-level { background: var(--bg-alt); padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; color: var(--text-light); }

@media (max-width: 768px) {
    .edu-grid { grid-template-columns: 1fr; }
}



/* --- Navigation Menu --- */
.main-nav { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}
.nav-link { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 600; 
    transition: color 0.3s; 
}
.nav-link:hover { 
    color: var(--accent-gold); 
}

/* Mobile-specific rules */
.hide-on-mobile { 
    display: none; 
}
.insights-link {
    background: var(--bg-alt);
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--primary-navy);
}

/* Desktop rules */
@media (min-width: 900px) { 
    .main-nav { gap: 25px; }
    .hide-on-mobile { display: inline-block; } 
    .insights-link { 
        background: transparent; 
        padding: 0; 
    }
}

/* --- Contact / Footer Section --- */
.site-footer {
    background-color: var(--primary-navy);
    color: #fff;
    padding: 80px 0 30px;
    text-align: center;
    margin-top: 0;
}
.footer-title { color: var(--accent-gold); font-size: 2.2rem; margin-bottom: 30px; border: none; padding: 0; }
.footer-title::after { display: none; } /* Remove the gold line for the footer */
.footer-contact {
    display: flex; justify-content: center; gap: 40px; margin-bottom: 50px; flex-wrap: wrap;
}
.contact-link {
    color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; transition: color 0.3s;
}
.contact-link:hover { color: var(--accent-gold); }
.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 25px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
}

/* --- Single Post Layout --- */
.single-post-main {
    padding: 60px 20px 100px;
    background-color: var(--bg-color);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-navy);
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.04);
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.article-category {
    background: var(--bg-alt);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- WP Content Styling (Typography) --- */
.article-content {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.article-content h2 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.article-content h3 {
    color: var(--primary-navy);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Blockquotes for key insights */
.article-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding: 15px 20px;
    margin: 30px 0;
    background: var(--bg-alt);
    font-style: italic;
    color: var(--text-light);
}

/* Code Blocks for Tech Corner */
.article-content pre {
    background: var(--primary-navy);
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 30px 0;
    font-size: 0.95rem;
    border-left: 4px solid var(--accent-gold);
}

.article-content code {
    font-family: monospace;
}

.article-footer {
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .article-container { padding: 30px 20px; }
    .article-title { font-size: 2rem; }
}



/* --- Footer Copy Link Styling --- */
.footer-copy p {
    margin: 10px 0 0 0; /* Removes weird browser gaps */
}

.footer-copy a {
    color: rgba(255, 255, 255, 0.7); /* Slightly brighter than the copyright text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copy a:hover {
    color: var(--accent-gold); /* Turns gold on hover to match the theme */
}