@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #ef2d00;
  --text-color: #333333;
  --bg-color: #ffffff;
  --dark-bg: #000000;
  --card-bg: rgba(0, 0, 0, 0.5);
  --card-hover-bg: rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 2rem;
}

.nav-links li {
  margin: 0 1rem;
  position: relative;
}

.nav-links a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.contact-btn:hover {
  background-color: #d42800;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-card {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  transition: transform 0.3s, background-color 0.3s;
}

.hero-card:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-card-text {
  font-size: 1rem;
  font-weight: 400;
}

/* About Section */
.about {
  padding: 6rem 2rem;
  background-color: var(--bg-color);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-row:nth-child(even) {
  flex-direction: row-reverse;
}

.about-text {
  flex: 1;
}

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

.about-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Solutions Section */
.solutions {
  padding: 6rem 2rem;
  background-color: var(--dark-bg);
  color: white;
}

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

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.solution-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(239, 45, 0, 0);
  transition: background-color 0.3s;
  pointer-events: none;
  z-index: 1;
}

.solution-card:hover::before {
  background-color: rgba(239, 45, 0, 0.1);
}

.solution-card:hover {
  box-shadow: 0 0 0 2px var(--primary-color);
}

.solution-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.solution-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.solution-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.solution-description {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  background-color: var(--bg-color);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.features-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  width: 200px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 2rem;
  transition: background-color 0.3s, color 0.3s;
}

.feature-item:hover .feature-icon {
  background-color: var(--primary-color);
  color: white;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.feature-text {
  font-size: 0.9rem;
  color: #555;
}

/* Contact Section */
.contact {
  position: relative;
  padding: 6rem 2rem;
  color: white;
  overflow: hidden;
}

.contact-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.contact-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.contact-info {
  flex: 1;
  max-width: 500px;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-form {
  flex: 1;
  max-width: 500px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 4px;
  border: 2px solid var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: 'Gilroy', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 45, 0, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-button {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.3s;
}

.form-button:hover {
  background-color: #d42800;
}

/* Contact Form Responsive */
@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info, 
  .contact-form {
    max-width: 100%;
  }
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 4rem 2rem 2rem;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo img {
  height: 40px;
}

.footer-text {
  margin-top: 1rem;
  color: #999;
  max-width: 400px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
}

.newsletter-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-input {
  padding: 0.75rem 1rem;
  border-radius: 4px 0 0 4px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  min-width: 250px;
}

.newsletter-button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
}

.social-link:hover {
  color: #ff4d00;
  border-color: #ff4d00;
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .about-row {
    flex-direction: column !important;
    gap: 2rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding-top: 16rem;
  }
  
  .hero-content {
    padding-top: 6rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-card {
    width: 100%;
    max-width: 300px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    gap: 1rem;
  }
  
  .feature-item {
    width: 150px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter-input {
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .newsletter-button {
    border-radius: 4px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 18rem;
  }
  
  .hero-content {
    padding-top: 7rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .about-title, 
  .section-title,
  .features-title,
  .contact-title {
    font-size: 1.8rem;
  }
  
  .about-description,
  .features-subtitle,
  .contact-text {
    font-size: 1rem;
  }
}

/* Custom Styles for Mobile Optimization */
@media (max-width: 768px) {
  .solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .solution-card {
    display: flex;
    flex-direction: row;
    height: auto;
  }
  
  .solution-image {
    width: 120px;
    height: 100%;
    object-fit: cover;
  }
  
  .solution-content {
    flex: 1;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .feature-item {
    width: 100%;
  }
  
  /* Improved mobile hover states */
  .feature-icon {
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
  }
  
  .feature-item:active .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
  }
  
  .solution-card:active::before {
    background-color: rgba(239, 45, 0, 0.1);
  }
  
  .solution-card:active {
    box-shadow: 0 0 0 2px var(--primary-color);
  }
}

/* Additional Mobile Fixes */
@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .solution-card {
    flex-direction: column;
  }
  
  .solution-image {
    width: 100%;
    height: 150px;
  }
  
  /* Fix for Intelligent Solutions section on mobile */
  .features-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }
  
  .features-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-item {
    margin-bottom: 1.5rem;
  }
  
  .feature-title {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* Landscape Card Styles */
.service-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.service-card {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.service-card:hover {
  box-shadow: 0 0 0 2px var(--primary-color);
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.service-card-text {
  font-size: 1rem;
  color: #ccc;
}

/* Loading Optimization */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Fixed Header on Scroll */
.header {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header.visible {
  transform: translateY(0);
}

.header-placeholder {
  height: 80px;
}

/* Initial Header (Before Scroll) */
.initial-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
}

.initial-header .logo img {
  height: 40px;
}

.initial-header .contact-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.initial-header .contact-btn:hover {
  background-color: #d42800;
}

/* Intelligent Automations Text */
.intelligent-automations {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .intelligent-automations {
    font-size: 2.2rem;
  }
  
  .initial-header,
  .header {
    padding: 0.75rem 1rem;
  }
}

/* Add custom tooltip styles at the end of the file */
.social-link {
  position: relative;
}

.social-link:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 100;
}
