/* --- Google-like Modern Styles (V2 - Polished) --- */

/* 1. Root Variables (Theme) */
:root {
    --primary-color: #4285F4;  /* Google Blue */
    --accent-green: #34A853;  /* Google Green */
    --accent-yellow: #FBBC05; /* Google Yellow */
    --background-color: #f8f9fa; 
    --surface-color: #ffffff;   
    --text-color: #3c4043;      
    --text-secondary: #5f6368; 
    --border-color: #dfe1e5;
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12); 
    --border-radius: 16px; 
    --input-radius: 12px;  
    
    --sidebar-width: 260px;
}

/* 2. Global Resets & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin-bottom: 1rem;
}
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease; 
}
a:hover {
    color: #3367D6; 
}

/* 3. Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}
.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
}
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--border-color);
}
.sidebar nav ul {
    list-style: none;
}
.sidebar nav li {
    margin-bottom: 0.5rem;
}
.sidebar nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px; 
    color: var(--text-secondary);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}
.sidebar nav a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}
.sidebar nav a .fa-solid,
.sidebar nav a .fa-brands {
    width: 25px;
    margin-right: 0.75rem;
}
.sidebar-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 4. Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
}

/* 5. Sections */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background-color: #ffffff;
    background-image: linear-gradient(180deg, var(--surface-color) 85%, var(--background-color) 100%);
}
.hero-content {
    max-width: 600px;
    padding: 2rem;
}
.github-logo {
    font-size: 5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}
.hero-title strong {
    font-weight: 700;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    height: 1.5em; /* Reserve space for text */
}

/* --- NEW: Typewriter Styles --- */
#typewriter-text {
    color: var(--primary-color);
    font-weight: 500;
}
.cursor {
    display: inline-block;
    background-color: var(--text-color);
    width: 10px;
    height: 1.3rem;
    margin-left: 5px;
    animation: blink 1s infinite;
    position: relative;
    bottom: -2px;
}
@keyframes blink {
    0%  { background-color: var(--text-color); }
    49% { background-color: var(--text-color); }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100%{ background-color: var(--text-color); }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-icon {
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Standard Content Section */
.content-section {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}
.content-section:last-child {
    border-bottom: none;
}
.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
/* NEW: Intro text for sections */
.section-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* 6. Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.article-card {
    background: var(--surface-color);
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
}
.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--background-color);
}
.article-card-content {
    padding: 1.5rem;
}
.article-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.article-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.read-more {
    font-weight: 500;
    color: var(--primary-color);
}
.read-more .fa-arrow-right { 
    transition: transform 0.2s ease;
}
.article-card:hover .read-more .fa-arrow-right { 
    transform: translateX(4px);
}

/* 7. Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius); 
    background: var(--surface-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.cta-button:hover {
    background-color: #3367D6;
    transform: scale(1.02);
}

/* 8. Mobile Navigation & Responsiveness */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow);
}
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        border-right: none;
        box-shadow: var(--shadow);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .content-section {
        padding: 4rem 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* --- 9. NEW: Interest Grid --- */
.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.interest-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interest-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.interest-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.interest-card-content {
    padding: 1.5rem;
}

.interest-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.interest-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0; /* Remove bottom margin for card */
}

/* Special styling for the text-only card */
.interest-card.text-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.interest-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.interest-card.text-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}


/* --- 10. Article Page Specific Styles --- */
/* (This section was #9 before) */

.article-container {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.article-header {
    text-align: center;
    margin-bottom: 2rem;
}
.article-title {
    font-size: 2.75rem; 
    font-weight: 700;
    margin-bottom: 1rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.article-banner {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius); 
    margin-bottom: 3rem; 
    background-color: var(--background-color);
}
.article-content {
    font-size: 1.1rem; 
    line-height: 1.8; 
}
.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
.article-content h3 {
    font-size: 1.75rem;
    font-weight: 700; 
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content h4 { 
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 5px solid var(--primary-color);
    background-color: var(--background-color);
    border-radius: 0 var(--input-radius) var(--input-radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article-content blockquote p {
    margin-bottom: 0;
}
.article-content code {
    background: var(--background-color);
    padding: 0.2em 0.4em;
    border-radius: 6px; 
    font-family: 'Menlo', 'Courier New', monospace; 
    font-size: 0.9em; 
    border: 1px solid var(--border-color);
}
.article-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.25rem; 
    border-radius: var(--input-radius); 
    overflow-x: auto;
    margin: 1.5rem 0; 
    font-family: 'Menlo', 'Courier New', monospace; 
}
.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem; 
}
.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: transform 0.2s ease; 
}
.back-link:hover { 
    transform: translateX(-5px);
}
.back-link .fa-arrow-left { 
    margin-right: 0.5rem;
}
