/* Homepage Specific Styles */

/* Color Variables */
:root {
    --gold: #D4AF37;
    --electric-blue: #00B4D8;
    --dark-bg: #0A0A0A;
    --darker-bg: #050505;
    --card-bg: rgba(30, 30, 30, 0.7);
    --card-hover-bg: rgba(40, 40, 40, 0.9);
}

/* Base Styles */
body {
    scroll-behavior: smooth;
}

/* Hero Section */
#globe-background {
    background: linear-gradient(135deg, #0A0A0A 0%, #1E1E1E 100%);
    position: relative;
    overflow: hidden;
}

/* Scroll Snap */
.scroll-snap {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    padding: 6rem 0;
}

.snap-section.distinction-section {
    padding-bottom: 300px; /* Increased padding to avoid cropping */
    z-index: 10; /* Ensure this section is above the next one */
    position: relative;
}

/* Logo Slider */
.logo-slide {
    animation: slide 20s linear infinite;
    display: flex;
    width: calc(250px * 10);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-inner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(212, 175, 55, 0.3);
    border-top: 5px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Nos Expertises Section */
.expertise-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.expertise-card {
    position: relative;
    min-height: 400px;
    perspective: 1000px;
    width: 100%;
    margin: 0 auto;
    max-width: 400px;
}

.expertise-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    min-height: 400px;
}

.expertise-card-inner.flipped {
    transform: rotateY(180deg);
}

/* Disable hover effect on mobile */
@media (min-width: 1024px) {
    .expertise-card {
        cursor: pointer;
    }
    
    .expertise-card:hover .expertise-card-inner:not(.flipped) {
        transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
    }
}

.expertise-card-front,
.expertise-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.expertise-card-front {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.expertise-card-back {
    background: linear-gradient(135deg, var(--gold) 0%, #F9C22E 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 2rem;
    overflow-y: auto;
}

.expertise-card-back.electric-blue {
    background: linear-gradient(135deg, var(--electric-blue) 0%, #0096C7 100%);
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.expertise-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.icon-wrapper {
    position: relative;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-card:hover .icon-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* CTA Card */
.cta-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    height: 100%;
    border-radius: 1rem;
}

.cta-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-card .icon-wrapper {
background: rgba(212, 175, 55, 0.1) !important;
border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Mobile-first approach for card layout */
@media (max-width: 767px) {
.expertise-grid {
grid-template-columns: 1fr;
padding: 0 1rem;
gap: 1.5rem;
}

.expertise-card {
min-height: 320px;
max-width: 100%;
margin: 0 auto;
width: 100%;
}

.expertise-card-inner {
min-height: 320px;
}

.expertise-card-front,
.expertise-card-back {
padding: 1.25rem;
}

.expertise-card h3 {
font-size: 1.1rem;
margin-bottom: 0.75rem;
line-height: 1.3;
}

.expertise-card p {
font-size: 0.9rem;
margin-bottom: 1rem;
line-height: 1.5;
}

.icon-wrapper {
width: 48px !important;
height: 48px !important;
margin: 0 auto 1rem !important;
}

.icon-wrapper i {
font-size: 1.25rem !important;
}

/* Adjust section padding for mobile */
.expertise-section {
padding: 3rem 0;
}

/* Make sure the back card is properly spaced */
.expertise-card-back {
margin-top: 1.5rem;
border-radius: 0.5rem;
}

/* Ensure proper spacing between cards */
.expertise-card {
margin-bottom: 1.5rem;
}

/* Last card shouldn't have bottom margin */
.expertise-card:last-child {
margin-bottom: 0;
}
}



/* Animations */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}

@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Utility Classes */
.gold-text {
    color: var(--gold);
}

.electric-blue-text {
    color: var(--electric-blue);
}

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, #F9C22E 100%);
}

.bg-electric-gradient {
    background: linear-gradient(135deg, var(--electric-blue) 0%, #0096C7 100%);
}
/* Comparison Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.comparison-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.feature-row {
    transition: all 0.3s ease;
}

.feature-row:hover {
    transform: translateX(5px);
}

.feature-row.active {
    background-color: rgba(212, 175, 55, 0.1) !important;
    border-left: 3px solid var(--gold);
}

/* Hero Section */
#globe-background {
    position: relative;
    overflow: hidden;
    height: 100vh; /* Full viewport height by default */
}

#vanta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Adjust hero height on mobile */
@media (max-width: 768px) {
    #globe-background {
        height: 70vh; /* Shorter height on mobile */
    }
    
    #vanta {
        transform: scale(1.1); /* Slightly zoom in to compensate for shorter height */
        transform-origin: center;
    }
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    transition: all 0.3s ease;
}

.stat-card:hover i {
    transform: scale(1.2);
}

/* Feature Description */
#feature-description {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#feature-description p {
    margin: 0;
    line-height: 1.6;
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter {
    display: inline-block;
    animation: countUp 0.5s ease-out forwards;
}

/* Responsive Table */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stat-card {
        min-height: 150px;
    }
    
    .stat-card .text-4xl {
        font-size: 1.75rem;
    }
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a227;
}
  
  .feature-orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
  }
  
  .feature-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(0, 180, 216, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .feature-orb:hover::before {
    opacity: 1;
  }
  
  .feature-orb:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  }
  
  .feature-content {
    text-align: center;
    padding: 2rem;
    transition: all 0.4s ease;
  }
  
  .feature-content .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }
  
  .feature-orb:hover .icon-wrapper {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Responsive adjustments */
  @media (max-width: 1024px) {
    .orbit-item {
        width: 180px;
        height: 180px;
    }

    .feature-content p {
        opacity: 1 !important;
    }
  }

  @media (max-width: 767px) {
    .orbit-item {
        width: 150px;
        height: 150px;
    }

    .feature-content {
        padding: 1rem;
    }

    .feature-content .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }
  }
  
  /* Animation delay utilities */
  .animation-delay-500 {
    animation-delay: 500ms;
  }
  
  .animation-delay-1000 {
    animation-delay: 1000ms;
  }
  
  .animation-delay-1500 {
    animation-delay: 1500ms;
  }
  
  .animation-delay-2000 {
    animation-delay: 2000ms;
  }
  
  /* Hover effect for mobile tap */
  @media (hover: none) {
    .feature-orb:active {
      transform: scale(0.95);
    }
  }
  
  /* Accessibility focus styles */
  .feature-orb:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 3px;
  }
  
  /* Smooth scroll behavior for anchor links */
  html {
    scroll-behavior: smooth;
  }
  
  /* Performance optimizations */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
