/* Fischer Telesec Modern Design Styles */

:root {
  /* Color Scheme - Refined for better contrast and accessibility */
  --primary-900: #001f3f;
  --primary-800: #003366;
  --primary-700: #004080;
  --primary-600: #0059b3;
  --primary-500: #0073e6;
  --primary-400: #3399ff;
  --primary-300: #66b2ff;
  --primary-200: #99ccff;
  --primary-100: #cce6ff;
  
  --accent: #00d2d3;
  --accent-dark: #00a0a0;
  
  /* Enhanced neutral palette */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global Styles */
body {
  overflow-x: hidden;
}

/* Header Styles */
.header {
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header.sticky .top-bar {
  display: none;
}

.header.sticky .navbar {
  padding: 10px 0;
}

.header.sticky .logo img {
  height: 35px;
}

/* Modern Navbar Styling */
.modern-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.nav-menu li {
  margin: 0 5px;
}

.nav-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--primary-900);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn).active::after {
  width: 70%;
}

.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn).active {
  color: var(--primary-600);
}

.nav-btn {
  padding: 8px 20px !important;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-900);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.mobile-menu-btn:hover {
  color: var(--primary-600);
  transform: scale(1.1);
}

/* Modern Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-900);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

.section-header.light .section-title,
.section-header.light .section-subtitle {
  color: var(--white);
}

.section-header.light .section-title::after {
  background: var(--white);
}

/* Modern Hero Section */
.modern-hero {
  position: relative;
  min-height: 85vh;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--spacing-3xl) 0;
  perspective: 1000px;
}

/* Electric Grid Animation */
.electric-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(0deg, rgba(255,255,255,0.1) 1px, transparent 1px) 0 0 / 50px 50px;
  animation: gridMove 20s linear infinite;
  opacity: 0.3;
  z-index: 1;
}

/* Glowing Orbs */
.glow-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: orbFloat 15s ease-in-out infinite;
}

.glow-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--primary-400);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.glow-orb:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 60%;
  right: 15%;
  animation-delay: -5s;
}

.glow-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: var(--primary-500);
  bottom: 10%;
  left: 30%;
  animation-delay: -10s;
}

/* Enhanced Hero Content */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-text-container {
  position: relative;
  z-index: 2;
}

.gradient-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0cdaf5 0%, #4a90e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease infinite;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: #fff;
}

.feature-item i {
  color: #0cdaf5;
  font-size: 1.2rem;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.tech-circle, .tech-square, .tech-triangle {
  position: absolute;
  opacity: 0.6;
  filter: blur(1px);
}

.tech-circle {
  width: 150px;
  height: 150px;
  border: 2px solid #0cdaf5;
  border-radius: 50%;
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.tech-square {
  width: 100px;
  height: 100px;
  border: 2px solid #4a90e2;
  top: 40%;
  right: 15%;
  animation: float 8s ease-in-out infinite;
}

.tech-triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(76, 144, 226, 0.3);
  bottom: 20%;
  left: 30%;
  animation: float 7s ease-in-out infinite;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.image-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(12, 218, 245, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

/* Quick Solutions Section */
.quick-solutions {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 4rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(12, 218, 245, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0cdaf5 0%, #4a90e2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon i {
  font-size: 2rem;
  color: #fff;
}

.solution-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.solution-link {
  color: #0cdaf5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: gap 0.3s ease;
}

.solution-link:hover {
  gap: 0.75rem;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-text {
  animation: fadeInUp 1s ease-out;
}

.fade-in {
  animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-features {
    align-items: center;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gradient-title {
    font-size: 2.5rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* Modern Cards */
.modern-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.card-link {
  color: var(--primary-500);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--primary-700);
  gap: 0.75rem;
}

/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: var(--white);
  position: relative;
  padding: var(--spacing-3xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--gray-200);
}

/* Testimonials Section */
.modern-testimonials {
  background-color: var(--gray-50);
  padding: var(--spacing-3xl) 0;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-quote {
  color: var(--primary-200);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.testimonial-content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: var(--spacing-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .gradient-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .modern-cards {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gradient-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: var(--spacing-lg);
  }
}

/* Container width adjustment for better display on larger screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-image-showcase {
    width: 45%;
  }
  
  .hero-content {
    width: 55%;
  }
}

@media (max-width: 992px) {
  .hero-image-showcase {
    position: relative;
    width: 100%;
    height: 50vh;
    margin-top: var(--spacing-xl);
  }
  
  .hero-content {
    width: 100%;
  }
  
  .hero-image-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 15px;
  }
  
  .hero-image.telesec6 {
    grid-column: 1;
    grid-row: 1;
    transform: none;
  }
  
  .hero-image.telesec7 {
    grid-column: 2;
    grid-row: 1;
    transform: none;
  }
  
  .hero-image.telesec8 {
    grid-column: 3;
    grid-row: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-image-showcase {
    height: 40vh;
  }
  
  .hero-image-container {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-image-showcase {
    height: 30vh;
  }
  
  .hero-image-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
  
  .hero-image.telesec6 {
    grid-column: 1;
    grid-row: 1;
  }
  
  .hero-image.telesec7 {
    grid-column: 1;
    grid-row: 2;
  }
  
  .hero-image.telesec8 {
    grid-column: 1;
    grid-row: 3;
  }
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }

    .nav-menu a {
        padding: 12px 20px;
        width: 100%;
        text-align: left;
    }

    .nav-menu a:not(.btn)::after {
        display: none;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .mobile-menu-btn.active i {
        transform: rotate(90deg);
    }
}

/* Improved Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .gradient-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .services-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonials-slider {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .gradient-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-900);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Improved Transitions */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Improved Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Improved Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* Testimonial Navigation */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.testimonial-prev,
.testimonial-next {
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    color: var(--primary-900);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-500);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--primary-500);
    transform: scale(1.2);
}

.dot:hover:not(.active) {
    background: var(--primary-300);
}

/* Responsive adjustments for testimonial navigation */
@media (max-width: 768px) {
    .testimonial-nav {
        margin-top: 1.5rem;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 35px;
        height: 35px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
} 