/* ==========================================================================
   PORTS & SEZs PAGE CSS
   Includes Core Layouts, Animations, Flex Accordion, Nav, & Footer
   ========================================================================== */

/* ── RESET & VARIABLES ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --brand-green: #2d7a1f;
    --brand-green-mid: #4a9e38;
    --brand-green-light: #78c160;
    --brand-blue: #0047aa;
    --brand-blue-dark: #002c6b;
    
    /* Backgrounds */
    --bg-light: #f7faf5;
    --bg-white: #ffffff;
    --bg-dark: #0d1f14;
    
    /* Typography */
    --text-dark: #1a2e14;
    --text-mid: #3d5c35;
    --text-light: #ffffff;
    
    /* Animation Easing */
    --ease-premium: cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero-eyebrow, .eyebrow {
    font-family: 'DM Sans', sans-serif;
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
    position: fixed; 
    top: 0; 
    left: 0;
    height: 4px; 
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-green-light));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ==========================================================================
   GLOBAL NAVIGATION (Strictly matching existing architecture)
   ========================================================================== */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: transparent;
}

.logo img {
    width: 280px;
    height: auto;
    mix-blend-mode: screen;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-links > .nav-item > a {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    display: block;
}

.nav-links > .nav-item > a:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/* Dropdown Submenu */
.dropdown {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 35, 5, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column; 
    gap: 8px; 
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--brand-green-light);
    padding-left: 1.2rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.industry-hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0 6rem;
    /* Differentiator: Use a slightly different background or tint for this specific page */
    background: url('assets/images/tech.jpg') center/cover no-repeat;
    background-color: #05141e;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    /* Differentiator: A more maritime/blue tint overlay for Ports */
    background: linear-gradient(135deg, rgba(0, 30, 80, 0.8) 0%, rgba(5, 20, 30, 0.9) 100%);
    z-index: 1;
}

.industry-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
    margin-top: 50px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-green-light); /* Kept green to tie to BGE brand */
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.industry-hero h1 {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.industry-hero h1 span {
    background: linear-gradient(to right, #ffffff, #8fcfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.industry-hero p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s var(--ease-premium);
}

.btn-primary {
    background: var(--brand-green);
    color: #fff;
    border: 1px solid var(--brand-green-mid);
    box-shadow: 0 10px 20px rgba(45, 122, 31, 0.3);
}

.btn-primary:hover {
    background: var(--brand-green-mid);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(45, 122, 31, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    border-color: #fff;
}

/* ==========================================================================
   GENERAL SECTIONS
   ========================================================================== */
.bge-section {
    padding: 7rem 4rem;
    position: relative;
}

.bg-dark {
    /* Slightly deeper blue-black for maritime feel */
    background: linear-gradient(145deg, #0a111a, #0d1a24);
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 0.8rem;
}

.eyebrow.light { color: var(--brand-green-light); }

.section-title {
    font-size: clamp(2.5rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title.light { color: #fff; }

.section-lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-mid);
    max-width: 800px;
    margin-bottom: 4rem;
    line-height: 1.7;
}

/* ==========================================================================
   STRATEGIC ENGAGEMENT MODELS (CINEMATIC FLEX ACCORDION)
   ========================================================================== */
.flex-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.flex-accordion {
    display: flex;
    width: 100%;
    height: 550px;
    gap: 1.5rem;
    border-radius: 30px;
    overflow: hidden;
}

.flex-pillar {
    flex: 1; 
    position: relative;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* The Hover Physics */
.flex-pillar:hover, .flex-pillar.active {
    flex: 3; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.pillar-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.pillar-icon {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    transition: all 0.5s ease;
}

.flex-pillar:hover .pillar-icon, .flex-pillar.active .pillar-icon {
    color: #fff;
    -webkit-text-stroke: 0px;
}

.pillar-titles h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

/* Tags in Flex */
.tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.tag-green { background: rgba(45,122,31,0.5); color: #fff; }
.tag-blue { background: rgba(0,71,170,0.5); color: #fff; }

/* Hidden Content Logic */
.pillar-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 0;
    overflow: hidden;
}

.flex-pillar:hover .pillar-hidden, .flex-pillar.active .pillar-hidden {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 400px; 
    margin-top: 1.5rem;
}

.pillar-hidden h4 {
    font-size: 1.1rem;
    color: var(--brand-green-light);
    margin-bottom: 1rem;
    white-space: nowrap;
}

.pillar-hidden p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.act-list { list-style: none; padding: 0; }
.act-list.light-mode li { color: #fff; position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; font-size: 0.95rem; font-weight: 500;}
.act-list.light-mode li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green-light); }

.small-btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; margin-top: 1rem; }

/* ==========================================================================
   SOLUTIONS GRID (3D TILT EFFECT) - LIGHT/DARK VARIANT
   ========================================================================== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-card.dark-mode {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 3rem;
    /* FIX APPLIED: Specific transitions only, allowing opacity to be controlled by .reveal */
    transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium);
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.solution-card.dark-mode:hover {
    transform: translateY(-5px);
    border-color: rgba(0,71,170,0.2);
    box-shadow: 0 20px 40px rgba(0,71,170,0.1);
}

.sol-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-blue), #002c6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,71,170,0.3);
}

.solution-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-mid);
}
.bg-color{
    background: linear-gradient(360deg, #006572, var(--brand-green-mid));
}
/* ==========================================================================
   IMPACT BANNER
   ========================================================================== */
.impact-banner {
    padding: 6rem 4rem;
    /* Differentiator: Deep marine gradient */
    background: linear-gradient(135deg, #041a36, var(--brand-green-light));
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.impact-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.impact-banner h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2.5rem;
}

.impact-banner h2 span {
    color: #8fcfff; /* Match hero text gradient accent */
    font-weight: 800;
}

/* ==========================================================================
   GLOBAL FOOTER (Strictly matching provided robust layout)
   ========================================================================== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 140px 60px 80px; 
    background: linear-gradient(145deg, #0047a5, #003579);
    color: #fff;
    position: relative;
    overflow: hidden;
    gap: 50px;
}

.footer-left { flex: 1.2; min-width: 300px; }
.footer-left h2 { font-size: 32px; font-weight: 600; line-height: 1.3; margin-bottom: 25px; color: #ffffff; }

.footer-badges { display: flex; gap: 25px; margin-bottom: 35px; }
.footer-badges span { display: flex; align-items: center; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.dot { width: 10px; height: 10px; background: #00d063; border-radius: 50%; margin-right: 10px; box-shadow: 0 0 12px rgba(0, 208, 99, 0.6); }

.footer-links { list-style: none; padding: 0; margin: 0 0 40px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; max-width: 450px; }
.footer-links li a { color: #ffffff; text-decoration: none; font-size: 15px; opacity: 0.8; transition: all 0.3s ease; }
.footer-links li a:hover { opacity: 1; padding-left: 5px; color: #00d063; }

.footer-copy { font-size: 13px; opacity: 0.5; margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; }

.footer-right { flex: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 350px; }
.footer-desc { font-size: 16px; opacity: 0.9; line-height: 1.7; margin-bottom: 35px; max-width: 440px; }
.footer-btn { padding: 14px 32px; border-radius: 50px; background: #ffffff; color: #003579; border: none; font-weight: 700; font-size: 15px; cursor: pointer; margin-bottom: 40px; transition: all 0.4s var(--ease-premium); display: inline-flex; align-items: center; gap: 10px; }
.footer-btn:hover { transform: scale(1.05) translateX(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.footer-logo { margin-bottom: 25px; }
.footer-logo img { width: 250px; height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25)); border-radius: 8px; }

.footer-legal { display: flex; gap: 25px; }
.footer-legal a { color: #ffffff; font-size: 13px; text-decoration: none; opacity: 0.6; transition: opacity 0.3s; }
.footer-legal a:hover { opacity: 1; }

.footer-floating-icons { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 10; }
.circle-btn { width: 48px; height: 48px; background: #004fbb; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 22px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.circle-btn:hover { background: #00d063; transform: translateY(-5px); }

.side-icons { display: flex; flex-direction: column; gap: 12px; background: rgba(255, 255, 255, 0.1); padding: 15px; border-radius: 40px; backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.15); }
.icon-btn { width: 42px; height: 42px; background: #0051c5; border-radius: 12px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.icon-btn img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.icon-btn:hover { transform: scale(1.15) rotate(5deg); background: #0047a5; }

/* ==========================================================================
   ANIMATIONS & REVEALS
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s var(--ease-premium);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(40px); }
.reveal-scale { transform: scale(0.95); }

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    nav { padding: 2rem; }
    .industry-hero { padding: 0 4rem; }
    .footer { padding: 60px 100px 60px 50px; }
}

@media (max-width: 992px) {
    .flex-accordion { flex-direction: column; height: auto; }
    .flex-pillar { flex: auto; min-height: 120px; }
    .flex-pillar:hover, .flex-pillar.active { flex: auto; }
    .pillar-hidden { max-height: 0; }
    .flex-pillar.active .pillar-hidden { max-height: 500px; }

    .solutions-grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; padding: 60px 40px; align-items: center; text-align: center; }
    .footer-left, .footer-right { width: 100%; align-items: center; min-width: unset; }
    .footer-floating-icons { position: static; transform: none; flex-direction: row; margin-top: 40px; }
    .side-icons { flex-direction: row; }
    .footer-links { margin: 0 auto 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .industry-hero { padding: 0 2rem; text-align: center; }
    .hero-actions { flex-direction: column; }
    .bge-section { padding: 5rem 2rem; }
    .industry-hero h1 { font-size: 2.8rem; }
}