
/* Shared styles across all pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-black: #000000;
  --color-cyan-bluish-gray: #abb8c3;
  --color-white: #ffffff;
  --color-pale-pink: #f78da7;
  --color-vivid-red: #cf2e2e;
  --color-luminous-vivid-orange: #ff6900;
  --color-luminous-vivid-amber: #fcb900;
  --color-light-green-cyan: #7bdcb5;
  --color-vivid-green-cyan: #00d084;
  --color-pale-cyan-blue: #8ed1fc;
  --color-vivid-cyan-blue: #0693e3;
  --color-vivid-purple: #9b51e0;
  --color-primary: #35e697;
  --color-secondary: #3896b6;
  --color-dark: #333333;
  --color-font: #666666;
  --color-transparent: transparent;
  
  /* Gradients */
  --gradient-vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%);
  --gradient-light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg, rgb(122, 220, 180) 0%, rgb(0, 208, 130) 100%);
  --gradient-luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg, rgba(252, 185, 0, 1) 0%, rgba(255, 105, 0, 1) 100%);
  --gradient-luminous-vivid-orange-to-vivid-red: linear-gradient(135deg, rgba(255, 105, 0, 1) 0%, rgb(207, 46, 46) 100%);
  --gradient-very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg, rgb(238, 238, 238) 0%, rgb(169, 184, 195) 100%);
  --gradient-cool-to-warm-spectrum: linear-gradient(135deg, rgb(74, 234, 220) 0%, rgb(151, 120, 209) 20%, rgb(207, 42, 186) 40%, rgb(238, 44, 130) 60%, rgb(251, 105, 98) 80%, rgb(254, 248, 76) 100%);
  --gradient-blush-light-purple: linear-gradient(135deg, rgb(255, 206, 236) 0%, rgb(152, 150, 240) 100%);
  --gradient-blush-bordeaux: linear-gradient(135deg, rgb(254, 205, 165) 0%, rgb(254, 45, 45) 50%, rgb(107, 0, 62) 100%);
  --gradient-luminous-dusk: linear-gradient(135deg, rgb(255, 203, 112) 0%, rgb(199, 81, 192) 50%, rgb(65, 88, 208) 100%);
  --gradient-pale-ocean: linear-gradient(135deg, rgb(255, 245, 203) 0%, rgb(182, 227, 212) 50%, rgb(51, 167, 181) 100%);
  --gradient-electric-grass: linear-gradient(135deg, rgb(202, 248, 128) 0%, rgb(113, 206, 126) 100%);
  --gradient-midnight: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%);

  /* Sun Ray Gradients */
  --gradient-sunray-1: linear-gradient(135deg, rgba(252, 185, 0, 1) 0%, rgba(255, 203, 112, 1) 50%, rgb(251, 246, 80) 100%);
  --gradient-sunray-2: linear-gradient(135deg, rgb(255, 203, 112) 0%, rgba(252, 185, 0, 1) 50%, rgb(251, 246, 80) 100%);
  --gradient-sunray-3: linear-gradient(135deg, rgb(251, 246, 80) 0%, rgb(255, 203, 112) 50%, rgba(252, 185, 0, 1) 100%);
  --gradient-sunray-radial: radial-gradient(circle at center, rgba(252, 185, 0, 1) 0%, rgb(255, 203, 112) 40%, rgb(251, 246, 80) 80%, rgba(255, 255, 255, 0.9) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background: var(--gradient-very-light-gray-to-cyan-bluish-gray);
}
/* Hero section background */
#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-midnight);
}

/* Gradient backgrounds */
.gradient-primary {
    background: var(--gradient-luminous-vivid-amber-to-luminous-vivid-orange);
}

.gradient-secondary {
    background: var(--gradient-vivid-cyan-blue-to-vivid-purple);
}

.gradient-accent {
    background: var(--gradient-light-green-cyan-to-vivid-green-cyan);
}

.gradient-warm {
    background: var(--gradient-luminous-dusk);
}

.gradient-cool {
    background: var(--gradient-cool-to-warm-spectrum);
}
/* Custom utility classes */
.bg-primary {
    background-color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary);
}

.border-primary {
    border-color: var(--color-primary);
}

.hover\:bg-primary:hover {
    background-color: var(--color-primary);
}

.focus\:ring-primary:focus {
    --tw-ring-color: var(--color-primary);
}

/* Pulse animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes pulse-fast {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-fast {
    animation: pulse-fast 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 3D Transform Effects */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.rotate-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

/* Enhanced button styles with gradients */
.btn-gradient {
    background: var(--gradient-luminous-vivid-amber-to-luminous-vivid-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    background: var(--gradient-luminous-vivid-orange-to-vivid-red);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-gradient:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icon animations */
.icon-hover {
    transition: all 0.3s ease;
    display: inline-block;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(10deg);
}
/* Enhanced 3D Card Effects */
.card-3d {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-3d:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.card-3d:hover::before {
    opacity: 1;
}

.card-3d-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

/* Solar background animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Solar Benefits Section Styles */
.solar-benefits-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.solar-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 20%);
    opacity: 0.5;
    pointer-events: none;
}

.solar-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(255, 140, 0, 0.2);
}

.solar-card-3d {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateZ(0);
    z-index: 1;
}

.solar-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.solar-card-3d::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 165, 0, 0.1) 30%, 
        transparent 70%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.solar-card-3d:hover {
    transform: translateY(-15px) rotateY(8deg) rotateX(8deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.25);
}

.solar-card-3d:hover::before {
    opacity: 1;
}

.solar-card-3d:hover::after {
    opacity: 0.8;
}

.solar-icon-container {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.solar-card-3d:hover .solar-icon-container {
    transform: scale(1.15) rotateY(10deg) rotateX(10deg);
}

.solar-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.solar-card-3d:hover .solar-icon {
    filter: drop-shadow(0 8px 16px rgba(255, 165, 0, 0.3)) brightness(1.1);
    transform: scale(1.1);
}

.solar-card-title {
    position: relative;
    transition: all 0.3s ease;
}

.solar-card-3d:hover .solar-card-title {
    color: #ff6b00;
    text-shadow: 0 2px 4px rgba(255, 107, 0, 0.2);
}

/* Solar glow effect for cards */
.solar-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%), 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 165, 0, 0.1) 30%, 
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.solar-card-3d:hover .solar-glow-effect {
    opacity: 0.6;
}
/* Solar energy themed cards */
.solar-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.solar-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(252, 185, 0, 0.1) 0%, 
        rgba(255, 105, 0, 0.05) 30%, 
        transparent 70%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.solar-card:hover::after {
    opacity: 1;
}

.solar-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(252, 185, 0, 0.2);
}

/* Section transitions */
.section-enter {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-enter.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Floating elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Glow effects */
.glow {
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(6, 147, 227, 0.5);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(155, 81, 224, 0.5);
}

/* Solar energy particle effects */
.solar-particle {
    position: absolute;
    background: var(--color-luminous-vivid-amber);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.solar-particle.animate {
    animation: particle-float 3s ease-out forwards;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Parallax scrolling effects */
.parallax-element {
    transform: translateZ(0);
    transition: transform 0.1s linear;
}
/* Cursor follower effect */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-luminous-vivid-amber);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-follower.expand {
    width: 40px;
    height: 40px;
    background: rgba(252, 185, 0, 0.1);
}
/* Hero 3D Sun Effect */
.hero-3d {
    perspective: 1000px;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), 
                url('https://huggingface.co/spaces/gabrielliservizi/solemio-solar/resolve/main/images/sole.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0) 70%
    );
    opacity: 0;
    animation: sun-glow 3s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}
@keyframes sun-glow {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}
.sun-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 165, 0, 0.4) 0%,
        rgba(255, 165, 0, 0.3) 30%,
        rgba(255, 165, 0, 0.2) 60%,
        rgba(255, 165, 0, 0) 80%
    );
    opacity: 0.9;
    animation: sun-pulse 6s ease-in-out infinite alternate;
}
@keyframes sun-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}
.sun-ray {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0) 60%
    );
    transform-origin: center top;
    animation: rotate-ray 20s linear infinite;
    opacity: 0.8;
    pointer-events: none;
}
.sun-ray:nth-child(2) {
    animation-delay: -5s;
    opacity: 0.6;
}

.sun-ray:nth-child(3) {
    animation-delay: -10s;
    opacity: 0.4;
}
@keyframes rotate-ray {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}
.hero-title {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    transform: translateZ(50px);
}

.hero-subtitle {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(30px);
}

.hero-cta {
    transform: translateZ(70px);
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.4);
}
/* Enhanced 3D Solar Cards */
.card-3d-solar {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
}

.card-3d-solar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card-3d-solar:hover {
    transform: translateY(-15px) rotateY(8deg) rotateX(8deg) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.card-3d-solar:hover::before {
    opacity: 1;
}

.solar-icon {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}
.card-3d-solar:hover .solar-icon {
    transform: scale(1.1) rotateY(15deg) rotateX(15deg);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}
.solar-icon::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, 
        rgba(252, 185, 0, 0.3) 0%, 
        rgba(255, 105, 0, 0.1) 40%, 
        transparent 70%);
    z-index: -1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card-3d-solar:hover .solar-icon::after {
    opacity: 0.9;
    animation: solar-glow 1.5s ease-in-out infinite alternate;
}
@keyframes solar-glow {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    border: 2px solid transparent;
}

.faq-item:hover {
    border-color: rgba(252, 185, 0, 0.3);
    box-shadow: 0 10px 30px rgba(252, 185, 0, 0.2);
    transform: translateY(-3px);
}

.faq-question {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: rgba(252, 185, 0, 1);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: rgba(252, 185, 0, 1);
}

.faq-answer {
    transition: all 0.4s ease;
    overflow: hidden;
    max-height: 500px;
    padding-top: 1rem;
}

.faq-answer.hidden {
    max-height: 0;
    padding-top: 0;
    opacity: 0;
}

/* Enhanced Form Styles */
form input[type="text"],
form input[type="email"],
form input[type="tel"] {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 240, 0.95) 100%);
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(252, 185, 0, 0.3);
    border-color: rgba(252, 185, 0, 1);
    background: white;
}

form input[type="text"]:hover,
form input[type="email"]:hover,
form input[type="tel"]:hover {
    box-shadow: 0 5px 15px rgba(252, 185, 0, 0.15);
}

/* CTA Styles */
.cta-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-button-fixed {
    background: var(--gradient-sunray-1);
    color: #1a1a1a;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(252, 185, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    min-width: 180px;
    justify-content: center;
}

.cta-button-fixed:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(252, 185, 0, 0.6);
    background: var(--gradient-sunray-2);
}

.cta-button-fixed svg,
.cta-button-fixed i {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .cta-container {
        bottom: 10px;
        right: 10px;
    }

    .cta-button-fixed {
        padding: 10px 14px;
        font-size: 12px;
        min-width: 150px;
    }
}

/* Enhanced Card Hover Effects */
.card-3d-solar,
.card-3d {
    position: relative;
    overflow: hidden;
}

.card-3d-solar::after,
.card-3d::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(252, 185, 0, 0.15) 0%, transparent 70%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.card-3d-solar:hover::after,
.card-3d:hover::after {
    top: -50%;
    left: -50%;
    opacity: 1;
}
