/* 
    Modern Styles for Boat Website 
    
    This file contains all styling for the single-page website.
    Note: Most basic styling is handled by Bootstrap. 
    This file contains custom styling to enhance the template.
*/

/* General Styles (from styles.css) */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Image Styles (for placeholder images) */
.img-placeholder {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Card Hover Effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* Section Styling */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-dark {
    background-color: var(--bs-dark);
    color: white;
}

/* Navigation Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    position: relative;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

/* Responsive hero section */
@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
    
    .hero-section .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* Features Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Feature Images with consistent sizing */
.feature-image-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-card-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Product Gallery - Multi-Product Display */
.product-gallery-carousel {
    margin-bottom: 40px;
    position: relative;
}

.product-gallery-carousel .carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    padding: 20px 0;
}

.product-gallery-carousel .carousel-item {
    padding: 10px;
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    height: 300px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.product-image {
    height: 100%;
    width: 100%;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent);
    padding: 20px;
    color: white;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.product-overlay h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.product-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.product-indicators {
    position: relative;
    margin-top: 20px;
    margin-bottom: 0;
    justify-content: center;
}

.product-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    border: none;
    margin: 0 5px;
}

.product-indicators button.active {
    background-color: white;
    width: 14px;
    height: 14px;
}

/* Mobile responsiveness for product gallery */
@media (max-width: 992px) {
    .product-card {
        height: 280px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .product-card {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .product-overlay {
        padding: 15px;
    }
    
    .product-overlay h5 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .product-overlay p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .product-overlay .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .product-card {
        height: 200px;
    }
    
    .product-overlay {
        padding: 10px;
    }
}

/* Testimonials Section */
.testimonial-card {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Mobile responsiveness for testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-img {
        width: 70px;
        height: 70px;
    }
}

/* Contact Section */
.contact-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Mobile responsive contact form */
@media (max-width: 768px) {
    .contact-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        font-size: 1.75rem;
    }
    
    /* Increase tap target size for form elements on mobile */
    .form-control, .btn {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.75rem 1rem;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
}

@media (max-width: 576px) {
    .contact-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

/* Adjust back-to-top button for mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--bs-primary-darker);
}

/* Pricing Section Styles */
.pricing-row {
    position: relative;
    z-index: 1;
}

.pricing-card {
    background-color: #fff;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    background: linear-gradient(145deg, var(--bs-primary) 0%, #0f5de0 100%);
    color: white;
    transform: translateY(-10px) scale(1.03);
    z-index: 2;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured .btn-outline-primary {
    color: white;
    border-color: white;
}

.pricing-card.featured .btn-outline-primary:hover {
    background-color: white;
    color: var(--bs-primary);
}

.pricing-card.featured .pricing-features li i {
    color: white;
}

.pricing-header {
    padding: 30px 30px 0;
    text-align: center;
    position: relative;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.pricing-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
}

.pricing-card.featured .pricing-title::after {
    background-color: white;
}

.pricing-card:hover .pricing-title::after {
    width: 80px;
}

.pricing-price {
    margin: 25px 0;
    position: relative;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    top: -15px;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.pricing-price .period {
    font-size: 0.9rem;
    color: #888;
}

.pricing-card.featured .pricing-price .period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pricing-card.featured .pricing-features li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li i {
    margin-right: 10px;
    color: var(--bs-primary);
}

.pricing-features li.disabled {
    color: #999;
    text-decoration: line-through;
    opacity: 0.7;
}

.pricing-features li.disabled i {
    color: #dc3545;
}

.pricing-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    width: 120px;
    background-color: var(--bs-primary);
    color: white;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 0;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform-origin: top left;
}

.pricing-card:hover .pricing-ribbon {
    opacity: 1;
}

.pricing-card.featured .pricing-ribbon {
    background-color: #ffc107;
    color: #212529;
    opacity: 1;
    transform: rotate(45deg) translateY(0);
}

/* Pricing Animations */
@keyframes pricingAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ribbonAppear {
    0% {
        opacity: 0;
        transform: rotate(45deg) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) translateY(0);
    }
}

.pricing-row .col-md-4:nth-child(1) .pricing-card {
    animation: pricingAppear 0.6s 0.1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-row .col-md-4:nth-child(2) .pricing-card {
    animation: pricingAppear 0.6s 0.3s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-row .col-md-4:nth-child(3) .pricing-card {
    animation: pricingAppear 0.6s 0.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-card .pricing-ribbon {
    animation: ribbonAppear 0.4s 0.8s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile Responsiveness for Pricing */
@media (max-width: 992px) {
    .pricing-card {
        margin-bottom: 30px;
    }
    
    .pricing-card.featured {
        transform: translateY(0) scale(1.03);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px) scale(1.03);
    }
}

@media (max-width: 768px) {
    .pricing-header {
        padding: 20px 20px 0;
    }
    
    .pricing-body {
        padding: 20px;
    }
    
    .pricing-price .amount {
        font-size: 3rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .gallery-carousel .carousel-item img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .gallery-carousel .carousel-item img {
        height: 300px;
    }
    
    .gallery-thumbnail {
        height: 70px;
    }
}