/* General page layout */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
}

/* Make every card image 180px high and crop rather than stretch */
.card-img-top {
  height: 180px;
  object-fit: cover;
}


/* Typography */
h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700; /* Bold */
}

p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400; /* Regular */
}

/* Ensure the site takes full height */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar (Header) */
.site-header {
  background-color: #000; /* Black header */
  padding: 10px 0;
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px; /* Fixed height */
}

.navbar .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  margin-left: 0;
}

.nav-links {
  display: flex;
  gap: 3rem;
  margin-left: auto;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #333;
  text-align: center;
  padding: 0.5rem;
  color: #fff;

  position: relative;
 
  margin-top: auto;
}

/* Layout: Sidebar + Content */
.about-container {
  display: flex;
  width: 100%;
  
}

/* Sidebar - Keep it fixed but ensure it doesn't overlap content */
.sidebar {
  position: fixed;
  top: 56px;  /* Height of navbar */
  left: 0;
  width: 300px;
  height: calc(100vh - 56px);  /* Subtract navbar height */
  overflow-y: auto; 
  background: #2c3e50;
  color: #fff;
  padding: 20px; 
    /* THIS is the key: includes padding within the 250px width */
  box-sizing: border-box;
}

.sidebar .profile-section {
  margin-top: 2rem; /* or 3rem, 50px, etc. */
}
/* Sidebar Profile Section */
.profile-section {
  text-align: center;
  margin-bottom: 20px;
  margin-bottom: 20px;
}

.profile-section h1 {
  font-size: 2rem;        /* A nice bold size for the main name/title */
  margin-bottom: 0.25rem; /* Small space below the heading */
  text-align: center;     /* If you want it centered */
}

.profile-section .role {
  font-size: 1rem;        /* A bit smaller for a subheading */
  color: #ccc;            /* Lighter text color than white */
  font-weight: 400;       /* Lighter than the bold main heading */
  text-align: center;     /* Matches the main heading alignment */
  margin: 0.5rem 0;       /* A bit of vertical breathing room */
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #3498db;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Sidebar Navigation */
.sidebar-nav ul {
  list-style-type: none;
  padding: 0;
}

.sidebar-nav ul li {
  margin-bottom: 10px;
}

.sidebar-nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.sidebar-nav ul li a:hover {
  color: #f1c40f; /* Yellow highlight */
}

/* Adjust Main Content - Prevent Overlapping */
.main-content {
  /* flex: 1; */
  margin-left: 300px;   /* matches sidebar width exactly */
  padding: 70px 20px;   /* top padding to clear the fixed header */
  margin-top: 1rem;  /* Add some space after navbar */
}

.main-content section {
  margin-bottom: 40px;
}

.main-content h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.main-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.poetic-quote {
  font-style: italic;
  color: #3498db;
  text-align: center;
  margin: 20px 0;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links a {
  text-decoration: none;
  color: #3498db;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #2c3e50;
}

.main-content ul {
  list-style-type: none;
  padding: 0;
}

.main-content ul li {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.main-content ul li::before {
  content: "•";
  color: #3498db;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -3px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    box-shadow: none;
    margin-bottom: 20px;
    height: auto;
  }

  .main-content {
    padding: 20px 0;
    margin-left: 0;
  }
}

/* Blog Cards Grid */
.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 1rem;
  background: #fff;
}

.card-title {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
}

.card-title a {
  color: #333;
  text-decoration: none;
}

.card-title a:hover {
  color: #000;
}

.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.card-footer {
  padding: 1rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}

.meta-left, .meta-right {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .card-image {
    height: 180px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
}

/* Blog Posts */
.blog-post {
  margin-bottom: 3rem;
}

.post-image {
  margin-bottom: 1.5rem;
}

.post-image img {
  width: 100%;
  height: 400px;  /* Adjust this value to match your desired height */
  object-fit: cover;
}

.post-content {
  padding: 0 1rem;
}

.post-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: #333;
  text-decoration: none;
}

.post-title a:hover {
  color: #666;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.read-more {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  color: #666;
}

/* Remove old card styles */
.card {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post-image img {
    height: 300px;
  }
  
  .post-title {
    font-size: 1.5rem;
  }
}

/* Post Grid */
.post-card {
    height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.1rem;
    margin: 0;
    padding: 1rem;
    font-weight: 500;
}

.post-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title-link:hover {
    color: #0056b3;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-meta {
    margin-top: auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.875rem;
    border-top: 1px solid #eee;
}

/* Post Detail Page */
.post-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-detail-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.post-detail-image {
    display: block;
    max-width: 100%;
    height: 300px;  /* Fixed initial height */
    object-fit: contain;  /* Ensures full content is visible */
    margin: 2rem auto;
    cursor: pointer;  /* Indicates clickable */
    transition: transform 0.2s;
}

.post-detail-image:hover {
    transform: scale(1.02);
}

/* Modal styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

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

.post-detail-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-top: 2rem;
}

/* Responsive adjustments for post detail */
@media (max-width: 768px) {
    .post-detail {
        padding: 1rem;
    }
    
    .post-detail-image {
        height: 200px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
}

/* Body layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 60px;  /* Height of navbar + extra space */
}

/* About Page Enhancements */
.content-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline {
    list-style: none;
    padding: 0;
}

.timeline li {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid #3498db;
    position: relative;
}

.timeline li:before {
    content: '';
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    position: absolute;
    left: -7.5px;
    top: 6px;
}

.timeline h3 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
}

.institution, .company {
    color: #666;
    margin-bottom: 0.25rem;
}

.period {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.description {
    color: #555;
    line-height: 1.5;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.tech-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.tech-category li:before {
    content: '▹';
    color: #3498db;
    position: absolute;
    left: 0;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: #3498db;
}

.nav-link.active:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #3498db;
    border-radius: 2px;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline li {
        padding-left: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Work with Me Page Styles */
.work-with-me-header {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 3rem 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.work-with-me-header .highlight {
    color: #0056b3;
    font-weight: 500;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0056b3;
}

.contact-section {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 4rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.contact-options .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.contact-options .btn:hover {
    transform: translateY(-2px);
}

.contact-options .btn i {
    margin-right: 0.5rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-options .btn {
    width: 100%;
    margin: 0 !important;
}

.alert {
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

@media (max-width: 768px) {
    .work-with-me-header {
        padding: 2rem 1rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .contact-section {
        padding: 2rem !important;
    }
    
    .contact-form button {
        width: 100%;
    }
}

/* Contact Form Styles */
.contact-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.contact-form .form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.25);
}

.contact-form .form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-method {
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 1rem;
}

.contact-method h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #003d80;
}

/* Banner Section */
.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.banner-section img {
    transition: transform 0.3s ease;
}

.banner-section:hover img {
    transform: scale(1.05);
}
