/* 
 * Custom CSS for Seabed Marine Consultancy
 * Supplements Tailwind CSS styling
 */

:root {
    --color-navy: #001f3f;
    --color-teal: #008080;
    --color-light-teal: #20b2aa;
    --color-white: #ffffff;
    --color-light-gray: #f9fafb;
}

/* General Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Navigation Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

/* Cards with Hover Effects */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-light-teal) 100%);
}

/* Form Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
    border-color: var(--color-teal);
}

/* Button Styling */
button,
a.btn,
input[type="submit"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover,
a.btn:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-teal);
    color: var(--color-white);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Alert Styling */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--color-teal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-navy);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 128, 128, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-teal);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Links */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-light-teal);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Custom Utilities */
.link-teal {
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.link-teal:hover {
    color: var(--color-navy);
}

.gradient-navy-teal {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
}

.shadow-teal {
    box-shadow: 0 4px 20px rgba(0, 128, 128, 0.15);
}

.border-teal-top {
    border-top: 4px solid var(--color-teal);
}

/* Icon Styling */
.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
}

/* Logo Styling - Remove Black Background */
img[alt*="Seabed Marine"] {
    background: transparent !important;
    object-fit: contain;
}
