*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    /* Dark Theme (Default) */
    --bg-dark: #020b18;
    --glass-bg: rgba(2, 11, 24, 0.7);
    --text-primary: #ffffff;
    --text-gold: #d4af37;
    --nav-idle: #ffffff;
    --nav-active: #d4af37;
    --accent-gold: #d4af37;
    --accent-gold-soft: rgba(212, 175, 55, 0.25);
    --hex-border: #d4af37;
    --hex-text: #d4af37;
    --hex-inner-bg: rgba(2, 11, 24, 0.85);
    --footer-bg: linear-gradient(180deg, #040b14, #02060c);
    --footer-text: #cfd6e0;
    --footer-border: rgba(255, 200, 80, 0.25);
    --footer-highlight: rgba(212, 175, 55, 0.05);
    
}

[data-theme="light"] {
    /* Light Theme */
    --bg-dark: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --text-primary: #002d5b; /* Logo Blue */
    --text-gold: #b8860b;
    --nav-idle: #002d5b; /* Blue in light mode */
    --nav-active: #b8860b; /* Golden when clicked */
    --accent-gold: #002d5b;
    --accent-gold-soft: #f0f4f8;
    --hex-border:#002d5b;
    --hex-text: #002d5b;
    --hex-inner-bg: #f0f4f8;
    --footer-bg: linear-gradient(180deg, #f7f9fc, #e9eef5);
    --footer-text: #002d5b;
    --footer-border: rgba(0, 45, 91, 0.2);
    --footer-highlight: rgba(0, 45, 91, 0.06);
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.5s ease;
}

/* Glassmorphism Nav */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* Removed vertical padding */
    height: 70px;    /* Fixed height to keep it slim */
    position: fixed;
    top: 0; 
    width: 100%;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}
/* logo size */
.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%; /* Ensures it respects header height */
}

.logo-box img {
    height: 80px;      /* Force the logo to a reasonable height */
    width: auto;       /* Maintain aspect ratio */
    object-fit: contain;
}

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

.brand {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.legal {
    font-size: 0.65rem;
    color: var(--text-gold);
    line-height: 1.2;
}

/* Nav Link Logic */
.nav-link {
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    color: var(--nav-idle);
    transition: 0.3s;
}
.nav-link {
    position: relative;
}

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

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


/* Active/Clicked State Logic */
.nav-link.active {
    font-weight: 800;
    color: var(--nav-active);
}
/* Header */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}


/* Hero image control */
.plant-visual-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    z-index: 1;
}

.base-plant {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-ticker-bar {
    position: fixed;
    top: 70px; /* navbar height */
    width: 100%;
    background: rgba(2, 11, 24, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 900;
    overflow: hidden;
}

.market-ticker {
    white-space: nowrap;
    padding: 8px 0;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #fff;
    animation: tickerScroll 20s linear infinite;
}

@keyframes tickerScroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.market-ticker .up {
    color: #00ff9c;
}

.market-ticker .down {
    color: #ff4d4d;
}

/* Hero Content - Absolute Overlay */
.hero {
    position: relative;
    height: calc(100vh - 70px); /* subtract navbar */
    margin-top: 70px;          /* push below navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0,153,255,0.15), transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(255,140,0,0.15), transparent 40%);
    animation: floatBg 12s infinite alternate;
}

@keyframes floatBg {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* Hero text must stay white in all themes */
.hero-overlay-content,
.hero-overlay-content * {
    color: #ffffff !important;
}

.hero-overlay-content {
    position: absolute;
    top: 25%; /* Positions it above the plant */
    z-index: 5;
}

.market-ticker {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.gold { color: var(--text-gold); }

.main-heading {
    font-size: 5rem;
    margin: 0;
    letter-spacing: 12px;
    text-shadow: transparent;
    animation: heroReveal 1.4s ease forwards;
    opacity: 0;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 30px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 12px;
    }
}

/* Fixed Sidebar */
.right-sidebar {
    position: absolute; right: 50px; top: 200px;
    width: 200px; text-align: center;
}

/* Perfect Hexagons */
.verticals {
    padding: 80px 20px;
    text-align: center;
}

.verticals h2 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 50px;
    color: var(--text-primary);
}

/* Hex Grid */
.hex-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Hexagon Shape */
.hex-outer {
    width: 170px;
    height: 205px;
    background: var(--accent-gold);
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.hex-inner {
    width: 160px;
    height: 195px;
    background: var(--hex-inner-bg);
    clip-path: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--text-primary);
}

/* Icon Image */
.hex-image img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(1.1);
}

/* Counter Number */
.hex-inner h3 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 6px 0;
}

/* Label Text */
.hex-inner span:last-child {
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 1;
    text-align: center;
    line-height: 1.25;
    max-width: 120px;      /* prevents overflow */
    white-space: normal;  /* allows 2-line wrap */
}


/* Hover Effect */
.hex-outer:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 18px 35px rgba(255, 170, 60, 0.45);
}

/* Icon subtle animation */
.hex-outer:hover img {
    transform: scale(1.15);
}

.hex-image img {
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .hex-grid {
        gap: 35px;
    }
}
@media (max-width: 600px) {
    .hex-inner span:last-child {
        font-size: 0.9rem;
        letter-spacing: 1.3px;
    }
}

/* Theme Toggle Button */
#theme-switch {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#theme-switch i {
    font-size: 18px;
    color: var(--nav-idle);
    transition: color 0.3s ease;
}
/* Smooth modern motion everywhere */
* {
    scroll-behavior: smooth;
}

body {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/*/* ======================
   ABOUT SECTION
====================== */
.about-home {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 45px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-section {
    padding: 60px 20px 20px;
    margin-top: -40px;
    position: relative;
    background: transparent;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Title */
.section-title {
    font-size: 2.6rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 22px;
    color: var(--text-primary);
}
/* Button */
.btn-more-info {
    margin-top: 35px;
    padding: 14px 38px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    background: var(--text-gold);
    color: #020b18;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.35s ease;
}

.btn-more-info span {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-more-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(212, 175, 55, 0.45);
}

.btn-more-info:hover span {
    transform: translateX(6px);
}

/* Light Mode */
[data-theme="light"] .btn-more-info {
    background: var(--accent-gold);
    color: #ffffff;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(90deg, #0b2a3d, #123d57);
    color: #fff;
}

.stat-box {
    padding: 70px 20px;
    text-align: center;
}

.stat-circle {
    width: 55px;
    height: 55px;
    border: 3px solid var(--text-gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.stat-box h3 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* Circle animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* ======================
   INDUSTRIES SECTION
====================== */

.industries-section {
    padding: 40px 20px 20px;
    margin: 0;
    position: relative;
}

.industries-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Card */
.industry-card {
    padding: 32px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.35s ease;
    text-align: left;
}

.industry-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--text-gold);
    letter-spacing: 1px;
}

.industry-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Hover Effect */
.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    border-color: var(--text-gold);
}

/* Read More */
.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #d4af37; /* gold tone */
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--text-primary);
  letter-spacing: 1px;
}


/* Button reuse */
.industries-section .btn-more-info {
    margin-top: 10px;
}

/* =========================
   Industry Card Hover Image
=========================== */

.industry-card {
    position: relative;
    overflow: hidden;
}

/* Hidden image layer */
.industry-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: all 0.45s ease;
    z-index: 0;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.industry-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none; /* IMPORTANT FIX */
}

/* ✅ FIX: Keep text + button above image */
.industry-card h3,
.industry-card p,
.read-more {
    position: relative;
    z-index: 2;
}

/* Hover Effect */
.industry-card:hover .industry-image {
    opacity: 1;
    transform: scale(1);
}

/* =========================
   Footer
=========================== */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

/* Top bar */
.footer-top {
    border-bottom: 1px solid rgba(255, 200, 80, 0.3);
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-top p {
    font-size: 0.95rem;
    color: #e6c35a;
}

.subscribe-box {
    display: flex;
    gap: 10px;
}

.subscribe-box input {
    padding: 10px 14px;
    background: var(--footer-bg);;
    border: 1px solid #2b3b55;
    color: var(--footer-text);
    border-radius: 4px;
}

.subscribe-box button {
    padding: 10px 18px;
    background: #e6b800;
    border: none;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.footer-col img {
    max-width: 75px;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* Footer content */
.footer-content {
    padding: 50px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #e6b800;
    margin-bottom: 18px;
    font-size: 1rem;
}

.company-name {
    font-weight: 700;
    color: var(--footer-text);
    margin-bottom: 5px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    cursor: pointer;
}

.footer-col ul li:hover {
    color: #e6b800;
}

/* ===============================
   Footer Navigation Links
================================ */

.footer-link {
    position: relative;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* underline animation (same as nav) */
.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--text-gold);
    transition: width 0.3s ease;
}

/* hover effect */
.footer-link:hover {
    color: var(--text-gold);
}

.footer-link:hover::after {
    width: 100%;
}

/* active page */
.footer-link.active {
    font-weight: 700;
    color: var(--text-gold);
}

.footer-link.active::after {
    width: 100%;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(230, 184, 0, 0.7);
    color: #e6b800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #e6b800;
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(230, 184, 0, 0.35);
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 200, 80, 0.25);
    padding: 3px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.back-to-top {
    background: transparent;
    color: var(--footer-text);;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}