:root {
    --header-height: 72px;
    --footer-height: 42px;

    /* Light Mode Palette (Modern, high-contrast, accessible) */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --accent: #2b7de9;
    --accent-soft: rgba(43, 125, 233, 0.12);
    --accent-hover: #1e6fd4;
    --border-color: #e2e8f0;

    /* Theme & Micro-interaction Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --theme-transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;

    /* Semantic Alerts */
    --alert-success-bg: #dcfce7;
    --alert-success-border: #16a34a;
    --alert-success-text: #166534;
    --alert-error-bg: #fee2e2;
    --alert-error-border: #dc2626;
    --alert-error-text: #991b1b;
    --alert-warning-bg: #fffbeb;
    --alert-warning-border: #d97706;
    --alert-warning-text: #92400e;

    /* Elevation & Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.09);
}

/* Manual Dark Mode Override */
:root[data-theme="dark"] {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #4da8e8;
    --accent-soft: rgba(77, 168, 232, 0.16);
    --accent-hover: #6bbfff;
    --border-color: #2a2d3a;

    --alert-success-bg: rgba(16, 185, 129, 0.12);
    --alert-success-border: #10b981;
    --alert-success-text: #6ee7b7;
    --alert-error-bg: rgba(239, 68, 68, 0.12);
    --alert-error-border: #ef4444;
    --alert-error-text: #fca5a5;
    --alert-warning-bg: rgba(245, 158, 11, 0.12);
    --alert-warning-border: #f59e0b;
    --alert-warning-text: #fcd34d;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* System Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0f1117;
        --bg-secondary: #1a1d27;
        --text-primary: #e2e8f0;
        --text-secondary: #94a3b8;
        --accent: #4da8e8;
        --accent-soft: rgba(77, 168, 232, 0.16);
        --accent-hover: #6bbfff;
        --border-color: #2a2d3a;

        --alert-success-bg: rgba(16, 185, 129, 0.12);
        --alert-success-border: #10b981;
        --alert-success-text: #6ee7b7;
        --alert-error-bg: rgba(239, 68, 68, 0.12);
        --alert-error-border: #ef4444;
        --alert-error-text: #fca5a5;
        --alert-warning-bg: rgba(245, 158, 11, 0.12);
        --alert-warning-border: #f59e0b;
        --alert-warning-text: #fcd34d;

        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.55);
    }
}

/* ==============================================================================
   Base Elements & Smooth Transitions
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    transition: var(--theme-transition);
    overflow-x: hidden;
}

/* Smooth Theme Toggling on Key Structural Containers */
.site-header,
.site-footer,
.content-card,
.sidebar-card,
.resume-block,
.form-card,
.blog-post,
.card,
.alert,
input,
textarea,
select,
.dropdown-content {
    transition: var(--theme-transition);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

/* Accessibility: Visible Focus Rings for Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ==============================================================================
   Page-to-Page View Transitions & Enter Animations
   ============================================================================== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 200ms cubic-bezier(0.4, 0, 1, 1) both pageFadeOut;
}

::view-transition-new(root) {
    animation: 260ms cubic-bezier(0, 0, 0.2, 1) both pageFadeIn;
}

@keyframes pageFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.995); }
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content {
    flex: 1;
    padding: 2rem;
    animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* ==============================================================================
   Fluid Typography System
   ============================================================================== */
.page-title {
    font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
    line-height: 1.15;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(1.5rem, 3vw + 0.3rem, 2.4rem);
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.card-title {
    font-size: clamp(1.15rem, 1.2vw + 0.3rem, 1.45rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.body-text {
    font-size: clamp(0.95rem, 0.3vw + 0.85rem, 1.08rem);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.caption-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.accent-text {
    color: var(--accent) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-center {
    text-align: center !important;
}

.font-outfit {
    font-family: 'Outfit', sans-serif !important;
}

/* ==============================================================================
   Header & Navigation
   ============================================================================== */
.site-header {
    height: var(--header-height, 72px);
    box-sizing: border-box;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a, .dropdown-label {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* Accessible touch target */
    transition: var(--transition);
}

.nav-links a:hover, .dropdown-label:hover {
    color: var(--accent);
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    min-width: 170px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    padding: 0.4rem 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    min-height: 40px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--accent-soft);
    color: var(--accent);
}

.nav-item:hover .dropdown-content,
.nav-item.active .dropdown-content {
    display: block;
}

/* Actions */
.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.theme-toggle-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.25rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: rotate(20deg) scale(1.1);
    background-color: var(--accent-soft);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

/* ==============================================================================
   Footer
   ============================================================================== */
.site-footer {
    height: var(--footer-height, 42px);
    box-sizing: border-box;
    padding: 0 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: 1000;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.15rem;
}

.footer-social-links a {
    text-decoration: none;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: var(--transition);
}

.footer-social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ==============================================================================
   Hero & Buttons
   ============================================================================== */
.hero {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 3.5rem);
    line-height: 1.18;
    margin-top: 0;
    margin-bottom: 1.25rem;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(43, 125, 233, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(43, 125, 233, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    transform: translateY(-2px);
    background-color: var(--accent-soft);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.08rem;
}

.btn-loading {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ==============================================================================
   Layout Containers & Safe Responsive Grids
   ============================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-padded {
    padding-top: clamp(2.5rem, 5vw, 5rem);
    padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

/* Safe Auto-fill Grids — minmax(min(100%, X), 1fr) prevents mobile overflow */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.grid-cards-wide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 2.2rem;
}

.grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

/* Flex Utilities */
.flex-row { display: flex; gap: 1rem; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 2.5rem; }

/* Margin Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 0.5rem !important; }
.mb-md { margin-bottom: 1rem !important; }
.mb-lg { margin-bottom: 2rem !important; }
.mb-xl { margin-bottom: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ==============================================================================
   Cards & Content Blocks
   ============================================================================== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.content-card {
    background: var(--bg-secondary);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin: 0 auto;
}

.resume-block, .form-card {
    background: var(--bg-secondary);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.resume-block:last-child, .form-card:last-child {
    margin-bottom: 0;
}

/* Feature & Expertise Cards */
.expertise-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.expertise-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.expertise-badge {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.expertise-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expertise-list-item span:first-child {
    font-size: 1.4rem;
}

.expertise-list-item span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* Service Card */
.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

/* CTA Banner Section */
.cta-section {
    margin-top: 5rem;
    text-align: center;
    background: var(--bg-secondary);
    padding: clamp(2.5rem, 5vw, 4rem) 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.page-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}

.page-header-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==============================================================================
   Semantic Alerts (Dark/Light Mode Ready)
   ============================================================================== */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--alert-success-bg);
    border: 1px solid var(--alert-success-border);
    color: var(--alert-success-text);
}

.alert-error {
    background: var(--alert-error-bg);
    border: 1px solid var(--alert-error-border);
    color: var(--alert-error-text);
}

.alert-warning {
    background: var(--alert-warning-bg);
    border: 1px solid var(--alert-warning-border);
    color: var(--alert-warning-text);
}

/* ==============================================================================
   Forms & Inputs
   ============================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.profile-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.profile-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 1.1rem 2rem;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ==============================================================================
   Portfolio & Blog Cards
   ============================================================================== */
.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.project-card-image {
    height: 155px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-badge {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-post:hover { 
    transform: translateY(-6px); 
    border-color: var(--accent); 
    box-shadow: var(--shadow-lg); 
}

.blog-post:hover img {
    transform: scale(1.04);
}

.blog-post img {
    transition: transform 0.4s ease;
}

.blog-content-body img { 
    max-width: 100%; 
    border-radius: 12px; 
    margin: 2rem 0; 
}

.blog-content-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent);
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ==============================================================================
   Blog Grid & Sidebar
   ============================================================================== */
.blog-post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2rem;
}

.blog-post-main {
    min-width: 0;
}

.blog-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 992px) {
    .blog-post-grid {
        grid-template-columns: 2.7fr 1.3fr;
    }
    .blog-post-sidebar {
        position: sticky;
        top: 96px;
    }
}

.sidebar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card-title i {
    color: var(--accent);
}

.author-profile-card {
    text-align: center;
}

.author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 0 auto 1.2rem auto;
    background: var(--bg-primary);
    display: block;
    object-fit: cover;
}

.author-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: var(--text-primary);
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.author-socials {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.author-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    text-decoration: none !important;
}

.author-social-link:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    background: var(--bg-secondary);
}

.tag-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent) !important;
    background: var(--accent-soft);
    border: 1px solid transparent;
    border-radius: 20px;
    text-decoration: none !important;
    transition: var(--transition);
}

.tag-pill:hover {
    background: var(--accent);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(43, 125, 233, 0.25);
}

/* ==============================================================================
   Social Sharing Integration Styles
   ============================================================================== */
.share-bar-container {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.share-bar-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #ffffff !important;
    min-height: 44px;
}

.btn-share i {
    font-size: 1.05rem !important;
}

.btn-share-facebook { background-color: #1877f2 !important; }
.btn-share-facebook:hover { background-color: #145dbf !important; transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3) !important; }

.btn-share-linkedin { background-color: #0077b5 !important; }
.btn-share-linkedin:hover { background-color: #005988 !important; transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3) !important; }

.btn-share-twitter { background-color: #0f1419 !important; color: #ffffff !important; }
:root[data-theme="dark"] .btn-share-twitter { background-color: #e7e9ea !important; color: #0f1419 !important; }
.btn-share-twitter:hover { background-color: #000000 !important; transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(15, 20, 25, 0.2) !important; }
:root[data-theme="dark"] .btn-share-twitter:hover { background-color: #ffffff !important; }

.btn-share-reddit { background-color: #ff4500 !important; }
.btn-share-reddit:hover { background-color: #d93a00 !important; transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3) !important; }

.btn-share-threads { background-color: #000000 !important; color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; }
:root[data-theme="dark"] .btn-share-threads { background-color: #101010 !important; border: 1px solid var(--border-color) !important; }
.btn-share-threads:hover { background-color: #1e1e1e !important; transform: translateY(-2px) !important; }
:root[data-theme="dark"] .btn-share-threads:hover { background-color: #2a2a2a !important; }

/* ==============================================================================
   Modals
   ============================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.92) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: #ef4444;
}

/* ==============================================================================
   Resume Layout
   ============================================================================== */
.resume-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .resume-layout {
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
    }
}

.resume-main h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.resume-main h2, .resume-sidebar h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-soft);
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resume-main h3, .resume-sidebar h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.resume-main p, .resume-sidebar p,
.resume-main ul, .resume-sidebar ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.resume-main a, .resume-sidebar a {
    color: var(--accent);
    text-decoration: none;
}

/* ==============================================================================
   Tablet Responsive Breakpoint (769px - 991px)
   ============================================================================== */
@media (min-width: 769px) and (max-width: 991px) {
    .container {
        padding: 1.75rem 1.25rem;
    }
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .grid-blog {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    .blog-post-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .grid-2-col {
        gap: 2rem;
    }
}

/* ==============================================================================
   Mobile Responsive Breakpoint (max-width: 768px)
   ============================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-soft);
        border-radius: 0;
        margin-left: 1rem;
        margin-top: 0.5rem;
        background: transparent;
        min-width: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: var(--header-height, 72px);
        left: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 1.25rem 2rem;
        z-index: 999;
        box-shadow: var(--shadow-lg);
        gap: 0.75rem;
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        padding-left: 0;
        margin-left: 0;
        justify-content: space-between;
    }

    .container {
        padding: 1rem;
    }

    .grid-2-col {
        gap: 2rem !important;
        margin-bottom: 3.5rem !important;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .share-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .share-buttons-group {
        justify-content: space-between;
    }

    .btn-share {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* Google Translate Widget Customization */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-family: inherit !important;
    font-size: 0.82rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 40px;
}
.goog-te-gadget-simple span {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}
.goog-te-gadget-icon {
    display: none !important;
}
.goog-te-menu-value span:nth-child(5) {
    display:none !important;
}
.goog-te-menu-value span:nth-child(3) {
    border-left: none !important;
}