/* Custom CSS for FinCepto Solutions Website */

/* CSS Variables */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --background-color: #f8fafc;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* Custom Bootstrap Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #059669;
    border-color: #059669;
    color: white;
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-image.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

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

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

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

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Solution Cards */
.solution-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.solution-image {
    height: 200px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-image img {
    transform: scale(1.1);
}

.solution-icon i {
    font-size: 2.5rem;
}

/* About Section */
.about-image img {
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    border: 1px solid #e5e7eb;
}

.testimonial-quote i {
    opacity: 0.1;
}

/* Contact Form */
.contact-form {
    border: 1px solid #e5e7eb;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .feature-icon i,
    .solution-icon i {
        font-size: 2rem;
    }
    
    .about-content {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.border-secondary {
    border-color: #374151 !important;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--accent-color);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}



/* Carousel Styles */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active.carousel-item-start,
.carousel-fade .carousel-item.active.carousel-item-end {
    transform: translateX(0);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100% 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
}

/* Video Section Styles */
.video-container {
    position: relative;
    background: #000;
    border: 3px solid var(--accent-color);
    aspect-ratio: 16/9; /* Keeps responsive height */
    overflow: hidden;
}

/* Video Element */
.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Placeholder Image or Overlay */
.video-placeholder {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder:hover .video-play-button i {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Play Button */
.video-play-button i {
    font-size: 5rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.play-button-large {
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-overlay {
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.5) !important;
}

.video-overlay:hover .play-button-large {
    transform: scale(1.1);
    color: var(--accent-color) !important;
}

/* Features Under Video */
.video-feature {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.video-feature:hover {
    transform: translateY(-5px);
}

.video-feature:hover i {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-container {
        aspect-ratio: 4/3; /* Taller ratio for mobile */
    }

    .video-play-button i {
        font-size: 3rem;
    }

    .play-button-large {
        font-size: 3rem !important;
    }

    .video-feature {
        margin-bottom: 2rem;
    }
}

/* Testimonial Carousel Styles */
#testimonialsCarousel .carousel-indicators {
    bottom: -50px;
}

#testimonialsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-quote-icon {
    opacity: 0.8;
}

.author-avatar {
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

.rating i {
    font-size: 1rem;
    margin: 0 1px;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-icon:hover {
    transform: scale(1.1);
}

/* Video Info Overlay Styles */
.video-info-overlay {
    transition: all 0.3s ease;
}

.video-element:hover + .video-info-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.9)) !important;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        margin: 0 1rem;
    }
    
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-icon {
        width: 40px;
        height: 40px;
    }
    
    #testimonialsCarousel .carousel-indicators {
        bottom: -40px;
    }
}

