/* Main CSS for AutoPresent Website */

/* Base Styles */
body {
    font-family: 'Raleway', sans-serif;
    background-color: #F9F9F9;
}

/* Navigation Styles */
.nav-active {
    color: #286B7C;
    font-weight: 700;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease-in-out;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-container img {
    max-height: 56px;
    width: auto;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-container img {
        max-height: 48px;
    }
}

/* Animation styles */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.carousel-slide {
    display: none;
    transition: opacity 1s ease-in-out;
}

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

.carousel-glare {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: glare 5s infinite 2s;
}

@keyframes glare {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* Video Styles */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom Carousel Styles */
.custom-carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.custom-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8) rotateY(20deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.custom-carousel-slide.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    z-index: 2;
}

.custom-carousel-slide.prev {
    opacity: 0.7;
    transform: scale(0.9) rotateY(-15deg) translateX(-30%);
    z-index: 1;
}

.custom-carousel-slide.next {
    opacity: 0.7;
    transform: scale(0.9) rotateY(15deg) translateX(30%);
    z-index: 1;
}

.custom-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Pagination Dots */
.custom-carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 0;
}

.custom-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.custom-pagination-dot:hover {
    background-color: #94A3B8;
    transform: scale(1.2);
}

.custom-pagination-dot.active {
    background-color: #286B7C;
    transform: scale(1.3);
    border-color: #286B7C;
    box-shadow: 0 0 0 4px rgba(40, 107, 124, 0.2);
}

/* Caption Animation */
#custom-carousel-caption {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#custom-carousel-caption.fade-out {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-carousel-wrapper {
        height: 300px;
    }
    
    .custom-carousel-slide.prev {
        transform: scale(0.85) rotateY(-10deg) translateX(-20%);
    }
    
    .custom-carousel-slide.next {
        transform: scale(0.85) rotateY(10deg) translateX(20%);
    }
}

/* Particles Background Styles */
#particles-js {
    background: linear-gradient(135deg, #F9F9F9 0%, #E2E8F0 100%);
}

#particles-js canvas {
    display: block;
    vertical-align: bottom;
}

/* Ensure content is above particles */
.relative.z-10 {
    position: relative;
    z-index: 10;
}

/* Header background for particles page */
#header {
    backdrop-filter: none;
    background-color: transparent;
    border-bottom: none;
}

/* Modal Styles */
.modal {
    transition: opacity 0.3s ease-in-out;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-close {
    transition: all 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Modal scrollbar styling */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .swiper-slide {
        width: 280px;
        height: 210px;
    }
    
    /* Reduce particles on mobile for better performance */
    #particles-js {
        opacity: 0.7;
    }
    
    /* Mobile modal adjustments */
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 8rem);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    /* Mobile navigation improvements */
    #mobile-menu {
        transition: all 0.3s ease-in-out;
    }
    
    #mobile-menu.hidden {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    #mobile-menu:not(.hidden) {
        max-height: 400px;
        opacity: 1;
    }
    
    /* Mobile carousel adjustments */
    .custom-carousel-wrapper {
        height: 250px;
    }
    
    .custom-carousel-slide.prev {
        transform: scale(0.8) rotateY(-5deg) translateX(-15%);
    }
    
    .custom-carousel-slide.next {
        transform: scale(0.8) rotateY(5deg) translateX(15%);
    }
    
    /* Mobile text adjustments */
    .text-5xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .text-6xl {
        font-size: 3rem;
        line-height: 1.2;
    }
}

/* Animate.css customizations */
.animate__fadeIn {
    animation-duration: 1.2s;
    animation-delay: 0.3s;
}

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.stagger-animation.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid items */
.stagger-animation:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation:nth-child(4) { transition-delay: 0.4s; }

/* About page specific styles */
.bg-\[\#286B7C\] {
    background-color: rgba(40, 107, 124, 0.95) !important;
}

#particles-js {
    z-index: 1 !important;
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .custom-carousel-wrapper {
        height: 200px;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
}

/* Button Animation Styles */
.btn-style700 {
    position: relative;
    border: 1px solid #979695;
    color: #979695;
    background: transparent;
    transition: all 0.35s ease;
    overflow: hidden;
}

.btn-style700::before,
.btn-style700::after {
    position: absolute;
    top: 0;
    left: 0;
    border-color: #286B7C;
    border-radius: inherit;
    border-style: solid;
    transition: all 0.35s;
    content: "";
    z-index: 1;
}

.btn-style700::before {
    width: 0;
    height: 100%;
    border-width: 1px 0 1px 0;
}

.btn-style700::after {
    width: 100%;
    height: 0;
    border-width: 0 1px 0 1px;
}

.btn-style700:hover {
    border-color: #286B7C;
    color: #286B7C;
    background: transparent;
}

.btn-style700:hover::before {
    width: 100%;
    border-width: 1px 0 1px 0;
}

.btn-style700:hover::after {
    height: 100%;
    border-width: 0 1px 0 1px;
}

/* Primary button variant with background */
.btn-style700-primary {
    position: relative;
    border: 1px solid #286B7C;
    color: white;
    background: #286B7C;
    transition: all 0.35s ease;
    overflow: hidden;
}

.btn-style700-primary::before,
.btn-style700-primary::after {
    position: absolute;
    top: 0;
    left: 0;
    border-color: #286B7C;
    border-radius: inherit;
    border-style: solid;
    transition: all 0.35s;
    content: "";
    z-index: 1;
}

.btn-style700-primary::before {
    width: 0;
    height: 100%;
    border-width: 1px 0 1px 0;
}

.btn-style700-primary::after {
    width: 100%;
    height: 0;
    border-width: 0 1px 0 1px;
}

.btn-style700-primary:hover {
    border-color: #286B7C;
    color: #286B7C;
    background: transparent;
}

.btn-style700-primary:hover::before {
    width: 100%;
    border-width: 1px 0 1px 0;
}

.btn-style700-primary:hover::after {
    height: 100%;
    border-width: 0 1px 0 1px;
}
