/**
 * Minimal Resume & Blog Website
 * Custom Styles
 */

:root {
    --primary-color: #0066cc;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Profile Image */
.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

/* Contact Info */
.contact-info a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Experience Items */
.resume-page .experience-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.resume-page .experience-item:last-child {
    border-left: none;
    padding-left: 0;
}

.resume-page .experience-item ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1.75rem;
}

.resume-page .experience-item ul li::before {
    content: "\f138";
    font-family: bootstrap-icons !important;
    font-size: 1rem;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.resume-page .experience-item .achievements {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}
.certification-item.mb-3 h5.fw-bold.mb-2::before {
    content: "\f154";
    display: inline-block;
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    color: rgba(var(--bs-warning-rgb), var(--bs-text-opacity)) !important;
    opacity: 1;
    margin-right: 0.5rem;
    --bs-text-opacity: 1;
    color: rgba(var(--bs-warning-rgb), var(--bs-text-opacity)) !important;
}

.resume-page .experience-item .achievements ul li::before {
    content: "\f5e7" !important;
    color: #f0ad4e;
}

/* Lists */
.resume-page .list-unstyled li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.resume-page .list-unstyled li::before {
    content: "\f26b";
    font-family: bootstrap-icons !important;
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Tables */
.table {
    background-color: #ffffff;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

/* Skills Section */
.certification-item {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Enhanced Blog Styles */
.blog-card-modern {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.blog-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-modern:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
}

.post-meta-modern {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Blog Post Full Page */
.blog-post-full {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin: -2rem -2rem 2rem -2rem;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.blog-content-rich {
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-color);
}

.blog-content-rich h1,
.blog-content-rich h2,
.blog-content-rich h3,
.blog-content-rich h4,
.blog-content-rich h5,
.blog-content-rich h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.blog-content-rich h1 { font-size: 2.25rem; }
.blog-content-rich h2 { font-size: 1.875rem; }
.blog-content-rich h3 { font-size: 1.5rem; }
.blog-content-rich h4 { font-size: 1.25rem; }

.blog-content-rich p {
    margin-bottom: 1.5rem;
}

.blog-content-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-content-rich ul,
.blog-content-rich ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content-rich li {
    margin-bottom: 0.75rem;
}

.blog-content-rich blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-content-rich table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.blog-content-rich table th,
.blog-content-rich table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.blog-content-rich table th {
    background: var(--bg-light);
    font-weight: 600;
}

.blog-content-rich a {
    color: var(--primary-color);
    text-decoration: underline;
}

.blog-content-rich a:hover {
    color: #004499;
}

.blog-content-rich code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-content-rich pre {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-content-rich pre code {
    background: transparent;
    padding: 0;
}

.post-meta-full {
    font-size: 0.95rem;
}

.post-tags-section,
.share-section,
.post-navigation {
    margin-top: 2rem;
}

/* Sidebar Widgets */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

.sidebar-widget img {
    transition: transform 0.3s ease;
}

.sidebar-widget img:hover {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .blog-featured-image {
        margin: -2rem -2rem 2rem -2rem;
    }
    
    .blog-content-rich {
        font-size: 1rem;
    }
}

.blog-content {
    line-height: 1.8;
    color: var(--text-color);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1.5rem 0;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--bg-light) !important;
}

footer a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .experience-item {
        padding-left: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 50vh;
}

.profile-hero-wrapper {
    position: relative;
}

.profile-hero-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.profile-hero-image:hover {
    transform: scale(1.05);
}

.profile-placeholder {
    display: inline-block;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

.profile-placeholder svg {
    display: block;
    width: 100%;
    height: 100%;
}

.profile-image.profile-placeholder {
    width: 200px;
    height: 200px;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .profile-hero-image {
        width: 250px;
        height: 250px;
    }
    
    .profile-placeholder {
        width: 250px !important;
        height: 250px !important;
    }
    
    .profile-placeholder svg {
        width: 250px;
        height: 250px;
    }
    
    .profile-placeholder svg text {
        font-size: 36px !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0 !important;
    }
}

/* Simple Minimal Timeline - UX Optimized */
.timeline-simple {
    position: relative;
}

.timeline-entry {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-entry:nth-child(1) { animation-delay: 0.1s; }
.timeline-entry:nth-child(2) { animation-delay: 0.2s; }
.timeline-entry:nth-child(3) { animation-delay: 0.3s; }
.timeline-entry:nth-child(4) { animation-delay: 0.4s; }

.timeline-entry::before {
    content: '';
    position: absolute;
    left: calc(25% - 2px);
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-entry.current::before {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--border-color) 100%);
}

.timeline-entry:last-child::before {
    display: none;
}

@media (max-width: 991px) {
    .timeline-entry::before {
        left: calc(33.333% - 1px);
    }
}

@media (max-width: 768px) {
    .timeline-entry::before {
        display: none;
    }
}

/* Left Side - Year and Title */
.timeline-left {
    position: relative;
    z-index: 1;
    text-align: right;
    padding-right: 2rem;
}

@media (max-width: 991px) {
    .timeline-left {
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .timeline-left {
        text-align: left;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

.year-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.year-badge.current {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.timeline-title-simple {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.timeline-entry.current .timeline-title-simple {
    color: var(--primary-color);
}

.timeline-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-weight: 500;
}

/* Right Side - Content */
.timeline-content-simple {
    position: relative;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content-simple:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
    transform: translateX(4px);
}

.timeline-content-simple.highlight {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}

.timeline-content-simple p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Achievement Boxes */
.achievement-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 102, 204, 0.04);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.achievement-box:hover {
    background: rgba(0, 102, 204, 0.08);
    transform: translateX(4px);
}

.achievement-box i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-box div {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Badge Styling */
.timeline-content-simple .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-simple {
        padding: 0;
    }
    
    .timeline-entry {
        margin-bottom: 2rem !important;
    }
    
    .timeline-content-simple {
        padding: 1.25rem;
    }
    
    .timeline-title-simple {
        font-size: 1.2rem;
    }
    
    .year-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    .achievement-box {
        padding: 0.85rem;
    }
}

/* Expertise Cards */
.expertise-card {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.expertise-icon {
    display: inline-block;
}

/* Travel Cards */
.travel-card {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.travel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.travel-header {
    font-size: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.travel-places {
    line-height: 2;
}

.travel-insight {
    border-left: 4px solid var(--primary-color);
}

/* Help Cards */
.help-card {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* AI Visual */
.ai-visual {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    border: 2px solid var(--border-color);
}

/* Contact Form */
.contact-form .form-control {
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.1);
}

.social-links .btn {
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
}

/* Success Message Card */
.success-message-wrapper {
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease-out;
}

.success-message-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.success-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.success-title {
    color: #155724;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.success-text {
    color: #155724;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.success-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    color: #155724;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.success-details i {
    color: #28a745;
    font-size: 1.1rem;
}

/* Error Message Card */
.error-message-wrapper {
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease-out;
}

.error-message-card {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.error-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #e4606d);
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.error-title {
    color: #721c24;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.error-text {
    color: #721c24;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.error-action {
    margin-top: 1.25rem;
}

.error-action .btn {
    min-width: 180px;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive for Messages */
@media (max-width: 768px) {
    .success-message-card,
    .error-message-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .success-icon,
    .error-icon {
        font-size: 3rem;
    }
    
    .success-title,
    .error-title {
        font-size: 1.25rem;
    }
    
    .success-text,
    .error-text {
        font-size: 0.95rem;
    }
    
    .success-details {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Print Styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
    
    .experience-item {
        page-break-inside: avoid;
    }
    
    .hero-section {
        min-height: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience-item,
.blog-post-card {
    animation: fadeIn 0.5s ease-out;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

