/* Ports & Offshore - Main Stylesheet */

/* ===================================
   COLOR THEME SYSTEM
   ===================================
   
   Teal Theme - #20B2AA
   Professional teal color scheme for modern maritime look
   
   =================================== */

:root {
    /* Teal Theme */
    --primary-color: #20B2AA;
    --primary-hover: #14b8a6;
    --primary-light: rgba(32, 178, 170, 0.1);
    --primary-shadow: rgba(32, 178, 170, 0.4);
    --primary-glow: rgba(32, 178, 170, 0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Color Classes */
.custom-navy { color: #002B5B; }
.bg-custom-navy { background-color: #002B5B; }
.custom-steel { color: #4F4F4F; }
.bg-custom-steel { background-color: #4F4F4F; }
.custom-teal { color: var(--primary-color); }
.bg-custom-teal { background-color: var(--primary-color); }

/* Override Tailwind Teal with Theme Color */
.hover\:text-teal-600:hover { color: var(--primary-color) !important; }
.hover\:text-teal-400:hover { color: var(--primary-color) !important; }
.hover\:bg-teal-600:hover { background-color: var(--primary-hover) !important; }
.text-custom-teal { color: var(--primary-color); }

/* Background Images */
.hero-bg {
    background: linear-gradient(rgba(0, 43, 91, 0.7), rgba(0, 43, 91, 0.7)),
                url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-banner-bg {
    background: linear-gradient(rgba(0, 43, 91, 0.8), rgba(0, 43, 91, 0.8)),
                url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-shadow);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Image loading fallback */
img {
    background-color: #f3f4f6;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23002B5B" stroke-width="1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21,15 16,10 5,21"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px;
    transition: opacity 0.3s ease;
}

/* Image loading states */
img[src] {
    opacity: 1;
}

img:not([src]), img[src=""] {
    opacity: 0.6;
}

/* Fallback placeholder for missing images */
.image-fallback {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px dashed #d1d5db;
}

/* Icon fallback styling */
.service-icon {
    font-size: 3rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure Font Awesome loads */
i[class*="fa-"]:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Modern animations for Why Choose Us section */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-float-delayed-2 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-delayed-3 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pulse-glow {
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Newsletter Section */
.newsletter-bg {
    background: linear-gradient(135deg, #002B5B, var(--primary-color));
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Form Styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Fleet Status Badges */
.status-available {
    background-color: #10b981;
    color: white;
}

.status-on-charter {
    background-color: #ef4444;
    color: white;
}

.status-maintenance {
    background-color: #f59e0b;
    color: white;
}

/* Vessel Card Enhancements */
.vessel-card {
    transition: all 0.3s ease;
}

.vessel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Button Styling */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Feature Card Improvements */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* Filter Button Styles */
.filter-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Facility Card Animations */
.facility-card {
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.facility-card.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Filter Results Counter */
.filter-results {
    color: #4F4F4F;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

/* Theme switcher removed - single teal theme only */

/* Floating Acation Buttons */
.float-button {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    color: white;
}

.float-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.float-button i {
    color: white;
}

/* WhatsApp Button - Bottom Right (First) */
.whatsapp-float {
    right: 20px;
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
}

/* Calendar Button - Bottom Right (Second, above WhatsApp) */
.calendar-float {
    right: 20px;
    bottom: 90px;
    background: #0d9488;
    animation: calendar-pulse 2s infinite 0.5s;
}

.calendar-float:hover {
    background: #0f766e;
}

/* Pulse animations */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

@keyframes calendar-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 148, 136, 0.7), 0 0 0 10px rgba(13, 148, 136, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .vessel-card {
        margin-bottom: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .float-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
    }
    
    .whatsapp-float {
        right: 15px;
    }
    
    .calendar-float {
        right: 15px;
        bottom: 75px;
    }
}
