/*
Theme Name: Devesh Portfolio
Author: Devesh Nimesh
Description: Custom resume and portfolio theme
Version: 1.0
*/
/* Ensure main container is responsive */
body, .site, .main-container {
  max-width: 100%;
  overflow-x: hidden;
}



html, body {
  overflow-x: visible;
  overflow-y: auto;
}
/*body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}*/

/* Sticky header */
header {
 position: sticky;
  top: 0;
  z-index: 999;
  padding: 20px;
  background-color: var(--primary-color); /* or your fallback */
  transition: background-color 0.3s ease, padding 0.3s ease;
}

body.scrolled header {
  background-color: #0056b3;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
nav {
  background-color: var(--primary-color);
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: none;
}
nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: none;
}

main {
  padding: 80px 2rem 2rem;
}
/* Navbar Base */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem;
  text-align: center;
}

.navbar a, .dropbtn {
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* Dropdown Container */
.dropdown {
  display: inline-block;
  position: relative;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  color: #333;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
  text-align: left;
}

.dropdown-content a {
  color: #333;
  padding: 0.75rem 1rem;
  display: block;
  text-decoration: none;
}

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

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  text-decoration: none;
}
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  text-align: center;
}
.skills-section {
  text-align: center;
  padding: 40px;
}

.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.skill {
  width: 150px;
  position: relative;
}

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#007bff 0% 0%, #e6e6e6 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: auto;
}

.circle::before {
  content: attr(data-percentage) '%';
  position: absolute;
  font-weight: bold;
  font-size: 18px;
  color: #333;
}
.skills-wrapper {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.section {
  border: 2px solid red;
  padding: 20px;
  flex: 1;
  max-width: 450px;
  box-sizing: border-box;
}

.skills-group {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.skill {
  text-align: center;
  width: 150px;
}

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#007bff 0% 0%, #e6e6e6 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.circle::before {
  content: attr(data-percentage) '%';
  position: absolute;
  font-weight: bold;
  font-size: 18px;
  color: #000;
}
.document-preview {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 800px;
  margin: 40px auto;
}

.thumbnail img {
  width: 200px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

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

.summary {
  flex: 1;
}

.summary h3 {
  margin-top: 0;
}

.summary ul {
  padding-left: 20px;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

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

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap; /* so it's responsive */
  padding: 40px;
}

.contact-info,
.map-container {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px #ccc;
}

/* Optional: Make both halves same width */
.contact-info {
  max-width: 45%;
}

.map-container {
  max-width: 45%;
}
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    gap: 20px;
  }

  .contact-info,
  .map-container {
    max-width: 100%;
  }
}
/* Fix submenu position and spacing */
.main-nav .menu > li > a {
  color: white !important;
  text-decoration: none;
  font-weight: bold;
}
.main-nav .menu li {
  position: relative;
}

.main-nav .menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 9999;
}

.main-nav .menu li:hover > ul {
  display: block;
}

.main-nav .menu li ul li {
  width: 100%;
}

.main-nav .menu li ul li a {
  color: white;
  text-align: left;
  padding: 10px 15px;
  display: block;
  white-space: nowrap;
}

.main-nav .menu li ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}
.blog-files ul {
  list-style: none;
  padding: 0;
}

.blog-files li {
  margin-bottom: 20px;
}

.blog-files a {
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}

.blog-files a:hover {
  text-decoration: none;
}
.blog-files-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.blog-files-list li {
  margin-bottom: 12px;
  font-size: 18px;
}

.blog-files-list a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.blog-files-list a:hover {
  text-decoration: none;
}

.upload-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}
.upload-btn:hover {
  background-color: #218838;
}
.blog-file-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.file-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.file-card .thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e9ecef;
  border-radius: 4px;
}

.file-card .thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.file-icon {
  font-size: 32px;
  font-weight: bold;
  color: #007bff;
  text-align: center;
}

.file-info h3 {
  margin: 0;
  font-size: 20px;
}

.file-info h3 a {
  color: #007bff;
  text-decoration: none;
}

.file-info h3 a:hover {
  text-decoration: none;
}

.file-info p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #555;
}

.upload-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
/* Use primary color */
a, .main-nav a, .upload-btn {
  color: var(--primary-color);
}

.upload-btn {
  background-color: var(--primary-color);
}

.upload-btn:hover,
.main-nav a:hover {
  background-color: var(--primary-color); /* Or make dynamic later */
}

.file-icon {
  color: var(--primary-color);
}
/* Header background */
/*header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
}*/

/* Footer background */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 15px;
}

/* Header nav links */
header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

header nav a:hover {
  text-decoration: none;
}

.download-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: var(--primary-color); /* fallback or modify as needed */
}
.resume-btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.resume-btn:hover {
  opacity: 0.9;
}
.download-resume {
  margin: 30px 0;
}

.download-resume.align-left {
  text-align: left;
}

.download-resume.align-center {
  text-align: center;
}

.download-resume.align-right {
  text-align: right;
}
.download-resume {
  margin: 30px 0;
}

/* Alignment classes */
.download-resume.align-left {
  text-align: left;
}

.download-resume.align-center {
  text-align: center;
}

.download-resume.align-right {
  text-align: right;
}

/* Resume button styling */
.resume-btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.resume-btn:hover {
  opacity: 0.9;
}
/*.floating-resume-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  text-decoration: none;
  font-size: 16px;
  animation: pulse 2s infinite;
  transition: background-color 0.3s ease;
}

.floating-resume-btn:hover {
  background-color: #0056b3;
}*/
.floating-resume-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color, #007bff);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: background-color 0.3s ease;
}
.floating-resume-btn:hover {
  background-color: #0056b3;
}


/* Show only on mobile */
@media (max-width: 768px) {
  .floating-resume-btn {
    display: inline-block;
  }
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0,123,255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0,123,255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,123,255, 0);
  }
}
.site-logo img {
  max-height: 60px;
  width: auto;
  vertical-align: middle;
}

.site-title a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}
.slider-container {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.slider {
  display: flex;
  animation: slide 12s infinite ease-in-out;
  width: 300%;
}

.slider img {
  width: 100%;
  flex-shrink: 0;
}

@keyframes slide {
  0%    { transform: translateX(0%); }
  33%   { transform: translateX(-100%); }
  66%   { transform: translateX(-200%); }
  100%  { transform: translateX(0%); }
}
.homepage-slider {
 	width: 90%;
  	margin: 0 auto;
}
/*.homepage-slider {
  max-width: 100%;
  margin: 0 auto;
}*/
.comment-list {
  list-style: none;
  padding-left: 0;
}

.comment {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 3px solid var(--primary-color);
  background: #f9f9f9;
}

.comment .comment-author {
  font-weight: bold;
}

.comment .comment-meta {
  font-size: 0.85em;
  color: gray;
}
.file-comments-area {
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

.file-comments-area h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.file-comments-area .comment-list {
  list-style: none;
  padding-left: 0;
}

.file-comments-area .comment {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.file-comments-area .submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
.file-comments {
  background: #f9f9f9;
  padding: 15px;
  margin-top: 15px;
  border-radius: 5px;
}
.file-comments ul.comment-list {
  list-style: none;
  padding: 0;
}
.file-comments ul.comment-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}
.profile-section {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.profile-info,
.profile-image {
  flex: 1 1 45%;
}

.profile-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color, #007bff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/*Testimonials Style*/
.testimonials-section {
  padding: 40px 20px;
  background: #ffffff;
  text-align: center;
}

.testimonials-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.testimonial-slider {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.testimonial-slide {
  flex: 0 0 calc(33.333% - 20px);
  background: #fff;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eaeaea;
}

.testimonial-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-text {
  font-size: 14px;
  color: #000;
  margin-bottom: 5px;
}

.testimonial-author {
  font-weight: bold;
  color: red;
}
.swiper-button-next,
.swiper-button-prev {
  color: #f20057; /* Match your pink brand color */
  font-size: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px;
}
.inline-quote {
  color: red; /* makes the text inside red */
  font-style: italic;
  font-weight: bold;
  font-family: Georgia, serif;
}
.inline-quote::before,
.inline-quote::after {
  color: red;
  font-size: 1.2em;
  font-family: Georgia, serif;
	text-decoration: red;
}

.inline-quote::before {
  content: "“";
  margin-right: 2px;
}

.inline-quote::after {
  content: "”";
  margin-left: 2px;
}


.circular-image {
  width: 150px;         /* Adjust size as needed */
  height: 150px;
  border-radius: 50%;   /* Makes it a perfect circle */
  object-fit: cover;    /* Ensures image fills the circle without distortion */
  border: 3px solid #ccc; /* Optional: border around image */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}


/* === Header Layout === */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  background-color: #ff1654;
  flex-wrap: wrap;
}
.header-widget-area {
   flex: 0 0 auto;
}
.header-widget-center {
   flex: 0 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
/* Logo styling 
.site-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}*/

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}
/* Center nav menu */
.header-center {
  flex-grow: 1;
  text-align: center;
  color: white;
}
.header-center ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.header-center ul li {
  display: inline-block;
}

.header-center ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.header-center ul li a:hover {
  color: #ffffffcc;
}

/* Social Icons Right */
.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
/*Social Icons*/
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  gap: 15px;
  flex: 0 0 auto;
  color: white;
  font-size: 18px;
}

.social-icons-widget {
  display: flex;
  gap: 12px; /* space between icons */
  align-items: center;
  justify-content: flex-end; /* or center / flex-start */
  padding: 0.5rem 0;
}

.social-icons-widget a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-icons-widget a:hover {
  color: var(--primary-color);
}
.header-social i {
  color: #fff;
}
.header-image {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
}
/* General Flex Layout */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  flex-wrap: wrap;
}

.header-widget-area {
  display: flex;
  align-items: center;
  flex: 1;
}

.header-widget-center {
  margin: 0 auto;
  text-align: center;
}

.header-social {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Mobile menu toggle button */

.menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding-left: 0;
  margin: 0;
  gap: 15px;
}

/*.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  margin-left: auto;
}*/
/*.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #000000;
  padding: 10px;
  cursor: pointer;
}*/

/* Desktop nav */
.main-nav {
  display: block;
}

/* Mobile behavior */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    background-color: var(--primary-color);
  }

  .main-nav.menu-open {
    display: block;
  }

  .main-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .main-nav .menu li {
    width: 100%;
  }

  .main-nav .menu li a {
    display: block;
    padding: 10px;
    width: 100%;
    text-align: left;
  }

  .main-nav .menu li ul {
    display: none;
  }

  .main-nav .menu li.open > ul {
    display: block;
  }
}


/* Show menu when toggle is active */
.main-nav.menu-open {
  display: flex;
}

/* Toggle button styling */
.menu-toggle {
  display: block;
  font-size: 24px;
  background: transparent;
  border: none;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1001;
}


/* Show toggle on mobile */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
  }
}



/* Hide toggle on desktop (min-width: 769px), show on mobile/tablet */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}

/* Show toggle button on screens <= 768px */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.menu-open {
    display: block;
  }
}/*==============================================*/
.certificates { 
	width: 800px;
	margin: 0 auto;	
}

.cert-box {
	width: 100%;
	height: 100%;
}

/* ---------- Responsive Typography & Layout ---------- */
@media (max-width: 768px) {
    .cert-box  {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .certificates-section {
    padding: 15px;
  }

  .cert-box {
    padding: 10px;
  }
}
