/* Custom CSS for Zetgrow Website */

:root {
  --primary-color: #0047AB;
  --accent-color: #00C897;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --muted-color: #6c757d;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Override Bootstrap Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #00b085;
  border-color: #00b085;
  color: white;
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 71, 171, 0.95) !important;
  transition: var(--transition);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e5799 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
}

.badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  margin: 0.5rem 0;
}

.hero-stats {
  margin-top: 3rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Hero Visual Elements */
.hero-visual {
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 30%;
  right: 20%;
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 1s;
}

.card-4 {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.5s;
}

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

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-element {
  position: absolute;
  background: linear-gradient(45deg, var(--accent-color), transparent);
  border-radius: 50%;
  opacity: 0.1;
}

.element-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation: pulse 4s ease-in-out infinite;
}

.element-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 10%;
  animation: pulse 4s ease-in-out infinite 1s;
}

.element-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 30%;
  animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

/* Section Styles */
.section-badge {
  display: inline-block;
  background: rgba(0, 71, 171, 0.1);
  border: 1px solid rgba(0, 71, 171, 0.2);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-card p {
  color: var(--muted-color);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--accent-color);
}

/* Portfolio Cards */
.portfolio-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 71, 171, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.portfolio-link {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.portfolio-tags {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: rgba(0, 71, 171, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info h4 {
  color: var(--dark-color);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 71, 171, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

.contact-details p {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-form-wrapper {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 71, 171, 0.25);
}

.business-hours {
  background: rgba(0, 71, 171, 0.05);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--dark-color) !important;
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-links .social-link:hover {
  background: var(--accent-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-card {
    position: relative;
    margin: 1rem 0;
    animation: none;
  }
  
  .hero-visual {
    height: auto;
    margin-top: 2rem;
  }
  
  .card-1, .card-2, .card-3, .card-4 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

/* Additional Animations */
.service-card,
.portfolio-card,
.contact-form-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

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

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

/* Loading animation for form submission */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}