/* Color Variable Definitions */
:root {
    --blue: #6e6cfd;
    --cyan: #6cfcfc;
    --green: #6afc6b;
    --lime: #bdfc67;
    --magenta: #fd6bfe;
    --orange: #fdb36c;
    --pink: #fc6c9f;
    --red: #fc6c6c;
    --sky: #6ab7ff;
    --teal: #6afcb5;
    --violet: #b26dfc;
    --yellow: #fafc6a;
    --white: #ffffff;
    
    --theme-color: var(--teal); /* Default fallback */
}

a:active     { text-decoration: none; color: var(--theme-color); filter: brightness(1.2); } 
a:visited    { text-decoration: none; color: color-mix(in srgb, var(--theme-color) 70%, black); } 
a:link       { text-decoration: none; color: color-mix(in srgb, var(--theme-color) 85%, black); }
a:hover      { text-decoration: none; color: var(--theme-color); }

a.menu:active   {text-decoration: none; color:#c0c0c0; font-weight:bold; font-size:13px;} 
a.menu:visited  {text-decoration: none; color:#ffffff; font-weight:bold; font-size:13px;} 
a.menu:link     {text-decoration: none; color:#ffffff; font-weight:bold; font-size:13px;}
a.menu:hover    {text-decoration: none; color:#c0c0c0; font-weight:bold; font-size:13px;}

/* Global Reset & Dark Gradient Background */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #555555 0%, #222222 50%, #111111 100%) !important;
    background-attachment: fixed !important;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header layout */
.site-header {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    padding: 2px 20px !important; /* Slimmed down top/bottom padding to 2px */
    background: linear-gradient(90deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    gap: 20px !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}


.site-title-img {
    height: 35px;
    object-fit: contain;
}

/* Color Switcher Dots */
.color-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.color-dot img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-dot:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--theme-color);
}

/* Navigation Links */
.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--theme-color);
}

/* Dynamic Outline Borders for Boxes */
.content-box, .service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--theme-color);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 0 15px rgba(83, 140, 132, 0.2);
}

/* Bottom Right Mouse & Feather Watermark Container */
.footer-watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    pointer-events: none;
    opacity: 0.8;
    z-index: 999;
}

.footer-watermark img {
    width: 160px;
    height: auto;
}


/* Override legacy generated menu table structure to space things out nicely */
.main-nav table.menubar {
    width: auto !important;
    background: transparent !important;
}

.main-nav table.menubar tr {
    display: flex;
    gap: 30px; /* Adjust spacing between menu items here */
    align-items: center;
}

.main-nav table.menubar td {
    background: transparent !important;
    padding: 0 !important;
}

/* Style the database-generated menu links to match the modern template look */
.main-nav a.menu {
    color: #b0b0b0 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    transition: color 0.2s ease;
    padding: 5px 0;
    display: inline-block;
}

.main-nav a.menu:hover {
    color: var(--theme-color) !important;
}

/* 3-Column Header Layout */
.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 8px !important;
    background: linear-gradient(90deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);    
}

.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.top-logo-emblem {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    /*border: 2px solid var(--theme-color);*/
    transition: border-color 0.3s ease;
}

.site-title-img {
    height: 75px;
    object-fit: contain;
}

/* Override legacy generated menu table structure */
.main-nav table.menubar {
    width: auto !important;
    background: transparent !important;
}

.main-nav table.menubar tr {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav table.menubar td {
    background: transparent !important;
    padding: 0 !important;
}

.main-nav a.menu {
    color: #b0b0b0 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s ease;
    padding: 5px 0;
    display: inline-block;
}

.main-nav a.menu:hover {
    color: var(--theme-color) !important;
}

/* Bottom Color Switcher Bar */
.bottom-color-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-color-switcher .color-dot img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bottom-color-switcher .color-dot:hover img, 
.bottom-color-switcher .color-dot.active img {
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--theme-color);
}


/* Global Reset & Horizontal Grey-to-Black Gradient Background */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #2a2a2a 0%, #111111 100%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Top-Right Background Tech/Circuit Pattern Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 400px;
    background: url('<##skin>/images/top_right_pattern.png') no-repeat top right;
    background-size: contain;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

/* Ensure header and content sit above background decorations */
.site-header, .content-container, .bottom-color-switcher {
    position: relative;
    z-index: 2;
}

/* Bottom Right Mouse & Feather Watermark Container */
.footer-watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    pointer-events: none;
    opacity: 0.8;
    z-index: 999;
}

.footer-watermark img {
    width: 320px;
    height: auto;
}

.tech-ring-container {
    position: absolute;
    top: 60px; /* Pulls it up right under the header/menu bar */
    right: 20px;
    width: 340px; /* Adjust scale if needed to match */
    height: 340px;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    opacity: 0.6;
}

.tech-ring {
    width: 100%;
    height: 100%;
}


/* Distinct Main Page Heading style to mirror target hero templates */
.page-main-title {
    font-family: 'Lugrasimo', cursive;
    font-size: 36px;
    font-weight: 400;
    text-transform: none; /* Preserves your exact mixed-case text */
    color: var(--theme-color);
    margin-top: 15px;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Sub-section headers (keeping them clean and distinct from the main title) */
h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    margin-top: 30px;
}