/* --- Hero Section --- */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 1rem 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.8)), url('/assets/images/hero-bg.webp');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--primary);
  color: var(--text);
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.btn:hover {
  background-color: var(--secondary);
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hero illustration styles */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-illustration {
  flex: 1;
  max-width: 50%;
}

.digital-transformation {
  width: 100%;
  height: auto;
}

/* SVG Styling */
.path {
  fill: none;
  stroke: rgba(66, 133, 244, 0.6);
  stroke-width: 2;
  stroke-dasharray: 200;
  stroke-dashoffset: 1000;
  animation: dash 15s linear infinite;
}

.path-2 {
  stroke: rgba(52, 168, 83, 0.6);
  animation-delay: 0.5s;
}

.path-3 {
  stroke: rgba(234, 67, 53, 0.6);
  animation-delay: 1s;
}

.node {
  fill: #4285F4;
  animation: pulse 2s infinite;
}

.node:nth-child(even) {
  fill: #34A853;
  animation-delay: 0.7s;
}

.node:nth-child(3n) {
  fill: #EA4335;
  animation-delay: 1.4s;
}

.pulse {
  fill: rgba(66, 133, 244, 0.3);
  animation: pulse-fade 3s infinite;
}

.pulse-2 {
  fill: rgba(52, 168, 83, 0.3);
  animation-delay: 1s;
}

.pulse-3 {
  fill: rgba(234, 67, 53, 0.3);
  animation-delay: 2s;
}

.cube {
  fill: rgba(66, 133, 244, 0.7);
  animation: float 4s ease-in-out infinite;
}

.cube-2 {
  fill: rgba(52, 168, 83, 0.7);
  animation-delay: 1s;
}

.cube-3 {
  fill: rgba(234, 67, 53, 0.7);
  animation-delay: 2s;
}

.dot {
  fill: #FBBC05;
  opacity: 0.8;
  animation: blink 3s infinite;
}

.dot:nth-child(odd) {
  animation-delay: 1s;
}

.dot:nth-child(3n) {
  animation-delay: 2s;
}

.connect-line {
  stroke: rgba(251, 188, 5, 0.3);
  stroke-width: 1;
  stroke-dasharray: 5;
  animation: line-fade 5s infinite;
}

/* Animations */
@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes pulse-fade {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes line-fade {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 1rem 0 1rem 0;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .hero-illustration {
    max-width: 85%;
    margin: 0 auto;
    order: -1;
    /* Move illustration above the content */
    margin-bottom: 1.5rem;
    transform: scale(0.85);
    /* Slightly smaller on mobile */
  }

  /* Adjust SVG size */
  .digital-transformation {
    max-height: 220px;
  }

  /* Adjust animation speed on mobile */
  .path {
    animation-duration: 10s;
  }

  .pulse {
    animation-duration: 2s;
  }
}


/* --- Section Styling --- */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 1rem auto 0;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2.5rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  fill: var(--primary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  opacity: 0.9;
}

/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 310px;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 2rem;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.portfolio-category {
  font-size: 0.9rem;
  color: var(--primary);
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--dark-accent);
  padding: 5rem 0;
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.email-btn {
  background-color: var(--primary);
  color: var(--text);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.email-btn:hover {
  background-color: var(--secondary);
  color: var(--bg);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.email-btn svg {
  width: 20px;
  height: 20px;
}

.phone-btn {
  background: #00B33C; /* Darker, more saturated green for better contrast */
  margin-left: 15px;
  color: #FFFFFF; /* Explicitly setting white text */
  font-weight: 700; /* Making text bolder for better visibility */
}

.phone-btn:hover {
  background-color: #00CC44; /* Slightly lighter green on hover */
  color: #FFFFFF; /* Ensuring text stays white on hover */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(30, 30, 30, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-image-link {
  position: relative;
  height: 350px;
  display: block;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.portfolio-image-link:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.portfolio-image-link:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-description {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.portfolio-info {
  padding: 1rem 1.5rem;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.portfolio-category {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* For centering the portfolio info text */
.text-center {
  text-align: center;
}

/* To make the portfolio images bigger */
.portfolio-image-link {
  display: block;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}

.portfolio-image-link:hover .portfolio-img {
  transform: scale(1.05);
}

/* Adjust the size of portfolio items in the grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Increasing from likely previous size */
  gap: 2rem; /* Ensure adequate spacing between items */
}

.portfolio-item {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .email-btn,
  .phone-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  
  .email-btn {
    margin-bottom: 10px;
  }
}