/* Additional CSS for Ceres Pacifica Website */

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    top: 20px;
    right: 20px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Animation classes */
.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.timeline-item:nth-child(even) {
    transform: translateX(30px);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.dashboard-card, .module-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.dashboard-card.animate, .module-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Form validation styles */
.error-input {
    border: 1px solid var(--danger) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

.success-message {
    background-color: var(--success);
    color: white;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
}

/* Active navigation styles */
nav ul li a.active {
    color: var(--accent);
}

nav ul li a.active::after {
    width: 100%;
}

/* Responsive styles enhancement */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: all 0.3s ease;
        z-index: 90;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin-bottom: 20px;
    }
    
    .logo-container {
        z-index: 100;
    }
    
    .dashboard-mockup {
        font-size: 0.7rem;
    }
}

/* Print styles */
@media print {
    header, footer, .btn, .page-header {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .content-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .section-header h2::after {
        display: none;
    }
}

/* Image gallery styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 10px;
    background-color: white;
    text-align: center;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
}

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

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* PDF download button enhancement */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download::before {
    content: "📄";
    margin-right: 8px;
}

/* Service details page styles */
.service-detail-header {
    background-color: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.service-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-detail-content {
    padding: 60px 0;
}

.service-detail-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.service-detail-content p {
    margin-bottom: 15px;
}

.service-detail-content ul {
    margin-bottom: 20px;
    margin-left: 20px;
}

.service-detail-content li {
    margin-bottom: 8px;
}

.service-detail-image {
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-detail-image img {
    width: 100%;
    display: block;
}

/* Testimonials section */
.testimonials {
    background-color: var(--light);
    padding: 60px 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent);
    position: absolute;
}

.testimonial-content::before {
    top: -10px;
    left: -15px;
}

.testimonial-content::after {
    bottom: -30px;
    right: -15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
}

.testimonial-company {
    color: var(--secondary);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-nav-dot.active {
    background-color: var(--accent);
}

/* FAQ section */
.faq-section {
    padding: 60px 0;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: var(--light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}
