:root {
    --primary-color: #34495e;      /* Wet Asphalt */
    --secondary-color: #333333;    /* Dark Gray */
    --accent-color: #4285f4;       /* Google Blue - minimal use */
    --text-color: #34495e;         /* Wet Asphalt */
    --text-secondary: #666666;     /* Medium Gray */
    --text-muted: #999999;         /* Light Gray */
    --background: #ffffff;         /* Pure White */
    --background-alt: #f8f9fa;     /* Off White */
    --border-color: #e0e0e0;       /* Light Border */
}

html {
    height: 100%;
}

body {
    padding-top: 100px; /* Account for fixed navbar with large logo */
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure main content takes up remaining space */
section {
    flex: 1 0 auto;
}

/* Footer styles to stick to bottom */
footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Footer background to match navbar */
footer.bg-dark {
    background-color: #2c3e50 !important;
}

.hero-section {
    background: var(--background);
    color: var(--text-color);
    min-height: calc(100vh - 100px);
    border-bottom: 1px solid var(--border-color);
    padding-top: 2rem;
}

.hero-content h1 {
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: 'Nunito', sans-serif;
    font-size: 3.5rem;
    color: var(--text-color);
}

.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-links .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.social-links .social-link:hover {
    background: var(--text-color);
    color: var(--background);
    border-color: var(--text-color);
}

.skill-card {
    padding: 2rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.skill-card:hover {
    border-color: var(--text-color);
}

/* Dark navbar styling */
.navbar {
    background: #2c3e50 !important;
    border-bottom: 1px solid #2c3e50;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 500;
    font-size: 1.75rem;
    color: #ffffff !important;
    font-family: 'Nunito', sans-serif;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 400;
    font-size: 1.3rem;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #ecf0f1 !important;
}

.nav-link.active {
    font-weight: 500;
    color: #ffffff !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #ffffff;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    border-color: #ffffff;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 0;
    border: 2px solid var(--background);
    box-shadow: 0 0 0 1px var(--text-color);
}

.timeline-content {
    background: var(--background);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.skill-progress {
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Nunito', sans-serif;
}

.progress {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 0;
}

/* Projects Page Styles */
.project-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
    height: 100%;
}

.project-card:hover {
    border-color: var(--text-color);
}

.project-image {
    height: 200px;
    object-fit: cover;
}

.project-tech {
    display: inline-block;
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-weight: 500;
}

/* Blog Styles */
.blog-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
    margin-bottom: 2rem;
}

.blog-card:hover {
    border-color: var(--text-color);
}

.blog-card .card-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

.blog-card .card-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.blog-tag {
    display: inline-block;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
    text-decoration: none;
}

/* Blog Grid Card Styles */
.blog-card-grid {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card-grid:hover {
    border-color: var(--text-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--background-alt);
    transition: transform 0.3s ease;
}

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

.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-card-grid:hover .blog-card-title {
    color: var(--primary-color);
}

.blog-card-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    margin-top: auto;
}

.blog-tag-small {
    display: inline-block;
    background: var(--background-alt);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Blog Banner Styles */
.blog-banner {
    margin-bottom: 2rem;
}

.blog-banner img {
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-placeholder {
    height: 300px;
    background: var(--background-alt);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.banner-placeholder:hover {
    border-color: var(--text-color);
    color: var(--text-secondary);
}

.banner-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.banner-placeholder span {
    font-weight: 500;
    text-align: center;
}

/* Blog Content (Markdown) Styles */
.blog-content {
    font-family: 'Nunito', sans-serif;
    font-size: 1.0rem;
    line-height: 1.75;
    color: var(--text-color);
    max-width: none;
}

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

.blog-content h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.blog-content h3 {
    font-size: 1.5rem;
}

.blog-content h4 {
    font-size: 1.25rem;
}

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

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

.blog-content blockquote p {
    margin-bottom: 0;
}

.blog-content code:not(pre code) {
    background: var(--background-alt);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.blog-content pre {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.blog-content pre code {
    background: none !important;
    color: #24292f;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
    line-height: 1.45;
    display: block;
    white-space: pre;
    word-wrap: normal;
    border: none;
    overflow: visible;
}

/* Ensure code blocks maintain their formatting */
.blog-content pre > code {
    display: block;
    padding: 0;
    margin: 0;
    word-break: normal;
    white-space: pre;
    background: transparent;
    border: 0;
}

/* Prism.js theme customization */
.blog-content pre[class*="language-"] {
    background: #f8f8f8;
    border: 1px solid #e1e4e8;
}

.blog-content code[class*="language-"],
.blog-content pre[class*="language-"] {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
}

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

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

.blog-content ul ul,
.blog-content ol ol,
.blog-content ul ol,
.blog-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-content a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: var(--primary-color);
}

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

.blog-content img[alt="Vin Diesel Meme"] {
    max-width: 50%;
    display: block;
    margin: 1.5rem auto;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--background);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.blog-content th {
    background: var(--background-alt);
    font-weight: 600;
    color: var(--text-color);
}

.blog-content hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 3rem 0;
}

.blog-content strong,
.blog-content b {
    font-weight: 600;
    color: var(--text-color);
}

.blog-content em,
.blog-content i {
    font-style: italic;
    color: var(--text-secondary);
}

/* Contact Form Styles */
.contact-form {
    background: var(--background);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 73, 94, 0.1);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
    border-color: var(--text-secondary);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Collaboration Form Specific Styles */
.collaborate-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 120px 0 40px;
    margin-top: 60px;
}

.contact-info {
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.btn-primary.py-3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-color) 100%);
    border: none;
}

.btn-primary.py-3:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 73, 94, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 140px; /* Extra padding for mobile with large navbar logo */
    }
    
    .hero-section {
        text-align: center;
        padding-top: 1rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        margin-top: 2rem !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 7px;
    }
    
    .timeline-item::before {
        left: -26px;
    }
}

/* Navbar height and logo adjustments */
.navbar {
    min-height: 50px;
    padding: 0.25rem 0;
    background: #2c3e50 !important;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff !important;
}

.navbar-brand img {
    height: 80px !important;
}

.nav-link {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.8rem !important;
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    font-size: 0.9rem !important;
    color: #ffffff !important;
}

.navbar .navbar-nav .nav-item .nav-link {
    font-size: 0.9rem !important;
    color: #ffffff !important;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button loading state */
.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Button enhancements */
.btn-primary {
    background: var(--text-color);
    border: 1px solid var(--text-color);
    color: var(--background);
    border-radius: 0;
    padding: 12px 24px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--background);
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-outline-primary {
    border-color: var(--text-color);
    color: var(--text-color);
    background: transparent;
    border-radius: 0;
}

.btn-outline-primary:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
    color: var(--background);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--success-color);
}

/* Additional typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    color: var(--text-color);
}

h2 { font-size: 2rem; font-weight: 400; }
h3 { font-size: 1.5rem; font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 400; }

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

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

pre, code {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
}

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

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

.text-muted {
    color: #7f8c8d !important;
}

/* Skill progress bars */
.progress-bar {
    background: var(--text-color);
}

/* Alert colors for notifications */
.alert-success {
    background-color: rgba(26, 188, 156, 0.1);
    border-color: var(--success-color);
    color: #16a085;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-color);
    color: #2980b9;
}

.alert-warning {
    background-color: rgba(241, 196, 15, 0.1);
    border-color: var(--warning-color);
    color: #d68910;
}