/* 
    YMR ShipChandlers - Unique Maritime Excellence Design
    Theme: Sky & Ocean Minimalist
    Aesthetic: Clean, Premium, High-Performance
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
    /* Color Palette - Sky & Ocean */
    --clr-primary: #0066ff;
    --clr-primary-light: #e6f0ff;
    --clr-primary-dark: #004ecc;
    --clr-accent: #00d2ff;
    --clr-secondary: #0a2540;
    --clr-bg-white: #ffffff;
    --clr-bg-light: #f8fbff;
    --clr-text-main: #1a1a1a;
    --clr-text-muted: #666666;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 102, 255, 0.05);
    --shadow-premium: 0 20px 50px rgba(0, 102, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Custom cursor implementation */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--clr-bg-white);
    color: var(--clr-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Custom Cursor --- */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--clr-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, background 0.3s ease;
    mix-blend-mode: normal;
    opacity: 0.6;
}

.custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.25s ease-out, border 0.3s ease;
    opacity: 0.3;
}

/* --- Navigation --- */
.maritime-nav {
    padding: 30px 0;
    transition: var(--transition-smooth);
    background: transparent;
    z-index: 1000;
}

.maritime-nav.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.logo-image {
    height: 50px;
    transition: var(--transition-smooth);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-secondary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--clr-primary);
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.nav-link {
    color: var(--clr-secondary) !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 20px !important;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: calc(100% - 40px);
}

/* --- Hero Section --- */
.hero-maritime {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, var(--clr-primary-light) 0%, var(--clr-bg-white) 100%);
    position: relative;
    overflow: hidden;
    padding: 180px 0 150px;
}

.hero-home {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('image/frontpage2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: var(--clr-bg-white);
    color: var(--clr-primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 102, 255, 0.1);
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.hero-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--clr-secondary);
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- Section Wave Transitions --- */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-divider .shape-fill {
    fill: var(--clr-bg-light);
}

/* --- Buttons --- */
.btn-maritime {
    background: var(--clr-primary);
    color: white !important;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-maritime:hover {
    background: var(--clr-secondary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(10, 37, 64, 0.2);
}

.btn-outline-maritime {
    background: transparent;
    color: var(--clr-primary) !important;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--clr-primary);
    transition: var(--transition-smooth);
}

.btn-outline-maritime:hover {
    background: var(--clr-primary-light);
    transform: translateY(-5px);
}

/* --- Service Breakdown Layout --- */
.service-breakdown {
    padding: 100px 0;
}

.service-row {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    position: relative;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

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

.service-number {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 102, 255, 0.05);
    z-index: -1;
    line-height: 1;
}

.service-row.reverse .service-number {
    left: auto;
    right: -20px;
}

.service-title-top {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-secondary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.service-desc {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.service-features-list {
    list-style: none;
    padding: 0;
}

.service-features-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--clr-text-main);
}

.service-features-list li i {
    color: #cc3300; /* Dark Orange/Red as per image */
    margin-right: 12px;
    font-size: 0.9rem;
}

.service-image-container {
    position: relative;
    padding: 20px;
}

.service-image-main {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    transition: var(--transition-smooth);
}

.service-image-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: #cc3300;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 5px;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(204, 51, 0, 0.3);
}

.service-row.reverse .service-image-accent {
    right: auto;
    left: 0;
}

/* More Solutions Grid */
.more-solutions-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.solution-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

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

.solution-img-box {
    height: 200px;
    overflow: hidden;
}

.solution-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.solution-card:hover .solution-img-box img {
    transform: scale(1.1);
}

.solution-info {
    padding: 25px;
}

.solution-info h5 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--clr-secondary);
}

.solution-info p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin: 0;
}

/* --- Stats Section --- */
.stat-card-maritime {
    text-align: center;
    padding: 40px;
    background: var(--clr-bg-white);
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--clr-primary);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-weight: 700;
    color: var(--clr-secondary);
    font-size: 1.1rem;
}

/* --- Masonry Gallery --- */
.gallery-masonry {
    columns: 3;
    column-gap: 25px;
    padding: 50px 0;
}

@media (max-width: 992px) {
    .gallery-masonry {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .gallery-masonry {
        columns: 1;
    }
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Footer Refinement --- */
.footer-maritime {
    background: #0a192f; /* Deep Navy as per image */
    padding: 80px 0 40px;
}

.footer-brand h4 {
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-brand h4 span {
    color: var(--clr-primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-circle:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
    color: white;
}

.footer-section-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.footer-nav-list li {
    margin-bottom: 12px;
}

.footer-nav-list li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-nav-list li a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--clr-primary);
    margin-top: 5px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* --- Animations --- */
[data-aos] {
    transition-duration: 1000ms !important;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

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

@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-maritime { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
}