/* styles.css - Fixed for CodeIgniter 4 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1a2a6c;
    --secondary-color: #b21f1f;
    --accent-color: #fdbb2d;
    --text-color: white;
    --card-bg: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Loader Animations */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-slower {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.2; }
}

@keyframes pulse-medium {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.25; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(10px, -15px) scale(1.2); opacity: 1; }
    50% { transform: translate(20px, 5px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(-10px, 15px) scale(1.1); opacity: 0.8; }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(-15px, -10px) scale(1.3); opacity: 0.9; }
    66% { transform: translate(15px, 10px) scale(0.7); opacity: 0.3; }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    20% { transform: translate(12px, -8px) scale(1.1); opacity: 1; }
    40% { transform: translate(-8px, 12px) scale(0.9); opacity: 0.5; }
    60% { transform: translate(-12px, -12px) scale(1.2); opacity: 0.8; }
    80% { transform: translate(8px, 8px) scale(0.8); opacity: 0.4; }
}

/* Apply Animations */
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.animate-spin-reverse-medium {
    animation: spin-reverse 12s linear infinite;
}

.animate-spin-slower {
    animation: spin-slow 20s linear infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-pulse-slower {
    animation: pulse-slower 6s ease-in-out infinite;
}

.animate-pulse-medium {
    animation: pulse-medium 5s ease-in-out infinite;
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid transparent;
    white-space: nowrap;
    display: inline-block;
}

.typing-cursor {
    animation: blink 1s infinite;
}

/* Floating animations */
.animate-float-1 { animation: float-1 3.5s ease-in-out infinite; animation-delay: 0.2s; }
.animate-float-2 { animation: float-2 4s ease-in-out infinite; animation-delay: 0.4s; }
.animate-float-3 { animation: float-3 4.5s ease-in-out infinite; animation-delay: 0.6s; }
.animate-float-4 { animation: float-1 5s ease-in-out infinite; animation-delay: 0.8s; }
.animate-float-5 { animation: float-2 4.2s ease-in-out infinite; animation-delay: 1s; }
.animate-float-6 { animation: float-3 4.8s ease-in-out infinite; animation-delay: 1.2s; }
.animate-float-7 { animation: float-1 5.2s ease-in-out infinite; animation-delay: 1.4s; }
.animate-float-8 { animation: float-2 4.6s ease-in-out infinite; animation-delay: 1.6s; }

/* Particle positions */
.particle-1 { left: 20%; top: 30%; }
.particle-2 { left: 70%; top: 20%; }
.particle-3 { left: 40%; top: 70%; }
.particle-4 { left: 80%; top: 60%; }
.particle-5 { left: 30%; top: 40%; }
.particle-6 { left: 60%; top: 80%; }
.particle-7 { left: 50%; top: 20%; }
.particle-8 { left: 25%; top: 75%; }

/* Quantum Loader Styles */
#quantum-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;
    transition: opacity 0.5s ease, transform 0.5s ease;
    backdrop-filter: blur(10px);
}

#quantum-loader.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.-inset-10 { inset: -2.5rem; }
.-inset-4 { inset: -1rem; }
.-inset-8 { inset: -2rem; }
.-inset-12 { inset: -3rem; }
.-inset-16 { inset: -4rem; }
.top-0 { top: 0; }
.left-1-2 { left: 50%; }
.top-1-4 { top: 25%; }
.left-1-4 { left: 25%; }
.top-3-4 { top: 75%; }
.right-1-4 { right: 25%; }
.bottom-1-4 { bottom: 25%; }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.min-h-screen { min-height: 100vh; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.w-40 { width: 10rem; }
.h-40 { height: 10rem; }
.w-28 { width: 7rem; }
.h-28 { height: 7rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-1 { width: 0.25rem; }
.h-1 { height: 0.25rem; }
.w-64 { width: 16rem; }
.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: #10b981; }
.bg-warning { background-color: #f59e0b; }
.bg-white { background-color: white; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.from-primary { 
    --tw-gradient-from: var(--primary-color);
    --tw-gradient-to: rgba(26, 42, 108, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-purple-600 { --tw-gradient-to: #9333ea; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border-2 { border-width: 2px; }
.border-primary { border-color: var(--primary-color); }
.border-success { border-color: #10b981; }
.border-warning { border-color: #f59e0b; }
.border-t-transparent { border-top-color: transparent; }
.border-primary-30 { border-color: rgba(26, 42, 108, 0.3); }
.border-success-20 { border-color: rgba(16, 185, 129, 0.2); }
.border-warning-15 { border-color: rgba(245, 158, 11, 0.15); }
.text-white { color: white; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-400 { color: #9ca3af; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-15 { opacity: 0.15; }
.opacity-30 { opacity: 0.3; }
.opacity-60 { opacity: 0.6; }
.opacity-50 { opacity: 0.5; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-9999 { z-index: 9999; }
.mb-8 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.p-2 { padding: 0.5rem; }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.rotate-0 { --tw-rotate: 0deg; }
.hover-rotate-180:hover { --tw-rotate: 180deg; }
.translate-x-1-2 { --tw-translate-x: -50%; }
.translate-y-1-2 { --tw-translate-y: -50%; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-1000 { transition-duration: 1000ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.filter { 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); }
.blur-xl { --tw-blur: blur(24px); }
.text-center { text-align: center; }
.hover-bg-gray-200:hover { background-color: #e5e7eb; }

/* Sound toggle states */
#sound-toggle.muted { opacity: 0.5; }

/* Main Content Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    padding: 0 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
    font-weight: 700;
    line-height: 1.2;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slides-container {
    position: relative;
    width: 100%;
    max-width: min(90vw, 800px);
    height: min(80vh, 600px);
    margin: 0 auto 3rem;
    perspective: 1000px;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateZ(-100px) rotateY(0deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
               opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg);
}

.slide.prev {
    opacity: 0.6;
    transform: translateZ(-50px) rotateY(-15deg);
}

.slide.next {
    opacity: 0.6;
    transform: translateZ(-50px) rotateY(15deg);
}

.circle-image {
    width: min(60vw, 280px);
    height: min(60vw, 280px);
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    position: relative;
    animation: float 6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide:hover .circle-image img {
    transform: scale(1.08);
}

.slide-content {
    text-align: center;
    width: 100%;
    max-width: min(90vw, 600px);
}

.slide-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    line-height: 1.3;
}

.slide-text {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 400;
    max-width: 90%;
    margin: 0 auto;
}

.slide-indicators {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-wrap: wrap;
}

.indicator {
    width: clamp(10px, 3vw, 14px);
    height: clamp(10px, 3vw, 14px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    width: clamp(40px, 10vw, 55px);
    height: clamp(40px, 10vw, 55px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: clamp(0.5rem, 2vw, 1rem);
}

.next-btn {
    right: clamp(0.5rem, 2vw, 1rem);
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    width: 100%;
    padding: 0 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #ff8a00, #da1b60);
    color: white;
    text-decoration: none;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    min-height: 60px;
    letter-spacing: 0.5px;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff9a00, #e91e63);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    opacity: 0.8;
    width: 100%;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 0.5rem;
    }
    
    .slides-container {
        height: min(70vh, 500px);
        margin-bottom: 2rem;
    }
    
    .circle-image {
        width: min(50vw, 200px);
        height: min(50vw, 200px);
        margin-bottom: 1.5rem;
    }
    
    .slide {
        padding: 1.5rem;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    .slides-container {
        height: min(65vh, 450px);
        margin-bottom: 1.5rem;
    }
    
    .circle-image {
        width: min(45vw, 160px);
        height: min(45vw, 160px);
        margin-bottom: 1rem;
    }
    
    .slide {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .slide-title {
        margin-bottom: 0.8rem;
    }
    
    .cta-button {
        min-height: 55px;
        width: 90%;
        max-width: 300px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .circle-image {
        width: 140px;
        height: 140px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .slide:hover .circle-image img {
        transform: none;
    }
    
    .nav-btn:hover {
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .cta-button:hover {
        transform: none;
    }
}

/* Add this to your styles.css file */
#loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #9333ea);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
    .circle-image {
        border-width: 3px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}