/* Custom Gradient for Navbar/Header */
.bg-gradient-custom {
    background: linear-gradient(to right, #2563EB, #7C3AED); /* Blue to Purple */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll for animations */
}

/* Header & Footer */
header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff !important;
}

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

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* Section Styling for Fade-in */
section {
    padding: 60px 0;
    /* Re-evaluate these properties if still an issue after removing fade-in-section from Login.cshtml */
    /* opacity: 0; */ 
    /* transform: translateY(20px); */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hero Carousel Customizations (optional, Bootstrap handles most) */
.carousel-item img {
    max-height: 500px; /* Limit height for hero images */
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
}

/* Value Cards (for "Freelancing & Web API Projection") */
.value-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height in a row */
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.value-card i {
    font-size: 3em;
    color: #2563EB; /* Primary blue */
    margin-bottom: 15px;
}

/* Workflow Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ddd;
    margin-left: -1px;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

.timeline-item:nth-child(odd) {
    padding-right: 30px;
    text-align: right;
}

.timeline-item-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    position: relative;
}

.timeline-item-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-item-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

.timeline-item:nth-child(even) .timeline-item-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

.timeline-item-icon {
    width: 40px;
    height: 40px;
    background: #7C3AED; /* Primary purple */
    border-radius: 50%;
    position: absolute;
    top: 15px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2em;
}

.timeline-item:nth-child(odd) .timeline-item-icon {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-item-icon {
    left: -20px;
}

/* Call to Action Button */
.cta-button {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    color: #fff; /* Keep text white on hover */
}

/* Pricing Page */
.pricing-card {
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    background-color: #fff;
}

.pricing-card h2 {
    color: #2563EB;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.pricing-card .price {
    font-size: 3em;
    font-weight: bold;
    color: #7C3AED;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: #555;
}

.pricing-card ul li i {
    color: #28a745; /* Green checkmark */
    margin-right: 10px;
}

/* Request Quote Form */
.form-section {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-label {
    font-weight: 600;
    color: #444;
}

.btn-primary-custom {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    background: linear-gradient(to right, #1d4ed8, #6d2ed1); /* Slightly darker gradient on hover */
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}
.toast-body {
    background-color: #28a745; /* Success color */
    color: white;
}
.toast-header {
    background-color: #28a745;
    color: white;
    border-bottom: none;
}
.toast-header .btn-close {
    filter: invert(1); /* Makes close button white */
}

/* Adjustments for small screens */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px; /* Adjust padding for content */
        padding-right: 20px; /* Add some right padding */
        left: 0; /* Align all items to the left */
    }

    /* Ensure odd and even items behave the same on mobile */
    .timeline-item:nth-child(even) {
        left: 0; /* Override desktop 50% left */
        padding-left: 60px; /* Keep consistent padding */
    }

    .timeline-item:nth-child(odd) {
        text-align: left; /* Override desktop right alignment */
        padding-right: 20px; /* Keep consistent padding */
    }

    /* Adjust icon positions */
    .timeline-item-icon {
        left: 20px; /* Align with the timeline line */
        right: auto; /* Remove right positioning */
        transform: translateX(-50%); /* Center on the line */
    }
    .timeline-item:nth-child(odd) .timeline-item-icon,
    .timeline-item:nth-child(even) .timeline-item-icon {
        left: 20px; /* Ensure both odd/even icons are aligned */
        right: auto;
    }

    /* Adjust content arrow positions */
    .timeline-item-content::before {
        left: -10px; /* Arrow for left-aligned content */
        right: auto; /* Remove right positioning */
        border-width: 10px 10px 10px 0; /* Arrow pointing right */
        border-color: transparent #fff transparent transparent;
    }
    .timeline-item:nth-child(odd) .timeline-item-content::before {
        left: -10px; /* Ensure odd item's arrow is also left-aligned */
        right: auto;
    }

}

.login-card {
    max-width: 420px;
    width: 100%;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}
