/* Container styles */
.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 1536px) {
    .container-custom {
        max-width: 1536px;
    }
}

/* Custom styles that can't wait for Tailwind processing */
.pattern-bg {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F97316' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

/* Alpine.js x-cloak - hide elements until Alpine is ready */
[x-cloak] {
    display: none !important;
}

/* Component styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background-color: var(--tw-color-primary-500, #F97316);
    border: 1px solid transparent;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 300ms;
}

.btn:hover {
    background-color: var(--tw-color-primary-600, #EA580C);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tw-color-primary-500, #F97316);
    background-color: transparent;
    border: 1px solid var(--tw-color-primary-500, #F97316);
    border-radius: 0.375rem;
    transition: all 300ms;
}

.btn-outline:hover {
    background-color: var(--tw-color-primary-50, #FFF7ED);
}

.container-custom {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.mega-menu {
    position: fixed;
    left: 50%;
    top: var(--header-height, 5rem);
    width: 90vw;
    max-width: 1280px;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -1rem);
    transition: all 200ms ease-in-out;
    z-index: 100;
    pointer-events: none;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: #374151;
    transition: color 300ms;
}

.nav-link:hover {
    color: var(--tw-color-primary-500, #F97316);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tw-color-primary-500, #F97316);
    transition: all 300ms;
}

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

.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 300ms;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-0.25rem);
}

.custom-slider {
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1000ms;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

/* Animation keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-up {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

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

.animate-slide-down {
    animation: slide-down 0.5s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-float-delay {
    animation: float 6s ease-in-out 1s infinite;
}

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

.animate-slide-right {
    animation: slide-right 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slide-left 0.8s ease-out forwards;
}

@keyframes slide-right {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

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

.filter {
    filter: var(--tw-filter);
}

.blur-3xl {
    --tw-blur: blur(64px);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

/* DNA Helix Animation */
.dna-helix {
    position: relative;
    width: 100%;
    height: 100%;
    animation: rotate-dna 20s linear infinite;
}

.dna-ladder {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(249, 115, 22, 0.7), rgba(249, 115, 22, 0));
    transform: translateX(-50%);
}

.rung {
    position: absolute;
    width: 30px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.rung-1 {
    top: 8%;
    animation: pulse-rung 2s ease-in-out infinite;
}

.rung-2 {
    top: 16%;
    animation: pulse-rung 2s ease-in-out 0.2s infinite;
}

.rung-3 {
    top: 24%;
    animation: pulse-rung 2s ease-in-out 0.4s infinite;
}

.rung-4 {
    top: 32%;
    animation: pulse-rung 2s ease-in-out 0.6s infinite;
}

.rung-5 {
    top: 40%;
    animation: pulse-rung 2s ease-in-out 0.8s infinite;
}

.rung-6 {
    top: 48%;
    animation: pulse-rung 2s ease-in-out 1.0s infinite;
}

.rung-7 {
    top: 56%;
    animation: pulse-rung 2s ease-in-out 1.2s infinite;
}

.rung-8 {
    top: 64%;
    animation: pulse-rung 2s ease-in-out 1.4s infinite;
}

.rung-9 {
    top: 72%;
    animation: pulse-rung 2s ease-in-out 1.6s infinite;
}

.rung-10 {
    top: 80%;
    animation: pulse-rung 2s ease-in-out 1.8s infinite;
}

.rung-11 {
    top: 88%;
    animation: pulse-rung 2s ease-in-out 2.0s infinite;
}

.rung-12 {
    top: 96%;
    animation: pulse-rung 2s ease-in-out 2.2s infinite;
}

@keyframes rotate-dna {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes pulse-rung {

    0%,
    100% {
        width: 30px;
        opacity: 0.5;
    }

    50% {
        width: 40px;
        opacity: 0.8;
    }
}

/* Molecule Animations */
.molecule {
    position: relative;
    width: 60px;
    height: 60px;
    animation: float 10s ease-in-out infinite;
}

.molecule-1 {
    animation-duration: 12s;
}

.molecule-2 {
    animation-duration: 15s;
    animation-delay: 2s;
}

.atom {
    position: absolute;
    border-radius: 50%;
}

.atom-center {
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.atom-orbit-1 {
    width: 10px;
    height: 10px;
    animation: orbit 3s linear infinite;
}

.atom-orbit-2 {
    width: 8px;
    height: 8px;
    animation: orbit 4s linear infinite reverse;
}

.atom-orbit-3 {
    width: 6px;
    height: 6px;
    animation: orbit 5s linear infinite;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(25px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(25px) rotate(-360deg);
    }
}

/* Floating Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.6;
}

.particle-1 {
    top: 10%;
    left: 20%;
    animation: float-particle 20s linear infinite;
}

.particle-2 {
    top: 30%;
    left: 80%;
    animation: float-particle 25s linear 2s infinite reverse;
}

.particle-3 {
    top: 60%;
    left: 40%;
    animation: float-particle 22s linear 1s infinite;
}

.particle-4 {
    top: 80%;
    left: 10%;
    animation: float-particle 28s linear 3s infinite reverse;
}

.particle-5 {
    top: 25%;
    left: 55%;
    animation: float-particle 24s linear 2.5s infinite;
}

.particle-6 {
    top: 70%;
    left: 75%;
    animation: float-particle 26s linear 1.5s infinite reverse;
}

.particle-7 {
    top: 45%;
    left: 30%;
    animation: float-particle 23s linear 3.5s infinite;
}

.particle-8 {
    top: 15%;
    left: 65%;
    animation: float-particle 27s linear 4s infinite reverse;
}

.particle-9 {
    top: 85%;
    left: 45%;
    animation: float-particle 21s linear 2.2s infinite;
}

.particle-10 {
    top: 50%;
    left: 90%;
    animation: float-particle 29s linear 1.8s infinite reverse;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(100px, 50px);
    }

    50% {
        transform: translate(50px, 100px);
    }

    75% {
        transform: translate(-50px, 50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Ultra Modern Slider Styles */
.ultra-modern-slide {
    height: 100%;
    width: 100%;
}

.slider-dot {
    padding: 4px;
    cursor: pointer;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    z-index: 20;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.slider-nav-btn:hover .slider-nav-btn-bg {
    background: rgba(249, 115, 22, 0.4);
}

.progress-bar {
    transition: width 6s linear;
}

.shadow-glow {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.feature-tag {
    animation: tag-float 3s ease-in-out infinite;
}

.feature-tag:nth-child(odd) {
    animation-duration: 4s;
}

@keyframes tag-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.three-d-image-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
    height: 400px;
}

.three-d-image-container {
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.5s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes mirrorWave {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-45deg);
    }
    100% {
        transform: translateX(200%) skewX(-45deg);
    }
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: translateX(-100%) skewX(-45deg);
    pointer-events: none;
    z-index: 10;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

@keyframes slide {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

:root {
    --primary-500: #F97316;
    --primary-600: #EA580C;
    --primary-700: #C2410C;
    --primary-50: #FFF7ED;
    --primary-100: #FFEDD5;
}

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

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

@keyframes fade-right {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.animate-fade-right {
    animation: fade-right 0.8s ease-out;
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fade-up 0.8s ease-out;
}

/* Using direct utility classes instead of @apply */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-500);
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.btn-primary:hover {
    background-color: var(--primary-600);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}