/* Custom styles for Digital Marketer portfolio */

/* Color Scheme - React Blue */
:root {
  --primary-color: #61dafb; /* React Blue */
  --primary-dark: #21a6cb;
  --secondary-color: #282c34; /* Dark background */
  --accent-color: #FB8261; /* Accent for CTAs */
  --light-bg: #f8f9fa;
  --text-color: #333333;
  --text-light: #ffffff;
}

/* Global styles */
body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure main content takes up available space */
main {
  flex: 1;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

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

/* Button styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 140px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.btn-cta {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  font-weight: 700;
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cta:hover {
  background-color: #e6744a;
  border-color: #e6744a;
  color: white;
  transform: translateY(-3px);
}

.btn-consultation {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 700;
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-consultation:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
}

/* Navbar styling */
.navbar {
  transition: all 0.3s ease;
  padding: 20px 0;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: white !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color) !important;
}

/* Change default nav link color to white */
.navbar .nav-link {
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
  color: white !important; /* Make links white by default and override any other styling */
}

/* Change nav link color to dark when scrolled */
.navbar.scrolled .nav-link {
  color: var(--text-color) !important; /* Change to dark text color when scrolled */
}

/* Specific override for active link */
.navbar .nav-link.active {
  color: white !important;
}

.navbar.scrolled .nav-link.active {
  color: var(--text-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Also ensure the Hire Me button text is visible when scrolled */
.navbar.scrolled .btn-primary {
  color: var(--secondary-color);
}

/* Hero section */
#hero {
  background: linear-gradient(rgba(40, 44, 52, 0.8), rgba(40, 44, 52, 0.9)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 280px 0 200px; /* Increased top and bottom padding to make the hero section taller */
  position: relative;
  min-height: 650px; /* Setting a minimum height to ensure the hero section is at least 650px tall */
  display: flex;
  align-items: center;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

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

.highlight-text {
  position: relative;
  z-index: 1;
}

/* About section */
#about {
  padding: 100px 0 50px 0;
}

.about-wrapper {
  margin-top: 30px;
}

.profile-image-container {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.about-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-subtitle {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text {
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.info-item {
  margin-bottom: 15px;
  display: flex;
}

.info-label {
  font-weight: 600;
  min-width: 70px;
  margin-right: 10px;
}

.info-value {
  color: var(--text-color);
}

.download-resume {
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.download-resume i {
  margin-right: 8px;
}

.profile-stats {
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.profile-stats:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
  line-height: 1;
}

.stats-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Services section */
.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(97, 218, 251, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* Projects section */
#projects {
  background-color: var(--light-bg);
  padding: 50px 0 100px 0;
}

.project-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card:hover .card-img-overlay {
  opacity: 1;
}

.project-category {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

/* Testimonials */
#testimonials {
  padding: 100px 0;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: none; /* Removed the blue border */
}

.rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.client-info {
  margin-top: 20px;
}

.client-name {
  font-weight: 600;
  margin-bottom: 0;
}

.client-position {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Skills section */
#skills {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.skill-bar {
  margin-bottom: 30px;
}

.skill-name {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.skill-percentage {
  color: var(--primary-color);
}

.progress {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: 5px;
}

/* Contact section */
#contact {
  padding: 100px 0;
}

.contact-info-item {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(97, 218, 251, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-form {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control {
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 20px;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* Social icons */
.social-links {
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 20px;
  position: relative;
  z-index: 10;
  clear: both;
  width: 100%;
  margin-top: 0;
  display: block !important;
  visibility: visible !important;
}

.footer-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a i {
  margin-right: 8px;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

footer .social-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(97, 218, 251, 0.1);
  color: var(--primary-color);
  transition: all 0.3s ease;
  margin-right: 0;
}

footer .social-link:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-5px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Animation classes */
.animated {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tabs styling */
.nav-pills {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.nav-pills .nav-link {
  color: var(--text-color);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 25px;
  margin: 0 5px;
  transition: all 0.3s ease;
  /* Ensure no underlines appear on tabs */
  text-decoration: none;
  border-bottom: none;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  /* Remove any potential underlines on active tabs */
  border-bottom: none;
}

/* Remove the underline effect that might be coming from .nav-link::after */
.nav-pills .nav-link::after {
  display: none;
}

.tab-content {
  margin-top: 30px;
}

.tab-pane {
  animation: fadeIn 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar {
    background-color: white !important;
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  #hero {
    padding: 150px 0 80px;
  }
  
  #hero h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Project Modal Styles */
.project-modal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: white;
}

.project-modal .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  padding: 20px 30px;
}

.project-modal .modal-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.project-modal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.project-modal .btn-close:hover {
  opacity: 1;
}

.project-modal .modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.6;
}

.project-modal .project-overview p,
.project-modal .project-section p,
.project-modal p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem;
  font-weight: 400 !important;
}

.project-modal .project-overview .lead {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}

.project-modal .project-header-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-modal .project-section {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.project-modal .project-section:last-child {
  border-bottom: none;
}

.project-modal .project-section h6,
.project-modal .project-overview h6 {
  background-color: #282c34;
  color: white;
  padding: 12px 20px;
  margin: 0 0 20px 0;
  border-radius: 8px;
  font-weight: 600;
}

.project-modal .project-section h6 i,
.project-modal .project-overview h6 i {
  color: var(--primary-color);
}

.project-modal .result-metric {
  background: rgba(97, 218, 251, 0.1);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(97, 218, 251, 0.2);
  transition: all 0.3s ease;
}

.project-modal .result-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(97, 218, 251, 0.2);
}

.project-modal .result-metric h4 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.project-modal .technologies-used .badge {
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 20px;
  background: #61dafb !important;
  color: #222 !important;
  font-weight: 400;
}

.project-modal .modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 20px 30px;
}

.project-modal .list-unstyled li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  font-weight: 400;
}

/* Custom scrollbar for modal */
.project-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.project-modal .modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.project-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.project-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Web Development & Landing Page Demo Modals */
#webDevModal .modal-dialog,
#landingPageModal .modal-dialog,
#ecommerceModal .modal-dialog,
#snapitModal .modal-dialog,
#cmsModal .modal-dialog {
  max-width: 85vw;
  width: 85vw;
  margin: 2rem auto;
}

#webDevModal .modal-content,
#landingPageModal .modal-content,
#ecommerceModal .modal-content,
#snapitModal .modal-content,
#cmsModal .modal-content {
  height: calc(85vh + 50px);
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#webDevModal .modal-header,
#landingPageModal .modal-header,
#ecommerceModal .modal-header,
#snapitModal .modal-header,
#cmsModal .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: none;
  padding: 15px 25px;
}

#webDevModal .modal-title,
#landingPageModal .modal-title,
#ecommerceModal .modal-title,
#snapitModal .modal-title,
#cmsModal .modal-title {
  font-size: 1.2rem;
  font-weight: 600;
}

#webDevModal .btn-close,
#landingPageModal .btn-close,
#ecommerceModal .btn-close,
#snapitModal .btn-close,
#cmsModal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

#webDevModal .btn-close:hover,
#landingPageModal .btn-close:hover,
#ecommerceModal .btn-close:hover,
#snapitModal .btn-close:hover,
#cmsModal .btn-close:hover {
  opacity: 1;
}

#webDevModal .modal-body,
#landingPageModal .modal-body,
#ecommerceModal .modal-body,
#snapitModal .modal-body,
#cmsModal .modal-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#webDevModal .modal-body iframe,
#landingPageModal .modal-body iframe,
#ecommerceModal .modal-body iframe,
#snapitModal .modal-body iframe,
#cmsModal .modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
}

#webDevModal .modal-footer,
#landingPageModal .modal-footer,
#ecommerceModal .modal-footer,
#snapitModal .modal-footer,
#cmsModal .modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 15px 25px;
  background: #f8f9fa;
  border-radius: 0 0 15px 15px;
}

/* Responsive adjustments for demo modals */
@media (max-width: 1200px) {
  #webDevModal .modal-dialog,
  #landingPageModal .modal-dialog,
  #ecommerceModal .modal-dialog,
  #snapitModal .modal-dialog,
  #cmsModal .modal-dialog {
    max-width: 95vw;
    width: 95vw;
  }
  
  #webDevModal .modal-content,
  #landingPageModal .modal-content,
  #ecommerceModal .modal-content,
  #snapitModal .modal-content,
  #cmsModal .modal-content {
    height: calc(80vh + 50px);
  }
}

@media (max-width: 768px) {
  #webDevModal .modal-dialog,
  #landingPageModal .modal-dialog,
  #ecommerceModal .modal-dialog,
  #snapitModal .modal-dialog,
  #cmsModal .modal-dialog {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  #webDevModal .modal-content,
  #landingPageModal .modal-content,
  #ecommerceModal .modal-content,
  #snapitModal .modal-content,
  #cmsModal .modal-content {
    height: calc(75vh + 50px);
  }
  
  #webDevModal .modal-header,
  #webDevModal .modal-footer,
  #landingPageModal .modal-header,
  #landingPageModal .modal-footer,
  #ecommerceModal .modal-header,
  #ecommerceModal .modal-footer,
  #snapitModal .modal-header,
  #snapitModal .modal-footer,
  #cmsModal .modal-header,
  #cmsModal .modal-footer {
    padding: 10px 15px;
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .project-modal .modal-dialog {
    margin: 10px;
  }
  
  .project-modal .modal-body {
    padding: 20px;
    max-height: 60vh;
  }
  
  .project-modal .modal-header,
  .project-modal .modal-footer {
    padding: 15px 20px;
  }
  
  .project-modal .result-metric h4 {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
    background: #61dafb !important;
    color: #222 !important;
    font-weight: 700;
}
}

/* Modal iframe loader overlay */
.modal-content { position: relative; }
.modal-iframe-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  z-index: 1055;
  /* Stack spinner above the text and center both */
  flex-direction: column;
  gap: 12px;
  padding: 1rem;
}
.modal-iframe-loader.hidden { display: none; }
.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid rgba(0,0,0,0.08);
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
  display: block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  margin-top: 0;
  font-size: 0.95rem;
  color: var(--text-color);
  text-align: center;
}

@media (max-width: 576px) {
  .spinner {
    width: 44px;
    height: 44px;
    border-width: 5px;
  }

  .loader-text {
    font-size: 0.9rem;
  }
}