/* Coastalya Custom CSS */

:root {
    --primary-color: #61A3BA;
    --accent-color: #FFFFDD;
    --soft-accent: #D2DE32;
    --secondary-color: #A2C579;
    --dark-blue: #2C5F7C;
    --light-blue: #E8F4F8;
    --white: #FFFFFF;
    --dark: #333333;
    --gray: #666666;
    --light-gray: #F8F9FA;
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gentium Basic', serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--soft-accent), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 300;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-consent a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(44, 95, 124, 0.95), rgba(97, 163, 186, 0.95));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(44, 95, 124, 0.98);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Gentium Basic', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

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

.wave-decoration {
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,120 900,0 1200,60 L1200,120 L0,120 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}

.wave-decoration.top {
    top: 0;
    transform: rotate(180deg);
}

.wave-decoration.bottom {
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 6rem 0;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
    position: relative;
    animation: fadeInLeft 1s ease 0.6s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--soft-accent), var(--secondary-color));
    border-radius: 2rem;
    z-index: -1;
    opacity: 0.3;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--soft-accent), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 222, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 222, 50, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--soft-accent));
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.navbar-brand img{
    max-width: 200px;
    width: 200px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}

/* Explore Waters Section */
.explore-waters {
    background: var(--light-gray);
    position: relative;
}

.interactive-map {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.canada-map {
    width: 100%;
    height: auto;
}

.region {
    cursor: pointer;
    transition: all 0.3s ease;
}

.region:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.location-marker {
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.map-info {
    padding-left: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    display: none;
}

.info-card.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '⚓';
    position: absolute;
    left: 0;
    color: var(--soft-accent);
}

/* Fleet Gallery */
.fleet-gallery {
    background: linear-gradient(135deg, var(--light-blue), white);
    position: relative;
}

.droplet-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Ccircle cx='20' cy='10' r='2' fill='%2361A3BA' opacity='0.1'/%3E%3Ccircle cx='80' cy='5' r='1.5' fill='%23D2DE32' opacity='0.15'/%3E%3Ccircle cx='60' cy='15' r='1' fill='%23A2C579' opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.fleet-swiper {
    padding: 2rem 0;
}

.yacht-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.yacht-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.yacht-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

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

.yacht-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(97, 163, 186, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yacht-card:hover .yacht-overlay {
    opacity: 1;
}

.view-btn {
    background: white;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.1);
    color: var(--soft-accent);
}

.yacht-info {
    padding: 2rem;
}

.yacht-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.yacht-specs {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.yacht-specs span {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--soft-accent);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

/* Captain's Diary */
.captains-diary {
    background: var(--white);
}

.diary-card {
    background: linear-gradient(135deg, var(--light-blue), white);
    border-radius: 1.5rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 5px solid var(--soft-accent);
}

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

.diary-date {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
    text-align: center;
    padding: 1rem;
    margin-bottom: 0;
}

.diary-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.diary-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.diary-content {
    padding: 2rem;
}

.diary-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.diary-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diary-meta span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Why Choose Section */
.why-choose {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.svg-decoration {
    position: absolute;
    top: 50px;
    right: 100px;
    opacity: 0.1;
    z-index: 1;
}

.floating-anchor {
    width: 150px;
    height: 150px;
    animation: float 6s ease-in-out infinite;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.feature-icon {
    background: linear-gradient(135deg, var(--soft-accent), var(--accent-color));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

/* Wave Reviews */
.wave-reviews {
    background: var(--light-gray);
    position: relative;
}

.wave-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,0 C300,60 900,60 1200,0 L1200,60 C900,120 300,120 0,60 Z' fill='%2361A3BA' opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

.review-card {
    /* background: white; */
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 3px solid transparent;
    /* background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-color), var(--soft-accent)); */
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.review-stars {
    margin-bottom: 1.5rem;
}

.review-stars i {
    color: var(--soft-accent);
    font-size: 1.2rem;
    margin-right: 0.2rem;
}

.review-card p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--dark);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-blue);
}

.review-author h5 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.review-author span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Eco & Safety Promise */
.eco-safety {
    background: linear-gradient(135deg, var(--light-blue), white);
}

.promise-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.promise-item:hover {
    transform: translateY(-5px);
}

.promise-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--soft-accent));
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.promise-item:hover .promise-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.promise-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.promise-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* Route Visualizer */
.route-visualizer {
    background: var(--white);
    padding: 5rem 0;
}

.route-map {
    background: linear-gradient(135deg, var(--light-blue), rgba(255, 255, 255, 0.8));
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.animated-route-map {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.port-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}



.port-marker text {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
}

.route-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 5px solid var(--primary-color);
}

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

.route-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.route-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.route-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.route-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.route-details span {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), #1a3f52);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--soft-accent);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: 'Kanit', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--soft-accent);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 3rem 0 2rem;
}

.footer-copyright,
.footer-contact {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--soft-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .map-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .yacht-specs,
    .route-details {
        justify-content: center;
    }
    
    .diary-meta {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }

    nav + section{
        padding-top: 140px;
        padding-bottom: 60px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--soft-accent);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-title::after {
        background: var(--dark);
    }
    
    .btn-primary {
        border: 2px solid var(--dark);
    }
    
    .feature-card,
    .review-card,
    .route-card {
        border: 2px solid var(--dark);
    }
}