/* Custom CSS for Cici Doktorum Landing Page */

/* Font Family */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF4B55;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF6B75;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Transitions */
#header {
    transition: all 0.3s ease;
    transform: translateY(0) !important;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure header is always visible on mobile */
@media (max-width: 768px) {
    #header {
        transform: translateY(0) !important;
    }
}

/* Hero Section Enhancements */
#hero {
    background: linear-gradient(135deg, #FF4B55 0%, #FF6B75 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #FF4B55, #FF6B75);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 75, 85, 0.3);
}

/* Hero Section Enhancements */
#hero {
    background: #f9fafb;
    position: relative;
}

#hero .hero-container {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 50%, #eff6ff 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

#hero .hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23a855f7" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ec4899" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%233b82f6" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23a855f7" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23ec4899" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -4s;
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.active {
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(45deg);
}

/* Form Enhancements */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 75, 85, 0.1);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .card-padding {
        padding: 1.5rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .parallax {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-float {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .dark-mode .bg-white {
        background-color: #2a2a2a;
    }
    
    .dark-mode .text-gray-900 {
        color: #ffffff;
    }
    
    .dark-mode .text-gray-600 {
        color: #cccccc;
    }
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, #FF4B55, #FF6B75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #FF4B55, #FF6B75);
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(255, 75, 85, 0.1);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FF4B55, #FF6B75) border-box;
}

/* Focus States for Accessibility */
.focus-visible:focus {
    outline: 2px solid #FF4B55;
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #FF4B55;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Error States */
.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FF4B55;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 75, 85, 0.2);
    z-index: 1000;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #FF4B55, #FF6B75);
    width: var(--scroll-width, 0%);
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #FF4B55;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #FF6B75;
    transform: translateY(-2px);
}

/* Custom Selection */
::selection {
    background: rgba(255, 75, 85, 0.2);
    color: #1a1a1a;
}

::-moz-selection {
    background: rgba(255, 75, 85, 0.2);
    color: #1a1a1a;
}

/* Hero Container Responsive Styles */
@media (max-width: 768px) {
    #hero .mx-auto {
        width: 98% !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero .mx-auto {
        width: 98% !important;
    }
}

/* Logos Slider Container Styles */
.logos-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.logos-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.logos-slider-container.is-dragging {
    scroll-behavior: auto;
}

.logos-slider-track {
    display: flex;
}

.logos-slider-track > div {
    flex-shrink: 0;
    user-select: none;
}

/* How It Works Interactive Section */
.how-it-works-step {
    transition: all 0.3s ease;
}

.how-it-works-step.active .w-12 {
    background-color: #FF4B55 !important;
}

.how-it-works-step.active i {
    color: #FF4B55 !important;
}

.how-it-works-step.active {
    background-color: rgba(255, 75, 85, 0.05);
    border-radius: 1rem;
}

.how-it-works-step:hover {
    transform: translateX(8px);
}

.how-it-works-step:hover .w-12 {
    background-color: #FF4B55 !important;
    transform: scale(1.1);
}

.how-it-works-step:hover i {
    color: #FF4B55 !important;
}

/* Visual Content Transitions */
.visual-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.visual-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.how-it-works-visual {
    position: relative;
    height: 24rem; /* h-96 equivalent */
    overflow: hidden;
}

/* Step Number Animations */
.how-it-works-step .w-12 {
    transition: all 0.3s ease;
}

.how-it-works-step.active .w-12 {
    animation: pulse 2s infinite;
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .how-it-works-visual {
        height: 20rem;
    }
    
    .how-it-works-step:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .how-it-works-visual {
        height: 18rem;
        margin-top: 2rem;
    }
    
    .visual-content .w-64 {
        width: 16rem;
        height: 20rem;
    }
    
    .how-it-works-step {
        margin-bottom: 1rem;
    }
}

/* Enhanced Phone Mockup Styles */
.visual-content .w-64 {
    transition: all 0.3s ease;
}

.visual-content.active .w-64 {
    animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Step Icon Animations */
.how-it-works-step i {
    transition: all 0.3s ease;
}

.how-it-works-step:hover i {
    transform: scale(1.2);
}

/* Visual Content Background Gradients */
.visual-content[data-visual="1"] {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
}

.visual-content[data-visual="2"] {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}

.visual-content[data-visual="3"] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.visual-content[data-visual="4"] {
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%);
}

.visual-content[data-visual="5"] {
    background: linear-gradient(135deg, #faf5ff 0%, #e0e7ff 100%);
}
