/* 
    YMR ShipChandlers - Advanced Maritime Design
    Theme: Modern East Asian Industrial (Zen-Industrial Maritime)
    Aesthetic: Premium, Minimalist, Dockyard-Focused
*/

/* --- Design Tokens & Variables --- */
:root {
    /* Colors - Inspired by Japanese Ink, Imperial Red, and Deep Ocean */
    --primary-main: #1a1a1a;
    /* Sumi Ink Black */
    --primary-light: #2c2c2c;
    --accent-red: #d32f2f;
    /* Imperial Vermilion */
    --accent-red-hover: #b71c1c;
    --navy-base: #002347;
    /* Dep Sea Blue */
    --navy-light: #003a7a;
    --bg-surface: #ffffff;
    --bg-soft: #f8f9fa;
    /* Pearl White */
    --bg-dark: #0f172a;
    /* Midnight Maritime */
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #f8f9fa;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-heading: 'Exo 2', 'Rajdhani', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-main);
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- Background & Animations --- */
.maritime-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(243, 246, 250, 1) 0%, rgba(229, 236, 244, 1) 90%);
    overflow: hidden;
}

.waves-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 15vh;
    opacity: 0.15;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23002347" d="M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,181.3C960,213,1056,235,1152,213.3C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 50% 100%;
    animation: wave-flow 20s linear infinite;
}

.wave1 {
    opacity: 0.3;
    animation-duration: 15s;
    z-index: 1000;
    bottom: 0;
}

.wave2 {
    opacity: 0.2;
    animation-duration: 10s;
    z-index: 999;
    bottom: 10px;
}

.wave3 {
    opacity: 0.1;
    animation-duration: 25s;
    z-index: 998;
    bottom: 15px;
}

@keyframes wave-flow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: var(--accent-red);
    border-radius: 50%;
    opacity: 0.1;
    animation: float-particle 15s infinite linear;
}

.particle:nth-child(1) {
    width: 50px;
    height: 50px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 80px;
    height: 80px;
    left: 80%;
    top: 60%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    width: 30px;
    height: 30px;
    left: 40%;
    top: 40%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 70%;
    top: 10%;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    width: 40px;
    height: 40px;
    left: 20%;
    top: 80%;
    animation-delay: -8s;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 30px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* --- Navigation --- */
.maritime-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent-red);
    padding: 0.8rem 0;
    transition: var(--transition-smooth);
    z-index: 2000;
}

.maritime-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-image:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-red);
    transform: rotate(-15deg);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-main);
    letter-spacing: 2px;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-link i {
    font-size: 1rem;
    color: var(--accent-red);
    transition: var(--transition-smooth);
}

.nav-link:hover i {
    transform: translateY(-3px);
}

.nav-link span {
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-red);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

.btn-maritime {
    background: var(--primary-main);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 4px 4px 0 var(--accent-red);
}

.btn-maritime:hover {
    background: var(--accent-red);
    color: white;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0 var(--accent-red);
}

/* --- Toggler Styles --- */
.maritime-toggler {
    border: 2px solid var(--accent-red) !important;
    padding: 8px !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
    width: 45px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.maritime-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25) !important;
}

.toggler-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--accent-red);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.maritime-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.maritime-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.maritime-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-maritime {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background: url('image/ChatGPT Image Jan 30, 2026, 09_48_31 AM.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    padding-top: 220px;
    padding-bottom: 100px;
}

.hero-maritime::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 35, 71, 0.3) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-red) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
}

.hero-maritime .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid var(--accent-red);
    padding: 6px 15px;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
}

.text-gradient {
    color: var(--accent-red);
    display: block;
    font-weight: 900;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 4;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    opacity: 1;
    margin-bottom: 3rem;
    border-left: 3px solid var(--accent-red);
    padding-left: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 5;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: white !important;
    margin-bottom: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 5;
}

.hero-image-container {
    position: relative;
    padding: 20px;
}

.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border: 3px solid var(--accent-red);
    box-shadow: 20px 20px 0 var(--primary-main);
    transition: var(--transition-smooth);
}

.hero-image:hover {
    transform: translate(-10px, -10px);
    box-shadow: 30px 30px 0 var(--accent-red);
}

.hero-visual {
    position: relative;
    z-index: 3;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border: 10px solid var(--accent-red);
    z-index: -1;
    opacity: 0.3;
}

/* --- Sections --- */
section {
    padding: 100px 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin: 0 auto 3rem;
}

.about-preview-maritime {
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)), url('image/ChatGPT Image Jan 30, 2026, 09_56_30 AM.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.about-content p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-main);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-image-container {
    position: relative;
    padding: 30px;
    z-index: 1;
}

.about-image {
    width: 100%;
    height: auto;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 10px solid var(--accent-red);
    z-index: 0;
    opacity: 0.2;
    transform: translate(-20px, -20px);
}

.floating-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-main);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-red);
}

.floating-badge i {
    font-size: 1.5rem;
    color: var(--accent-red);
}

.floating-badge span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 3rem 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid transparent;
}

.feature-item:hover {
    border-color: var(--accent-red);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 10px;
    display: block;
}

.feature-item span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Services Grid --- */
.services-preview-maritime {
    background: var(--bg-dark);
}

.service-card-maritime {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card-maritime::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-red);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card-maritime:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
}

.service-card-maritime:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 25px;
}

.service-card-maritime h4 {
    color: white;
    margin-bottom: 15px;
}

.service-card-maritime p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* --- Service Detailed View --- */
.service-content {
    padding: 30px;
}

.service-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: rgba(211, 47, 47, 0.1);
    font-weight: 900;
    line-height: 1;
    margin-bottom: -20px;
    z-index: -1;
    position: relative;
}

.service-features {
    margin-top: 2rem;
    padding-left: 0;
}

.service-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--accent-red);
    font-size: 0.8rem;
}

.service-image-container {
    position: relative;
    padding: 20px;
    background: white;
    border: 1px solid var(--border-color);
}

.service-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
    transition: var(--transition-smooth);
}

.service-image-container:hover .service-image {
    filter: grayscale(0);
}

.service-icon-large {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--accent-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

/* --- Compact Service Cards --- */
.service-card-compact {
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
}

.service-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-red);
}

.service-image-small {
    height: 220px;
    overflow: hidden;
}

.service-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card-compact:hover .service-image-small img {
    transform: scale(1.1);
}

.service-content-compact {
    padding: 25px;
}

.service-content-compact h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-content-compact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Stats --- */
.stats-maritime {
    background: var(--primary-main);
    padding: 60px 0;
}

.stat-card-maritime {
    text-align: center;
    color: white;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--accent-red);
    margin: 15px 0;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.5;
}

/* --- Footer --- */
.footer-maritime {
    background: #000;
    color: white;
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent-red);
}

.footer-brand h3 {
    color: white;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--accent-red);
}

.footer-links h5,
.footer-contact h5 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--accent-red);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: var(--accent-red);
    padding-left: 10px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-item i {
    color: var(--accent-red);
    margin-top: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Gallery Styles --- */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-main);
    color: white;
    border-color: var(--primary-main);
    box-shadow: 4px 4px 0 var(--accent-red);
}

.gallery-search {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.gallery-search .input-group {
    background: white;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.gallery-search .input-group-text {
    background: transparent;
    border: none;
    color: var(--accent-red);
}

.gallery-search .form-control {
    border: none;
    padding: 12px;
    font-weight: 500;
}

.gallery-search .form-control:focus {
    box-shadow: none;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    background: white;
    padding: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.gallery-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4);
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-image img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 30px;
    text-align: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    color: white;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.1s;
}

.gallery-card:hover h5,
.gallery-card:hover p {
    transform: translateY(0);
}

.gallery-view-btn {
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.2s;
}

.gallery-card:hover .gallery-view-btn {
    transform: translateY(0);
}

/* --- Contact Page Styles --- */
.contact-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    border-color: var(--accent-red);
    box-shadow: 10px 10px 0 rgba(211, 47, 47, 0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-soft);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}


.contact-card:hover .contact-icon {
    background: var(--accent-red);
    color: white;
}

/* --- Form Styles --- */
.contact-form-container {
    background: white;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-red);
}

.form-floating>.form-control,
.form-floating>.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    height: 65px;
    padding: 2rem 0.75rem 0.5rem;
    font-size: 1rem;
    color: var(--primary-main);
    line-height: 1.5;
}

.form-floating>.form-control:focus,
.form-floating>.form-select:focus {
    border-color: var(--accent-red);
    box-shadow: none;
}

.form-floating>label {
    padding: 1rem 0.75rem;
    color: var(--text-muted);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: var(--accent-red);
    font-weight: 500;
}

/* Custom Validation Styling */
input:invalid,
select:invalid,
textarea:invalid {
    box-shadow: none;
}

input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.1);
}

/* Bootstrap Override & Custom Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--accent-red) !important;
    padding-right: 4.125rem;
    background-image: none;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25) !important;
}

.invalid-feedback {
    display: block;
    /* Ensure it displays when inserted by JS */
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    width: 100%;
    animation: fadeInError 0.3s ease-in-out;
}

.invalid-feedback::before {
    content: '\f06a';
    /* FontAwesome Exclamation Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-content h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-content p,
.contact-content a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 20px 20px 0 var(--primary-main);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: var(--bg-soft);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    box-shadow: none;
    border-color: var(--accent-red);
    background: white;
}

.map-container {
    padding: 10px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.emergency-contact {
    color: white;
}

.emergency-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Responsive Layout --- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-image {
        height: 350px;
        margin-top: 30px;
    }

    .hero-maritime {
        height: auto;
        padding-top: 150px;
        padding-bottom: 60px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .maritime-nav {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: var(--glass-bg);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }

    .nav-link {
        flex-direction: row;
        gap: 10px;
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .btn-maritime.ms-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-maritime {
        padding-top: 120px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .footer-maritime {
        text-align: center;
    }

    .footer-contact .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* --- Responsive Styles --- */
@media (max-width: 991px) {
    .logo-image {
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 35px;
    }

    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 32px;
    }

    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .maritime-logo {
        gap: 8px;
    }
}