
/* Ensure nav items active state changes */
.navbar-nav .nav-link {
    min-width: 100px;
    text-align: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}
        
/* Pills styling for active state */
.nav-pills .nav-link.active {
    background-color: #0d6efd;
}
        
/* Hover effect for non-active links */
.nav-pills .nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
    

/* Custom navbar shadow */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #377be1 !important;
}

.navbar .container-fluid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav-wrapper{
  display: flex;
}

.navbar-nav{
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item{
  display: inline-block;
}

/* Hero section gradient background */
.hero-section {
  background: linear-gradient(135deg, #3d39c5 0%, #fad0c4 100%);
  color: #fff;  /* ensures text is readable */
  padding: 6rem 1rem; /* taller hero section */
}

/* Buttons styling */
.hero-section .btn-primary {
  background: #43e97b; /* matches second highlight card */
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.hero-section .btn-outline-light:hover {
  background: #fff;
  color: #333;
}

/* Common card styling */
.card {
  border: none;               /* Remove default border */
  border-radius: 0.75rem;     /* Smooth corners */
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Card hover effect */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Emoji/Icon styling */
.card-body span {
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Headings and text */
.card-body h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-body p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Individual gradients for each card */
.row > article:nth-child(1) .card-body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  color: #fff;
  border-radius: 0.75rem;
}

.row > article:nth-child(2) .card-body {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  color: #fff;
  border-radius: 0.75rem;
}

.row > article:nth-child(3) .card-body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fbc2eb 100%);
  color: #f3e9e9;
  border-radius: 0.75rem;
}

#footer-contact{ 
  color:rgba(237, 236, 236, 0.941);
}
#footer-contact a:focus {
  outline: 2px dashed #fff;
  outline-offset: 3px;
}
#footer-contact a{
  color: #ffff;
  text-decoration: underline;
}


/* ========================================
   BLOG PAGE STYLES
   ======================================== */

/* Blog post cards hover effect */
.blog-post {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    background-color: #fff;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: #0d6efd !important;
}

/* Blog header image hover effect */
.blog-header picture img {
    transition: transform 0.3s ease;
}

.blog-header picture img:hover {
    transform: scale(1.02);
}

/* Post thumbnail hover effect */
.post-header picture img {
    width: 100%;
    height:auto;
    object-fit:contain;
    border: 3px solid #e9ecef;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    display: block;
    margin:0 auto;
}

.post-header picture img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Button hover effects for blog */
.blog-post .btn:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Code element styling */
code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    color: #240615;
    font-family: 'Times New Roman', monospace;
}

/* Table styling */
.table {
    margin-top: 1rem;
}

/* Definition list styling */
dt {
    font-weight: 600;
    margin-top: 1rem;
    color: #2c3e50;
}

dd {
    margin-bottom: 0.5rem;
}

/* ==== Responsive Tech Blog Header ==== */
.blog-header {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000; /* fallback if image not loaded */
}

/* Scrolling image background */
.scrolling-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  overflow: hidden;
}

.scrolling-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: scrollBanner 40s linear infinite;
  opacity: 0.7;
}

/* Respect users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .scrolling-image {
    animation: none;
    transform: none;
  }
}

/* Smooth scrolling motion */
@keyframes scrollBanner {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==== Text Overlay ==== */
.header-text {
  position: relative;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.header-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header-text p {
  font-size: 1.1rem;
  color: #e5e5e5;
}

/* Responsive typography */
@media (max-width: 768px) {
  .blog-header {
    height: 300px;
  }

  .header-text h1 {
    font-size: 1.8rem;
  }

  .header-text p {
    font-size: 1rem;
  }
}

/* Header text animation */
@keyframes backInDown  {
0% {
    opacity: 0;
    transform: translateY(-200px) scale(0.7);
  }
  80% {
    opacity: 0.8;
    transform: translateY(10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Apply animation to header text */
.header-text {
  position: relative;
  z-index: 2;
  color: #edf2f3;
  background: rgba(0, 0, 0, 0.45);
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  animation: backInDown 1.5s cubic-bezier(0.39, 1.56, 0.64, 1) both;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .header-text {
    animation: none;
  }
}

/* Base text styling */
#tip-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  text-align: center;
}

/* ----- TRANSITION word ----- */
.word-transition {
  display: inline-block;
  color: #0d6efd;
  transition: color 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

/* On hover, demonstrate transition effect */
.word-transition:hover {
  color: #6610f2;
  transform: scale(1.15);
}
.word-animation {
  color: #2c3e50;
  display: inline-block;
  animation: breathe 3s ease-in-out infinite;
}

/* ----- ANIMATION word (gentle “breathing” motion) ----- */
@keyframes breathe {
  0%, 100% {
    transform: translateY(0);
    color: #0a0d0c;
  }
  50% {
    transform: translateY(-6px);
    color: #044230;
  }
}



/* ----- Accessibility: reduce motion for users who prefer it ----- */
@media (prefers-reduced-motion: reduce) {
  .word-animation {
    animation: none;
  }
  .word-transition {
    transition: none;
  }
}

/* ========================================
   GALLERY PAGE STYLES - CSS GRID LAYOUT
   ======================================== */

/* Gallery Grid using CSS Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    padding: 1rem;
}

/* Gallery Item Card */
.gallery-item {
    background-color: #222;
  color: #fff;
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Gallery Item Hover Effect */
.gallery-item:hover {
    transform: translateY(-4px);
}

/* Gallery Image */
.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

/* Image Zoom on Hover */
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Gallery Caption */
.gallery-caption {
    text-align: center;
    padding: 1rem;
    background: white;
    width: 100%;
}

.gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-weight: 600;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Nav Tabs Styling */
.nav-tabs .nav-link {
    color: #495057;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* Resources aside links */
aside a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s ease;
}

aside a:hover {
    color: #0a58ca;
    text-decoration: underline;
    transform: translateX(3px);
    display: inline-block;
}

/* Responsive Grid - Tablet */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-img {
        height: auto; /*full aspect ratio*/
    }
}

/* Responsive Grid - Mobile */
@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-img {
        height: auto;
    }
}

