/*
Theme Name: Professional IMS
Theme URI: https://www.Professional-IMS.com
Author: Professional I.M.S
Author URI: https://www.Professional-IMS.com
Description: Professional I.M.S Integrated Marine Solutions - Official WordPress Custom Theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pims
*/
/* Core Variables & Reset */
:root {
    --primary-color: #0c2340;
    /* Deep Navy */
    --secondary-color: #1d3557;
    /* Lighter Navy */
    --accent-color: #c5a065;
    /* Gold/Bronze */
    --accent-hover: #b08d55;
    --text-light: #f1f1f1;
    --text-muted: #a8b2d1;
    --text-dark: #333;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.divider {
    height: 4px;
    width: 80px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(12, 35, 64, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.35s ease;
}

.navbar.navbar-scrolled {
    height: 72px;
    background: rgba(10, 26, 48, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-logo {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .nav-logo {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
}

.logo-company-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #ffffff 0%, #fff3cf 35%, #ffd700 70%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.8));
    line-height: 1.2;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh; /* ØªÙ… ØªÙƒØ¨ÙŠØ± Ø§Ù„Ù…Ø³Ø§Ø­Ø© Ù„ØªØ´Ù…Ù„ Ø§Ù„ØµÙˆØ±Ø© Ø¨Ø´ÙƒÙ„ ÙƒØ§Ù…Ù„ ÙˆÙ…Ø±ÙŠØ­ */
    width: 100%;
    background-color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero_bg.jpg') no-repeat center center/cover;
    filter: contrast(1.25) saturate(1.15) brightness(1.05); /* Ø±ÙØ¹ Ø§Ù„ØªØ¨Ø§ÙŠÙ† ÙˆØ§Ù„Ø¬ÙˆØ¯Ø© */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(12, 35, 64, 0.65), rgba(12, 35, 64, 0.45));
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: calc(50% + 180px); /* Ø§Ù„Ø¥Ø²Ø§Ø­Ø© Ù„Ø£Ø³ÙÙ„ Ø§Ù„Ù…Ù†ØªØµÙ Ø¨Ù…Ù‚Ø¯Ø§Ø± 5Ø³Ù… (Ø­ÙˆØ§Ù„ÙŠ 180 Ø¨ÙŠÙƒØ³Ù„) */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    width: 100%;
    text-align: center; /* Ø¥Ø¹Ø§Ø¯Ø© Ø§Ù„ØªÙˆØ§Ø²Ù† ÙˆØ§Ù„Ù…Ø­Ø§Ø°Ø§Ø© Ù„Ù„Ù…Ù†ØªØµÙ */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #fff2a3 30%, #ffd700 65%, #c5a065 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.85));
    opacity: 0;
    transform: translateY(35px) scale(0.96);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease;
    will-change: opacity, transform;
}

.hero-title.hero-title-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0px 4px 15px rgba(255, 215, 0, 0.35));
}

.hero-tagline {
    font-family: var(--font-heading); /* ØªØºÙŠÙŠØ± Ø§Ù„Ø®Ø· Ù„ÙŠØµØ¨Ø­ ÙƒÙ„Ø§Ø³ÙŠÙƒÙŠ Ø£Ù†ÙŠÙ‚ */
    font-weight: normal; /* Ø¬Ø¹Ù„ Ø³ÙÙ…Ùƒ Ø§Ù„Ø®Ø· Ø±ÙÙŠØ¹ (Fine) ÙƒÙ…Ø§ Ø±ØºØ¨Øª */
    font-style: italic; /* Ù„Ù…Ø³Ø© Ø¨Ø³ÙŠØ·Ø© Ù„Ø¬Ø¹Ù„Ù‡ Signature/Fine */
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--white);
    letter-spacing: 1.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Values Section */
.values-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.values-section .section-header h2 {
    color: var(--white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.pillar-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.pillar-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pillar-card i {
    color: var(--accent-color);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-content: center;
}

.value-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.value-tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Services Section */
.services-section {
    position: relative;
    background-color: var(--bg-light);
    z-index: 1;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/services_bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    filter: contrast(1.15) saturate(1.1); /* Enhance contrast of the image */
    z-index: -2;
}

.services-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75); /* Light overlay adjusted to 75% */
    z-index: -1;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    flex: 0 0 calc(50% - 20px);
    max-width: 540px;
    min-width: 280px;
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card:hover h3,
.service-card:hover i,
.service-card:hover li {
    color: var(--white);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.service-card ul {
    font-size: 0.9rem;
    color: #666;
    padding-left: 20px;
    list-style-type: disc;
}

.service-card ul li {
    margin-bottom: 8px;
    transition: var(--transition);
}

/* Portfolio Section */
.portfolio-section {
    background: #f9f9f9;
}

.portfolio-category {
    text-align: center;
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    font-family: var(--font-heading);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    flex: 1 1 300px;
    max-width: 500px;
    background-color: #2a2a2a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Grids with Even items (4 items = 2 per line across 2 lines) */
.portfolio-grid.grid-even-4 .portfolio-item {
    flex: 0 0 calc(50% - 15px);
    max-width: 540px;
}

/* Grids with Even items (2 items = 2 per line or centered) */
.portfolio-grid.grid-even-2 .portfolio-item {
    flex: 0 0 calc(50% - 15px);
    max-width: 540px;
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    /* Subtle lift and zoom */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(12, 35, 64, 0.95), rgba(12, 35, 64, 0.8), transparent);
    padding: 25px 20px;
    color: var(--white);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.portfolio-content p {
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* Partners */
.partners-section {
    background: var(--white);
    padding: 50px 0;
}

.partners-logos {
    display: flex;
    justify-content: space-around;
    /* Distribute logos evenly */
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    gap: 20px;
    /* Add space between items */
    opacity: 0.6;
}

.logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    font-family: var(--font-heading);
}

.contact-section {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    z-index: 1;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/contact_bg.jpg') no-repeat center center/cover;
    opacity: 0.75; /* High visibility for background image */
    z-index: -2;
    filter: contrast(1.15) brightness(1.0);
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.45) 0%, rgba(10, 26, 48, 0.35) 100%);
    z-index: -1;
}

.contact-section .section-header h2 {
    color: var(--white);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    flex: 0 0 320px;
    max-width: 320px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 20px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

.contact-form-container {
    flex: 0 0 440px;
    max-width: 440px;
    margin-left: auto; /* Aligns contact box to the far right */
    background: rgba(255, 255, 255, 0.15); /* 15% Transparency Glassmorphism Box */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(197, 160, 101, 0.4);
}

/* Footer */
footer {
    background: #020c1b;
    color: var(--text-muted);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .about-grid,
    .pillars-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        display: grid;
        /* override flex */
        gap: 40px;
    }

    .contact-wrapper {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .service-card,
    .portfolio-grid.grid-even-4 .portfolio-item,
    .portfolio-grid.grid-even-2 .portfolio-item,
    .portfolio-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nav-logo {
        height: 48px;
        width: 48px;
    }

    .logo-company-name {
        font-size: 0.85rem;
        letter-spacing: 0.4px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }
}
