/*
Theme Name: Dynamic Engineers
Theme URI: https://www.dynamicengineers.org/
Author: Dynamic Engineers
Author URI: https://www.dynamicengineers.org/
Description: Futuristic deep-sea neon theme for Dynamic Engineers — Marine, Industrial & Infrastructure Operations. Includes animated background, 3D logo hero, glass panel, progress ring, stats, services grid, contact strip, Customizer options, blog and page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dynamic-engineers
Tags: dark, futuristic, one-page, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --neon-blue: #00e5ff;
    --neon-cyan: #00bcd4;
    --deep-sea: #0a1929;
    --dark-steel: #0d2137;
    --steel-gray: #1a3a5c;
    --orange-accent: #ff6d00;
    --gold: #ffc107;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--deep-sea);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--neon-blue); text-decoration: none; }
a:hover, a:focus { color: #fff; }
img { max-width: 100%; height: auto; }

/* ===== ANIMATED BACKGROUND ===== */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -5;
}
.bg-gradient {
    background:
        radial-gradient(circle at 15% 85%, rgba(0, 150, 200, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(0, 100, 180, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(10, 25, 41, 1) 0%, #060e18 100%);
}
.hex-grid {
    position: fixed;
    inset: 0;
    z-index: -4;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300e5ff' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    z-index: -3;
    animation: scanDown 6s linear infinite;
    box-shadow: 0 0 20px var(--neon-blue), 0 0 60px var(--neon-blue);
}
@keyframes scanDown {
    0% { top: -5%; }
    100% { top: 105%; }
}
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}
.wave-container svg.wave-line {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100px;
}
.orbit-system {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: -2;
    pointer-events: none;
}
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 50%;
}
.orbit:nth-child(1) { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: orbitSpin 20s linear infinite; }
.orbit:nth-child(2) { width: 500px; height: 500px; margin: -250px 0 0 -250px; animation: orbitSpin 30s linear infinite reverse; }
.orbit:nth-child(3) { width: 700px; height: 700px; margin: -350px 0 0 -350px; animation: orbitSpin 40s linear infinite; }
.orbit::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-blue);
}
@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== LAYOUT ===== */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 110px 20px 80px;
    position: relative;
}

/* Top Nav Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 25, 41, 0.92) 0%, transparent 100%);
}
body.admin-bar .top-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top-bar { top: 46px; } }

.top-logo {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--neon-blue);
    text-transform: uppercase;
    line-height: 1;
}
.top-logo a { color: inherit; }
.top-logo img { max-height: 48px; width: auto; }

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.primary-nav a {
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: color .3s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a { color: var(--neon-blue); }

.top-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--orange-accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--orange-accent); }
    50% { opacity: 0.3; box-shadow: none; }
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 10;
}
.logo-3d {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    perspective: 800px;
}
.logo-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: logoSpin 12s ease-in-out infinite;
}
@keyframes logoSpin {
    0%, 100% { transform: rotateY(0deg) rotateX(10deg); }
    25% { transform: rotateY(15deg) rotateX(-5deg) scale(1.05); }
    50% { transform: rotateY(0deg) rotateX(10deg); }
    75% { transform: rotateY(-15deg) rotateX(-5deg) scale(1.05); }
}
.logo-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-face svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.4));
}

.title-block { margin-bottom: 50px; }
.title-pre {
    font-family: 'Teko', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 15px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}
.title-main {
    font-family: 'Teko', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 10px;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin: 0;
}
.title-main .line1 {
    display: block;
    background: linear-gradient(90deg, #fff 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.title-main .line2 {
    display: block;
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-cyan) 50%, #00ff88 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
.title-sub {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
}

/* Glass Card */
.glass-panel {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 188, 212, 0.02) 100%);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 24px;
    padding: 50px 60px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.05), transparent);
    animation: shimmerCard 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shimmerCard {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}
.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 109, 0, 0.15);
    border: 1px solid rgba(255, 109, 0, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-accent);
    margin-bottom: 25px;
}
.panel-label .dot {
    width: 6px;
    height: 6px;
    background: var(--orange-accent);
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}
.panel-title {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: #fff;
}
.panel-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}
.panel-desc strong { color: #fff; }

/* Circular Progress */
.progress-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 40px 0 0;
    flex-wrap: wrap;
}
.circular-progress { position: relative; width: 140px; height: 140px; }
.circular-progress svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.circular-progress .track { fill: none; stroke: rgba(0, 229, 255, 0.1); stroke-width: 4; }
.circular-progress .fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 2.5s ease-out;
}
.progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.progress-number {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    line-height: 1;
}
.progress-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* Stats */
.stats-row { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 20px; }
.stat-value {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 900px;
}
.service-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(0, 188, 212, 0.02) 100%);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15);
}
.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--neon-blue); fill: none; stroke-width: 1.5; }
.service-name {
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}
.service-desc { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 8px; line-height: 1.6; }

/* Contact Strip */
.contact-strip { display: flex; justify-content: center; gap: 16px; margin-top: 50px; flex-wrap: wrap; }
.contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}
a.contact-pill:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--neon-blue);
}
.contact-pill svg { width: 18px; height: 18px; stroke: var(--neon-blue); fill: none; stroke-width: 1.5; flex-shrink: 0; }

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 100;
    background: linear-gradient(0deg, rgba(10, 25, 41, 0.92) 0%, transparent 100%);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}
.bottom-bar a { color: inherit; }
.bottom-bar a:hover { color: var(--neon-blue); }

/* Floating Particles */
.particle-field { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.p {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 50%;
    opacity: 0;
    animation: pFloat linear infinite;
}
@keyframes pFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== INNER / BLOG PAGES ===== */
.content-narrow { max-width: 900px; width: 100%; margin: 0 auto; }
.page-head { margin-bottom: 30px; }
.page-head h1, .entry-title {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    line-height: 1.05;
}
.entry-meta { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 10px; }
.entry-meta a { color: var(--neon-blue); }
.entry-content { color: rgba(255,255,255,.75); line-height: 1.85; font-size: 1rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: #fff; margin: 1.4em 0 .6em; font-family: 'Teko', sans-serif; letter-spacing: 3px; }
.post-card { text-align: left; margin-bottom: 24px; padding: 32px 36px; }
.post-card h2 { font-family: 'Teko', sans-serif; letter-spacing: 3px; font-size: 1.8rem; margin-bottom: 8px; }
.post-card h2 a { color: #fff; }
.post-card h2 a:hover { color: var(--neon-blue); }
.read-more { display: inline-block; margin-top: 14px; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; }
.pagination { display: flex; gap: 12px; justify-content: center; margin: 30px 0 10px; }
.pagination .page-numbers { padding: 10px 18px; border: 1px solid rgba(0,229,255,.2); border-radius: 30px; font-size: .8rem; letter-spacing: 2px; color: rgba(255,255,255,.6); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: rgba(0,229,255,.12); color: var(--neon-blue); border-color: rgba(0,229,255,.4); }
.comments-area { text-align: left; margin-top: 30px; }
.comments-area ol { list-style: none; }
.comment-body { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.comment-form input, .comment-form textarea { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(0,229,255,.2); border-radius: 10px; color: #fff; padding: 12px 14px; margin-bottom: 12px; font-family: inherit; }
.comment-form .submit, .btn-neon {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    color: #04222b; border: none; border-radius: 30px; padding: 12px 30px;
    font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: .75rem; cursor: pointer;
}
.search-form { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.search-form input[type="search"] { background: rgba(255,255,255,.04); border: 1px solid rgba(0,229,255,.2); border-radius: 30px; color: #fff; padding: 12px 20px; min-width: 240px; }

/* WP core */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Responsive */
@media (max-width: 900px) { .primary-nav { display: none; } }
@media (max-width: 768px) {
    .glass-panel { padding: 30px 25px; }
    .progress-section { gap: 30px; }
    .stats-row { gap: 20px; }
    .top-bar, .bottom-bar { padding: 15px 20px; }
    .top-logo { font-size: 1.2rem; letter-spacing: 3px; }
    .orbit-system { display: none; }
    .main-wrapper { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    .scan-line, .logo-inner, .orbit, .p, .glass-panel::before { animation: none !important; }
}
