:root {
    --primary: #0F172A; /* Deep Navy */
    --accent: #D4AF37; /* Gold */
    --accent-light: #F3E5AB;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-800: #1F2937;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Bootstrap Overrides */
    --bs-primary: #0F172A; /* Deep Navy */
    --bs-primary-rgb: 15, 23, 42;
    --bs-secondary: #D4AF37; /* Gold */
    --bs-secondary-rgb: 212, 175, 55;
}

[data-bs-theme="dark"] {
    --primary: #F8FAFC;
    --white: #0F172A;
    --gray-100: #1E293B;
    --gray-200: #334155;
    --gray-800: #F1F5F9;
    --bs-body-bg: #0F172A;
    --bs-body-color: #F8FAFC;
}

body {
    font-family: var(--font-body);
    color: var(--primary);
    background-color: var(--white);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom one */
    transition: background-color 0.3s, color 0.3s;
}

/* Top Bar */
.top-bar {
    background-color: var(--bs-primary);
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1031; /* Above fixed header */
}

/* Adjust fixed header when top bar is present */
/* Removed specific adjustment as top bar is inside header */

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

@media (max-width: 992px) {
    .display-1 {
        font-size: 3rem;
    }
    
    .display-2 {
        font-size: 2.2rem;
    }
    
    .site-header {
        padding: 10px 0;
    }
    
    .nav-logo {
        max-height: 35px;
    }
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline {
        display: none !important; /* Disable custom cursor on touch devices */
    }
    
    .hero-modern {
        padding-top: 100px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #1A4B8C 50%, #D4AF37 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
}

.text-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.site-header {
    padding: 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.9); /* Dark background for dark mode */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .navbar {
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.site-header.scrolled .navbar {
    padding: 10px 0;
}

.nav-link {
    font-weight: 500;
    color: var(--primary) !important;
    margin: 0 10px;
    position: relative;
}

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

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

.nav-logo {
    max-height: 45px;
    transition: filter 0.3s;
}

[data-bs-theme="dark"] .nav-logo {
    filter: brightness(0) invert(1); /* Make logo white in dark mode */
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1); /* Make toggler white in dark mode */
}

/* Dark Mode Overrides for Backgrounds */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--gray-100) !important; /* Use dark gray variable */
}

[data-bs-theme="dark"] .text-dark {
    color: var(--primary) !important; /* Switch dark text to light */
}

[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important; /* Lighter muted text */
}

/* Hero Section */
.hero-modern {
    position: relative;
    padding: 130px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.05) 0%, transparent 40%),
        linear-gradient(120deg, var(--white) 0%, var(--gray-100) 100%);
    z-index: -2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: -1;
}

/* Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    animation: blob-bounce 10s infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.2);
}

.blob-2 {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(15, 23, 42, 0.1);
    animation-delay: -5s;
}

@keyframes blob-bounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Buttons */
.btn-pill {
    border-radius: 50px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #1e293b;
    border-color: #1e293b;
}

/* Hero Grid */
.hero-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 600px;
    align-items: center;
}

.hero-gallery-col {
    display: flex;
    flex-direction: column;
}

.hero-img-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-img-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.hero-img-card.tall { height: 400px; }
.hero-img-card.short { height: 250px; }

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.hero-stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.hero-stat-card:hover {
    transform: translateY(-5px);
}

/* Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scale-hover {
    transition: transform 0.3s;
}

.scale-hover:hover {
    transform: scale(1.05);
}

.ls-2 { letter-spacing: 2px; }

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.transition-hover {
    transition: all 0.3s ease;
}

/* Animations for Categories */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.anim-float { animation: float 3s ease-in-out infinite; }
.anim-float-delayed { animation: float 3s ease-in-out infinite 1.5s; }

@keyframes sway {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}
.anim-sway { animation: sway 4s ease-in-out infinite; }

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}
.anim-heartbeat { animation: heartbeat 2s ease-in-out infinite; }

@keyframes spin-bg {
    from { transform: rotate(0deg) scale(1.2); }
    to { transform: rotate(360deg) scale(1.2); }
}
.anim-spin-bg { animation: spin-bg 20s linear infinite; }

@keyframes bike-ride {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(5px) rotate(2deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(-5px) rotate(-2deg); }
    100% { transform: translateX(0) rotate(0deg); }
}
.anim-bike-ride { animation: bike-ride 2s linear infinite; }

@keyframes writing {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(10deg) translateX(5px); }
    50% { transform: rotate(0deg) translateX(0); }
    75% { transform: rotate(-5deg) translateX(-2px); }
    100% { transform: rotate(0deg) translateX(0); }
}
.anim-writing { animation: writing 1.5s ease-in-out infinite; }

/* Stats Section */
.stats-section {
    position: relative;
    background-color: #0F172A; /* Always Deep Navy */
    padding: 6rem 0;
    overflow: hidden;
    z-index: 1;
}

.stats-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    opacity: 0.3;
    z-index: 0;
}

.stat-card {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, color 0.4s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: var(--accent);
}

.stat-card h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.stat-card p {
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.stat-card:hover p {
    opacity: 1;
}

/* Ocean & Ship Section */
.ocean-section {
    position: relative;
    height: 600px;
    background: linear-gradient(180deg, #F0F9FF 0%, #BAE6FD 60%, #7DD3FC 100%);
    overflow: hidden;
    margin-top: 0;
}

.ship-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 80%;
    height: auto;
    z-index: 10;
    animation: premium-ship-float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    will-change: transform;
    pointer-events: none;
}

@keyframes premium-ship-float {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0.5deg); }
    50% { transform: translateX(-50%) translateY(-15px) rotate(-0.5deg); }
}

.ship-svg {
    width: 100%;
    height: auto;
}

.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 20;
    pointer-events: none;
}

.waves {
    width: 100%;
    height: 100%;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { 
    fill: rgba(255, 255, 255, 0.5);
    animation-delay: -2s; 
    animation-duration: 7s; 
}
.parallax > use:nth-child(2) { 
    fill: rgba(255, 255, 255, 0.3);
    animation-delay: -3s; 
    animation-duration: 10s; 
}
.parallax > use:nth-child(3) { 
    fill: rgba(14, 165, 233, 0.2); /* Sky Blue tint */
    animation-delay: -4s; 
    animation-duration: 13s; 
}
.parallax > use:nth-child(4) { 
    fill: #0284C7; /* Ocean Blue */
    animation-delay: -5s; 
    animation-duration: 20s; 
}

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    z-index: 1;
    animation: cloud-move linear infinite;
}

@keyframes cloud-move {
    from { transform: translateX(-100vw); }
    to { transform: translateX(100vw); }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(320px, auto); /* Flexible height */
    gap: 24px;
}

.bento-item {
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.bento-item-large {
    grid-column: span 2;
}

/* Ensure images in bento items cover well */
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px; /* Ensure visibility on mobile/small screens */
}

.service-icon-modern {
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Marquee */
.marquee-container {
    background: var(--primary);
    padding: 2rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0 2rem;
    opacity: 0.8;
}

.marquee-item.text-stroke {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-item-large {
        grid-column: span 1;
    }
}

/* Footer */
.modern-footer {
    background-color: #0F172A; /* Always Deep Navy */
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* WhatsApp Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-chat-popup {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    flex-direction: column;
}

.whatsapp-chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-chat-body {
    padding: 20px;
    background-color: #e5ddd5;
    height: 250px;
    overflow-y: auto;
}

.whatsapp-message {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    border-top-left-radius: 0;
    margin-bottom: 10px;
    font-size: 14px;
    position: relative;
    max-width: 80%;
}

.message-time {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.whatsapp-chat-footer {
    padding: 10px;
    background-color: #f0f0f0;
    display: flex;
}

/* Sticky Quote Button */
.sticky-quote-btn {
    position: fixed;
    bottom: 30px;
    right: 100px; /* Positioned to the left of WhatsApp icon (which is at right: 30px) */
    left: auto; /* Override default left positioning if any */
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .sticky-quote-btn {
        bottom: 100px; /* Stack above WhatsApp on mobile */
        right: 30px;
        width: 60px;
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

@media (max-width: 992px) {
    .hero-gallery-grid {
        height: auto;
        grid-template-columns: 1fr;
    }
    .hero-gallery-col.mt-5 {
        margin-top: 1.5rem !important;
    }
    .hero-img-card.tall, .hero-img-card.short {
        height: 300px;
    }
    .hero-modern {
        padding-top: 120px;
    }
}
