/* Custom styles beyond Tailwind CSS */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #2c3e50;       /* Deep blue-gray as primary color */
  --color-primary-dark: #1a252f;  /* Darker shade of primary */
  --color-secondary: #e67e22;     /* Warm orange as accent color */
  --color-secondary-light: #f39c12; /* Lighter orange for hover states */
  --color-bg: #f8f9fa;            /* Light gray background */
  --color-text: #2c3e50;          /* Dark blue-gray text */
  --color-text-light: #6c757d;    /* Medium gray for secondary text */
  --color-white: #ffffff;         /* Pure white */
  --shadow-normal: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition-normal: all 0.3s ease;
  --font-heading: 'Lora', serif;
  --font-body: 'Work Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* Header styles */
header {
  transition: var(--transition-normal);
}

/* Header text color fix */
header a, header h3, header .nav-link {
  color: white !important;
  transition: var(--transition-normal);
}

header.header-scrolled a, 
header.header-scrolled h3, 
header.header-scrolled .nav-link {
  color: var(--color-text) !important;
}

header .nav-link:hover {
  color: var(--color-secondary) !important;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Nav styles */
.nav-link {
  position: relative;
  transition: var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-secondary);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Button styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: var(--transition-normal);
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Card styles */
.card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Enhanced Hero section styling */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1c1c1c 0%, #1c1c1c 100%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: rgba(44, 62, 80, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 85%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-quote {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-quote::before,
.hero-quote::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 50px;
  background-color: var(--color-secondary);
}

.hero-quote::before {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-quote::after {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.hero p {
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-family: var(--font-body);
}

@media (min-width: 768px) {
  .hero-quote {
    font-size: 3.5rem;
  }
  
  .hero-quote::before,
  .hero-quote::after {
    width: 100px;
  }
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Section styling */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-secondary);
}

/* Services & Features */
.service-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(44, 62, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-secondary);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 0;
}

.service-card:hover .service-icon::before {
  opacity: 0.2;
}

.service-icon i {
  font-size: 1.75rem;
  position: relative;
  z-index: 1;
}

.service-card {
  transition: var(--transition-normal);
  padding: 2rem;
  border-radius: 0.75rem;
  background: var(--color-white);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

/* Timeline approach */
.approach-timeline {
  position: relative;
}

.approach-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-secondary);
  z-index: 0;
}

.approach-step {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Project cards */
.project-image {
  height: 250px;
  object-fit: cover;
}

.tag {
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--color-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.project-details {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-normal);
}

.project-details.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

/* Fixed Certificate Lightbox Styling */
.certificate-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none; /* Changed from opacity/visibility to display for more reliable hiding */
  align-items: center;
  justify-content: center;
}

.certificate-lightbox.active {
  display: flex; /* Changed to display:flex when active */
}

.certificate-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.certificate-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-secondary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.certificate-close:hover {
  background-color: var(--color-secondary-light);
  transform: scale(1.1);
}

.certificate-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

.certificate-details {
  padding: 2rem;
  max-height: 30vh;
  overflow-y: auto;
}

.certificate-details h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.certificate-details p {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Ensure body doesn't scroll when lightbox is open */
body.no-scroll {
  overflow: hidden;
  padding-right: 15px; /* Prevent layout shift when scrollbar disappears */
}

/* Certification/Recognition Cards */
.card.certification-card {
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.card.certification-card::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.card.certification-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.card.certification-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

/* View Full Image Button */
.view-original-btn {
  background-color: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  margin-top: 0.5rem;
  display: inline-block;
}

.view-original-btn:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80vh;
}

.lightbox-img {
  max-height: 80vh;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10001;
}

.close-lightbox:hover {
  color: var(--color-secondary);
}

.caption-container {
  padding: 10px;
  color: white;
  text-align: center;
  margin-top: 10px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s ease;
  border-radius: 0 5px 5px 0;
  user-select: none;
}

.next {
  right: -50px;
  border-radius: 5px 0 0 5px;
}

.prev {
  left: -50px;
}

.prev:hover, .next:hover {
  color: var(--color-secondary);
}

.lightbox-thumbs {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  overflow-x: auto;
  gap: 10px;
}

.thumb {
  height: 50px;
  width: 80px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.3s;
  object-fit: cover;
  border-radius: 3px;
}

.thumb:hover, .thumb.active-thumb {
  opacity: 1;
  border-color: var(--color-secondary);
}

/* Client Logos */
#projects .grid .client-logo img {
  max-height: 16vh;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#projects .grid .client-logo:hover img {
  transform: scale(1.1);
}

/* Team section - updated styling - removed tiled effect */
.team-member {
  text-align: center;
  background-color: transparent;
  box-shadow: none;
  transition: var(--transition-normal);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
}

.team-member:hover {
  transform: translateY(0);
  box-shadow: none;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Only keep hover effect on the photo */
.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid white;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition-normal);
  filter: grayscale(100%);
}

.team-member:hover .team-photo {
  filter: grayscale(0%);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-member p {
  font-family: var(--font-body);
}

.team-member h3 {
  font-family: var(--font-heading);
}

/* Reset any card styling that might be affecting team members */
#team .grid .hover-card,
#team .grid .card {
  background-color: transparent;
  box-shadow: none;
  transition: none;
}

#team .grid .hover-card:hover,
#team .grid .card:hover {
  transform: none;
  box-shadow: none;
}

/* Contact section */
.contact-info {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: var(--color-secondary);
}

/* Social icons */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: 3rem 0;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--color-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-3px) scale(1.1);
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Updated styling for text elements */
p, .text-gray-600 {
  color: var(--color-text-light);
  font-family: var(--font-body);
}

.text-blue-500, .text-blue-600 {
  color: var(--color-secondary) !important;
}

button.text-blue-500, a.text-blue-500, .project-toggle {
  color: var(--color-secondary) !important;
  font-family: var(--font-body);
}

button.text-blue-500:hover, a.text-blue-500:hover, .project-toggle:hover {
  color: var(--color-secondary-light) !important;
}

/* Hover card effect for all cards */
.hover-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .approach-timeline::before {
    display: none;
  }
  
  .step-number {
    margin-bottom: 1rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Project Card Improvements - Added April 2025 */

/* Make the entire project card clickable */
.hover-card {
  cursor: pointer;
  position: relative;
}

/* Improve text readability on project images */
.absolute.inset-0 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}

.absolute h3, .absolute p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Fix button alignment */
.project-category .grid .hover-card > div:last-child {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-category .grid .hover-card .btn-primary {
  margin-top: auto;
  align-self: flex-start;
}

/* Add these styles to your existing styles.css file */

/* What We Do Section Styling */
.service-card p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 1.1rem; /* Consistent font size for all text */
}

.service-highlight {
  color: var(--color-secondary);
  font-weight: 500;
  display: inline; /* Changed from block to inline for better text flow */
}

/* Make icons slightly larger */
.service-card .service-icon i {
  font-size: 2rem;
}

/* Add some extra spacing above the text */
.service-card .text-content {
  margin-top: 1.5rem;
}