/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[id] {
  scroll-margin-top: 80px;
}


:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --purple-color: #6f42c1;
  
  --font-family: 'Barlow', sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  padding-top: 16px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  padding-top: 16px;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: var(--transition);
  position: fixed;
  top: 0; /* offset from the top */
  z-index: 999;
  width: 100%;
  
}

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

.navbar-nav .nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

/* Remove underline lines */
.navbar-nav .nav-link::after {
  content: none !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  /* No underline on hover */
}

/* Remove focus outline/box-shadow on links */
.navbar-nav .nav-link:focus {
  outline: none;
  box-shadow: none !important;
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  padding-top: 100px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.hero-image-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Services Section */
.service-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #0d6efd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Tech Stack Section */
.tech-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--box-shadow-hover);
}

.tech-card:hover::before {
  left: 100%;
}

.tech-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.tech-card h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark-color);
}

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

/* About Section */
.about-content {
  padding: 2rem 0;
}

.stat-card {
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.about-image-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--light-color), #e9ecef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skills-floating-card {
  position: absolute;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.skills-floating-card i {
  font-size: 1.25rem;
}

.skills-floating-card:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.skills-card-2 {
  top: 60%;
  right: 10%;
  animation-delay: 1s;
}

.skills-card-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

/* Contact Section */
.contact-form-container {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background-color: #f8f9fa;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  background-color: white;
}

.contact-form .form-label {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-info {
  padding: 2rem 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.contact-info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h6 {
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color),  #0d6efd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  color: white;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-dark {
  border: 2px solid var(--dark-color);
  color: var(--dark-color);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--dark-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 37, 41, 0.3);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--light-color), #f8f9fa) !important;
}

.footer-brand h4 {
  color: var(--primary-color);
}

.footer-links h6 {
  color: black;
  margin-bottom: 1rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a:hover {
  color: var(--primary-color) !important;
  transition: var(--transition);
}

.footer-newsletter .input-group .form-control {
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter .input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter .input-group .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: none;
  color: white;
}

.footer-newsletter .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-legal a:hover {
  color: var(--primary-color) !important;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section {
    padding-top: 80px;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .about-image-container {
    height: 400px;
    margin-top: 2rem;
  }
  
  .about-placeholder {
    width: 250px;
    height: 250px;
  }
  
  .skills-floating-card {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .service-card,
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .tech-card {
    height: 100px;
    padding: 1rem;
  }
  
  .tech-card img {
    width: 30px;
    height: 30px;
  }
  
  .about-image-container {
    height: 300px;
  }
  
  .about-placeholder {
    width: 200px;
    height: 200px;
  }
  
  .skills-floating-card {
    position: static;
    margin: 0.5rem;
    display: inline-flex;
    animation: none;
  }
  
  .about-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section .container {
    padding: 0 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .service-card,
  .contact-form-container {
    padding: 1rem;
  }
  
  .contact-info-item {
    padding: 1rem;
  }
  
  .footer-newsletter .input-group {
    flex-direction: column;
  }
  
  .footer-newsletter .input-group .form-control,
  .footer-newsletter .input-group .btn {
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
  }
}

/* Loading animation for better UX */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  .hero-section {
    padding-top: 0;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}


/* Templates Section Styling */
.templates-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.templates-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #111;
}

.templates-section .section-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.template-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.template-card img {
  width: 100%;
  height: auto;
  display: block;
}

.template-card h3 {
  font-size: 1.25rem;
  margin: 16px 20px 10px;
  color: #222;
}

.template-card p {
  font-size: 0.95rem;
  margin: 0 20px 20px;
  color: #666;
  flex-grow: 1;
}

.preview-btn {
  margin: 0 20px 20px;
  padding: 10px 16px;
  background-color: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.preview-btn:hover {
  background-color: #1e40af;
}

#contact {
    background-color: #f8f9fa; /* Light background for contrast */
    padding: 60px 0; /* Increased padding for better spacing */
}

#contact h2 {
    font-size: 2.5rem; /* Larger font size for the heading */
    color: #343a40; /* Darker color for better readability */
}

#contact p {
    font-size: 1.1rem; /* Slightly larger font for the paragraph */
}

.btn-primary {
    background-color: #007bff; /* Bootstrap primary color */
    border-color: #007bff; /* Consistent border color */
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker shade on hover */
    border-color: #0056b3; /* Consistent border color on hover */
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  @media (min-width: 640px) {
    .custom-container {
      padding: 0 1.5rem;
    }
  }
  
  @media (min-width: 1024px) {
    .custom-container {
      padding: 0 2rem;
    }
  }
  
  .info-card:hover {
    transform: translateY(-2px);
  }

