/* ============================================
   Spectrum Marine And Ship Management Pvt. Ltd. - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #1e73be;
    --primary-dark: #155a96;
    --secondary-color: #0a1f44;
    --accent-color: #f39c12;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #0a1f44;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ============================================
   Header & Navigation
   ============================================ */
.top-bar {
    background-color: var(--secondary-color);
    padding: 10px 0;
    font-size: 14px;
    color: var(--white);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 30px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    margin-left: 10px;
    font-size: 16px;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Main Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 55px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1,
.logo-text h1 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.logo > span,
.logo-text > span {
    font-size: 11px;
    color: #555555;
    display: block;
    margin-top: 2px;
    font-weight: 400;
    white-space: nowrap;
}

.logo-text > span span {
    display: inline;
}

/* Navigation */
.header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    padding: 12px 15px;
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    white-space: nowrap;
}

.nav-menu > li > a i {
    font-size: 10px;
    transition: var(--transition);
}

.nav-menu > li:hover > a i {
    transform: rotate(180deg);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 15px;
}

.header-phone i {
    color: var(--primary-color);
    font-size: 18px;
}

.header-right .btn {
    padding: 6px 14px;
    font-size: 12px;
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 5px;
    margin-left: 10px;
}

/* ============================================
   Hero Section / Slider
   ============================================ */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.4) 0%, rgba(30, 115, 190, 0.3) 100%);
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rotating Background for Multi-Image Slides */
.hero-slide.has-rotating-bg {
    position: relative;
}

.rotating-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rotating-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.rotating-bg-img.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
}

/* ============================================
   Page Header / Breadcrumb
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.page-header h1 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 15px;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--accent-color);
}

/* Page Header with Background Image */
.page-header.career-sea-header {
    background: none;
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.page-header.career-sea-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/career-at-sea-bg.png') center 30% / cover no-repeat;
    z-index: -2;
}

.page-header.career-sea-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.35) 0%, rgba(30, 115, 190, 0.25) 100%);
    z-index: -1;
}

.page-header.career-ashore-header {
    background: none;
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.page-header.career-ashore-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/career-ashore-bg.png') center 30% / cover no-repeat;
    z-index: -2;
}

.page-header.career-ashore-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.35) 0%, rgba(30, 115, 190, 0.25) 100%);
    z-index: -1;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.section-title h2 {
    margin-top: 10px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--secondary-color);
}

.bg-dark h2, .bg-dark h3, .bg-dark p {
    color: var(--white);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0e5eb 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    box-shadow: var(--shadow);
}

.image-placeholder i {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 15px;
}

.image-placeholder p {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

.about-image .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.experience-badge h3 {
    font-size: 42px;
    color: var(--white);
    margin: 0;
}

.experience-badge span {
    font-size: 14px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-feature i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 3px;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(30, 115, 190, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.service-card h4 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    flex-grow: 1;
}

.service-card .btn {
    margin-top: 20px;
}

/* Service Detail Page */
.service-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.service-sidebar {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
}

.service-list {
    margin-bottom: 30px;
}

.service-list li {
    margin-bottom: 10px;
}

.service-list li a {
    display: block;
    padding: 15px 20px;
    background-color: var(--white);
    border-radius: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.service-list li a:hover,
.service-list li a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent-color);
    transform: rotateY(180deg);
}

.feature-icon i {
    font-size: 40px;
    color: var(--white);
}

.feature-card h4 {
    margin-bottom: 10px;
}

/* ============================================
   Team Section
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 30px;
    justify-content: center;
}

.team-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transition: var(--transition);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h4 {
    margin-bottom: 5px;
}

.team-info span {
    color: var(--primary-color);
    font-size: 14px;
}

.team-info p {
    margin-top: 15px;
    font-size: 14px;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item h3 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ============================================
   Quote Form Section
   ============================================ */
.quote-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.quote-content h2 {
    margin-bottom: 20px;
}

.quote-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info-card {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
    color: var(--white);
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item > div {
    flex: 1;
}

.contact-item h5 {
    color: var(--white);
    margin-bottom: 5px;
    margin-top: 0;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ============================================
   Career Section
   ============================================ */
.career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.career-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.career-image {
    height: 200px;
    overflow: hidden;
}

.career-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.career-card:hover .career-image img {
    transform: scale(1.1);
}

.career-content {
    padding: 25px;
}

.career-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.career-tag {
    padding: 5px 12px;
    background-color: rgba(30, 115, 190, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   News / Gallery Section
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}

.news-date span {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.news-date small {
    font-size: 12px;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    margin-bottom: 10px;
    transition: var(--transition);
}

.news-card:hover .news-content h4 {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 115, 190, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 30px;
}

/* ============================================
   Partners Section
   ============================================ */
.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logo {
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo img {
    height: 60px;
    width: auto;
}

/* ============================================
   Tracking Section
   ============================================ */
.tracking-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 60px 0;
}

.tracking-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tracking-box h3 {
    margin-bottom: 20px;
}

.tracking-form {
    display: flex;
    gap: 15px;
}

.tracking-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.tracking-form .btn {
    white-space: nowrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo h2 {
    color: var(--white);
    font-size: 28px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
}

.footer-logo h2 {
    color: var(--white);
    font-size: 24px;
    margin: 0;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
}

.footer-bottom {
    margin-top: 50px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1200px) {
    .nav-menu > li > a {
        padding: 12px 10px;
        font-size: 14px;
    }

    .header-phone {
        display: none;
    }

    .header-right .btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .logo img {
        height: 45px;
    }

    .logo h1,
    .logo-text h1 {
        font-size: 18px;
    }

    .logo span,
    .logo-text span {
        font-size: 9px;
    }
}

@media (max-width: 1024px) {
    .services-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header nav {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        transition: var(--transition);
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 15px 10px;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 15px;
        display: none;
        background-color: var(--light-bg);
        border-radius: 5px;
        margin: 10px 0;
        min-width: 100%;
    }

    .nav-menu li.dropdown-open .dropdown-menu {
        display: block;
    }

    .nav-menu li.dropdown-open > a i {
        transform: rotate(180deg);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-right .btn {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }

    .top-bar {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    .logo h1,
    .logo-text h1 {
        font-size: 16px;
    }

    .logo span,
    .logo-text span {
        display: none;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-logo h2 {
        font-size: 20px;
    }

    .hero {
        height: 500px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .about-section,
    .quote-section,
    .contact-grid,
    .service-detail {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: relative;
        top: 0;
    }

    .services-grid,
    .team-grid,
    .news-grid,
    .career-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tracking-form {
        flex-direction: column;
    }

    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in {
    animation: slideIn 0.6s ease forwards;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(30, 115, 190, 0.4);
}

.loader-text {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 115, 190, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(30, 115, 190, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 115, 190, 0);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Form Success Popup
   ============================================ */
.form-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.success-popup-content {
    background: var(--white);
    padding: 40px 50px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

.success-popup-content i {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-popup-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.success-popup-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.success-popup-content .btn {
    min-width: 120px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Portfolio Grid (Career at Sea)
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 115, 190, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-link {
    transform: scale(1);
}

.portfolio-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.portfolio-content {
    padding: 25px;
    position: relative;
}

.portfolio-number {
    position: absolute;
    top: -25px;
    right: 25px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(30, 115, 190, 0.1);
    line-height: 1;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: rgba(30, 115, 190, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.portfolio-content h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.portfolio-content h4 a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.portfolio-content h4 a:hover {
    color: var(--primary-color);
}

.portfolio-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.portfolio-more {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.portfolio-more:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* Portfolio Grid Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-image {
        height: 200px;
    }
}
