/*
Theme Name: Venkatch Portfolio
Author: Venkat
Version: 1.0
*/
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
}
body {
    font-family: 'Poppins', sans-serif;
}

/* navbar styles */
  .navbar {
      background-color: var(--primary-color) !important;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Site-specific navbar: start transparent and become fixed with background on scroll */
  .site-navbar {
      background: transparent !important; /* start transparent */
      box-shadow: none !important;
      transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
      position: fixed; /* will switch to fixed via JS when scrolled */
      z-index: 1040;
      width: 100%;


  }
    @media (max-width: 992px) {
        #mainMenu {
            background-color: rgba(44,62,80,0.95); /* semi-opaque primary */
            box-shadow: 0 8px 24px rgba(0,0,0,0.12) 
        }
    }
  /* Applied when scrolled/fixed */
  .site-navbar.scrolled,
  .site-navbar.fixed {
      background-color: rgba(44,62,80,0.95) !important; /* semi-opaque primary */
      box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  }
  .site-navbar.scrolled  #mainMenu,
  .site-navbar.fixed   #mainMenu {
     background-color: transparent; /* semi-opaque primary */
    box-shadow: transparent 
  }

  /* Keep brand and nav-link colors readable */
  .site-navbar .navbar-brand,
  .site-navbar .nav-link {
      color: #fff !important;
  }

  /* When the navbar is fixed we add a subtle transform to avoid layout jump flicker */
  .site-navbar.fixed { position: fixed; top: 0; left: 0; right: 0; }

  .navbar-brand {
      font-weight: bold;
      font-size: 1.5rem;
      color: #fff !important;
  }
  .nav-link {
      color: rgba(255, 255, 255, 0.85) !important;
      transition: color 0.3s;
  }

  .nav-link:hover,
  .nav-link.active {
      color: #fff !important;
      border-bottom: 1px solid #ccc;
  }

a { text-decoration: none; }

.section-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Hero Section */
  .hero-section {
      position: relative;
      min-height: 90vh;
      display: flex;
      align-items: center;
      /* Remove static background; we'll use two layered pseudo-elements for smooth crossfade */
      background: none;
      color: white;
      padding: 80px 0;
      overflow: hidden;
  }

  /* Two background layers for crossfading. JS will update --g1 and --g2 and toggle .fade-to-second */
  .hero-section::before,
  .hero-section::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 0;
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
      will-change: opacity;
      transition: opacity 1s ease, transform 1s ease;
  }

  /* initial gradients (fallback) */
  .hero-section::before {
      background: var(--g1, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
      opacity: 1;
      transform: scale(1.02);
  }

  .hero-section::after {
      background: var(--g2, linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%));
      opacity: 0;
      transform: scale(1.0);
  }

  /* When set, fade to the second layer */
  .hero-section.fade-to-second::before { opacity: 0; transform: scale(1.0); }
  .hero-section.fade-to-second::after  { opacity: 1; transform: scale(1.02); }

  /* Ensure hero content sits above the background layers */
  .hero-section > .container,
  .hero-section * { position: relative; z-index: 1; }
  .hero-section .hello{
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .hero-section .hello img{
    width: 30px;
  }

  .hero-name {
      font-size: 6rem;
      font-weight: bold;
      margin: 10px 0;
      animation: fadeInLeft 1s;
  }

  .hero-tagline {
      font-size: 1.5rem;
      margin-bottom: 30px;
      opacity: 0.9;
  }

  .hero-image {
      width: 100%;
      max-width: 500px;
  }

  @keyframes fadeInLeft {
      from {
          opacity: 0;
          transform: translateX(-50px);
      }

      to {
          opacity: 1;
          transform: translateX(0);
      }
  }

  @keyframes fadeInRight {
      from {
          opacity: 0;
          transform: translateX(50px);
      }

      to {
          opacity: 1;
          transform: translateX(0);
      }
  }

  .section-title {
      font-size: 2.5rem;
      font-weight: bold;
      margin-bottom: 40px;
      position: relative;
      padding-bottom: 15px;
  }

  .section-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: var(--secondary-color);
  }


  .page-header {
      position: relative;
      min-height: 260px;
      color: white;
      padding: 100px 0 60px;
      text-align: center;
      background: none; /* backgrounds handled by pseudo-elements for smooth crossfade */
      overflow: hidden;
  }

  /* Two-layer crossfade for page headers. JS updates --ph-g1 and --ph-g2 and toggles .fade-to-second */
  .page-header::before,
  .page-header::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 0;
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
      will-change: opacity;
      transition: opacity 1s ease, transform 1s ease;
  }

  .page-header::before {
      background: var(--ph-g1, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
      opacity: 1;
      transform: scale(1.02);
  }

  .page-header::after {
      background: var(--ph-g2, linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%));
      opacity: 0;
      transform: scale(1.0);
  }

  .page-header.fade-to-second::before { opacity: 0; transform: scale(1.0); }
  .page-header.fade-to-second::after  { opacity: 1; transform: scale(1.02); }

  .page-header > * { position: relative; z-index: 1; }

  .page-header h1 {
      font-size: 3rem;
      font-weight: bold;
      margin-bottom: 15px;
  }

  .page-header p {
      font-size: 1.2rem;
      opacity: 0.9;
  }

  /* About Section */
  .about-section {
      padding: 80px 0;
  }

  .about-content {
      font-size: 1.1rem;
      line-height: 1.8;
      color: #555;
  }

  /* blog section */
  
  .blog-section,
  .gallery-section {
      padding: 80px 0;
  }

  .blog-card,
  .gallery-card {
      transition: transform 0.3s, box-shadow 0.3s;
      height: 100%;
  }

  .blog-card:hover,
  .gallery-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .blog-card img,
  .gallery-card img {
      height: 250px;
      object-fit: cover;
  }

/* placeholder panels for posts without thumbnails */
.card-img-top.bg-secondary {
    height: 250px;
}

/* icons inside specific blocks */
.education-icon .bi,
.education-icon i { font-size: 30px; color: white; }
.interest-icon .bi,
.interest-icon i { font-size: 35px; color: white; }

  .blog-meta {
      color: #777;
      font-size: 0.9rem;
  }

  .btn-primary {
      /* Modern pill-shaped primary button used across the site */
      background: linear-gradient(90deg, var(--secondary-color), #764ba2);
      border: none;
      color: #fff !important;
      padding: 10px 26px;
      font-weight: 700;
      border-radius: 999px;
      box-shadow: 0 6px 18px rgba(44,62,80,0.10);
      transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  }

  .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 36px rgba(44,62,80,0.16);
      opacity: 0.98;
  }

  .btn-primary:active {
      transform: translateY(-1px) scale(0.995);
      box-shadow: 0 8px 22px rgba(44,62,80,0.12);
  }

  .btn-primary:focus {
      outline: 3px solid rgba(115,169,255,0.22);
      outline-offset: 3px;
      box-shadow: 0 12px 28px rgba(44,62,80,0.12);
  }

  @media (prefers-reduced-motion: reduce) {
      .btn-primary { transition: none; transform: none; }
  }

  /* Hero CTA: distinct pill-shaped gradient button for hero section */
  .hero-cta {
      background: linear-gradient(90deg, var(--secondary-color), #764ba2);
      border: none;
      color: #fff !important;
      padding: 14px 36px;
      font-weight: 700;
      border-radius: 999px;
      box-shadow: 0 8px 20px rgba(44,62,80,0.12);
      transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
      text-decoration: none;
      display: inline-block;
  }

  .hero-cta:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 40px rgba(44,62,80,0.18);
      opacity: 0.98;
  }

  .hero-cta:focus {
      outline: 3px solid rgba(115,169,255,0.25);
      outline-offset: 3px;
      box-shadow: 0 12px 28px rgba(44,62,80,0.12);
  }

  /* Respect reduced-motion preference */
  @media (prefers-reduced-motion: reduce) {
      .hero-cta { transition: none; transform: none; }
  }

.skills div {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 10px 0;
    font-weight: 600;
    text-align: center;
}

.card {
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.about img,
.photos img {
    transition: transform 0.3s;
}

.about img:hover,
.photos img:hover {
    transform: scale(1.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact-form button {
    padding: 12px 25px;
}

.post-content img {
    max-width: 100%;
    margin-bottom: 20px;
}

.card h5, .card h6 {
    font-weight: 600;
}

.photos img {
    transition: transform 0.3s;
    cursor: pointer;
}

.photos img:hover {
    transform: scale(1.05);
}


.recent-images img {
    transition: transform 0.3s;
    cursor: pointer;
}

.recent-images img:hover {
    transform: scale(1.05);
}

/* Gallery specific styles: keep 4 per row on md, constrain image height and center tall images */
.photos .figure { margin: 0; }
.photos .glightbox { display: flex; align-items: center; justify-content: center; }
.photos .gallery-img {
    width: 100%;
    max-height: 220px; /* adjust as needed */
    object-fit: cover; /* crop to fit while centering */
    object-position: center center;
    display: block;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .photos .gallery-img { max-height: 220px; }
}

/* --- moved from page-about.php --- */
.profile-section {
    padding: 80px 0;
}
.contactus-info p{
    line-height: 30px;
}
.profile-image {
    width: 100%;
    max-width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 0 auto 30px;
}

.profile-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.profile-content p { margin-bottom: 20px; }

.stats-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 60px 0; color: white; }
.stat-box { text-align: center; padding: 20px; }
.stat-number { font-size: 3rem; font-weight: bold; display: block; margin-bottom: 10px; }
.stat-label { font-size: 1.1rem; opacity: 0.9; }

.skills-section { padding: 80px 0; background-color: #f8f9fa; }
.skill-category { margin-bottom: 40px; }
.skill-category h4 { color: var(--primary-color); margin-bottom: 20px; font-weight: bold; }
.skill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    color: var(--primary-color);
    font-weight: 600;
}
.skill-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--secondary-color), #764ba2);
    font-size: 0.85rem;
}
.skill-text { font-size: 0.95rem; }

@media (max-width: 575.98px) {
    .skill-chip { padding: 8px 10px; }
    .skill-logo { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* utility widths used by About page progress bars */
.progress-bar.w-95 { width: 95% !important; }
.progress-bar.w-92 { width: 92% !important; }
.progress-bar.w-90 { width: 90% !important; }
.progress-bar.w-88 { width: 88% !important; }
.progress-bar.w-85 { width: 85% !important; }
.progress-bar.w-80 { width: 80% !important; }

.experience-section { padding: 80px 0; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--secondary-color); }
.timeline-item { position: relative; margin-bottom: 40px; padding-left: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 0; width: 15px; height: 15px; background: var(--secondary-color); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 3px var(--secondary-color); }
.timeline-date { color: var(--secondary-color); font-weight: 600; margin-bottom: 8px; }
.timeline-title { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); margin-bottom: 5px; }
.timeline-company { color: #777; margin-bottom: 10px; }

.education-section { padding: 80px 0; background-color: #f8f9fa; }
.education-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin-bottom: 30px; transition: transform 0.3s, box-shadow 0.3s; }
.education-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.education-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

.interests-section { padding: 80px 0; }
.interest-card { text-align: center; padding: 30px; border-radius: 10px; background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: all 0.3s; height: 100%; }
.interest-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.interest-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

.testimonials-section { padding: 80px 0; background-color: #f8f9fa; }
.testimonial-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); height: 100%; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 20px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; }
.author-avatar { width: 50px; height: 50px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; color: white; font-weight: bold; }
.author-info h6 { margin: 0; font-weight: bold; color: var(--primary-color); }
.author-info p { margin: 0; font-size: 0.9rem; color: #777; }


.gallery-item{
    max-height: 220px;
    overflow: hidden;
}
/* Blog card image styles */
.blog-card-img {
    height: 200px;
    overflow: hidden;
}

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

.blog-card-placeholder {
    height: 200px;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Blog card image styles */
.blog-card-img {
    height: 200px;
    overflow: hidden;
}

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

.blog-card-placeholder {
    height: 200px;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
