@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --power-blue: #1400c6;
  --bright-green: #beef00;
  --electric-red: #ff0028;
  --deep-green: #657a00;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #fff;
}

.font-title {
  font-family: 'Montserrat', sans-serif;
}

.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animation.animate {
  opacity: 1;
  transform: translateY(0);
}

.gradient-text {
  @apply bg-gradient-to-r from-[var(--power-blue)] via-pink-500 to-[var(--bright-green)] text-transparent bg-clip-text;
}

.nav-link {
    @apply relative text-gray-300 hover:text-white transition-colors duration-300 py-1;
}

.nav-link::after {
    @apply content-[''] absolute bottom-[-6px] left-1/2 w-1.5 h-1.5 bg-[var(--bright-green)] rounded-full transform -translate-x-1/2 scale-0 transition-transform duration-300 ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    @apply scale-100;
}

.nav-link.active {
    @apply text-[var(--bright-green)];
}

.btn-primary {
  @apply inline-flex items-center justify-center font-bold text-base px-8 py-3 rounded-full uppercase tracking-wider transition-all duration-300 ease-in-out disabled:opacity-70 disabled:cursor-not-allowed shadow-lg;
  background-color: var(--bright-green);
  color: var(--power-blue);
  border: 2px solid transparent;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--deep-green);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(190, 239, 0, 0.2), 0 4px 6px -4px rgba(190, 239, 0, 0.2);
  @apply -translate-y-1;
}

.btn-primary:active:not(:disabled) {
  @apply transform scale-95 shadow-inner;
  background-color: var(--deep-green);
  color: white;
}

.glass-card {
    @apply relative bg-white/60 backdrop-blur-md border border-gray-200 rounded-xl p-6 shadow-lg transition-all duration-300 ease-in-out overflow-hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(to bottom right, var(--power-blue), var(--bright-green)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.glass-card:hover {
    @apply -translate-y-2 shadow-xl;
}
.glass-card:hover::before {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9; /* slate-100 */
}

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

::-webkit-scrollbar-thumb:hover {
  background: #0d008d;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-fab {
    animation: pulse 2s infinite;
}

.bg-grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

/* --- Services Orbit Animation --- */
@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-path {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    border-radius: 50%;
    animation: orbit linear infinite;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.orbit-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

.orbit-node {
    position: absolute;
    /* Position node on the path. top: 50%, left: 0 places it at 9 o'clock */
    top: 50%; 
    left: 0;
    transform: translate(-50%, -50%); /* Center the node on the path */
    animation: orbit linear infinite reverse; /* Counter-rotation */
    pointer-events: auto;
}

.orbit-path.paused, .orbit-node.paused {
    animation-play-state: paused;
}

.orbit-path.paused::before {
    border-color: var(--bright-green);
    border-style: solid;
    box-shadow: 0 0 10px 0px var(--bright-green), inset 0 0 10px 0px var(--bright-green);
}

.orbit-path.dimmed::before {
    opacity: 0.2;
}


/* Three different orbit rings */
.orbit-path-1 {
    width: 55%; height: 55%;
    animation-duration: 25s;
}
.orbit-path-1 > .orbit-node { animation-duration: 25s; }

.orbit-path-2 {
    width: 75%; height: 75%;
    animation-duration: 40s;
}
.orbit-path-2 > .orbit-node { animation-duration: 40s; }

.orbit-path-3 {
    width: 95%; height: 95%;
    animation-duration: 55s;
}
.orbit-path-3 > .orbit-node { animation-duration: 55s; }

/* --- Track Record Ticker --- */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.ticker {
    display: inline-flex;
    animation: ticker-scroll 40s linear infinite;
    width: fit-content;
    white-space: nowrap;
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
}

.ticker-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--bright-green);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 8px 2px rgba(190, 239, 0, 0.3);
}