/* Cloud Experts - Main Stylesheet */
* {
    font-family: 'Inter', sans-serif;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes pulse-divider {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
}

.sliding-logos {
    animation: slide 30s linear infinite;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.gradient-bg {
    background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #cbd5e1, #94a3b8, #f8fafc, #e2e8f0);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.glass-effect {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.tech-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.25));
    border-color: rgba(255,255,255,0.45);
}

.hero-gradient {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.section-gradient {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.certification-badge {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(10px);
}

.certification-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.counter {
    font-variant-numeric: tabular-nums;
}

/* Enhanced Card Hover Effects */
.tech-card-3d {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.tech-card-3d:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.25));
    border-color: rgba(255,255,255,0.45);
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

main {
    position: relative;
    z-index: 2;
}

html {
    scroll-behavior: smooth;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    animation: shake 0.5s;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.tab-container {
    display: none;
}

.tab-container.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.tab-button {
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 64, 175, 0.2));
    border-color: rgba(59, 130, 246, 0.5);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px;
}

.section-divider {
    height: 200px;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
    border-radius: 50%;
    animation: pulse-divider 3s ease-in-out infinite;
}

/* Performance optimizations */
img {
    loading: lazy;
    decoding: async;
}

/* 3D Floating Cloud Animation */
@keyframes cloud-float {
  0% { 
    transform: translateY(0px) translateX(0px) rotateY(0deg) rotateX(0deg) scale(1) !important;
  }
  25% { 
    transform: translateY(-15px) translateX(8px) rotateY(12deg) rotateX(6deg) scale(1.08) !important;
  }
  50% { 
    transform: translateY(-20px) translateX(0px) rotateY(0deg) rotateX(0deg) scale(1.12) !important;
  }
  75% { 
    transform: translateY(-15px) translateX(-8px) rotateY(-12deg) rotateX(-6deg) scale(1.08) !important;
  }
  100% { 
    transform: translateY(0px) translateX(0px) rotateY(0deg) rotateX(0deg) scale(1) !important;
  }
}

.cloud-3d-container {
  perspective: 1000px !important;
  perspective-origin: center center !important;
  display: inline-block !important;
  width: 60px !important;
  height: 35px !important;
  position: relative !important;
  overflow: visible !important;
  padding-top: 4px !important;
}

/* Increased specificity to override Tailwind */
header .cloud-3d-container,
nav .cloud-3d-container,
a .cloud-3d-container,
.cloud-3d-container {
  perspective: 1000px !important;
  perspective-origin: center center !important;
}

.cloud-3d {
  position: relative !important;
  width: 60px !important;
  height: 35px !important;
  transform-style: preserve-3d !important;
  animation: cloud-float 6s ease-in-out infinite !important;
  will-change: transform !important;
  transform-origin: center center !important;
  display: block !important;
}

/* Increased specificity to override Tailwind */
header .cloud-3d,
nav .cloud-3d,
a .cloud-3d,
.cloud-3d-container .cloud-3d,
.cloud-3d {
  animation: cloud-float 6s ease-in-out infinite !important;
  transform-style: preserve-3d !important;
  will-change: transform !important;
}

.cloud-layer {
  position: absolute;
  border-radius: 50px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,1), rgba(240,248,255,0.9), rgba(230,240,255,0.85));
  box-shadow: 
    0 2px 8px rgba(59, 130, 246, 0.25),
    0 4px 12px rgba(59, 130, 246, 0.15),
    inset 0 1px 3px rgba(255,255,255,0.9),
    inset 0 -1px 2px rgba(200,220,255,0.3);
  border: 1px solid rgba(255,255,255,0.6);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.cloud-layer-1 {
  width: 18px;
  height: 18px;
  top: 10px;
  left: 2px;
  border-radius: 50% 40% 50% 45%;
  transform: translateZ(0px) !important;
}

.cloud-layer-2 {
  width: 28px;
  height: 26px;
  top: 2px;
  left: 10px;
  border-radius: 50% 45% 50% 50%;
  transform: translateZ(3px) !important;
  box-shadow: 
    0 3px 10px rgba(59, 130, 246, 0.3),
    0 5px 15px rgba(59, 130, 246, 0.2),
    inset 0 1px 4px rgba(255,255,255,0.95),
    inset 0 -1px 3px rgba(200,220,255,0.4);
}

.cloud-layer-3 {
  width: 24px;
  height: 22px;
  top: 8px;
  left: 28px;
  border-radius: 45% 50% 45% 50%;
  transform: translateZ(5px) !important;
}

.cloud-layer-4 {
  width: 20px;
  height: 20px;
  top: 15px;
  left: 18px;
  border-radius: 50% 45% 50% 50%;
  transform: translateZ(2px) !important;
}

.cloud-layer-5 {
  width: 16px;
  height: 16px;
  top: 5px;
  left: 5px;
  border-radius: 50% 50% 45% 50%;
  transform: translateZ(1px) !important;
  opacity: 0.9;
}

.cloud-layer-6 {
  width: 14px;
  height: 14px;
  top: 12px;
  left: 35px;
  border-radius: 45% 50% 50% 45%;
  transform: translateZ(4px) !important;
  opacity: 0.85;
}

.cloud-layer-7 {
  width: 12px;
  height: 12px;
  top: 18px;
  left: 25px;
  border-radius: 50% 45% 50% 50%;
  transform: translateZ(1px) !important;
  opacity: 0.8;
}

/* Print styles */
@media print {
    #particles-canvas,
    .floating,
    .sliding-logos,
    .cloud-3d {
        display: none;
    }
}

